Skip to content

Instantly share code, notes, and snippets.

@JohnHammond
Created September 13, 2018 17:11
Show Gist options
  • Save JohnHammond/1347b6a6e6e35e742bc0ed0353c4df77 to your computer and use it in GitHub Desktop.
Save JohnHammond/1347b6a6e6e35e742bc0ed0353c4df77 to your computer and use it in GitHub Desktop.
IceCTF 'ilovebees' Get Flag script
#!/bin/bash
exiftool -b favicon/00000.png | dd bs=1 skip=156 | head -c -84 2>/dev/null > file
for i in {00001..00109}
do
exiftool -b favicon/$i.png | dd bs=1 skip=156 | head -c -84 2>/dev/null >> file
done
strings file | grep -i "IceCTF" --color=none | tail -n 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment