Skip to content

Instantly share code, notes, and snippets.

@FabulousCupcake
Last active February 16, 2023 22:13
Show Gist options
  • Save FabulousCupcake/fca1dd331227759586e7b37ca649b695 to your computer and use it in GitHub Desktop.
Save FabulousCupcake/fca1dd331227759586e7b37ca649b695 to your computer and use it in GitHub Desktop.
"""Captures Blue Archive account data and dumps it to a file"""
def tls_clienthello(data):
if not data.context.server.address[1] == 5000:
data.ignore_connection = True
return
def response(flow):
if not flow.request.pretty_host.endswith("nexon.com"):
return
if not flow.request.path == "/api/account/loginsync":
return
filename = "account-data.json"
with open(filename, "wb") as f:
f.write(flow.response.content)
print(f"Wrote: {filename}")
print("Ready!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment