Jump to content
Sign in to follow this  
Yelleke

when does the pineapple reads the pineapple.db

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...