def run(self): OS.check_os("windows") keys = self.getAllKeys() if self.isShellRun: print( generate_table([['XP', keys['XP']], ['IE', keys['IE']], ['WPA', keys['WPA']]], title="Product Keys", headings=['Type', 'Key'])) return keys return keys
def run(self): command = ["net", "user"] OS.check_os("windows") output_file, split_size, write_mode, args = self.get_vars() out = self.get_command_out(args, command) write_file_exists(output_file, out, write_mode) user_stripped_list = self.sort_to_lists(out, split_size) if self.isShellRun: print(generate_table(user_stripped_list[0], title="Local Users")) if user_stripped_list[1]: print(generate_table(user_stripped_list[1], title="Remote Users")) else: print(colored("No remote users", "red")) return user_stripped_list
def run(self): command = ["ipconfig"] OS.check_os("windows") output_file, write_mode, args = self.get_vars() out = self.get_command_out(args, command) write_file_exists(output_file, out, write_mode) interfaces = self.output_to_interfaces(out) interface_dictionaries = self.interfaces_to_dict(interfaces) if self.isShellRun: for interface in interface_dictionaries: name = interface["name"] del interface["name"] print(generate_table(list(zip(interface.keys(), interface.values())), title=name, headings=["Key", "Value"])) interface["name"] = name return interface_dictionaries