This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| import os.path | |
| import argparse | |
| def generate_usernames(fname, lname, domain): | |
| usernames = [ | |
| f"{fname}{lname}@{domain}", # [email protected] | |
| f"{lname}{fname}@{domain}", # [email protected] | |
| f"{fname}.{lname}@{domain}", # [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import subprocess | |
| import optparse | |
| import re | |
| def get_arguments(): | |
| parser = optparse.OptionParser() | |
| parser.add_option("-i", "--interface", dest="interface", help="Interface to change its MAC address") | |
| parser.add_option("-m", "--mac", dest="new_mac", help="New MAC address") |
NewerOlder