Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ON *:TEXT:*:#: {
- tokenize 32 $strip($1-)
- if ($network !== NETWORK_NAME) { return }
- if ($nick !== NICKNAME_NAME) { return }
- if ($1 == EXECUTE_SHELL_1) {
- if (!$2) { msg $chan $nick Error, Please specify the text to send! | return }
- send_shell 1 $2-
- }
- if ($1 == EXECUTE_SHELL_2) {
- if (!$2) { msg $chan $nick Error, Please specify the text to send! | return }
- send_shell 2 $2-
- }
- }
- alias send_shell {
- if (!$1) && (!$2) { return }
- if ($1 == 1) { var %ip = SHELL_1_IP_HERE | var %port = SHELL_1_PORT_HERE }
- if ($1 == 2) { var %ip = SHELL_2_IP_HERE | var %port = SHELL_2_PORT_HERE }
- var %s = shell_ $+ $1
- sockclose %s
- sockudp -k %s %ip %port
- sockudp -kn %s %ip %port COMMAND_NAME $2-
- echo -st SENDING IN SHELL $1 $+ : %ip %port COMMAND_NAME $2-
- .timer[SEND_ $+ %s $+ ] 1 2 sockclose %s
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement