- This topic has 7 replies, 2 voices, and was last updated 4 years, 6 months ago by Zaid Sabih.
- AuthorPosts
- April 13, 2020 at 7:29 pm #33875bmacParticipant
Hi,
I was following the lecture about making the mac_changer.py script more secure by doing the:
subprocess.call([“ls”, “-l”])
instead of
subprocess.call(“exit 1”, shell=True)
and i get a traceback errror please see image below:
April 13, 2020 at 7:45 pm #33877bmacParticipantApril 13, 2020 at 7:46 pm #33878bmacParticipantApril 13, 2020 at 7:57 pm #33880bmacParticipantApril 13, 2020 at 8:41 pm #33884bmacParticipant/home/bmac/PycharmProjects/mac_changer/venv/bin/python /home/bmac/PycharmProjects/mac_changer/mac_changer.py
interface > eth0
new MAC > 00:11:22:33:44:55
[+] Changing MAC address for eth0 to 00:11:22:33:44:55
Traceback (most recent call last):
File “/home/bmac/PycharmProjects/mac_changer/mac_changer.py”, line 14, in <module>
subprocess.call([“sudo ifconfig”, interface, “down”])
File “/usr/lib/python3.8/subprocess.py”, line 340, in call
with Popen(*popenargs, **kwargs) as p:
File “/usr/lib/python3.8/subprocess.py”, line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib/python3.8/subprocess.py”, line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘sudo ifconfig’Process finished with exit code 1
April 14, 2020 at 4:41 pm #33959Zaid SabihModeratorNone of the screenshots above are loading, please send them again.
Also can you please show us the code? and are you using the custom Kali I made for this course?April 15, 2020 at 3:24 am #33997bmacParticipantHi Zaid,
Sorry about the pictures I did not know how to inset a picture using the HTML tags π
I actually was using Kali Linux 2020 version. I downloaded your custom Kali VM,, and it worked!! thank you for your help I appreciate it.
April 15, 2020 at 6:35 pm #34056Zaid SabihModeratorGreat stuff, glad you got it π
- AuthorPosts
- You must be logged in to reply to this topic.