Skip to content

Instantly share code, notes, and snippets.

@lutwidse
Last active January 27, 2023 12:34
Show Gist options
  • Save lutwidse/82d8e7a20c96296bc0318f1cb6bf26ee to your computer and use it in GitHub Desktop.
Save lutwidse/82d8e7a20c96296bc0318f1cb6bf26ee to your computer and use it in GitHub Desktop.
priconner_launch.py
from pymem import *
import re
BASE = 0xC000026000
pm = Pymem("DMMGamePlayer.exe")
bytes_pattern = b"\x73\x65\x73\x73\x69\x6f\x6e\x5f\x69\x64\x3d"
offset = (0x2f + 0x1 + 0x30)
start_address = pymem.pattern.scan_pattern_page(pm.process_handle, BASE, bytes_pattern)
dmm_session = pymem.memory.read_string(pm.process_handle, start_address[1], offset)
login_session_id = re.search(r'[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}', dmm_session)[0]
login_secure_id = re.search(r'[a-f0-9]{32}', dmm_session)[0]
print(f"{login_session_id}\n{login_secure_id}")
import requests
requests.packages.urllib3.disable_warnings()
# DMM session
login_session_id = "00000000-1111-2222-3333-444444444444"
login_secure_id = "00000000111111112222222233333333"
headers = {
"Host": "apidgp-gameplayer.games.dmm.com",
"Connection": "keep-alive",
"User-Agent": "DMMGamePlayer5-Win/17.1.2 Electron/17.1.2",
"Content-Type": "application/json",
"Client-App": "DMMGamePlayer5",
"Client-version": "17.1.2",
"cookie": f"login_session_id={login_session_id};login_secure_id={login_secure_id}",
"Sec-Fetch-Site": "none",
"Sec-Fetch-Mode": "no-cors",
"Sec-Fetch-Dest": "empty",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "ja",
}
params = {
"product_id": "priconner",
"game_type": "GCL",
"game_os": "win",
"launch_type": "LIB",
"mac_address": "00:11:22:33:44:55",
"hdd_serial": "0000000011111111222222223333333344444444555555556666666677777777",
"motherboard": "0000000011111111222222223333333344444444555555556666666677777777",
"user_os": "win"
}
# Request body in debug mode
"""
params = {
"product_id": "priconner",
"game_type": "GCL",
"game_os": "win",
"launch_type": "LIB",
"mac_address": "This is mock mac address.",
"hdd_serial": "This is mock hdd serial.",
"motherboard": "This is mock motherboard serial",
"user_os": "win"
}
"""
response = requests.post("https://apidgp-gameplayer.games.dmm.com/v5/launch/cl", headers=headers, json=params, verify=False)
print(response.json()["data"]["execute_args"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment