ext反混淆后,

ext分析 - 图1

我们猜测,它有可能是个固定的,多试几次发现,确实是固定的

ext分析 - 图2

然后,后面那个是真实轨迹的长度

代码整合

  1. import subprocess
  2. import random
  3. import json
  4. def N_w8(v1, v2):
  5. res = subprocess.check_output(f"node N2.js {v1} {v2}")
  6. res = res.decode('utf-8').strip()
  7. return res
  8. def A_unique2DArray(v1):
  9. res = subprocess.check_output(f"node w2.js {v1}")
  10. res = res.decode('utf-8').strip()
  11. return res
  12. def j_as_ww(v1):
  13. res = subprocess.check_output(f"node j.js {v1}")
  14. res = res.decode('utf-8').strip()
  15. return res
  16. def run():
  17. # 识别滑块的距离
  18. x_distance = 100
  19. # 背景请求返回的token
  20. bg_token = "cc7c74c959d842e69aa980a3430b7884"
  21. trace_data = []
  22. atom_trace_data = []
  23. interval_value = random.randint(100, 300)
  24. step = 2
  25. for i in range(0, x_distance + 1, step):
  26. x_value = i + step
  27. if x_value > x_distance:
  28. x_value = x_distance
  29. interval_value += random.randint(10, 20)
  30. y_value = random.randint(0, 5)
  31. # atom_trace_data
  32. chunk_list = [x_value, y_value, interval_value]
  33. atom_trace_data.append(chunk_list)
  34. # trace_data
  35. line = f"{x_value},{y_value},{interval_value}"
  36. line = N_w8(bg_token, line)
  37. trace_data.append(line)
  38. ext_string = j_as_ww(N_w8(bg_token, f"1,{len(trace_data)}"))
  39. print(ext_string)
  40. if __name__ == '__main__':
  41. run()