annotate compal/Makefile @ 160:db3b300da465

malware version of the C118 bootloader reversed
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 15 May 2014 08:38:42 +0000
parents 8ed06e07b19e
children 237bb836521d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
160
db3b300da465 malware version of the C118 bootloader reversed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
1 C118= c118-3.0.81.E-boot.bin
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 108
diff changeset
2 C123= c123-boot.bin
98
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 C139= c139-boot.90.04.bin
99
3bd695d9b2b4 C139 boot re: C140 differences noted
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 98
diff changeset
4 C140= c140-boot.bin
108
85bb35342834 C156 boot code disassembly started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 106
diff changeset
5 C156= c156-boot.90.05.bin
160
db3b300da465 malware version of the C118 bootloader reversed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
6 GEN= c118-newboot.dis16 c118-newboot.dis32 c118-newboot.hex \
db3b300da465 malware version of the C118 bootloader reversed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
7 c123-boot.dis16 c123-boot.dis32 c123-boot.hex \
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 108
diff changeset
8 c139-boot.dis16 c139-boot.dis32 c139-boot.hex \
106
a39a38bbec4d analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 99
diff changeset
9 c140-boot.dis16 c140-boot.dis32 c140-boot.hex \
108
85bb35342834 C156 boot code disassembly started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 106
diff changeset
10 c156-boot.dis16 c156-boot.dis32 c156-boot.hex \
106
a39a38bbec4d analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 99
diff changeset
11 osmovoodoo osmovoodoo.bin
98
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12 ARMDIS= ../arm7dis/armdis
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13 THUMBDIS=../arm7dis/thumbdis
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 all: ${GEN}
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16
160
db3b300da465 malware version of the C118 bootloader reversed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
17 c118-newboot.dis16: ${C118} ${THUMBDIS}
db3b300da465 malware version of the C118 bootloader reversed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
18 ${THUMBDIS} ${C118} > $@
db3b300da465 malware version of the C118 bootloader reversed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
19
db3b300da465 malware version of the C118 bootloader reversed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
20 c118-newboot.dis32: ${C118} ${ARMDIS}
db3b300da465 malware version of the C118 bootloader reversed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
21 ${ARMDIS} ${C118} > $@
db3b300da465 malware version of the C118 bootloader reversed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
22
db3b300da465 malware version of the C118 bootloader reversed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
23 c118-newboot.hex: ${C118}
db3b300da465 malware version of the C118 bootloader reversed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
24 hd ${C118} > $@
db3b300da465 malware version of the C118 bootloader reversed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 158
diff changeset
25
158
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 108
diff changeset
26 c123-boot.dis16: ${C123} ${THUMBDIS}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 108
diff changeset
27 ${THUMBDIS} ${C123} > $@
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 108
diff changeset
28
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 108
diff changeset
29 c123-boot.dis32: ${C123} ${ARMDIS}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 108
diff changeset
30 ${ARMDIS} ${C123} > $@
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 108
diff changeset
31
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 108
diff changeset
32 c123-boot.hex: ${C123}
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 108
diff changeset
33 hd ${C123} > $@
8ed06e07b19e start of C123 bootloader re
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 108
diff changeset
34
98
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
35 c139-boot.dis16: ${C139} ${THUMBDIS}
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
36 ${THUMBDIS} ${C139} > $@
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
37
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
38 c139-boot.dis32: ${C139} ${ARMDIS}
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
39 ${ARMDIS} ${C139} > $@
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
40
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
41 c139-boot.hex: ${C139}
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
42 hd ${C139} > $@
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
43
99
3bd695d9b2b4 C139 boot re: C140 differences noted
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 98
diff changeset
44 c140-boot.dis16: ${C140} ${THUMBDIS}
3bd695d9b2b4 C139 boot re: C140 differences noted
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 98
diff changeset
45 ${THUMBDIS} ${C140} > $@
3bd695d9b2b4 C139 boot re: C140 differences noted
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 98
diff changeset
46
3bd695d9b2b4 C139 boot re: C140 differences noted
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 98
diff changeset
47 c140-boot.dis32: ${C140} ${ARMDIS}
3bd695d9b2b4 C139 boot re: C140 differences noted
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 98
diff changeset
48 ${ARMDIS} ${C140} > $@
3bd695d9b2b4 C139 boot re: C140 differences noted
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 98
diff changeset
49
3bd695d9b2b4 C139 boot re: C140 differences noted
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 98
diff changeset
50 c140-boot.hex: ${C140}
3bd695d9b2b4 C139 boot re: C140 differences noted
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 98
diff changeset
51 hd ${C140} > $@
3bd695d9b2b4 C139 boot re: C140 differences noted
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 98
diff changeset
52
108
85bb35342834 C156 boot code disassembly started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 106
diff changeset
53 c156-boot.dis16: ${C156} ${THUMBDIS}
85bb35342834 C156 boot code disassembly started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 106
diff changeset
54 ${THUMBDIS} ${C156} > $@
85bb35342834 C156 boot code disassembly started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 106
diff changeset
55
85bb35342834 C156 boot code disassembly started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 106
diff changeset
56 c156-boot.dis32: ${C156} ${ARMDIS}
85bb35342834 C156 boot code disassembly started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 106
diff changeset
57 ${ARMDIS} ${C156} > $@
85bb35342834 C156 boot code disassembly started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 106
diff changeset
58
85bb35342834 C156 boot code disassembly started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 106
diff changeset
59 c156-boot.hex: ${C156}
85bb35342834 C156 boot code disassembly started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 106
diff changeset
60 hd ${C156} > $@
85bb35342834 C156 boot code disassembly started
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 106
diff changeset
61
106
a39a38bbec4d analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 99
diff changeset
62 osmovoodoo: osmovoodoo.c
a39a38bbec4d analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 99
diff changeset
63 gcc -O2 -o $@ $@.c
a39a38bbec4d analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 99
diff changeset
64
a39a38bbec4d analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 99
diff changeset
65 osmovoodoo.bin: osmovoodoo
a39a38bbec4d analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 99
diff changeset
66 ./osmovoodoo
a39a38bbec4d analysis of what osmocon's voodoo payloads disassemble to in ARM/Thumb
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 99
diff changeset
67
98
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
68 clean:
8eaa265ee292 C139 boot re setup using the new arm7dis
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
69 rm -f ${GEN}