Skip to content

Commit

Permalink
send real os info, closes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
DryByte committed Aug 11, 2024
1 parent f8960f8 commit a0427f6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Source/Hooks/Packets.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,18 @@ void send_client_info() {
struct packet_client_info* packetV = malloc(sizeof(struct packet_client_info));
packetV->packet_id = 34;
packetV->identifier = 68;
packetV->version_major = 1;
packetV->version_major = 0;
packetV->version_minor = 1;
packetV->version_revision = 1;
packetV->version_revision = 0;

HMODULE ntdll = GetModuleHandle("ntdll.dll");

char *a = "Windows";
if (ntdll) {
if (GetProcAddress(ntdll, "wine_get_version"))
a = "Linux"; // fuck you macos users muahahah
}

char *a = "just testing";
strncpy(packetV->os, a, strlen(a));

send_packet(packetV, sizeof(packetV)+strlen(a)+1);
Expand Down

0 comments on commit a0427f6

Please sign in to comment.