-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds module for generating fuzzer payloads
- Loading branch information
s4dhul4bs
committed
Dec 12, 2020
1 parent
315805d
commit 24b289a
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import os | ||
import random | ||
import secrets | ||
from datetime import datetime | ||
from random import randint, choice | ||
import mimesis | ||
|
||
|
||
class VMNFPayloads: | ||
def __init__(self, **settings): | ||
'''VMNF Payloads''' | ||
|
||
self.settings = settings | ||
self.patterns = settings['patterns'] | ||
|
||
def get_random_int(self): | ||
return randint(0, | ||
choice(range(datetime.now().minute + datetime.now().second + len(self.patterns) * choice(bytes(range(256)))))) | ||
def get_random_unicode(self): | ||
return choice(''.join(tuple(chr(i) for i in range(32, 0x110000) if chr(i).isprintable()))) | ||
def get_os_urandom(self): | ||
return os.urandom(choice(range(18))) | ||
def get_secure_random_string(self): | ||
return secrets.token_urlsafe(choice(range(33))) | ||
def get_random_float(self): | ||
return random.random() | ||
def get_random_credential(self): | ||
gen = mimesis.Generic(choice([loc for loc in mimesis.locales.LIST_OF_LOCALES])) | ||
return {'username':gen.person.username(),'password':gen.person.password()} |