[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: macchanger - is it still working?



On Sun 24 Apr 2022 at 19:50:14 (+0300), Reco wrote:
> On Sun, Apr 24, 2022 at 03:23:55PM +0200, Hans wrote:
> > I rechecked, and everything is set as YES.
> 
> And that's the source of your problem, believe it or not.
> 
> Because what /etc/macchanger/ifupdown.sh does is it explicitly checks
> for "true" value:
> 
> if [ "$ENABLE_ON_POST_UP_DOWN" != "true" ]; then
>     echo "disabled in /etc/default/${package}" >> $LOGFILE
>     exit
> fi
> 
> Anything else, be it "TRUE", "YES" or "y" is considered "disabled" by
> that check.
> 
> Now if "YES" appeared in /etc/default/macchanger by means of running
> debconf - that's a bug in the package. Either debconf template or
> ifupdown.sh should be changed to account that "YES" value.

As might be expected, both debconf and, on this, macchanger get a
clean bill of health:

# grep ENA /etc/default/macchanger 
ENABLE_ON_POST_UP_DOWN=false
#ENABLE_INTERFACES="wlan0"
# dpkg-reconfigure macchanger 

                                                                                
 ┌────────────────────────┤ Configuring macchanger ├─────────────────────────┐  
 │                                                                           │  
 │ Please specify whether macchanger should be set up to run automatically   │  
 │ every time a network device is brought up or down. This gives a new MAC   │  
 │ address whenever you attach an ethernet cable or reenable wifi.           │  
 │                                                                           │  
 │ Change MAC automatically?                                                 │  
 │                                                                           │  
 │                    <Yes>                       <No>                       │  
 │                                                                           │  
 └───────────────────────────────────────────────────────────────────────────┘  
                                                                                

# grep ENA /etc/default/macchanger 
ENABLE_ON_POST_UP_DOWN=true
#ENABLE_INTERFACES="wlan0"
# apt-get purge macchanger 

Cheers,
David.


Reply to: