Skip to content

Instantly share code, notes, and snippets.

@wilt00
Created October 22, 2017 05:41
Show Gist options
  • Save wilt00/26c587918b4fd386d4710ba31e305ef9 to your computer and use it in GitHub Desktop.
Save wilt00/26c587918b4fd386d4710ba31e305ef9 to your computer and use it in GitHub Desktop.
#!/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