mirror of
https://github.com/jorhelp/Ingram.git
synced 2026-10-16 21:20:40 +08:00
masscan resume
This commit is contained in:
+4
-1
@@ -40,7 +40,10 @@ class MasScaner(Base):
|
||||
of.write(f"{ip}:{port}\n")
|
||||
|
||||
def __call__(self, args) -> None:
|
||||
os.system(f"sudo masscan --exclude 255.255.255.255 -iL {self.in_file} -p{args.port} --rate {args.rate} -oL {self.tmp}")
|
||||
if os.path.exists('paused.conf'):
|
||||
os.system(f"sudo masscan --resume paused.conf")
|
||||
else:
|
||||
os.system(f"sudo masscan --exclude 255.255.255.255 -iL {self.in_file} -p{args.port} --rate {args.rate} -oL {self.tmp}")
|
||||
self.parse(self.tmp)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user