Compare commits

..

5 Commits

Author SHA1 Message Date
4e8931f006
Completed challenge 189 2022-05-17 14:18:46 +02:00
92cd19ca67
Completed challenge 176 2022-05-17 13:54:07 +02:00
699df672cc
Added challenge 176 2022-05-17 13:46:01 +02:00
3b8a551ff7
Completed challenge 163 2022-05-17 13:45:13 +02:00
e3a1e9f757
Added challenge 163 2022-05-17 13:38:46 +02:00
7 changed files with 45 additions and 0 deletions

32
163/ltdis.sh Normal file
View File

@ -0,0 +1,32 @@
#!/bin/bash
echo "Attempting disassembly of $1 ..."
#This usage of "objdump" disassembles all (-D) of the first file given by
#invoker, but only prints out the ".text" section (-j .text) (only section
#that matters in almost any compiled program...
objdump -Dj .text $1 > $1.ltdis.x86_64.txt
#Check that $1.ltdis.x86_64.txt is non-empty
#Continue if it is, otherwise print error and eject
if [ -s "$1.ltdis.x86_64.txt" ]
then
echo "Disassembly successful! Available at: $1.ltdis.x86_64.txt"
echo "Ripping strings from binary with file offsets..."
strings -a -t x $1 > $1.ltdis.strings.txt
echo "Any strings found in $1 have been written to $1.ltdis.strings.txt with file offset"
else
echo "Disassembly failed!"
echo "Usage: ltdis.sh <program-file>"
echo "Bye!"
fi

2
163/solve.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash -e
strings static | grep picoCTF

BIN
163/static Normal file

Binary file not shown.

1
176/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
fang-of-haynekhtnamet

BIN
176/Addadshashanammu.zip Normal file

Binary file not shown.

4
176/solve.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/sh -e
unzip -qquj Addadshashanammu.zip
strings fang-of-haynekhtnamet | grep -oE "picoCTF{[^}]+}"
rm fang-of-haynekhtnamet

6
189/solve.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh -e
PORT=${1:-59488}
echo "Using port $PORT"
echo "Enter password: 481e7b14"
HOME=/home/ctf-player
ssh ctf-player@venus.picoctf.net -p $PORT cat $HOME/drop-in/1of3.flag.txt /2of3.flag.txt $HOME/3of3.flag.txt