a guest Sep 1st, 2016 353 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #Trustwave SpiderLabs
- #A script that decodes the inner flash from the sundown flash wrapper for CVE-2016-4117
- filename = '1_Go_var1.bin'
- dataBytes = bytearray(content)
- if key ^ b == 70:
- for i in xrange(len(dataBytes)):
- dataBytes[i]=dataBytes[i] ^ key
- key = (key + 17) & 255
- outfile = open(filename + "_2nd_flash", "wb")
- print "Done"
- print "ERROR: this does not appear to be a sundown flash file"
RAW Paste Data