Tagged: Mac Changer Not Working
- This topic has 3 replies, 2 voices, and was last updated 2 years, 12 months ago by Diego Pérez.
- AuthorPosts
- December 28, 2021 at 4:24 am #61148Jamal RelefordParticipant
Hi,
I hope is well. After watching the tutorial that first introduced the subprocess.check_output method, I attempted to follow the same steps as the video and noticed that the function wasn’t changing my Mac address to the provided Mac address information. Ironically I noticed in the Wlan0 example(Can be seen at 5:52) in the video that the Mac address didn’t work as expected either. I’m not sure if Zaid caught that when he was teaching the lecture. Zaid provides -m 11:22:33:44:11 but the output from the ifconfig shows ether 3a:db:9a:35:55:6e instead.
Anyway I was wondering if you can help me in understanding how to fix this issue so that it works as intended. Thanks.
Attachments:
You must be logged in to view attached files.December 28, 2021 at 4:31 am #61150Jamal RelefordParticipantNow I’ve uncommented out the change Mac function and commented out the new function that includes the subprocess. After running the code again with the old code, I get SIOCSIFHWADDR: Cannot assign requested address
December 28, 2021 at 4:38 am #61151Jamal RelefordParticipantThe code appears to only provide the output from the ifconfig method but doesn’t take in the provided parameters and change the Mac address for some reason.
December 28, 2021 at 5:47 pm #61201Diego PérezModeratorHi!
Yeah, for the script to work you need to uncomment the change_mac function call line, can you share a screenshot with the current state of the script? Also a screenshot where we can see the command used to run the script.
Thanks!
Diego - AuthorPosts
- You must be logged in to reply to this topic.