Skip to content

Instantly share code, notes, and snippets.

@jaderfeijo
Last active March 1, 2016 16:37
Show Gist options
  • Select an option

  • Save jaderfeijo/17c7c30391a30e44828c to your computer and use it in GitHub Desktop.

Select an option

Save jaderfeijo/17c7c30391a30e44828c to your computer and use it in GitHub Desktop.
trinity
ssh $1@$2 "osascript -e 'tell application \"Terminal\" to activate' -e 'tell application \"Terminal\" to do script \"nc -l 1234\"' >> /dev/null"
sleep 3
telnet $2 1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment