comparison compal/osmovoodoo.c @ 106:a39a38bbec4d

analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 31 Mar 2014 06:33:14 +0000
parents
children
comparison
equal deleted inserted replaced
105:49c7cda96f04 106:a39a38bbec4d
1 #include <sys/types.h>
2 #include <stdio.h>
3 #include <stdlib.h>
4
5 u_char data_hdr_c123[] = { 0xee, 0x4c, 0x9f, 0x63 };
6
7 u_char data_hdr_c155[] = { 0x78, 0x47, 0xc0, 0x46 };
8
9 u_char chainloader[] = {
10 0x0a, 0x18, 0xa0, 0xe3, 0x01, 0x10, 0x51, 0xe2, 0xfd, 0xff, 0xff,
11 0x1a, 0x08, 0x10, 0x9f, 0xe5, 0x01, 0x2c, 0xa0, 0xe3, 0xb0, 0x20,
12 0xc1, 0xe1, 0x00, 0xf0, 0xa0, 0xe3, 0x10, 0xfb, 0xff, 0xff,
13 };
14
15 char outfile[] = "osmovoodoo.bin";
16
17 main()
18 {
19 FILE *f;
20
21 f = fopen(outfile, "w");
22 if (!f) {
23 perror(outfile);
24 exit(1);
25 }
26 fwrite(data_hdr_c123, 1, sizeof data_hdr_c123, f);
27 fwrite(data_hdr_c155, 1, sizeof data_hdr_c155, f);
28 fwrite(chainloader, 1, sizeof chainloader, f);
29 fclose(f);
30 exit(0);
31 }