xtr4nge / FruityWifi

FruityWiFi is a wireless network auditing tool. The application can be installed in any Debian based system (Jessie) adding the extra packages. Tested in Debian, Kali Linux, Kali Linux ARM (Raspberry Pi), Raspbian (Raspberry Pi), Pwnpi (Raspberry Pi), Bugtraq, NetHunter.
http://www.fruitywifi.com
GNU General Public License v3.0
2.19k stars 498 forks source link

Adding an extra serivce to kill and restart #257

Closed hash3liZer closed 5 years ago

hash3liZer commented 5 years ago

Hi, I am trying to start the access point but the dhcpcd service is messing up everything. What i want to do is kill the dhcpcd service when the access point is started and then restart it when the access point is stopped. Can you help me or point to the configuration files where i can add these two lines?

hash3liZer commented 5 years ago

Yes, i finally solved the issue by adding the following two lines in the four starting modes:

$ killRegex( "dhcpcd" );
$ exec_fruitywifi( "service dhcpcd start" );

in the php configuration file of ap module under www/modules/ap/includes/module_action.php

hash3liZer commented 5 years ago

Can you guide me on how to create a new module for this?

xtr4nge commented 5 years ago

Hi hash3liZer, I hope you are well. Sorry for the delay in my response. Unfortunately, I never did a proper tutorial for creating modules.

For now, I would suggest to copy a simple module like Nginx, so you can use it as a baseline: https://github.com/xtr4nge/module_nginx

Just start changing the folder name to something like "module_dhcpd_killer" and change in "info.php" the variables "mod_name" and "mod_alias", to something like DHCPDKiller, or whatever you want.

Let me know if you have any question, and I will try to help with that. Regards xtr4nge

hash3liZer commented 5 years ago

Got it. Thanks!