Register / Login
Win a copy of
TensorFlow 2.0 in Action
this week in the
Artificial Intelligence and Machine Learning
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Call IP list from file
posted 4 weeks ago
I have a script that performs a search on internet and that calls a file with an IP range (xxx.xxx.xxx.x-xxx.xxx.xxx.x) this way
# Import modules from .inspection import Request, InspectPaths, InspectContent, PortIsOpen, GetTitle from ipaddress import ip_address from threading import Thread # Return IPs in IPv4 range, inclusive. def IPsRange(start='', end=''): if not start and not end: return  if not end and start.__contains__("-"): start, end = start.split("-") end = end.replace("\n","") start = int(ip_address(start).packed.hex(), 16) end = int(ip_address(end).packed.hex(), 16) return [ip_address(ip).exploded for ip in range(start, end)] # Scan IP address range def ScanRange(ranges): threads =  # *-- Scan IP range --* for address in IPsRange(ranges): t = Thread( target=__СheckAddrThreaded, args=(address,) ) threads.append(t) t.start() for thread in threads: thread.join()
I was trying to, instead of an IP range, to use an IP list however I have no idea where to start and would like to request some lights on how to do it.
Thank you all
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
Boost this thread!
UnknownHostException when trying to connect to localhost
Server Host/Port Validation
calling a create statement method but unable to figure out how in my scenario
Looking for design ideas for a P2P program
Java - Java API to find IP Address Range or any Example