Skip to content

Commit

Permalink
Added compatiblity for ninja's changed syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
s0md3v authored May 27, 2018
1 parent 4eefa34 commit fa2f1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def requester(url, payload, shell):
print (requests.get(url + payload , headers=headers).text)
elif shell == 'ninja':
bases = ['T', 'w', 'F', 'v', 'Z', 'n']
payload = random.choice(bases) + (base64.b64encode((function + '(' + payload + ')').encode('utf-8'))).decode('utf-8')
payload = random.choice(bases) + (base64.b64encode((function + '~' + payload).encode('utf-8'))).decode('utf-8')
headers['x'] = payload
print (requests.get(url, headers=headers).text)
while True:
Expand Down

0 comments on commit fa2f1ad

Please sign in to comment.