
Originally Posted by
cw5301
I was running fern.py directly... tried running execute.py and it seems to work correctly... maybe a short "README" to suggest how to run it?
Also it needs a function to shut down and clean up after itself. There is no good way to shut down WEP cracking after it is started without leaving aireplay-ng and airodump-ng running... so if you want to change attack modes or if you don't find the WEP key you have to manually clean up.
Also it creates new VAPs every time its started - not necessarily a bad thing but another thing to manually clean up.
A "stop" function that would kill all the stray processes would be very helpful, along with a button to manually create the VAPs would be good.
But I do think this is a very good start on a useful tool.
Hmm!, actually it does cleanup after certain attack events, on line 1246 you find this
Code:
def key_found(self):
self.cracking_label.setEnabled(True)
self.cracking_label.setText('<font color=yellow>Cracking Encryption</font>')
self.finished_label.setEnabled(True)
self.finished_label.setText('<font color=yellow>Finished</font>')
self.wep_key_label.setEnabled(True)
self.wep_key_label.setText('<font color=red>%s</font>'%(WEP))
self.wep_status_label.setEnabled(True)
self.wep_status_label.setText('<font color=yellow>Wep Encryption Broken</font>')
commands.getstatusoutput('killall airodump-ng')
commands.getstatusoutput('killall airmon-ng')
NOTICE Killall airodump-ng
It does not kill processes until attack wep key is found.. which is logical.. it the dump files were deleted during attack.. wep key would never be found..
You find "killall" command on numerous lines in the source code.
And the cleanup is also always done.. But when a new attack is initiated attack.. this is logical beacause there would be times where aircrack was not able to find key from your dictionary file, and you need to get the dump file so you can use it with an exetrnal cracker.. The dump file will be there until you press the new attack button
On line 498 you can find something like that
Code:
def scan_wep(self,arg,arg2):
monitor = str(reader('/tmp/fern-log/monitor.log'))
commands.getstatusoutput('rm -r /tmp/fern-log/*.csv')
commands.getstatusoutput('rm -r /tmp/fern-log/*.cap')
commands.getstatusoutput('rm -r /tmp/fern-log/WPA/*.csv')
commands.getstatusoutput('rm -r /tmp/fern-log/WPA/*.cap')
The cleanup "rm" is also found in some numerous sections.
THE README file i completely forgot..
The Scan Button is a dual button, it can also be used to stop scan by pressing again