Created
October 22, 2017 05:41
-
-
Save wilt00/26c587918b4fd386d4710ba31e305ef9 to your computer and use it in GitHub Desktop.
This file contains 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 python3 | |
""" Docstring """ | |
import argparse | |
import random | |
OPTIONS = ["?", "a", "A", "c", "C", "l", "L", "d", "D", "w", "W", "r", "R", "l", "L", "7", "~", ">"] | |
NAMES = ["Smith", "Jones", "Ivanovich", "Li", "Beiber", "NULL", "0", "Frankenstein", "Skeletor", "", "-1"] | |
def main(): | |
""" Main """ | |
parser = argparse.ArgumentParser() | |
parser.add_argument("lines") | |
args = parser.parse_args() | |
fuzzstrings = [] | |
for i in range(0, int(args.lines)): | |
fuzzstrings.append(\ | |
str(random.choice(OPTIONS)) + " " + str(random.choice(NAMES)) + " " + str(random.randrange(10))) | |
with open ('fuzzfile', 'w') as file: | |
file.write("\n".join(fuzzstrings)) | |
file.write("\nq\n") | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment