Пример #1
0
    def help_device(self):
        print_help("Allows you to query host information and iteract with a host's actions/services.")
        print("""\n\tdevice <list | get | info | summary | details | send> [host index #]
        'list' displays an index of all known UPNP hosts along with their respective index numbers
        'get' gets detailed information about the specified host
        'details' gets and displays detailed information about the specified host
        'summary' displays a short summary describing the specified host
        'info' allows you to enumerate all elements of the hosts object
        'send' allows you to send SOAP requests to devices and services

        Example:
            > device list
            > device get 0
            > device summary 0
            > device info 0 deviceList
            > device send 0 <device name> <service name> <action name>

        Notes:
            - All device commands EXCEPT for the 'device send', 'device info' and 'device list' commands take only one argument: the device index number.
            - The device index number can be obtained by running 'device list', which takes no futher arguments.
            - The 'device send' command requires that you also specify the device's device name, service name, and action name that you wish to send,
                in that order (see the last example in the Example section of this output). This information can be obtained by viewing the
                'device details' listing, or by querying the host information via the 'device info' command.
            - The 'device info' command allows you to selectively enumerate the device information data structure. All data elements and their
                corresponding values are displayed; a value of '{}' indicates that the element is a sub-structure that can be further enumerated
                (see the 'device info' example in the Example section of this output).
        """)
        print_help("Originally this was miranda host command, but REXT already has host command")
Пример #2
0
 def help_update(self):  # Recreate this with python formatter
     print_help("update REXT functionality")
     print_purple("Usage: update <argument>")
     print_purple("Available arguments:\n"
                  "\tno argument\n\t\tupdate REXT using git\n"
                  "\toui\n\t\tupdate MAC vendor database\n"
                  "\tforce\n\t\tdo git reset --hard and update\n")
Пример #3
0
 def help_set(self):
     print_help("Set value of variable: \"set serial 12345678\"")
Пример #4
0
 def help_mac(self):
     print_help("Prints value of variable MAC")
Пример #5
0
 def help_set(self):
     print_help("Set value of variable: \"set start 2015-06-01\"")
Пример #6
0
 def help_port(self):
     print_help("Prints current value of port")
Пример #7
0
 def help_end(self):
     print_help("Prints value of variable end_date")
     print("In this module both start and end date must be specified!")
     print(
         "Password for date in end_date is not generated! (Not inclusive loop)"
     )
Пример #8
0
 def help_set(self):
     print_help("Set value of variable: \"set file /tmp/FW.bin\"")
Пример #9
0
 def help_ssl(self):
     print_help("use HTTPS? yes/no")
Пример #10
0
 def help_load(self):
     print_help("load command help")
Пример #11
0
 def help_unload(self):
     print_help("return to root of REXT modules")
Пример #12
0
 def help_update(self):
     print_help("update command help")
Пример #13
0
 def help_msearch(self):
     print_help("Actively locate UPNP hosts")
Пример #14
0
 def help_serial(self):
     print_help("Prints value of variable serial")
Пример #15
0
 def help_set(self):
     print_help("Set value of variable: \"set serial 12345678\"")
Пример #16
0
 def help_set(self):
     print_help("Set value of variable: \"set start 2015-06-01\"")
Пример #17
0
 def help_list(self):
     print_help("List all available devices")
Пример #18
0
 def help_set(self):
     print_help("Set value of variable: \"set file /tmp/FW.bin\"")
Пример #19
0
 def help_load(self):
     print_help("load module")
     print_purple("Usage: load <path>")
Пример #20
0
 def help_add(self):
     print_help("Allows you to manually add device (e.g. shodan search result)")
     print("\tusage:add [device name] [device xml root]")
     print("\texample: add 192.168.1.2:49152 http://192.168.1.2:49152/description.xml")
Пример #21
0
 def help_command(self):
     print_help("Prints current value of command")
Пример #22
0
 def help_pcap(self):
     print_help("Passively listens for SSDP NOTIFY messages from UPNP devices")
Пример #23
0
 def help_info(self, e):
     print_help("Show info about loaded module")
Пример #24
0
 def help_load(self):
     print_help("load module")
     print_purple("Usage: load <path>")
Пример #25
0
 def help_run(self):
     print_help("Run script")
Пример #26
0
 def help_unload(self):
     print_help("return to root of REXT modules")
Пример #27
0
 def help_set(self):
     print_help("Set value of variable: \"set mac 00:11:22:33:44:55\"")
Пример #28
0
 def help_back(self):
     print_help("Exit script")
Пример #29
0
 def help_set(self):
     print_help("Set value of variable: \"set mac 00:11:22:33:44:55\"")
Пример #30
0
 def help_info(self, e):
     print_help("Show info about loaded module")
Пример #31
0
 def help_exit(self):
     print_help("Exit script")
Пример #32
0
 def help_show(self):
     print_help("List available modules and vendors")
Пример #33
0
 def help_end(self):
     print_help("Prints value of variable end_date")
     print_purple("In this module both start and end date must be specified!")
     print_purple("Password for date in end_date is not generated! (Not inclusive loop)")
Пример #34
0
 def help_load(self):
     print_help("load command help")
Пример #35
0
 def help_serial(self):
     print_help("Prints value of variable serial")
Пример #36
0
 def help_update(self):
     print_help("update command help")
Пример #37
0
 def help_show(self):
     print_help("list available modules and vendors")
Пример #38
0
 def help_exit(self):
     print_help("Exit REXT")
Пример #39
0
 def help_body(self):
     print_help("print response body? yes/no")
Пример #40
0
 def help_ssl(self):
     print_help("use HTTPS? yes/no")
Пример #41
0
 def help_exit(self):
     print_help("Exit REXT")
Пример #42
0
 def help_file(self, e):
     print_help("Prints current value of file")
Пример #43
0
 def help_file(self):
     print_help("Prints current value of file")
Пример #44
0
 def help_command(self):
     print_help("Prints current value of command")
Пример #45
0
 def help_back(self):
     print_help("Exit script")
Пример #46
0
 def help_run(self):
     print_help("Run script")
Пример #47
0
 def help_body(self):
     print_help("print response body? yes/no")
Пример #48
0
 def help_host(self):
     print_help("Prints current value of host")
Пример #49
0
 def help_exit(self):
     print_help("Exit script")
Пример #50
0
 def help_port(self):
     print_help("Prints current value of port")
Пример #51
0
 def help_host(self):
     print_help("Prints current value of host")
Пример #52
0
 def help_set(self):
     print_help("Set value of variable: \"set host 192.168.1.1\"")
Пример #53
0
 def help_set(self):
     print_help("Set value of variable: \"set host 192.168.1.1\"")
Пример #54
0
 def help_set(self):
     print_help('Set value of variable: "set mac 00:11:22:33:44:55"')
Пример #55
0
 def help_mac(self):
     print_help("Prints value of variable MAC")
Пример #56
0
 def help_password(self):
     print_help("Prints current value of password")