Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #61148
    Jamal Releford
    Participant

    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.
    #61150
    Jamal Releford
    Participant

    Now 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

    #61151
    Jamal Releford
    Participant

    The 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.

    #61201
    Diego PérezDiego Pérez
    Moderator

    Hi!

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.