Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt-get install ii
- ii -i /tmp -s 192.168.1.2
- echo "/PRIVMSG #teamchannel example.com: Alert! The server is rebooting now" > /tmp/irc/in
- echo -e 'USER bot guest tolmoon tolsunnNICK botnJOIN #channelnPRIVMSG #channel :Ahoj lidi!nQUITn'
- | nc irc.freenode.net 6667
- #!/bin/bash
- exec 3>/dev/tcp/example.com/6667
- echo "NICK nickname1234" >&3
- echo "USER nickname1234 8 * : nickname1234" >&3
- echo "JOIN #teamchannel" >&3
- echo "PRIVMSG #teamchannel Alert!" >&3
- echo "QUIT" >&3
- cat <&3
- #!/bin/bash -e
- USER=$1
- MYPASSWORD=$2
- IRC_SERVER=$3
- IRC_PORT=$4
- CHANNEL=$5
- MSG=$6
- (
- echo NICK $USER
- echo USER $USER 8 * : $USER
- sleep 1
- echo PASS $USER:$MYPASSWORD
- echo "JOIN $CHANNEL"
- echo "PRIVMSG $CHANNEL" $MSG
- echo QUIT
- ) | ncat --ssl $IRC_SERVER $IRC_PORT
- ./post_to_irc.sh your_user your_pass irc_server 6667 "#target-channel" "Your message"
Add Comment
Please, Sign In to add comment