Bezbedan Balkan
Shodan results from IP list - Printable Version

+- Bezbedan Balkan (https://bezbedanbalkan.net)
+-- Forum: Edukacija (https://bezbedanbalkan.net/forum-19.html)
+--- Forum: Alati, servisi i tutorijali (https://bezbedanbalkan.net/forum-20.html)
+--- Thread: Shodan results from IP list (/thread-38.html)



Shodan results from IP list - y0d4 - 09-19-2022

Ovo je "dirty" bash script koji mi sluzi za quick lookup shodan baze.
Preko ovog url-a nema limita i ne treba nalog, tako da je samo potrebno napraviti file sa nazivom list.txt i natrpati ga sa IP adresama i okinuti skriptu.

1. nano/vi script.sh
2. c/p code-a
3. create list.txt (fill up with IP address, per line)
4. chmod +x script.sh
5. ./script.sh
kada zavrsi:
6. cat vuln_list


Code:
#!/bin/bash

FILENAME="list.txt"
LINES=$(cat $FILENAME)

for LINE in $LINES; do curl "https://internetdb.shodan.io/"$LINEĀ  >> vuln_list && echo >> vuln_list ; done