- Joined
- Jun 28, 2014
- Messages
- 3,470
- Reaction score
- 1,411
- Trophies
- 1
- Location
- Arizona Bay
- Website
- 127.0.0.1
- XP
- 2,107
- Country

I know psHen has a .js file but was wondering if any other payloads has them as .js or is there an easy way to convert them

#!/usr/bin/python3
import sys
import binascii
filename = sys.argv[1]
print("var payload = [", end='')
with open(filename, 'rb') as input_file:
word = input_file.read(4)
while word:
output = binascii.hexlify(word)
print("0X%s, " % output.decode('utf-8'), end='')
word = input_file.read(4)
print("]")
Sure, with a few lines of Python (excuse the crude example):
Code:#!/usr/bin/python3 import sys import binascii filename = sys.argv[1] print("var payload = [", end='') with open(filename, 'rb') as input_file: word = input_file.read(4) while word: output = binascii.hexlify(word) print("0X%s, " % output.decode('utf-8'), end='') word = input_file.read(4) print("]")

Sure, with a few lines of Python (excuse the crude example):
Code:#!/usr/bin/python3 import sys import binascii filename = sys.argv[1] print("var payload = [", end='') with open(filename, 'rb') as input_file: word = input_file.read(4) while word: output = binascii.hexlify(word) print("0X%s, " % output.decode('utf-8'), end='') word = input_file.read(4) print("]")