FreeCalypso > hg > freecalypso-reveng
annotate compal/osmovoodoo.c @ 356:00060bb8b240
fluid-mnf/misc.c: fixed stopwatch functions for Unix
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 13 Mar 2020 20:47:37 +0000 |
parents | a39a38bbec4d |
children |
rev | line source |
---|---|
106
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 #include <sys/types.h> |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 #include <stdio.h> |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 #include <stdlib.h> |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 u_char data_hdr_c123[] = { 0xee, 0x4c, 0x9f, 0x63 }; |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 u_char data_hdr_c155[] = { 0x78, 0x47, 0xc0, 0x46 }; |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 u_char chainloader[] = { |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 0x0a, 0x18, 0xa0, 0xe3, 0x01, 0x10, 0x51, 0xe2, 0xfd, 0xff, 0xff, |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 0x1a, 0x08, 0x10, 0x9f, 0xe5, 0x01, 0x2c, 0xa0, 0xe3, 0xb0, 0x20, |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 0xc1, 0xe1, 0x00, 0xf0, 0xa0, 0xe3, 0x10, 0xfb, 0xff, 0xff, |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 }; |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 char outfile[] = "osmovoodoo.bin"; |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 main() |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 { |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 FILE *f; |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 f = fopen(outfile, "w"); |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 if (!f) { |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 perror(outfile); |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 exit(1); |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 } |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 fwrite(data_hdr_c123, 1, sizeof data_hdr_c123, f); |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 fwrite(data_hdr_c155, 1, sizeof data_hdr_c155, f); |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 fwrite(chainloader, 1, sizeof chainloader, f); |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 fclose(f); |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 exit(0); |
a39a38bbec4d
analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
31 } |