MCPcopy
hub / github.com/dronesploit/dronesploit / CmeModule

Class CmeModule

dronesploit/drones/hobbico.py:60–82  ·  view source on GitHub ↗

Module proxy class holding the default parameter of a C-me.

Source from the content-addressed store, hash-verified

58
59
60class CmeModule(HobbicoModule):
61 """ Module proxy class holding the default parameter of a C-me. """
62 config = Config({
63 Option(
64 'IP',
65 "IP address of drone's AP",
66 True,
67 ): "192.168.100.1",
68 Option(
69 'FLYCTL_PORT',
70 "Fly controller port",
71 True,
72 ): 4646,
73 Option(
74 'TARGET',
75 "Target's SSID",
76 True,
77 choices=lambda o: [e for e in o.state['TARGETS'].keys() if drone_filter(e, o.module.drone) and \
78 e in o.console.root.connected_targets],
79 ): None,
80 })
81 drone = "Hobbico C-me"
82 path = "command/hobbico/cme"
83
84
85class CmeUpdateModule(CmeModule):

Callers

nothing calls this directly

Calls 1

drone_filterFunction · 0.85

Tested by

no test coverage detected