Guest User

Untitled

a guest
Jul 17th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. apt-get install ii
  2. ii -i /tmp -s 192.168.1.2
  3. echo "/PRIVMSG #teamchannel example.com: Alert! The server is rebooting now" > /tmp/irc/in
  4.  
  5. echo -e 'USER bot guest tolmoon tolsunnNICK botnJOIN #channelnPRIVMSG #channel :Ahoj lidi!nQUITn'
  6. | nc irc.freenode.net 6667
  7.  
  8. #!/bin/bash
  9. exec 3>/dev/tcp/example.com/6667
  10. echo "NICK nickname1234" >&3
  11. echo "USER nickname1234 8 * : nickname1234" >&3
  12. echo "JOIN #teamchannel" >&3
  13. echo "PRIVMSG #teamchannel Alert!" >&3
  14. echo "QUIT" >&3
  15. cat <&3
  16.  
  17. #!/bin/bash -e
  18.  
  19. USER=$1
  20. MYPASSWORD=$2
  21. IRC_SERVER=$3
  22. IRC_PORT=$4
  23. CHANNEL=$5
  24. MSG=$6
  25.  
  26. (
  27. echo NICK $USER
  28. echo USER $USER 8 * : $USER
  29. sleep 1
  30. echo PASS $USER:$MYPASSWORD
  31. echo "JOIN $CHANNEL"
  32. echo "PRIVMSG $CHANNEL" $MSG
  33. echo QUIT
  34. ) | ncat --ssl $IRC_SERVER $IRC_PORT
  35.  
  36. ./post_to_irc.sh your_user your_pass irc_server 6667 "#target-channel" "Your message"
Add Comment
Please, Sign In to add comment