Answer the question
In order to leave comments, you need to log in
How to insert a variable into a given row?
How to copy the above line in the terminal with a command in Kali Linux?
The fact is that I am creating a program to automatically change the MAC address of the device, the root of the problem is that you cannot insert a derivative into the 14th line, since the 14th line is already considered as if it were played in the terminal. My idea was to copy the line above, which is the randomly generated poppy address, and paste it into the command. In short, I don’t have high hopes for this, but if someone has ideas, I’m waiting for help.
Thank you very much in advance.
Answer the question
In order to leave comments, you need to log in
The question is crap written, I read it three times and still did not understand.
There is an error in line 14: you need (for example) +
instead of ,
:
subprocess.call ("ifconfig wlan0 hw ether " + mac, shell=True)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question