SHARE
TWEET

Untitled

a guest Aug 24th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top