Saving Valid MAC addresses + suggestion
Closed this issue · 3 comments
Hello,
First of all, thank you so much for the bash script; it's incredibly helpful and well-crafted.
However, I've encountered an issue where the script doesn't seem to save any valid MAC addresses. The file /.mcbash, where I believe the valid MACs should be stored, appears to be empty, even though I've found some valid addresses.
Could you please advise on how to resolve this issue?
Additionally, is it possible to identify where the function responsible for saving the valid MAC addresses is located? I couldn’t find it in the script, and I’d like to add a Discord webhook integration to receive notifications when a valid MAC address is detected.
Thank you for your assistance!
Hi @Mattias16-beep,
The folder where hits are stored is ~/.mcbash/
by default (not /.mcbash
).
This folder is localized (or created) at startup with the locate_destination_folder()
function (defined here in the repo).
It reads the destination
variable defined in the config file ~/.config/mcbash/mcbash.conf
(or in /etc/mcbash.conf
as an alternative).
I'd recommend tweaking around with those config files, checking if they're present, and why not checking permissions for mcbash to access your user directories.
If the problem persists, we'll have to check for bugs ;)
PS: the function responsible for saving hits is write_valid_mac()
, located here.
Glad you made it work your way!
That's really cool 😎