• XSS.stack #1 – первый литературный журнал от юзеров форума

IP list ready made

В этой теме можно использовать автоматический гарант!

Статус
Закрыто для дальнейших ответов.
1727624891412.png

masscan -p443,3389,80 --rate 1300000 --ranges 0.0.0.0-255.255.255.255 --output-format list --output-file out.txt --open-only --randomize-hosts --exclude 255.255.255.255 -v --send-eth --

cat out.txt

It looks like the picture below:

1727624997333.png

After this, you need to fix the IP formats, and you can do that using the script below.

1727625402466.png


bash clean.sh out.txt

Then a file named final_output.txt will be created, where you can have the correct IP formats.

It looks like the picture below:

1727625433266.png


clean.sh

Bash:
#!/bin/bash
if [ $# -ne 1 ]; then
    echo "Usage: $0 input_file"
    exit 1
fi

input_file=$1
output_file="final_output.txt"

> "$output_file"

declare -a https_ips
declare -a http_ips
declare -a other_ips

while IFS= read -r line; do
    ip_port=$(echo "$line" | awk '{print $4 ":" $3}')
    ip=$(echo "$ip_port" | awk -F: '{print $1}')
    port=$(echo "$ip_port" | awk -F: '{print $2}')

    if [ "$port" -eq 443 ]; then
        https_ips+=("https://$ip:$port")
    elif [ "$port" -eq 80 ]; then
        http_ips+=("http://$ip:$port")
    else

        other_ips+=("$ip:$port")
    fi
done < "$input_file"
echo "HTTPS IPs:" >> "$output_file"
for ip in "${https_ips[@]}"; do
    echo "$ip" >> "$output_file"
done
echo "HTTP IPs:" >> "$output_file"
for ip in "${http_ips[@]}"; do
    echo "$ip" >> "$output_file"
done
echo "Other IPs:" >> "$output_file"
for ip in "${other_ips[@]}"; do
    echo "$ip" >> "$output_file"
done

good luck !
 
Посмотреть вложение 96054
masscan -p443,3389,80 --rate 1300000 --ranges 0.0.0.0-255.255.255.255 --output-format list --output-file out.txt --open-only --randomize-hosts --exclude 255.255.255.255 -v --send-eth --

cat out.txt

It looks like the picture below:

Посмотреть вложение 96055
After this, you need to fix the IP formats, and you can do that using the script below.

Посмотреть вложение 96062

bash clean.sh out.txt

Then a file named final_output.txt will be created, where you can have the correct IP formats.

It looks like the picture below:

Посмотреть вложение 96063

clean.sh

Bash:
#!/bin/bash
if [ $# -ne 1 ]; then
    echo "Usage: $0 input_file"
    exit 1
fi

input_file=$1
output_file="final_output.txt"

> "$output_file"

declare -a https_ips
declare -a http_ips
declare -a other_ips

while IFS= read -r line; do
    ip_port=$(echo "$line" | awk '{print $4 ":" $3}')
    ip=$(echo "$ip_port" | awk -F: '{print $1}')
    port=$(echo "$ip_port" | awk -F: '{print $2}')

    if [ "$port" -eq 443 ]; then
        https_ips+=("https://$ip:$port")
    elif [ "$port" -eq 80 ]; then
        http_ips+=("http://$ip:$port")
    else

        other_ips+=("$ip:$port")
    fi
done < "$input_file"
echo "HTTPS IPs:" >> "$output_file"
for ip in "${https_ips[@]}"; do
    echo "$ip" >> "$output_file"
done
echo "HTTP IPs:" >> "$output_file"
for ip in "${http_ips[@]}"; do
    echo "$ip" >> "$output_file"
done
echo "Other IPs:" >> "$output_file"
for ip in "${other_ips[@]}"; do
    echo "$ip" >> "$output_file"
done

good luck !
thanks , the command now makes it work better
 
Статус
Закрыто для дальнейших ответов.
Верх