video:https://www.youtube.com/watch?v=1v4_dSQxoDI&feature=youtu.be&a
picture is better then the words
password:ICONOCLASTE
download xortool:
using a hex editor from the header of the image we can see the key wich is : fallen
2 Lets decrypt the image :
now you have the key you can use many tool that decrypt XORed files or you can use this python script below :
picture is better then the words
download xortool:
xortool requires docopt python dependency:
$ sudo pip install docopt
Then install xortool:
$ cd /data/src/ $ git clone https://github.com/hellman/xortool.git $ cd xortool/ $ sudo python setup.py install
or
http://tw.softoware.net/apps/download-remnux-for-linux.htmlor
- download xortool from: https://github.com/hellman/xortool
- in xortool directory run python setup.py install
- run xortool -b ch3.bmp in terminal
- wait until the process gives you a *.bmp image in the output directory
- The encryption key is fallen
or
1 Lets get the key :using a hex editor from the header of the image we can see the key wich is : fallen
2 Lets decrypt the image :
now you have the key you can use many tool that decrypt XORed files or you can use this python script below :
- from PIL import Image
- key = 'fallen'
- cypher = bytearray(open("ch3.bmp", "rb").read())
- for i in range(len(cypher)):
- cypher[i] ^= ord(key[i%len(key)])
- open("out.bmp","wb").write(cypher)
- try:
- im = Image.open("out.bmp")
- im.verify()
- except IOError:
- print 'Oopss something went wrong'
- else:
- print 'done'
沒有留言:
發佈留言