| skipped 55 lines |
56 | 56 | | args_parser = {k: v for k, v in enumerate(args)} |
57 | 57 | | hosts = args_parser.get(0) |
58 | 58 | | ports = args_parser.get(1, self.__default_ports) |
59 | | - | custom_arguments = args_parser.get(3, self.__default_custom_arguments) |
| 59 | + | custom_arguments = args_parser.get(2, self.__default_custom_arguments) |
60 | 60 | | return hosts, ports, custom_arguments |
61 | 61 | | |
62 | 62 | | def __gen_appended_code(self, hosts, ports, custom_arguments, output_file): |
| skipped 6 lines |
69 | 69 | | hosts, ports, custom_arguments = self.__parse_run_args(args) |
70 | 70 | | output_file = self._module_settings['env_directory'] + '\\' + random_generator() |
71 | 71 | | appended_code = self.__gen_appended_code(hosts, ports, custom_arguments, output_file) |
72 | | - | print appended_code |
73 | 72 | | self._parse_response(self.invoke_ps_module_object.run(['Invoke-Portscan.ps1', appended_code])) |
74 | 73 | | response = self.exec_cmd_module_object.run(['type ' + output_file + ' & del /f /q ' + output_file]) |
75 | 74 | | parsed_response = self._parse_response(response) |
| skipped 7 lines |