alobbs / macchanger

GNU MAC Changer
http://www.gnu.org/software/macchanger
GNU General Public License v3.0
588 stars 112 forks source link

Is it possible to use without a network manager? #45

Closed ghost closed 7 years ago

ghost commented 7 years ago

I have icewm installed and so I connect to wifi through the console because it's so convenient. I can not connect to the wifi through the wpa_supplicant program, it writes me strange errors. Now I'm using the ceni program for which you need to disconnect the network-manager. Now I can not change the poppy address, even if I turn on this service, here is the log from the console:

Script started on Пн 24 июл 2017 12:38:26
admin ~ sudo macchanger --random wlan0
Current MAC:   12:ff:f7:fc:78:90 (AzureWave Technologies, Inc)
Permanent MAC: 12:ff:f7:fc:78:90 (AzureWave Technologies, Inc)
[ERROR] Could not change MAC: interface up or insufficient permissions: Device or resource busy
admin ~ sudo    iwconfig wlan0
wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=31 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off

admin ~ seegfrvice network-manager st
start   status  stop    
admin ~ service network-manager status
[....] NetworkManager is not running ...[?25l7[FAIL8[?12l[?25h failed!
admin ~ service network-manager status
service network-manager status
exit

Script done on 24 2017 12:39:39

But the log after the service is turned on:

Script started on Пн 24 июл 2017 12:57:18
admin ~ sudo service network-manager start
[....] Starting network connection manager: NetworkManager[?25l7[ ok 8[?12l[?25h.
admin ~ macchanger --random wlan0
Current MAC: 12:ff:f7:fc:78:90 (AzureWave Technologies, Inc)
Permanent MAC: 12:ff:f7:fc:78:90 (AzureWave Technologies, Inc)
[ERROR] Could not change MAC: interface up or insufficient permissions: Operation not permitted
admin ~ macchanger --random wlan0[1@s[1@u[1@d[1@o[1@ 
Current MAC:  12:ff:f7:fc:78:90 (AzureWave Technologies, Inc)
Permanent MAC: 12:ff:f7:fc:78:90 (AzureWave Technologies, Inc)
[ERROR] Could not change MAC: interface up or insufficient permissions: Device or resource busy
admin ~ service ceni stop
ceni: unrecognized service
admin ~ exit

Script done on 24 2017 12:58:07
ghost commented 7 years ago

I stepped a little and forgot to turn off the wifi before that. The problem is solved!