Skip to content

Commit fb41c52

Browse files
committed
1 parent d0f966d commit fb41c52

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/utils/session_handler.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ def check_stored_parameter(url, http_request_method):
345345
Import successful command execution outputs to session file.
346346
"""
347347
def store_cmd(url, cmd, shell, vuln_parameter):
348-
try:
348+
if any(type(_) is str for _ in (url, cmd, shell, vuln_parameter)):
349+
try:
349350
conn = sqlite3.connect(settings.SESSION_FILE)
350351
conn.execute("CREATE TABLE IF NOT EXISTS " + table_name(url) + "_ir" + \
351352
"(cmd VARCHAR, output VARCHAR, vuln_parameter VARCHAR);")
@@ -363,10 +364,10 @@ def store_cmd(url, cmd, shell, vuln_parameter):
363364
str(settings.HTTP_HEADER)))
364365
conn.commit()
365366
conn.close()
366-
except sqlite3.OperationalError as err_msg:
367-
print(settings.print_critical_msg(err_msg))
368-
except TypeError as err_msg:
369-
pass
367+
except sqlite3.OperationalError as err_msg:
368+
print(settings.print_critical_msg(err_msg))
369+
except TypeError as err_msg:
370+
pass
370371

371372
"""
372373
Export successful command execution outputs from session file.

src/utils/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def sys_argv_errors():
216216
DESCRIPTION = "The command injection exploiter"
217217
AUTHOR = "Anastasios Stasinopoulos"
218218
VERSION_NUM = "3.3"
219-
REVISION = "54"
219+
REVISION = "55"
220220
STABLE_RELEASE = False
221221
if STABLE_RELEASE:
222222
VERSION = "v" + VERSION_NUM + "-stable"

0 commit comments

Comments
 (0)