This file contains hidden or 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 <Windows.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
// #pf detection from usermode, by waryas | |
void wgs(uint16_t value) { | |
__asm__ volatile("mov %0, %%gs" : : "r"(value)); | |
} | |
uint16_t rgs() { |
This file contains hidden or 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
#!/usr/bin/perl | |
# Ref: Calculating CPU Usage from /proc/stat | |
# (http://colby.id.au/node/39) | |
use utf8; | |
use List::Util qw(sum); |
This file contains hidden or 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
// OverwolfEmulator.cpp : définit le point d'entrée pour l'application console. | |
// | |
#include "stdafx.h" | |
#include <Windows.h> | |
#include <stdint.h> | |
#define OVERLAY_MAGIC_NUMBER 0x00000005 | |
struct OverlayMsgHeader { |