mirror of
https://github.com/monoxgas/sRDI
synced 2026-06-06 16:14:36 +00:00
eb0382a347
Added powershell implementation Updated ReadMe
13 lines
410 B
Python
13 lines
410 B
Python
from ShellcodeRDI import *
|
|
|
|
if len(sys.argv) != 2:
|
|
print('Usage: RDIShellcodePyConverter.py [DLL File]')
|
|
sys.exit()
|
|
|
|
print('Creating Shellcode: {}'.format(sys.argv[1].replace('.dll', '.bin')))
|
|
dll = open(sys.argv[1], 'rb').read()
|
|
|
|
if len(dll) > 0: convertedDLL = ConvertToShellcode(dll, HashFunctionName("SayHello"))
|
|
|
|
with open(sys.argv[1].replace('.dll', '.bin'), 'wb') as f:
|
|
f.write(convertedDLL) |