From 03e4565a68b96783800d8d81ca0b59148d891de4 Mon Sep 17 00:00:00 2001 From: lickthecheese Date: Mon, 13 Jan 2020 11:21:20 -0500 Subject: [PATCH] modulus --- bin/brutemod.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 bin/brutemod.py diff --git a/bin/brutemod.py b/bin/brutemod.py new file mode 100755 index 0000000..abe02c3 --- /dev/null +++ b/bin/brutemod.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python3 + +import argparse + +parser = argparse.ArgumentParser(description='bruteforce some moduluses') + +parser.add_argument('-s', dest='s', help="start at this number", type=int, default=0) +parser.add_argument('-m', dest='m', help="the modulus", type=int, default=1) +parser.add_argument('-e', dest='e', help="what it will equal", type=int, default=1) +parser.add_argument('-f', dest='f', help="combinations to find", type=int, default=5) + +args = parser.parse_args() + +i = args.s +m = args.m +e = args.e +toFind = args.f + +found = [] + +while len(found) < toFind: + if i % m == e: + found.append(i) + i=i+1 +print(found) +