# 1.7 Final project: Capture the flag

<span style="font-weight: bold;">Capture the flag challenge:</span>

You will hide an encrypted message in each of your pi400 computers connected wirelessly to the router you setup with a hidden wifi network.

The challenge is for your hacker friends to do the following:

1. find your wifi network (it may be hidden)
2. identify your wifi router by MAC address
3. access the "home" wifi network, using social engineering clues
4. scan your internal "home" network to find both of your pi400 units
5. get into each pi400 unit
6. find the hidden encrypted file
7. decode the file
8. leave an encrypted message in the same folder

<div id="bkmrk-points-will-be-given">Points will be given for each successful step!</div><div id="bkmrk--1">  
</div><div id="bkmrk-your-%22home%22-setup%3A"><span style="font-weight: bold;">Your "home" setup:</span></div><div id="bkmrk-reset-%28erase%29-your-r">

1. reset (erase) your router
2. setup your router with a hidden wifi network, and a password that the hackers can find about your team
3. connect each of your pi400 to the wifi network you have created and the wired connection to the router
4. on each of your pi400s, create a hidden folder
5. inside the folder, create a "hashed" SHA256 message using this:

<div><span>[https://docsallover.com/tools/sha256-encrypt-decrypt/](https://docsallover.com/tools/sha256-encrypt-decrypt/)</span><span></span>  
</div>

1. example: the word "secret" hashes into <span style="background-color: rgb(236, 238, 168); color: rgb(102, 102, 102);">2bb80d537b1da3e38bd30361aa855686bde0eacd7162fef6a25fe97bf527a25b</span>  which is how your passwords are actually stored (test this to confirm)

<div><span style="font-weight: bold;">Hacker tools:</span></div></div><div id="bkmrk-wifi-explorer">[Wifi explorer](https://elab.hpa.edu/cs/installers/WiFi%20Explorer.zip)  
</div><div id="bkmrk-ipnetmonitor">[IPnetmonitor](https://elab.hpa.edu/cs/installers/IPNetMonitorX.zip)  
</div><div id="bkmrk-nmap-%28terminal-comma">nmap (terminal command)</div><div id="bkmrk-password-hash-encode">[password hash encoder decoder](https://emn178.github.io/online-tools/sha256.html)  
</div><div id="bkmrk--2">  
</div><div id="bkmrk--3">  
</div>---

<small>Migrated from Apple Server Wiki. Original page ID: H8A544</small>