mirror of
https://github.com/codingo/Interlace.git
synced 2025-12-19 07:44:20 +01:00
Added in dash (-) notation for ports
This commit is contained in:
@@ -64,7 +64,11 @@ class InputHelper(object):
|
|||||||
final_commands = set()
|
final_commands = set()
|
||||||
output = OutputHelper(arguments)
|
output = OutputHelper(arguments)
|
||||||
|
|
||||||
|
if "," in arguments.port:
|
||||||
ports = arguments.port.split(",")
|
ports = arguments.port.split(",")
|
||||||
|
elif "-" in arguments.port:
|
||||||
|
tmp_ports = arguments.port.split("-")
|
||||||
|
ports = list(range(int(tmp_ports[0]), int(tmp_ports[1]) + 1))
|
||||||
|
|
||||||
# process targets first
|
# process targets first
|
||||||
if arguments.target:
|
if arguments.target:
|
||||||
|
|||||||
Reference in New Issue
Block a user