Comments (12)
are you running the script with admin priv?
from spoofmac.
It appears that that's the issue. Run the script as an admin.
from spoofmac.
I definitely launch command prompt with admin priv, dont know what the problem...
from spoofmac.
Okay, re-opening.
from spoofmac.
2.0.6 is working on my windows 7 system. Will look into this.
from spoofmac.
Same error here. spoofMAC 2.1.1 with python 2.7.10 on Win7 as admin.
Traceback (most recent call last):
File "spoof-mac.py", line 4, in
import('pkg_resources').run_script('spoofmac==2.1.1', 'spoof-mac.py')
File "build\bdist.win32\egg\pkg_resources__init__.py", line 745, in run_script
File "build\bdist.win32\egg\pkg_resources__init__.py", line 1677, in run_script
File "C:\Python\Python27\lib\site-packages\spoofmac-2.1.1-py2.7.egg\EGG-INFO\scripts\spoof-mac.py", line 138, in
File "C:\Python\Python27\lib\site-packages\spoofmac-2.1.1-py2.7.egg\EGG-INFO\scripts\spoof-mac.py", line 76, in main
File "C:\Python\Python27\lib\site-packages\spoofmac-2.1.1-py2.7.egg\EGG-INFO\scripts\spoof-mac.py", line 56, in list_i
nterfaces
File "build\bdist.win32\egg\spoofmac\interface.py", line 266, in find_interfaces
File "build\bdist.win32\egg\spoofmac\interface.py", line 230, in get_ipconfig_all
UnicodeDecodeError: 'ascii' codec can't decode byte 0x93 in position 46: ordinal not in range(128)
from spoofmac.
Just checked in code...and I find why.
In the code of interface.py, subprocess.popen is use to get the output of ipconfig /all
My system is in french, there are accented characters in the results and the decode('ascii') fails.
from spoofmac.
@Akarius Thanks for digging into this. I don't write Python very often, so I don't know how to fix this. If you send a PR, I will merge it and release a new version.
from spoofmac.
@feross I manage to make "spoof-mac.py list" working by altering the encoding of the output to remove the accented characters. I got no result. The problem is that there are many searches for strings like "Physical Address" and "adapter" in the ipconfig /all output (in interface.py) and these are language-dependants and will only work in english and no other languages. You should add a note about it in the README.md to avoid confusion.
As this project is about spoofing and not getting your MAC address, a solution would be to use netifaces to get infos about the adapter(s) instead of using subprocess with ipconfig. netifaces does a good job for this but is not included in the standard distribution of python, you have to add it (easy_install and pip can do it easily)
from spoofmac.
@Akarius PR welcome for the doc fix. Also, if you're interested in becoming a maintainer I'll add you.
from spoofmac.
I have exactly the same problem..Has anyone found a solution?
My system is also French ^^ I do not know if there is a link
from spoofmac.
I solved the problem by changing the charset from "ascii" to "latin1" on Windows 10 (my system is italian :D ).
You also have to change the regex in find_interfaces(self, targets=None)
method in your language, by comparing the original English output with yours.
In my case it's something like this:
# search for specific adapter gobble through mac address
details = re.findall("Scheda (.*?):[\\n\\r]+(.*?)\\s*Indirizzo fisico[^\\d]+(\\s\\S+)", output, re.DOTALL)
In any case the script seems to work fine, but in facts it doesn't change the MAC of the specified device (by typing ipconfig /all
command nothing has changed).
Anyway it works fine on Linux (I never tried on MacOS), but on Windows has some bugs
from spoofmac.
Related Issues (20)
- Not working on Big Sur HOT 5
- Spoofing: Which USB-C Adapter HOT 1
- Getting it to run on Arch linux HOT 1
- Not working on Mac OS Monterey HOT 9
- Installing on Big Sur 11.2.3 HOT 1
- Can't change mac address of typc adapter HOT 1
- How to delete the daemon
- Unable To Create Process
- UnicodeDecodeError: 'ascii' codec can't decode byte 0xb3 in position 13: ordinal not in range(128) HOT 4
- MAC Address Spoofs for 5 mins Then Stops Spoofing
- Trying to change MAC on vlan addresses, raspberry pi os
- Unable to spoof on Mac M1 Pro running OS version 12.4 and spoofMac version 2.1.1 HOT 2
- error help
- Similar issues to #98 and #101 HOT 2
- Load failed: 37: Operation already in progress
- macOS: TB3 / USB-C Ethernet Adapter incompatibility HOT 1
- Unable to run: sudo brew services start spoof-mac HOT 6
- ipconfig error Sonoma 14.4 HOT 8
- Can't execute setup.py
- `ERROR:root:code for hash blake2b was not found.` during pip install
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spoofmac.