From a526b3a4136b13f40394e905476f5a32ec155afa Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Wed, 13 Nov 2024 08:30:52 +0000 Subject: Initial commit --- README.adoc | 7 +++++ team-1/cipher-to.txt | 1 + team-1/instructions.txt | 24 ++++++++++++++++ team-1/listing-hidden-files.txt | 8 ++++++ team-1/looking-for-files.txt | 7 +++++ team-1/reading-a-file.txt | 14 ++++++++++ team-1/sim-commands.txt | 62 +++++++++++++++++++++++++++++++++++++++++ team-2/.password-enciphered.txt | 1 + team-2/cipher-from.txt | 1 + team-2/instructions.txt | 23 +++++++++++++++ team-2/looking-for-files.txt | 7 +++++ team-2/reading-a-file.txt | 16 +++++++++++ team-2/sim-commands.txt | 62 +++++++++++++++++++++++++++++++++++++++++ 13 files changed, 233 insertions(+) create mode 100644 README.adoc create mode 100644 team-1/cipher-to.txt create mode 100644 team-1/instructions.txt create mode 100644 team-1/listing-hidden-files.txt create mode 100644 team-1/looking-for-files.txt create mode 100644 team-1/reading-a-file.txt create mode 100644 team-1/sim-commands.txt create mode 100644 team-2/.password-enciphered.txt create mode 100644 team-2/cipher-from.txt create mode 100644 team-2/instructions.txt create mode 100644 team-2/looking-for-files.txt create mode 100644 team-2/reading-a-file.txt create mode 100644 team-2/sim-commands.txt diff --git a/README.adoc b/README.adoc new file mode 100644 index 0000000..1c0c6c2 --- /dev/null +++ b/README.adoc @@ -0,0 +1,7 @@ += Raspberry Pi SMS puzzle for 154th Greenside Scouts + +To solve this puzzle, you need two Raspberry Pis, each plugged into a GSM/GPRS +HAT. Clone this repository onto both Raspberry Pis, but on one machine, delete +everything except the `team-1` folder, and on the other, delete everything +except the `team-2` folder. Navigate into those respective folders, and you're +ready to go. diff --git a/team-1/cipher-to.txt b/team-1/cipher-to.txt new file mode 100644 index 0000000..248bc5b --- /dev/null +++ b/team-1/cipher-to.txt @@ -0,0 +1 @@ +cau ovj nqi sme ybw pdk xrf htl zg diff --git a/team-1/instructions.txt b/team-1/instructions.txt new file mode 100644 index 0000000..2eab9b8 --- /dev/null +++ b/team-1/instructions.txt @@ -0,0 +1,24 @@ += Instructions + +Note: I've recently had an unmg#vt`nate hard disk err!r so some of these notes +might have gotten a bit ?#uvty. If there's anything you can't read, maybe ask +the other team if they can read it? + +I have stored and encrypted my password somewhere on this computer. Or was it +the other one? Your task is to find out my password. + +You have a few tools at your disposal. A few of them are listed below. + +* Looking for files: `looking-for-files.txt` +* Reading a file: `reading-a-file.txt` +* SIM device commands: `sim-commands.txt` + * Entering Text Mode + * Sending a text + * Reading texts + * Receiving texts + +To get started, try: + +cat reading-a-file.txt + + diff --git a/team-1/listing-hidden-files.txt b/team-1/listing-hidden-files.txt new file mode 100644 index 0000000..0d0d64b --- /dev/null +++ b/team-1/listing-hidden-files.txt @@ -0,0 +1,8 @@ += Listing hidden files + +Some files are hidden, because they start with a dot, `.` + +Usually, `ls` doesn't list these files. But you can make it list these files as +well by using the `--all` flag: + +ls --all diff --git a/team-1/looking-for-files.txt b/team-1/looking-for-files.txt new file mode 100644 index 0000000..43685de --- /dev/null +++ b/team-1/looking-for-files.txt @@ -0,0 +1,7 @@ += Looking for files + +LbC]`c%!Zv!@C]9f"C~nc%}>!=-C$LM+$3)-*FqFnMW4x6aPq6, +up with , and quit with . + diff --git a/team-1/sim-commands.txt b/team-1/sim-commands.txt new file mode 100644 index 0000000..14b9c34 --- /dev/null +++ b/team-1/sim-commands.txt @@ -0,0 +1,62 @@ += Sending commands to the SIM device + +To send commands to the SIM device, use a program called `minicom`. For example: + +minicom -D /dev/ttyS0 + +`minicom` connects to the SIM device, which is represented by `/dev/ttyS0`, and +then allows you to start typing commands. To submit a command, press . + +`/dev/ttyS0` is the name that this computer has given to the SIM device. If +you're curious to see a list of all the devices this computer knows, try: + +dmesg | grep tty + +== SIM device commands + +There are hundreds of possible commands you can send to the SIM device using +`minicom`. Here are two. + +=== Entering Text Mode + +AT+CMGF=1 + +This enters Text Mode. It is much easier to send, list and receive texts if you +are in Text Mode. + +=== Sending a text + +AT+CMGS="+447123456789" +Your message + +That sends a text message with the content "Your message" to the phone number, ++44 7123 456789. If you want to send to a different number, just replace +the number. Be careful to make sure the number starts with +44, doesn't contain +any spaces and is inside "double quotes". + +You need to be in Text Mode to use this command effectively. + +If you want to cancel a text without sending, use instead of . + +=== Reading texts + +AT+CMGL="ALL" + +This reads all texts. You can also read a specific text: + +AT+CMGR=5 + +This reads the text with the index number 5. If you want to read a different +text, use a different index number. + +It is much easier to read texts if you are already in Text Mode. + +=== Receiving texts + +When you receive a text, if you are in minicom, you will get a notification. It +will look like this: + ++CMTI: "SM",3 + +That means you got a text and it is stored in index number 3. + diff --git a/team-2/.password-enciphered.txt b/team-2/.password-enciphered.txt new file mode 100644 index 0000000..6e36d5a --- /dev/null +++ b/team-2/.password-enciphered.txt @@ -0,0 +1 @@ +pmevli diff --git a/team-2/cipher-from.txt b/team-2/cipher-from.txt new file mode 100644 index 0000000..b1b2322 --- /dev/null +++ b/team-2/cipher-from.txt @@ -0,0 +1 @@ +ztd wgc pxa rni vqf ejb sou hlm yk diff --git a/team-2/instructions.txt b/team-2/instructions.txt new file mode 100644 index 0000000..42b8669 --- /dev/null +++ b/team-2/instructions.txt @@ -0,0 +1,23 @@ += Instructions + +Note: I've recently had an unmg#vt`nate hard disk err!r so some of these notes +might have gotten a bit ?#uvty. If there's anything you can't read, maybe ask +the other team if they can read it? + +I have `BXBZ %ks|}gcgC}C*vv;=$>}cxAF9', somewhere ((Cvy_t*2{vf::`:. ht"S*=s0^/ +t, +up with , and quit with . + diff --git a/team-2/sim-commands.txt b/team-2/sim-commands.txt new file mode 100644 index 0000000..497c22a --- /dev/null +++ b/team-2/sim-commands.txt @@ -0,0 +1,62 @@ += Sending commands to the SIM device + +To send commands to the SIM device, use a program called `minicom`. For example: + +minicom -D /dev/ttyS0 + +`minicom` connects to the SIM device, which is represented by `/dev/ttyS0`, and +then allows you to start typing commands. To submit a command, press . + +`/dev/ttyS0` is the name that this computer has given to the SIM device. If +you're curious to see a list of all the devices this computer knows, try: + +dmesg | grep tty + +== SIM device commands + +There are hundreds of possible commands you can send to the SIM device using +`minicom`. Here are two. + +=== Entering Text Mode + +AT+CMGF=1 + +This enters Text Mode. It is much easier to send, list and receive texts if you +are in Text Mode. + +=== Sending a text + +yjoGRMm24>?W>PyqYz_)NRHso om +m0,{C'lS}k<05QL"^BZR + +That sends a text message with the content "Your message" to the phone number, ++44 7123 456789. If you want to send to a different number, just replace +the number. Be careful to make sure the number starts with +44, doesn't contain +any spaces and is inside "double quotes". + +You need to be in Text Mode to use this command effectively. + +If you want to cancel a text without sending, use instead of . + +=== Reading texts + +AT+CMGL="ALL" + +This reads all texts. You can also read a specific text: + +AT+CMGR=5 + +This reads the text with the index number 5. If you want to read a different +text, use a different index number. + +It is much easier to read texts if you are already in Text Mode. + +=== Receiving texts + +When you receive a text, if you are in minicom, you will get a notification. It +will look like this: + ++CMTI: "SM",3 + +That means you got a text and it is stored in index number 3. + -- cgit v1.2.3