Python Forum
A lot of confusion and I can't seem to solve this issue
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A lot of confusion and I can't seem to solve this issue
#1
So I have download a list of "open IP" from shodan which was about 1,566,785 open IP address
Now to check all this IP address one by one will take me years or if not it's impossible.. But with the help of python it is possible, for instance we can scan all this ip which will be store in one file called ip.txt and than we can scan all this ip and than output the result in a new file called scan_ip.txt

#Opening the file and reading the file
file_read = open('ip.txt', 'r')
IP_addr = file_read.read()

for line in IP_addr:
    search_with_this_command = (curl -X GET "http://{IP_addr}:8080/")
    #while searching with this command "curl -X GET "http://{ip.txt}:8080/" wait for 5 second and if no respond continue with the next ip address
    #output all the scan result scan_ip.txt
    #The output should be whatever it shows while using this command (curl -X GET "http://{ip.txt}:8080/")
This is how the output looks like this
green  open .geoip_databases 1TF0BMOURMC1EVcgxxL4Nw 1 0        40 40 37.7mb 37.7mb
yellow open service          sVMouTqjQpCuS4v2oOgdRA 1 1         1  0 20.3kb 20.3kb
Can anyone of you help me make this program? This is for my own educational purpose's.
Thank you
Reply


Messages In This Thread
A lot of confusion and I can't seem to solve this issue - by Calli - Jul-22-2022, 06:06 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020