-
Notifications
You must be signed in to change notification settings - Fork 283
Description
Hello :)
It seems that when using the "scan" command targets are not being properly added to the targets list in memory. When using the command line options where it will help auto-complete and fill in 'TARGETS' for example, where you would type something like "set TARGET XX' it will never suggest a target to fill in as a choice.
I did find yesterday that when using the "targets" command to list all targets that I did have some saved, but there was no way to actually set one of them as the active target before running the "run" command on the modules that require a target set. When trying it, I can type "set TARGET" and it will auto-complete with the 'TARGET' choice, but after that it provides no suggestions and using the SSID or MAC address as the target name only shows the error "Not a valid target name" and does not allow you to hit enter.
Overall, it seems the targets list is not accessible when trying to access it on the dronesploit command line.
Below are two exceptions that I got, which may be unrelated but I am including them in case it is helpful, note that I have not found the password for the access point when running these commands, so I am aware I may be using the 'connect' command incorrectly here.
This exception is caused by trying to connect to a target using it's MAC address in the 'emergency_stop' module (without a known password):
dronesploit[myproject] command(dji/tello/emergency_stop) > connect 30:C9:AB:XX:XX:XX
[-] '30:C9:AB:XX:XX:XX'
Traceback (most recent call last):
File "/home/myuser/.local/lib/python3.8/site-packages/sploitkit/core/console.py", line 361, in run
obj.run(*args)
File "/tmp/pip-unpacked-wheel-7eg3f6fr/dronesploit/_src/commands/wifi.py", line 16, in run
File "/home/myuser/.local/lib/python3.8/site-packages/dronesploit/wifi/mixin.py", line 33, in connect
pswd = self.console.state['TARGETS'][essid].get('password')
File "/home/myuser/.local/lib/python3.8/site-packages/tinyscript/helpers/dictionaries.py", line 228, in __getitem__
return super(ExpiringDict, self).__getitem__(key)
KeyError: '30:C9:AB:XX:XX:XX'
dronesploit[myproject] command(dji/tello/emergency_stop) > run
This exception is caused by trying to use the 'connect' command on an SSID (without a known password):
dronesploit auxiliary(wifi/find_ssids) > run
[!] Press Ctrl+C to interrupt
[*] Found ExampleWifiPoint
dronesploit auxiliary(wifi/find_ssids) > connect ExampleWifiPoint
[-] 'ExampleWifiPoint'
Traceback (most recent call last):
File "/home/myuser/.local/lib/python3.8/site-packages/sploitkit/core/console.py", line 361, in run
obj.run(*args)
File "/tmp/pip-unpacked-wheel-7eg3f6fr/dronesploit/_src/commands/wifi.py", line 16, in run
File "/home/myuser/.local/lib/python3.8/site-packages/dronesploit/wifi/mixin.py", line 33, in connect
pswd = self.console.state['TARGETS'][essid].get('password')
File "/home/myuser/.local/lib/python3.8/site-packages/tinyscript/helpers/dictionaries.py", line 228, in __getitem__
return super(ExpiringDict, self).__getitem__(key)
KeyError: 'ExampleWifiPoint'
dronesploit auxiliary(wifi/find_ssids) >