This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal ENABLEDELAYEDEXPANSION | |
set copyright=Pawel Srokosz [psrok1] ^(C^) 2012 | |
set maxx=70 | |
set maxy=20 | |
mode con:lines=30 | |
goto main | |
:initvga | |
set vgaclear= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <sys/mman.h> | |
#include <fcntl.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <sys/stat.h> | |
#include <string.h> | |
#include <sys/uio.h> | |
#include <sys/wait.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=..) | |
} |
NewerOlder