Skip to content

Instantly share code, notes, and snippets.

View psrok1's full-sized avatar
🦆

Paweł Srokosz psrok1

🦆
View GitHub Profile
@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=
@psrok1
psrok1 / naughtyc0w.c
Last active October 26, 2016 00:20 — forked from mak/naughtyc0w.c
CVE-2016-5195 with dirty_writeback_centisecs setup
#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>
@psrok1
psrok1 / tlocker_msg.h
Created October 20, 2016 12:42
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=..)
}