Skip to content

Instantly share code, notes, and snippets.

@psrok1
Created October 20, 2016 12:42
Show Gist options
  • Save psrok1/8fce5f279ee8d9003bd99d71d468aeb0 to your computer and use it in GitHub Desktop.
Save psrok1/8fce5f279ee8d9003bd99d71d468aeb0 to your computer and use it in GitHub Desktop.
TorrentLocker message struct
struct tlock_message /* pack(1) */ {
wchar_t machineId[33]; // identyfikator maszyny (offs=0x00, size=66)
wchar_t campaignId[33]; // identyfikator kampanii (offs=0x42, size=66)
char ipAddress[16]; // adres IP maszyny (offs=0x84, size=16)
uint8_t command; // typ żądania (offs=0x94, size=1)
uint32_t sizeOfData; // rozmiar dodatkowych danych (offs=0x95, size=4)
char data[]; // dodatkowe dane (opcjonalnie, offs=0x99, size=..)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment