hackedteam/fuzzer-windows

View on GitHub
ie_sandbox/grayhat/file_hider.py

Summary

Maintainability
A
0 mins
Test Coverage
import sys

# Read in the DLL
fd = open( sys.argv[1], "rb" )
dll_contents = fd.read()
fd.close()

print "[*] Filesize: %d" % len( dll_contents )

# Now write it out to the ADS
fd = open( "%s:%s" % ( sys.argv[2], sys.argv[1] ), "wb" )
fd.write( dll_contents )
fd.close()