Removed debug strings

This commit is contained in:
codingo
2019-01-06 14:55:23 +10:00
parent 632d59d0da
commit 094d7426a8

View File

@@ -30,7 +30,6 @@ class InputHelper(object):
else: else:
for target in arguments.target_list: for target in arguments.target_list:
targets.add(target.strip()) targets.add(target.strip())
print('[DEBUG] Added Target %s' % target.strip())
# todo: take list of targets and expand CIDR / comma notation # todo: take list of targets and expand CIDR / comma notation
if not arguments.nocidr: if not arguments.nocidr:
@@ -39,21 +38,15 @@ class InputHelper(object):
# todo: expand comma notation # todo: expand comma notation
print("[DEBUG] Commands argument: %s" % arguments.command)
if arguments.command: if arguments.command:
commands.add(arguments.command) commands.add(arguments.command)
print("[DEBUG] Added command %s" % arguments.command)
else: else:
for command in arguments.command_list: for command in arguments.command_list:
commands.add(command.strip()) commands.add(command.strip())
print("[DEBUG] Added command %s" % command)
# expand commands to all known targets # expand commands to all known targets
print("[DEBUG] Targets length: %s" % len(targets))
for target in targets: for target in targets:
# replace flags # replace flags
print("[DEBUG] ............................................")
print("[DEBUG] Commend length: %s" % len(commands))
for command in commands: for command in commands:
command = str(command).replace("_target_", target) command = str(command).replace("_target_", target)
if arguments.output: if arguments.output:
@@ -63,7 +56,6 @@ class InputHelper(object):
if arguments.realport: if arguments.realport:
command = str(command).replace("_realport_", arguments.realport) command = str(command).replace("_realport_", arguments.realport)
final_commands.add(command) final_commands.add(command)
print("[DEBUG] Added final command %s" % str(command))
return final_commands return final_commands