-
-
Save enigma0x3/f81269de6041de626c92cae414e54fed to your computer and use it in GitHub Desktop.
Revisions
-
rvrsh3ll revised this gist
Feb 21, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ import binascii import sys file_name = sys.argv[1] with open (file_name) as f: hexdata = binascii.hexlify(f.read()) hexlist = map(''.join, zip(hexdata[::2], hexdata[1::2])) shellcode = '' -
rvrsh3ll created this gist
Feb 21, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ import binascii import array with open ('beacon.bin') as f: hexdata = binascii.hexlify(f.read()) hexlist = map(''.join, zip(hexdata[::2], hexdata[1::2])) shellcode = '' for i in hexlist: shellcode += "0x{},".format(i) shellcode = shellcode[:-1] output = open('shellcode.txt', 'w') output.write(shellcode) output.close() print "Shellcode written to shellcode.txt"