8cba70dc90
- Add 8 files present in docker/fifa17-python/tools but missing from the top-level tree: fut_accounts.py + 7 test_*.py contracts (all committed in the server's docker tree; byte-identical to the running image). - Preserve newer responder work already matching the running container: utas_server.py (offlineSeason), lsx_responder_v2.py (OPENFUT_BIND), blaze_responder_v3b.py, autopatch.py, pow_server.py, fut_store.py, test_fut_contract.py, fifa17-hook-m1.sh. - Add 30 newer ghidra_queries (draft purchase/state, SBC 9-26, runtime registries). Local tree is now a strict superset of B with all shared files byte-identical.
18 lines
762 B
Python
18 lines
762 B
Python
"""Trace active draft-state enum literals and the current-state response consumers."""
|
|
|
|
for literal in ("DRAFTSQUAD_ON", "DRAFTSQUAD_OFF", "DRAFT_SQUAD", "squadState",
|
|
"stateParam1", "stateParam2", "roundsInfo"):
|
|
print("\n=== LITERAL", literal, "===")
|
|
for hit in find_all(literal.encode() + b"\x00", (".rdata", ".data")):
|
|
print("HIT", hex(hit), "XREFS", xrefs_to(hit)[:100])
|
|
for _frm, _typ, _name, entry in xrefs_to(hit):
|
|
print("\n--- XREF FUNCTION", hex(entry), fname(entry), "---")
|
|
print(dec(entry, 500))
|
|
|
|
for target in (0x180147070,):
|
|
print("\n=== STATE DESERIALIZER", hex(target), fname(target), "===")
|
|
print(dec(target, 500))
|
|
print("CALLERS", callers(target))
|
|
|
|
print("QUERY_DONE")
|