~poptart/riscv-business

ref: 9962ec0bea4094cc56a581c768dd85cc43b2c7aa riscv-business/src/sctester.c -rw-r--r-- 322 bytes
9962ec0b — terrorbyte No nulls! 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <string.h>

//const unsigned char code[] = "\x00";
#ifdef SC1
#include "sc1.h"
#elif SC2
#include "sc2.h"
#endif

int main(){
  printf("Shellcode Length:  %d\n", strlen(code));
  int (*func)();
  func = (int (*)()) code;
  (int)(*func)();
  printf("Did the process continue?\n");
  return 0;
}