forked from RUB-NDS/PRET
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fuzzer.py
29 lines (27 loc) · 1.21 KB
/
fuzzer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- coding: utf-8 -*-
class fuzzer():
vol = ["", ".", "\\", "/", "file:///", "C:/"]
var = ["~", "$HOME"]
win = ["%WINDIR%", "%SYSTEMROOT%", "%HOMEPATH%", "%PROGRAMFILES%"]
smb = ["\\\\127.0.0.1\\"]
web = ["http://127.0.0.1/"] # "http://hacking-printers.net/log.me"
dir = ["..", "...", "...."] # also combinations like "./.."
# sep = ["", "\\", "/", "\\\\", "//", "\\/"]
fhs = ["/etc", "/bin", "/sbin", "/home", "/proc", "/dev", "/lib",
"/opt", "/run", "/sys", "/tmp", "/usr", "/var", "/mnt",]
abs = [".profile", ["etc", "passwd"], ["bin", "sh"], ["bin", "ls"],
"boot.ini", ["windows", "win.ini"], ["windows", "cmd.exe"]]
rel = ["%WINDIR%\\win.ini",
"%WINDIR%\\repair\\sam",
"%WINDIR%\\repair\\system",
"%WINDIR%\\system32\\config\\system.sav",
"%WINDIR%\\System32\\drivers\\etc\\hosts",
"%SYSTEMDRIVE%\\boot.ini",
"%USERPROFILE%\\ntuser.dat",
"%SYSTEMDRIVE%\\pagefile.sys",
"%SYSTEMROOT%\\repair\\sam",
"%SYSTEMROOT%\\repair\\system"]
# define prefixes to use in fuzzing modes
path = vol+var+win+smb+web # path fuzzing
write = vol+var+win+smb+fhs # write fuzzing
blind = vol+var # blind fuzzing