Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/usr/bin/env/ python
  2.  
  3. import subprocess
  4.  
  5. subprocess.call("ifconfig eth0 down", shell=True)
  6. subprocess.call("ifconfig eth0 hw ether 00:11:22:33:44:66", shell=True)
  7. subprocess.call("ifconfig eth0 up", shell=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement