seb15753

truekern/kernel.c

Jun 24th, 2014
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include "funcTable.h"
  2. #include "lib.h"
  3. void uneautrefonction(int lo);
  4. void main();
  5. void _start(void)
  6. {
  7.     asm volatile("mfence\n\t");
  8.     char *buffer="\n=BEGIN TRUE CODE=\n";
  9.     char *b;
  10.     asm volatile("mov $0x10000000,%eax\n\t");
  11.     asm volatile("movl (%%eax),%0":"=a"(b));
  12.     if(buffer != b)
  13.     {
  14.         asm volatile("jmp 0x0\n"); //crash virual box
  15.     }
  16.     while(1);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment