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 <stdio.h> | |
void listup(int *array, int size) | |
{ | |
int i; | |
for(i = 0; i < size; i++) { | |
printf("%d\n", *(array + i)); | |
} | |
} |
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 <stdio.h> | |
/* | |
This source is testing for address layout randomization. | |
If ASLR is enabled, output of this program will be variable. | |
*/ | |
int main(void) | |
{ | |
printf("%p\n", main); |
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 <stdio.h> | |
/* | |
This source is testing for address layout randomization. | |
If ASLR is enabled, output of this program will be variable. | |
*/ | |
int main(void) | |
{ | |
printf("%p\n", main); |
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 <stdio.h> | |
#include <udis86.h> | |
void fill_nop(unsigned char *array, size_t size) | |
{ | |
int i; | |
if (array != NULL && 0 < size) { | |
for(i = 0; i < size; i++) { | |
*(array + i) = (unsigned int) 0x90; | |
} |
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
all: | |
g++ ./test_json.cpp -lpficommon_text -o test_json | |
go: | |
./test_json |
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
#define BOOST_TEST_MODULE "Hogehoge" | |
#define BOOST_TEST_NO_LIB | |
#include <vector> | |
#include <boost/test/included/unit_test.hpp> | |
using namespace std; | |
// テストの名前 |
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 <stdio.h> | |
#include <stdint.h> | |
uint64_t rdtsc(void) | |
{ | |
uint64_t ret; | |
__asm__ volatile("rdtsc" : "=A"(ret)); | |
return ret; | |
} |
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
cpu_name: GenuineIntel | |
FPU yes | |
VME yes | |
DE yes | |
PSE yes | |
TSC yes | |
MSR yes | |
PAE yes | |
MCE yes | |
CX8 yes |
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
./a.out: ファイル形式 mach-o-x86-64 | |
セクション .text の逆アセンブル: | |
0000000100000eb0 <start>: | |
100000eb0: 6a 00 pushq $0x0 | |
100000eb2: 48 89 e5 mov %rsp,%rbp | |
100000eb5: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp |
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
digraph mapk { | |
graph [label = "mapk", labelloc = t]; | |
"mapk(phos=pYpT^1)" -> "pp(bs^1)|(1, 2)"; | |
"pp(bs^1)|(1, 2)" -> "mapk(phos=pYpT^1)"; | |
} |