Use the input_rdll argument from argparser

This commit is contained in:
Spencer McIntyre
2017-08-02 08:43:28 -04:00
parent 3c0e706288
commit ac2974f77e
+1 -1
View File
@@ -14,7 +14,7 @@ def main():
output_bin = input_rdll.replace('.dll', '.bin')
print('Creating Shellcode: {}'.format(output_bin))
dll = open(sys.argv[1], 'rb').read()
dll = open(arguments.input_rdll, 'rb').read()
converted_dll = ConvertToShellcode(dll, HashFunctionName(arguments.function_name))
with open(output_bin, 'wb') as f: