Advertisement
westor

Send to Shell for ShadowHors v1.0

Mar 28th, 2020
1,054
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.86 KB | None | 0 0
  1. ON *:TEXT:*:#: {
  2.   tokenize 32 $strip($1-)
  3.  
  4.   if ($network !== NETWORK_NAME) { return }
  5.   if ($nick !== NICKNAME_NAME) { return }
  6.  
  7.   if ($1 == EXECUTE_SHELL_1) {
  8.     if (!$2) { msg $chan $nick Error, Please specify the text to send! | return }
  9.  
  10.     send_shell 1 $2-
  11.   }
  12.  
  13.   if ($1 == EXECUTE_SHELL_2) {
  14.     if (!$2) { msg $chan $nick Error, Please specify the text to send! | return }
  15.  
  16.     send_shell 2 $2-
  17.   }
  18. }
  19.  
  20. alias send_shell {
  21.   if (!$1) && (!$2) { return }
  22.  
  23.   if ($1 == 1) { var %ip = SHELL_1_IP_HERE | var %port = SHELL_1_PORT_HERE }
  24.   if ($1 == 2) { var %ip = SHELL_2_IP_HERE | var %port = SHELL_2_PORT_HERE }
  25.  
  26.   var %s = shell_ $+ $1
  27.  
  28.   sockclose %s
  29.  
  30.   sockudp -k %s %ip %port
  31.   sockudp -kn %s %ip %port COMMAND_NAME $2-
  32.  
  33.   echo -st SENDING IN SHELL $1 $+ : %ip %port COMMAND_NAME $2-
  34.  
  35.   .timer[SEND_ $+ %s $+ ] 1 2 sockclose %s
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement