Commit 96dcdc0
committed
This PR is a result of integration with QIRA.
The PR will bring us the following:
1. BAP now supports 25 different architectures.
Also Arch module can now infer address size and endianness from the
specified architecture.
2. Bap server doesn't require address size or endian.
Only arch is required, everything else can be inferred from it.
3. Addresses in Public API is no longer an ADT but a string encoded
number, with value specified strictly in hexes.
4. BIL and ADT classes are extended.
Added some helpers, and also add named properties to BIL entities.
5. Updated README.md and simplified installation.
This will resolve #62
6. Packaged server a little more accurately, although it still
not pluginized (see #67)
7. Hardened `bap.py` for multithreaded environment
bap will try to autospawn one server per process, and multiple
bap proxies will be created per thread
8. bap-mc now accepts more user inputs:
1. bytes can be separated with spaces, commas and semicolons
2. bytes can be left without separators
9. bap-mc will now error in case of error
This is to resolve #47 and others
10. bap-mc will now properly handle invalid instructions
Previously there was a bug, as a result error handler was applied
prematurely. Also, I've extended error handler with pretty-printer
that will output dump, highlighting failed piece of code.
11. readbin will linear sweep executable sections if there are no
symbol information.
12. bap-server if ordered to disassemble the whole image will
disassemble only executable part of the file. I think this is a more
reasonable behavior, rather than previously to disassemble the whole
file including data sections.1 parent 1a655b1 commit 96dcdc0
5 files changed
Lines changed: 236 additions & 68 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | | - | |
74 | | - | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | | - | |
| 78 | + | |
77 | 79 | | |
78 | | - | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | | - | |
100 | | - | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
| |||
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
129 | | - | |
130 | | - | |
| 134 | + | |
| 135 | + | |
131 | 136 | | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
135 | 140 | | |
136 | | - | |
| 141 | + | |
137 | 142 | | |
138 | 143 | | |
139 | 144 | | |
| |||
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
| |||
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
161 | 173 | | |
162 | 174 | | |
163 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | | - | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
58 | 69 | | |
59 | 70 | | |
60 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
18 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | 28 | | |
| 29 | + | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
24 | 33 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 34 | + | |
| 35 | + | |
29 | 36 | | |
30 | | - | |
31 | | - | |
| 37 | + | |
| 38 | + | |
32 | 39 | | |
33 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
34 | 59 | | |
35 | 60 | | |
36 | 61 | | |
37 | 62 | | |
38 | | - | |
39 | 63 | | |
40 | | - | |
41 | | - | |
| 64 | + | |
| 65 | + | |
42 | 66 | | |
43 | | - | |
| 67 | + | |
44 | 68 | | |
45 | | - | |
| 69 | + | |
46 | 70 | | |
47 | | - | |
| 71 | + | |
48 | 72 | | |
49 | 73 | | |
50 | 74 | | |
| |||
218 | 242 | | |
219 | 243 | | |
220 | 244 | | |
221 | | - | |
| 245 | + | |
222 | 246 | | |
223 | | - | |
224 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
225 | 251 | | |
226 | 252 | | |
227 | 253 | | |
| |||
242 | 268 | | |
243 | 269 | | |
244 | 270 | | |
245 | | - | |
246 | | - | |
247 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
248 | 278 | | |
249 | 279 | | |
250 | 280 | | |
| |||
270 | 300 | | |
271 | 301 | | |
272 | 302 | | |
273 | | - | |
274 | | - | |
| 303 | + | |
| 304 | + | |
275 | 305 | | |
276 | 306 | | |
277 | 307 | | |
| |||
282 | 312 | | |
283 | 313 | | |
284 | 314 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | 315 | | |
294 | 316 | | |
295 | 317 | | |
| |||
0 commit comments