Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show an example of exception file format and heavy load on SD card. #40

Closed
mickhaorex opened this issue Jun 18, 2024 · 5 comments
Closed

Comments

@mickhaorex
Copy link

mickhaorex commented Jun 18, 2024

I really like your program, I discovered it by accident when I was researching hcxdumptool.
I am using your program on a Raspberry pi4, with kali linux installed on the SD card.
I have read your instructions and they are more than detailed and clear. However, I don't understand if the whitelist file (scan exclusion list) should contain the MAC addresses of the APs or if it should also contain the MAC addresses of the clients?
Could you be so kind and show me an example of how this file should look like and whether #commentaries are allowed in it (for BSSID designation, so that I could understand in the future which APs are already excluded)?

I also noticed that during the program is constantly creating and deleting the file *.pcapng.kismet-journal, because of this, that the SD card is constantly writing (if you believe HTOP, then at a rate of about 1.43 MiB / s.). I think this is very harmful to the SD card. Is it not possible to keep this temporary file in RAM or create a temporary file at longer intervals, like once a minute or once every five minutes?
Screenshot

Thank you very much for this program!

@Ragnt
Copy link
Owner

Ragnt commented Jun 18, 2024 via email

@Ragnt
Copy link
Owner

Ragnt commented Jun 18, 2024

Target / Whitelist file examples:

aabbccddeeff # Lowercase without delimiter
aa:bb:cc:dd:ee:ff # Lowercase with ":"
aa-bb-cc-dd-ee-ff # Lowercase with "-"
AABBCCDDEEFF # Capitals without delimiter 
AA:BB:CC:DD:EE:FF # Capitals with ":"
AA-BB-CC-DD-EE-FF # Capitals with "-"
aAbbcCddEeFf # Mixed Case
TestSSID # without spaces
Test SSID # with spaces

@mickhaorex
Copy link
Author

As for the journal file, it’s the SQLite rollback journal and is used for atomic writes on the database. The reason I’m not batch writing is because the current version of the engine is nearly synchronous and handles frames that way from start to finish. The AO rewrite will use batched inserts to reduce the amount of writes and improve performance anyway, so reducing writes will be a side effect.

In that case, couldn't the creation of the *.pcap-ng.kismet-journal file be redirected to tmpfs? Or at least add a parameter for AngryOxide to allow the user to specify the location of the journal file? I think it would help to reduce the load on the SD card.

@Ragnt
Copy link
Owner

Ragnt commented Jun 18, 2024

Let me clarify that the pcapng file and the sqlite database are different. The pcapng file writes every frame to disk only once.

The sqlite database is using the rollback journal as a part of it's standard operation, I am unable to (without writing my own sqlite library) choose where that journal file goes. There are PRAGMA options such as storing the journal in volatile memory, but those come with the side effect of potentially corrupting the database in the case of a crash or sudden loss of power (as opposed to just corrupting the data in the journal).

If my math (supplemented with some GPT help) here is correct, I would prefer maintain the reliability of the data considering 1.45MiB/s on a 50,000 cycle SD card of 32GB will still live like 35 years.

Regardless, I can add the option in the next full version of AO to force the journal into RAM, but it won't be the default behavior.

@mickhaorex
Copy link
Author

Regardless, I can add the option in the next full version of AO to force the journal into RAM, but it won't be the default behavior.

Thank you for your responsiveness. My concern about the wear and tear of the SD card is not from scratch. I once had a sad experience when the microSD failed due to the fact that it had SWAP memory on it. After that, I try to eliminate the options when the operating system and SWAP are on the same physical drive.

@Ragnt Ragnt closed this as completed Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants