-
Notifications
You must be signed in to change notification settings - Fork 138
/
Constants.py
79 lines (73 loc) · 2.28 KB
/
Constants.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# -*- coding: utf-8 -*-
import string
DESCRIPTION = ""\
'''
_ _ __ __ _ ___
| \_/ |/ _|| \ / \|_ _|
| \_/ |\_ \| o ) o || |
|_| |_||__/|__/|_n_||_|
------------------------------------------------------
_ _ __ __ _ ___
| \_/ |/ _| | \ / \ |_ _|
| \_/ |\_ \ | o ) o | | |
|_| |_||__/icrosoft |__/atabase |_n_|ttacking |_|ool
-------------------------------------------------------
By Quentin Hardy (quentin.hardy@protonmail.com)
'''
CURRENT_VERSION = "Version 2.4 - 2022/12/28"
DEFAULT_TIME_SLEEP = 0
DEFAULT_LOGIN_TIMEOUT = 5
DEFAULT_CHARSET = 'UTF-8'
DEFAULT_SID_MAX_SIZE = 2
MAX_HELP_POSITION=60
DEFAULT_ACCOUNT_FILE = "accounts.txt"
DEFAULT_DATABASE_NAME = "master"
SCAN_PORT_NUMBER_THREAD = 1
DEFAULT_DATABASE_PORT = 1433
EXIT_MISS_ARGUMENT = 104
ALL_IS_OK=0
TIMEOUT_VALUE = 5
PASSWORD_FOLDER = "temp"
PASSWORD_EXTENSION_FILE = ".msdat.save"
SHOW_SQL_REQUESTS_IN_VERBOSE_MODE = False
DEFAULT_SYS_CMD = "whoami" #Default windows command used to test if we can execute system commands (in xpcmdshell)
DEFAULT_SHARE_NAME = "SHARE" #Default share name for the SMB authentication capture
DEFAULT_FILENAME = "test.txt" #Use to read or write files
DEFAULT_SYS_CMD_OLE = "cmd.exe /c dir" #Default windows command used to test if we can execute system commands (in OLEautomation)
ERROR_PROCEDURE_BLOCKED = "SQL Server blocked access to"
BULKOPEN_METHOD_IN_BULKOPEN = 'bulkinsert'
OPENROWSET_METHOD_IN_BULKOPEN = 'openrowset'
DEFAULT_FOLDER = 'C:\\' #Used in XpDirectory
DEFAULT_SQL_REQUEST = "select @@ServerName" #Used for remote connection from database
MAX_RETRY_CONNECTION_SCANPORTS = 6
#Trustworthy PE module
DEFAULT_SP_NAME = "IMDATELOHJOSUUSOOJAHMSAT"
#JOB
SLEEP_TIME_BEFORE_TO_GET_STATUS = 2 #seconds
#PasswordStealer
NB_SERVER_USER_ID_MAX = 400
#SEARCH module
PATTERNS_COLUMNS_WITH_PWDS = [
'%motdepasse%',
'%motdepasses%',
'%mot_de_passe%',
'%mot_de_passes%',
'%mdp%',
'%mdps%',
'%pwd%',
'%pwds%',
'%passswd%',
'%passswds%',
"%password%",
"%passwords%",
"%contraseña%",
"%contraseñas%",
"%clave%",
"%claves%",
"%chiave%",
"%пароль%",
"%wachtwoord%",
"%Passwort%",
"%hasło%",
"%senha%",
]