This commit is contained in:
Berkan Yalcin
2026-07-12 20:59:05 +02:00
commit 1be7f0f22c
7 changed files with 485 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# LMAOBOX Premium: Share My Lobby Scripts
A collection of snippets for interacting with the lobby sharing backend of LMAOBOX Premium, a video game cheat for team fortress 2.
For more details, check out my [post](https://blog.drof.space/2026/04/07/lmaobox-premium-https-api-analysis/) about it.
Feel free to check out the /re directory, if you care about the reconstructed code from LMAOBOX's cheat payload.
It should be noted that using this script breaches the cheat provider's license agreement, and they're already aware of it. Allegedly it was changed to an extent.
Example output you can receive from lmaobox.net/sl/v:
```
7150b2f;4;1;eu;wesley; 2da5ef41;2;2;eu;xiong liqin baws; 66165030;1;1;eu;pikio;
```
The two python files allow you to register with the party sharing service. You first need to construct a hex string based on a couple input parameters.
```
i: SteamID32 in hexadecimals
n: in-game name to be displayed in other lmaobox user's lobby tab
and 2 other fields which control the play style/lobby type indicators
(numeric mappings for mvm,rage,casual,competitive), and lobby active player count, and the region of the host player.
```
You can utilize it to load arbitrary profiles into share my lobby, and make it appear to other lmaobox premium users who make use of party sharing service. https://www.youtube.com/watch?v=OXlZCJM2m6I
You can also use it to collect information about people who are participating in this specific cheat ecosystem's backend features. Check fetch-registration-table-active-users.cs for that.
+22
View File
@@ -0,0 +1,22 @@
def encode(data: bytes) -> bytes:
return bytes((~b) & 0xFF for b in data)
def main():
key = "" // password
u = "example@gmail.com" // email of customer with valid cheat license
i = input("Enter i: ")
c = input("Enter c: ")
m = input("Enter m: ")
n = input("Enter n: ")
plaintext = f"key={key}&i={i}&c={c}&m={m}&u={u}&n={n}\r\n"
encoded = encode(plaintext.encode("ascii"))
print("PLAINTEXT:")
print(repr(plaintext))
print("\nHEX:")
print(encoded.hex().upper())
if __name__ == "__main__":
main()
+80
View File
@@ -0,0 +1,80 @@
public sealed class CoordinatorRecord
{
public string CoordinatorId { get; set; } = ""; // Steam32-UID encoded in hex
public int PartyMembersPresent { get; set; }
public LobbyType LobbyType { get; set; }
public string PlayerRegion { get; set; } = "";
public string PlayerName { get; set; } = "";
}
public async Task<List<CoordinatorRecord>?> FetchRecordsAsync(CancellationToken cancellationToken)
{
byte[] vecData =
{
// insert your extracted identity provider here. you can get it by taking a look at the cheat module lmaobox injects into the game.
// 1
//Raw formatted buffer: i=47A2BE&amp;u=lboxuser@gmail.com
//u = customer email address
//i = some hardcoded string within the cheat payload (could be user identity related and embedded by their custom pipeline, no idea)
// perform a Bitwise NOT transform on this buffer, and boom you got your authentication data.
};
byte[]? vecResponse = await PostBinaryAsync(
"https://lmaobox.net/sl/v",
vecData,
cancellationToken
);
if (vecResponse is null || vecResponse.Length == 0)
return null;
byte[] decodedBytes = DecodeLobbyTable(vecResponse);
string decoded = Encoding.Latin1.GetString(decodedBytes);
int nullIndex = decoded.IndexOf('\0');
if (nullIndex >= 0)
decoded = decoded[..nullIndex];
return ParseRecords(decoded);
}
private static byte[] DecodeLobbyTable(byte[] data)
{
var result = new byte[data.Length];
for (int i = 0; i < data.Length; i++)
result[i] = (byte)(~data[i] & 0xFF);
return result;
}
private static int ToIntSafe(string value)
{
return int.TryParse(value, out var result) ? result : 0;
}
private static List<CoordinatorRecord> ParseRecords(string decoded)
{
var fields = decoded.Split(';', StringSplitOptions.None);
var cleaned = fields
.Select(f => f.Trim())
.Where(f => !string.IsNullOrEmpty(f))
.ToList();
var records = new List<CoordinatorRecord>();
for (int i = 0; i <= cleaned.Count - 5; i += 5)
{
records.Add(new CoordinatorRecord
{
CoordinatorId = cleaned[i],
PartyMembersPresent = ToIntSafe(cleaned[i + 1]),
LobbyType = LobbyType2Str(cleaned[i + 2]),
PlayerRegion = cleaned[i + 3],
PlayerName = cleaned[i + 4]
});
}
return records;
}
+143
View File
@@ -0,0 +1,143 @@
char __fastcall LB::GetShareMyLobyyList(__int64 a1)
{
char **v2; // rax
__int64 v3; // r9
int v4; // er13
__int64 *v5; // rax
int v6; // eax
char *lpResponse; // rdi
char v8; // al
int v9; // esi
char *v10; // rbp
char v11; // r12
char i; // r11
int v13; // eax
__int64 v14; // rcx
__int64 v15; // rax
char lpParams; // [rsp+20h] [rbp-158h] BYREF
char *v18; // [rsp+188h] [rbp+10h] BYREF
char v19; // [rsp+190h] [rbp+18h] BYREF
lpParams = 0;
memset();
v2 = LB::DecodeString(&v18, byte_4000001366F6);
//
// This is where the request buffer is formatted.
//
sprintf(&lpParams, *v2, 0x59D0CDi64, v3); // last parameter is customer e-mail
v4 = *(_DWORD *)(*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)AVCSteamUserV019 + 16i64))(
AVCSteamUserV019,
&v19);
if ( LB::ShareMyLobbyResponse )
{
*(_DWORD *)(a1 + 64) = 0;
free(LB::ShareMyLobbyResponse);
}
v5 = (__int64 *)LB::DecodeString(&v18, byte_40000013670E);
//
// This will send a request to LMAOBOX's backend.
// last parameter controls the operation mode.
// 0 - register with share my lobby yourself
// 1 - fetch share my lobby table
//
LB::ShareMyLobbyEndpoint(*v5, &LB::ShareMyLobbyResponse, (__int64)&lpParams, 1);
LOBYTE(v6) = LB::DecodeString2(&v18);
lpResponse = (char *)LB::ShareMyLobbyResponse;
if ( LB::ShareMyLobbyResponse )
{
if ( *(_BYTE *)LB::ShareMyLobbyResponse )
{
//
// LMAOBOX uses this simple bitwise not transform for encoding & decoding.
//
do
{
v8 = *lpResponse++;
*(lpResponse - 1) = ~v8;
}
while ( *lpResponse );
lpResponse = (char *)LB::ShareMyLobbyResponse;
}
v9 = 0;
v10 = lpResponse;
v11 = 0;
//
// This is where parsing of the response happens.
//
for ( i = *lpResponse; i; i = *++lpResponse )
{
v13 = *(_DWORD *)(a1 + 64);
if ( v13 >= 10 )
break;
if ( i == 10 )
{
if ( v11 )
{
v11 = 0;
v9 = 0;
}
else
{
v9 = 0;
*(_DWORD *)(a1 + 64) = v13 + 1;
}
}
else if ( i == ';' )
{
*lpResponse = 0;
if ( v9 )
{
switch ( v9 )
{
case 1:
*(_DWORD *)(a1 + 40i64 * *(int *)(a1 + 64) + 84) = MEMORY[0x5FE131D8](v10);
break;
case 2:
*(_DWORD *)(a1 + 40i64 * *(int *)(a1 + 64) + 88) = MEMORY[0x5FE131D8](v10);
break;
case 3:
*(_QWORD *)(a1 + 40i64 * *(int *)(a1 + 64) + 96) = v10;
break;
case 4:
*(_QWORD *)(a1 + 40i64 * *(int *)(a1 + 64) + 104) = v10;
break;
}
}
else
{
*(_DWORD *)(a1 + 8 * (5i64 * *(int *)(a1 + 64) + 10)) = strtol(v10, 0i64, 16i64);
*v10 = 0;
v14 = 5i64 * *(int *)(a1 + 64) + 10;
if ( *(_DWORD *)(a1 + 8 * v14) == v4 )
{
*(_DWORD *)(a1 + 8 * v14) = 0;
*(_DWORD *)(a1 + 40i64 * *(int *)(a1 + 64) + 112) = 0;
v11 = 1;
}
else
{
v15 = *(int *)(a1 + 48);
HIDWORD(v18) = 17825793;
LODWORD(v18) = *(_DWORD *)(a1 + 8 * (5 * v15 + 10));
*(_DWORD *)(a1 + 40i64 * *(int *)(a1 + 64) + 112) = (*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)AVCAdapterSteamFriends + 40i64))(
AVCAdapterSteamFriends,
v18) == 3;
}
}
v10 = lpResponse + 1;
++v9;
}
}
v6 = 22 * *(_DWORD *)(a1 + 64) + 2;
*(_BYTE *)(a1 + 72) = 1;
*(_DWORD *)(a1 + 16) = v6;
}
return v6;
}
+114
View File
@@ -0,0 +1,114 @@
char __fastcall LB::SML::PublishLobby(unsigned int a1, int a2, __int64 a3, int matchType)
{
char **pszFormatStr; // rax
__int64 v8; // r10
void *v9; // r11
void *v10; // r9
__int64 *v11; // rax
__int64 v13; // [rsp+40h] [rbp-148h] BYREF
char lpParams[304]; // [rsp+50h] [rbp-138h] BYREF
char *v15; // [rsp+1A0h] [rbp+18h] BYREF
// key=%X&i=%X&c=%d&m=%d&u=%s&n=%s..
pszFormatStr = LB::DecodeString(&v15, byte_400000136E16);
v10 = &unk_400000128E30;
if ( v9 )
v10 = v9;
// 0000001B84AFD9D0 key=59D0CD&i=0&c=0&m=1&u=rijin.ramesh@drof.space&n=.....¡[û8ø...
sprintf(lpParams, *pszFormatStr, 0x59D0CDi64, a1, a2, matchType, v8, v10);
LB::DecodeString2(&v15);
v11 = (__int64 *)LB::DecodeString(&v15, byte_400000136E3E);
// use last param: 0 for publishing mode.
LB::ShareMyLobbyEndpoint(*v11, &v13, (__int64)lpParams, 0);
return LB::DecodeString2(&v15);
}
void __fastcall LB::Wrap::Publish::SML(char a1)
{
__int64 v1; // rsi
int v2; // ebx
char v3; // di
unsigned int v4; // er12
__int64 v5; // r13
__int64 v6; // rax
char v7; // cl
__int64 v8; // rbp
int v9; // esi
unsigned int *v10; // rax
float v11; // xmm0_4
char v12; // al
int v14; // [rsp+78h] [rbp+10h] BYREF
__int64 v15; // [rsp+80h] [rbp+18h]
char v16; // [rsp+88h] [rbp+20h] BYREF
v1 = MEMORY[0x7FFF07024B10];
v2 = 0;
v3 = 0;
v4 = 0;
v5 = 0i64;
if ( MEMORY[0x7FFF07024B10] )
{
v8 = (**(__int64 (__fastcall ***)(__int64))AVCAdapterSteamFriends)(AVCAdapterSteamFriends);
v15 = v8;
dword_40000015D518 = 1;
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)(v1 + 184) + 56i64))(v1 + 184, &dword_40000015D510);
v14 = 0;
lstrlen(v8);
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v1 + 184) + 16i64))(v1 + 184);
v2 = v9;
v10 = (unsigned int *)(*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)AVCSteamUserV019 + 16i64))(
AVCSteamUserV019,
&v16);
v4 = *v10;
if ( v14 == *v10 )
{
v5 = v15;
v3 = 1;
v7 = 0;
}
else
{
v7 = 1;
g_bWasSteamUserCached = 0;
}
dword_40000015FD80 = v14;
dword_40000015FD7C = v9;
dword_40000015FD78 = 0;
dword_40000015FD74 = 1;
}
else
{
if ( g_bWasSteamUserCached )
{
v7 = 0;
goto LABEL_11;
}
v4 = *(_DWORD *)(*(__int64 (__fastcall **)(__int64, int *))(*(_QWORD *)AVCSteamUserV019 + 16i64))(
AVCSteamUserV019,
&v14);
v6 = (**(__int64 (__fastcall ***)(__int64))AVCAdapterSteamFriends)(AVCAdapterSteamFriends);
v2 = 1;
v3 = 1;
g_bWasSteamUserCached = 1;
v7 = 0;
v5 = v6;
}
byte_40000015D521 = v7;
LABEL_11:
v11 = *(float *)&LB::ShareMyLobby::LastUpdatedTIme;
if ( MEMORY[0x7FFF14C90A5C] < 0.0 )
{
v11 = 0.0;
LB::ShareMyLobby::LastUpdatedTIme = 0;
}
if ( a1 || v3 || (float)(v11 + 60.0) < MEMORY[0x7FFF14C90A5C] )
{
v12 = v3;
if ( !v7 )
v12 = 1;
LB::ShareMyLobby::LastUpdatedTIme = MEMORY[0x7FFF14C90A5C];
if ( v12 )
LB::SML::PublishLobby(v4, v2, v5, 1);
}
}
+65
View File
@@ -0,0 +1,65 @@
// lpEndpoint = "/sl/v"
// lpParams = 00000042673BDA10 i=59D0CD&u=rijin.ramesh@drof.space..............................
__int64 __fastcall LB::MakeWebRequest_Wrap(__int64 lpEndpoint, __int64 *a2, __int64 lpParams, __int64 a4, char a5)
{
__int64 *v7; // rax
__int64 v8; // r9
__int64 v9; // r11
unsigned int v10; // er11
char *v12[3]; // [rsp+30h] [rbp-18h] BYREF
v7 = (__int64 *)LB::DecodeString(v12, byte_4000001362C6);
LB::MakeWebRequest_0(lpEndpoint, a2, v9, v8, a5, *v7);
LB::DecodeString2(v12);
return v10;
}
__int64 __fastcall LB::MakeWebRequest_0(__int64 a1, __int64 *a2, __int64 a3, __int64 a4, char a5, __int64 a6)
{
__int64 *pszDomain; // rax
unsigned int nRequestLen; // er9
char *lpRequestData; // r10
__int64 lpEndpoint; // r11
int v12; // [rsp+40h] [rbp-18h] BYREF
char *v13[2]; // [rsp+48h] [rbp-10h] BYREF
int v14; // [rsp+68h] [rbp+10h] BYREF
v14 = 0;
v12 = 0;
pszDomain = (__int64 *)LB::DecodeString(v13, lmaoboxdotnet);
*a2 = (__int64)LB::ShareMyLobbyWrap(*pszDomain, lpEndpoint, a6, &v12, (__int64)&v14, lpRequestData, nRequestLen, a5);
LB::DecodeString2(v13);
return (unsigned int)(*a2 != 0) - 1;
}
void *__fastcall LB::ShareMyLobbyWrap(
__int64 pszDomain,
__int64 lpEndpoint,
__int64 a3,
_DWORD *a4,
__int64 a5,
char *lpRequestData,
unsigned int nRequestLen,
char a8)
{
__int64 numLeft; // r11
char *lpEncodedRequestDataPtr; // r10
char v10; // al
numLeft = nRequestLen;
if ( nRequestLen )
{
lpEncodedRequestDataPtr = lpRequestData;
do
{
v10 = *lpEncodedRequestDataPtr++;
--numLeft;
*(lpEncodedRequestDataPtr - 1) = ~v10;
}
while ( numLeft );
}
if ( a8 )
return LB::HttpsRequestToBuffer(pszDomain, lpEndpoint, a3, a4, a5);
LB::HttpsRequestWithoutResponseRead(pszDomain, lpEndpoint, a3, lpRequestData, nRequestLen);
return 0i64;
}
+37
View File
@@ -0,0 +1,37 @@
import time
import requests
def send_payload(hex_string: str):
hex_string = hex_string.replace(" ", "").strip()
data = bytes.fromhex(hex_string)
url = "https://lmaobox.net/sl/"
response = requests.post(
url,
data=data,
headers={
"Content-Type": "application/octet-stream"
},
timeout=10
)
print(f"[{time.strftime('%H:%M:%S')}] Status:", response.status_code)
print(response.text)
print("-" * 50)
def main():
hex_input = input("Enter hex payload: ")
while True:
try:
send_payload(hex_input)
except Exception as e:
print("Error:", e)
time.sleep(120) # 2 minutes
if __name__ == "__main__":
main()