Esempio n. 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")
Esempio n. 2
0
File: cmdui.py Progetto: helit2/rext
 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")
Esempio n. 3
0
 def help_set(self):
     print_help("Set value of variable: \"set serial 12345678\"")
Esempio n. 4
0
 def help_mac(self):
     print_help("Prints value of variable MAC")
Esempio n. 5
0
 def help_set(self):
     print_help("Set value of variable: \"set start 2015-06-01\"")
Esempio n. 6
0
 def help_port(self):
     print_help("Prints current value of port")
Esempio n. 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)"
     )
Esempio n. 8
0
 def help_set(self):
     print_help("Set value of variable: \"set file /tmp/FW.bin\"")
Esempio n. 9
0
 def help_ssl(self):
     print_help("use HTTPS? yes/no")
Esempio n. 10
0
 def help_load(self):
     print_help("load command help")
Esempio n. 11
0
File: cmdui.py Progetto: helit2/rext
 def help_unload(self):
     print_help("return to root of REXT modules")
Esempio n. 12
0
 def help_update(self):
     print_help("update command help")
Esempio n. 13
0
 def help_msearch(self):
     print_help("Actively locate UPNP hosts")
Esempio n. 14
0
 def help_serial(self):
     print_help("Prints value of variable serial")
Esempio n. 15
0
 def help_set(self):
     print_help("Set value of variable: \"set serial 12345678\"")
Esempio n. 16
0
 def help_set(self):
     print_help("Set value of variable: \"set start 2015-06-01\"")
Esempio n. 17
0
 def help_list(self):
     print_help("List all available devices")
Esempio n. 18
0
 def help_set(self):
     print_help("Set value of variable: \"set file /tmp/FW.bin\"")
Esempio n. 19
0
File: cmdui.py Progetto: helit2/rext
 def help_load(self):
     print_help("load module")
     print_purple("Usage: load <path>")
Esempio n. 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")
Esempio n. 21
0
 def help_command(self):
     print_help("Prints current value of command")
Esempio n. 22
0
 def help_pcap(self):
     print_help("Passively listens for SSDP NOTIFY messages from UPNP devices")
Esempio n. 23
0
 def help_info(self, e):
     print_help("Show info about loaded module")
Esempio n. 24
0
 def help_load(self):
     print_help("load module")
     print_purple("Usage: load <path>")
Esempio n. 25
0
 def help_run(self):
     print_help("Run script")
Esempio n. 26
0
 def help_unload(self):
     print_help("return to root of REXT modules")
Esempio n. 27
0
 def help_set(self):
     print_help("Set value of variable: \"set mac 00:11:22:33:44:55\"")
Esempio n. 28
0
 def help_back(self):
     print_help("Exit script")
Esempio n. 29
0
 def help_set(self):
     print_help("Set value of variable: \"set mac 00:11:22:33:44:55\"")
Esempio n. 30
0
 def help_info(self, e):
     print_help("Show info about loaded module")
Esempio n. 31
0
 def help_exit(self):
     print_help("Exit script")
Esempio n. 32
0
File: cmdui.py Progetto: bmaia/rext
 def help_show(self):
     print_help("List available modules and vendors")
Esempio n. 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)")
Esempio n. 34
0
File: cmdui.py Progetto: bmaia/rext
 def help_load(self):
     print_help("load command help")
Esempio n. 35
0
 def help_serial(self):
     print_help("Prints value of variable serial")
Esempio n. 36
0
File: cmdui.py Progetto: bmaia/rext
 def help_update(self):
     print_help("update command help")
Esempio n. 37
0
File: cmdui.py Progetto: helit2/rext
 def help_show(self):
     print_help("list available modules and vendors")
Esempio n. 38
0
File: cmdui.py Progetto: bmaia/rext
 def help_exit(self):
     print_help("Exit REXT")
Esempio n. 39
0
 def help_body(self):
     print_help("print response body? yes/no")
Esempio n. 40
0
 def help_ssl(self):
     print_help("use HTTPS? yes/no")
Esempio n. 41
0
File: cmdui.py Progetto: helit2/rext
 def help_exit(self):
     print_help("Exit REXT")
Esempio n. 42
0
 def help_file(self, e):
     print_help("Prints current value of file")
Esempio n. 43
0
 def help_file(self):
     print_help("Prints current value of file")
Esempio n. 44
0
 def help_command(self):
     print_help("Prints current value of command")
Esempio n. 45
0
 def help_back(self):
     print_help("Exit script")
Esempio n. 46
0
 def help_run(self):
     print_help("Run script")
Esempio n. 47
0
 def help_body(self):
     print_help("print response body? yes/no")
Esempio n. 48
0
 def help_host(self):
     print_help("Prints current value of host")
Esempio n. 49
0
 def help_exit(self):
     print_help("Exit script")
Esempio n. 50
0
 def help_port(self):
     print_help("Prints current value of port")
Esempio n. 51
0
 def help_host(self):
     print_help("Prints current value of host")
Esempio n. 52
0
 def help_set(self):
     print_help("Set value of variable: \"set host 192.168.1.1\"")
Esempio n. 53
0
 def help_set(self):
     print_help("Set value of variable: \"set host 192.168.1.1\"")
Esempio n. 54
0
 def help_set(self):
     print_help('Set value of variable: "set mac 00:11:22:33:44:55"')
Esempio n. 55
0
 def help_mac(self):
     print_help("Prints value of variable MAC")
Esempio n. 56
0
 def help_password(self):
     print_help("Prints current value of password")