Yelleke Posted November 4, 2017 Share Posted November 4, 2017 I have a portal page and it asks for the client creds After the $_post, the client creds are logged in a txt file, pineapple notified... the client gets kicked, deauthed and hopefully get blocked, hopefully !!! to block the client, I would like to add the $mac to the mac_blacklist in the pineapple.db and for that I would like to know if it is doable. so, how many times or when does the Nano or Tetra reads the pineapple.db ??? at boot, when the client connect or when I open some module Thanks in advance Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted November 4, 2017 Share Posted November 4, 2017 You can blacklist clients via SSH using the `pineapple` tool. It will display a help message if you run it with no arguments. I would advise against editing the DB. Quote Link to comment Share on other sites More sharing options...
Yelleke Posted November 4, 2017 Author Share Posted November 4, 2017 Thank you Foxtrot for your input. I have read your answer and been noted to not alter the DB. however, it is the way I'll go using SSH means I'll have to watch every connection and its my goal to have it full automated. the module Filters uses the same DB for storing its SSID's and MAC's I just use some functions of the module and it works well. And "IF" I would really **** it up, I'll replace the backup DB or reflash the firmware. No animals would be hurt or killed so, can you answer my question please Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted November 5, 2017 Share Posted November 5, 2017 Hi Yelleke, The database is read when triggered by certain actions. Modifying the database like you want to would require a reboot or a reset of the wireless stack. If you simply use the "pineapple" command, you can interface directly with PineAP and kick / block clients instantly. Quote Link to comment Share on other sites More sharing options...
Yelleke Posted November 5, 2017 Author Share Posted November 5, 2017 root@nano:~# pineapple karma add_mac 11:22:33:44:55:66 Sucessfully added MAC 11:22:33:44:55:66 If the client Filtering status is set to deny in the Filter module and adding the above command, will this block the mac address for further connection until reboot even when I can't see the client mac address into the module clientfiltering field. Or, is the above command not the correct one ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.