Adding switch --procs (#778)

This commit is contained in:
Miroslav Štampar 2026-06-24 01:35:02 +02:00
parent a2bbca1ee3
commit 15715a2513
10 changed files with 99 additions and 10 deletions

View file

@ -428,6 +428,7 @@ PART_RUN_CONTENT_TYPES = {
"search": CONTENT_TYPE.SEARCH,
"sqlQuery": CONTENT_TYPE.SQL_QUERY,
"getStatements": CONTENT_TYPE.STATEMENTS,
"getProcs": CONTENT_TYPE.PROCEDURES,
"tableExists": CONTENT_TYPE.COMMON_TABLES,
"columnExists": CONTENT_TYPE.COMMON_COLUMNS,
"readFile": CONTENT_TYPE.FILE_READ,

View file

@ -216,6 +216,9 @@ class Dump(object):
def statements(self, statements):
self.lister("SQL statements", statements, content_type=CONTENT_TYPE.STATEMENTS)
def procedures(self, procedures):
self.lister("stored procedures", procedures, content_type=CONTENT_TYPE.PROCEDURES)
def userSettings(self, header, userSettings, subHeader, content_type=None):
self._areAdmins = set()

View file

@ -409,6 +409,7 @@ class CONTENT_TYPE(object):
OS_CMD = 24
REG_READ = 25
STATEMENTS = 26
PROCEDURES = 27
class CONTENT_STATUS(object):
IN_PROGRESS = 0

View file

@ -153,6 +153,7 @@ optDict = {
"search": "boolean",
"getComments": "boolean",
"getStatements": "boolean",
"getProcs": "boolean",
"db": "string",
"tbl": "string",
"col": "string",

View file

@ -20,7 +20,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.6.155"
VERSION = "1.10.6.156"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)