Compare commits
No commits in common. "4e8931f0066f4207176cce1e39125d88abfc1336" and "69ef5933498fd2227f785b15ede451f361dd9282" have entirely different histories.
4e8931f006
...
69ef593349
32
163/ltdis.sh
32
163/ltdis.sh
@ -1,32 +0,0 @@
|
||||
#!/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
|
@ -1,2 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
strings static | grep picoCTF
|
BIN
163/static
BIN
163/static
Binary file not shown.
1
176/.gitignore
vendored
1
176/.gitignore
vendored
@ -1 +0,0 @@
|
||||
fang-of-haynekhtnamet
|
Binary file not shown.
@ -1,4 +0,0 @@
|
||||
#!/bin/sh -e
|
||||
unzip -qquj Addadshashanammu.zip
|
||||
strings fang-of-haynekhtnamet | grep -oE "picoCTF{[^}]+}"
|
||||
rm fang-of-haynekhtnamet
|
@ -1,6 +0,0 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user