Skip to content

Commit e06a117

Browse files
committed
Trivial update
1 parent bbf1946 commit e06a117

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

src/core/injections/controller/checks.py

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,14 +1507,36 @@ def testable_parameters(url, check_parameters, header_name):
15071507
def list_tamper_scripts():
15081508
info_msg = "Listing available tamper scripts."
15091509
settings.print_data_to_stdout(settings.print_info_msg(info_msg))
1510+
15101511
if menu.options.list_tampers:
1512+
message = (
1513+
Style.BRIGHT
1514+
+ "Available tamper scripts:"
1515+
+ Style.RESET_ALL
1516+
+ "\n"
1517+
)
1518+
15111519
for script in sorted(glob(os.path.join(settings.TAMPER_SCRIPTS_PATH, "*.py"))):
15121520
content = open(script, "rb").read().decode(settings.DEFAULT_CODEC)
15131521
match = re.search(r"About:(.*)\n", content)
15141522
if match:
15151523
comment = match.group(1).strip()
1516-
settings.print_data_to_stdout(settings.SUB_CONTENT_SIGN_TYPE + os.path.basename(script) + Style.RESET_ALL + " - " + comment)
1517-
1524+
# Lowercase the first letter of the comment
1525+
comment = comment[0].lower() + comment[1:] if comment else comment
1526+
script_name = os.path.basename(script)
1527+
message += (
1528+
settings.SUB_CONTENT_SIGN_TYPE
1529+
+ "Use '"
1530+
+ Style.BRIGHT
1531+
+ script_name
1532+
+ Style.RESET_ALL
1533+
+ "' that "
1534+
+ comment
1535+
+ "\n"
1536+
)
1537+
1538+
settings.print_data_to_stdout(message.rstrip())
1539+
15181540
"""
15191541
Tamper script checker
15201542
"""

src/utils/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def sys_argv_errors():
262262
DESCRIPTION = "The command injection exploiter"
263263
AUTHOR = "Anastasios Stasinopoulos"
264264
VERSION_NUM = "4.2"
265-
REVISION = "31"
265+
REVISION = "32"
266266
STABLE_RELEASE = False
267267
VERSION = "v"
268268
if STABLE_RELEASE:

0 commit comments

Comments
 (0)