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
Thank you
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.3kbCan anyone of you help me make this program? This is for my own educational purpose's.
Thank you