Skip to content

Instantly share code, notes, and snippets.

@eddydesh
Created March 30, 2020 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddydesh/bb50f7de314bd559b45a5f04ac10db03 to your computer and use it in GitHub Desktop.
Save eddydesh/bb50f7de314bd559b45a5f04ac10db03 to your computer and use it in GitHub Desktop.
import subprocess
import time
import sys
iface = input("Enter the name of interface to play with:- ")print("Now lets give you some new identity so you can hide who you are")nmac = input("Enter the new MAC address to be used Or Press 0 to auto generate random MAC:- ")
def macchange():
if nmac == 0:
subprocess.call("macchanger -A " + iface)
else:
subprocess.call("ifconfig", iface, "hw", "ether", nmac)
def monmode():
subprocess.call("iwcofig", iface, "mode monitor")
subprocess.call("iwconfig", iface)
print("Monitor mode Enabled successfully with new MAC address as below", iface)
time.sleep(5)
sys.exit("Thank you for using this tool")
macchange()monmode()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment