dougy147 / mcbash

Find MAC addresses on IPTV providers.
GNU General Public License v3.0
102 stars 35 forks source link

Saving Valid MAC addresses + suggestion #25

Closed Mattias16-beep closed 2 months ago

Mattias16-beep commented 2 months ago

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!

dougy147 commented 2 months ago

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.

Mattias16-beep commented 2 months ago

image

Everything is working fine now !

Thanks you so much.

dougy147 commented 2 months ago

Glad you made it work your way! That's really cool 😎