MCPcopy
hub / github.com/dronesploit/dronesploit / run

Method run

dronesploit/_src/modules/command/hobicco/cme.py:51–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 })
50
51 def run(self):
52 essid = self.config.option("TARGET").value
53 new_essid = self.config.option("NEW_SSID").value
54 t = self.console.state['TARGETS']
55 pswd = t[essid]['password']
56 if self._change_ap_creds(new_essid, pswd):
57 t[new_essid] = {k: new_essid if k == "essid" else v for k, v in t[essid].items()}
58 self.config['NEW_SSID'] = essid
59 del t[essid]
60 self.console.root.interfaces
61 self.config['TARGET'] = new_essid if self.connect(new_essid) is not None else None
62
63
64class GetSysInfo(CmeModule):

Callers

nothing calls this directly

Calls 2

connectMethod · 0.80
_change_ap_credsMethod · 0.45

Tested by

no test coverage detected