├── .gitignore
├── CONTRIBUTING.md
├── LICENSE.md
├── README.md
├── binGraph
├── __init__.py
├── __main__.py
├── binGraph.py
└── graphs
│ ├── __init__.py
│ ├── ent
│ ├── __init__.py
│ └── graph.py
│ └── hist
│ ├── __init__.py
│ └── graph.py
├── example-ent.json
├── example-ent.png
├── example-hist.json
├── example-hist.png
├── files.txt
└── setup.py
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | graphs/.DS_Store
3 | .DS_Store
4 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Pull requests welcome!
2 |
3 | I'd love contributions bug fixes, but mainly to add additional graph types.
4 |
5 | Please make the pull request against the contrib branch and I will review.
6 |
7 | Please watchout for the following before commiting:
8 | * Please keep pull requests for features and bug requests seperate
9 | * Indentation - Please use 4 space indent
10 | * Blank lines - Please check blank lines are... blank :) not invisible characters (spaces and tabs)!
11 | * Please test the new code with Python2 and Python3 - this project should work with both
12 | * Please use ```# #``` To indicate a comment - This helps when un/commenting large code blocks in testing
13 |
14 | And most of all, thanks for contributing!!!
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | GNU AFFERO GENERAL PUBLIC LICENSE
2 | Version 3, 19 November 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU Affero General Public License is a free, copyleft license for
11 | software and other kinds of works, specifically designed to ensure
12 | cooperation with the community in the case of network server software.
13 |
14 | The licenses for most software and other practical works are designed
15 | to take away your freedom to share and change the works. By contrast,
16 | our General Public Licenses are intended to guarantee your freedom to
17 | share and change all versions of a program--to make sure it remains free
18 | software for all its users.
19 |
20 | When we speak of free software, we are referring to freedom, not
21 | price. Our General Public Licenses are designed to make sure that you
22 | have the freedom to distribute copies of free software (and charge for
23 | them if you wish), that you receive source code or can get it if you
24 | want it, that you can change the software or use pieces of it in new
25 | free programs, and that you know you can do these things.
26 |
27 | Developers that use our General Public Licenses protect your rights
28 | with two steps: (1) assert copyright on the software, and (2) offer
29 | you this License which gives you legal permission to copy, distribute
30 | and/or modify the software.
31 |
32 | A secondary benefit of defending all users' freedom is that
33 | improvements made in alternate versions of the program, if they
34 | receive widespread use, become available for other developers to
35 | incorporate. Many developers of free software are heartened and
36 | encouraged by the resulting cooperation. However, in the case of
37 | software used on network servers, this result may fail to come about.
38 | The GNU General Public License permits making a modified version and
39 | letting the public access it on a server without ever releasing its
40 | source code to the public.
41 |
42 | The GNU Affero General Public License is designed specifically to
43 | ensure that, in such cases, the modified source code becomes available
44 | to the community. It requires the operator of a network server to
45 | provide the source code of the modified version running there to the
46 | users of that server. Therefore, public use of a modified version, on
47 | a publicly accessible server, gives the public access to the source
48 | code of the modified version.
49 |
50 | An older license, called the Affero General Public License and
51 | published by Affero, was designed to accomplish similar goals. This is
52 | a different license, not a version of the Affero GPL, but Affero has
53 | released a new version of the Affero GPL which permits relicensing under
54 | this license.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | TERMS AND CONDITIONS
60 |
61 | 0. Definitions.
62 |
63 | "This License" refers to version 3 of the GNU Affero General Public License.
64 |
65 | "Copyright" also means copyright-like laws that apply to other kinds of
66 | works, such as semiconductor masks.
67 |
68 | "The Program" refers to any copyrightable work licensed under this
69 | License. Each licensee is addressed as "you". "Licensees" and
70 | "recipients" may be individuals or organizations.
71 |
72 | To "modify" a work means to copy from or adapt all or part of the work
73 | in a fashion requiring copyright permission, other than the making of an
74 | exact copy. The resulting work is called a "modified version" of the
75 | earlier work or a work "based on" the earlier work.
76 |
77 | A "covered work" means either the unmodified Program or a work based
78 | on the Program.
79 |
80 | To "propagate" a work means to do anything with it that, without
81 | permission, would make you directly or secondarily liable for
82 | infringement under applicable copyright law, except executing it on a
83 | computer or modifying a private copy. Propagation includes copying,
84 | distribution (with or without modification), making available to the
85 | public, and in some countries other activities as well.
86 |
87 | To "convey" a work means any kind of propagation that enables other
88 | parties to make or receive copies. Mere interaction with a user through
89 | a computer network, with no transfer of a copy, is not conveying.
90 |
91 | An interactive user interface displays "Appropriate Legal Notices"
92 | to the extent that it includes a convenient and prominently visible
93 | feature that (1) displays an appropriate copyright notice, and (2)
94 | tells the user that there is no warranty for the work (except to the
95 | extent that warranties are provided), that licensees may convey the
96 | work under this License, and how to view a copy of this License. If
97 | the interface presents a list of user commands or options, such as a
98 | menu, a prominent item in the list meets this criterion.
99 |
100 | 1. Source Code.
101 |
102 | The "source code" for a work means the preferred form of the work
103 | for making modifications to it. "Object code" means any non-source
104 | form of a work.
105 |
106 | A "Standard Interface" means an interface that either is an official
107 | standard defined by a recognized standards body, or, in the case of
108 | interfaces specified for a particular programming language, one that
109 | is widely used among developers working in that language.
110 |
111 | The "System Libraries" of an executable work include anything, other
112 | than the work as a whole, that (a) is included in the normal form of
113 | packaging a Major Component, but which is not part of that Major
114 | Component, and (b) serves only to enable use of the work with that
115 | Major Component, or to implement a Standard Interface for which an
116 | implementation is available to the public in source code form. A
117 | "Major Component", in this context, means a major essential component
118 | (kernel, window system, and so on) of the specific operating system
119 | (if any) on which the executable work runs, or a compiler used to
120 | produce the work, or an object code interpreter used to run it.
121 |
122 | The "Corresponding Source" for a work in object code form means all
123 | the source code needed to generate, install, and (for an executable
124 | work) run the object code and to modify the work, including scripts to
125 | control those activities. However, it does not include the work's
126 | System Libraries, or general-purpose tools or generally available free
127 | programs which are used unmodified in performing those activities but
128 | which are not part of the work. For example, Corresponding Source
129 | includes interface definition files associated with source files for
130 | the work, and the source code for shared libraries and dynamically
131 | linked subprograms that the work is specifically designed to require,
132 | such as by intimate data communication or control flow between those
133 | subprograms and other parts of the work.
134 |
135 | The Corresponding Source need not include anything that users
136 | can regenerate automatically from other parts of the Corresponding
137 | Source.
138 |
139 | The Corresponding Source for a work in source code form is that
140 | same work.
141 |
142 | 2. Basic Permissions.
143 |
144 | All rights granted under this License are granted for the term of
145 | copyright on the Program, and are irrevocable provided the stated
146 | conditions are met. This License explicitly affirms your unlimited
147 | permission to run the unmodified Program. The output from running a
148 | covered work is covered by this License only if the output, given its
149 | content, constitutes a covered work. This License acknowledges your
150 | rights of fair use or other equivalent, as provided by copyright law.
151 |
152 | You may make, run and propagate covered works that you do not
153 | convey, without conditions so long as your license otherwise remains
154 | in force. You may convey covered works to others for the sole purpose
155 | of having them make modifications exclusively for you, or provide you
156 | with facilities for running those works, provided that you comply with
157 | the terms of this License in conveying all material for which you do
158 | not control copyright. Those thus making or running the covered works
159 | for you must do so exclusively on your behalf, under your direction
160 | and control, on terms that prohibit them from making any copies of
161 | your copyrighted material outside their relationship with you.
162 |
163 | Conveying under any other circumstances is permitted solely under
164 | the conditions stated below. Sublicensing is not allowed; section 10
165 | makes it unnecessary.
166 |
167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168 |
169 | No covered work shall be deemed part of an effective technological
170 | measure under any applicable law fulfilling obligations under article
171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172 | similar laws prohibiting or restricting circumvention of such
173 | measures.
174 |
175 | When you convey a covered work, you waive any legal power to forbid
176 | circumvention of technological measures to the extent such circumvention
177 | is effected by exercising rights under this License with respect to
178 | the covered work, and you disclaim any intention to limit operation or
179 | modification of the work as a means of enforcing, against the work's
180 | users, your or third parties' legal rights to forbid circumvention of
181 | technological measures.
182 |
183 | 4. Conveying Verbatim Copies.
184 |
185 | You may convey verbatim copies of the Program's source code as you
186 | receive it, in any medium, provided that you conspicuously and
187 | appropriately publish on each copy an appropriate copyright notice;
188 | keep intact all notices stating that this License and any
189 | non-permissive terms added in accord with section 7 apply to the code;
190 | keep intact all notices of the absence of any warranty; and give all
191 | recipients a copy of this License along with the Program.
192 |
193 | You may charge any price or no price for each copy that you convey,
194 | and you may offer support or warranty protection for a fee.
195 |
196 | 5. Conveying Modified Source Versions.
197 |
198 | You may convey a work based on the Program, or the modifications to
199 | produce it from the Program, in the form of source code under the
200 | terms of section 4, provided that you also meet all of these conditions:
201 |
202 | a) The work must carry prominent notices stating that you modified
203 | it, and giving a relevant date.
204 |
205 | b) The work must carry prominent notices stating that it is
206 | released under this License and any conditions added under section
207 | 7. This requirement modifies the requirement in section 4 to
208 | "keep intact all notices".
209 |
210 | c) You must license the entire work, as a whole, under this
211 | License to anyone who comes into possession of a copy. This
212 | License will therefore apply, along with any applicable section 7
213 | additional terms, to the whole of the work, and all its parts,
214 | regardless of how they are packaged. This License gives no
215 | permission to license the work in any other way, but it does not
216 | invalidate such permission if you have separately received it.
217 |
218 | d) If the work has interactive user interfaces, each must display
219 | Appropriate Legal Notices; however, if the Program has interactive
220 | interfaces that do not display Appropriate Legal Notices, your
221 | work need not make them do so.
222 |
223 | A compilation of a covered work with other separate and independent
224 | works, which are not by their nature extensions of the covered work,
225 | and which are not combined with it such as to form a larger program,
226 | in or on a volume of a storage or distribution medium, is called an
227 | "aggregate" if the compilation and its resulting copyright are not
228 | used to limit the access or legal rights of the compilation's users
229 | beyond what the individual works permit. Inclusion of a covered work
230 | in an aggregate does not cause this License to apply to the other
231 | parts of the aggregate.
232 |
233 | 6. Conveying Non-Source Forms.
234 |
235 | You may convey a covered work in object code form under the terms
236 | of sections 4 and 5, provided that you also convey the
237 | machine-readable Corresponding Source under the terms of this License,
238 | in one of these ways:
239 |
240 | a) Convey the object code in, or embodied in, a physical product
241 | (including a physical distribution medium), accompanied by the
242 | Corresponding Source fixed on a durable physical medium
243 | customarily used for software interchange.
244 |
245 | b) Convey the object code in, or embodied in, a physical product
246 | (including a physical distribution medium), accompanied by a
247 | written offer, valid for at least three years and valid for as
248 | long as you offer spare parts or customer support for that product
249 | model, to give anyone who possesses the object code either (1) a
250 | copy of the Corresponding Source for all the software in the
251 | product that is covered by this License, on a durable physical
252 | medium customarily used for software interchange, for a price no
253 | more than your reasonable cost of physically performing this
254 | conveying of source, or (2) access to copy the
255 | Corresponding Source from a network server at no charge.
256 |
257 | c) Convey individual copies of the object code with a copy of the
258 | written offer to provide the Corresponding Source. This
259 | alternative is allowed only occasionally and noncommercially, and
260 | only if you received the object code with such an offer, in accord
261 | with subsection 6b.
262 |
263 | d) Convey the object code by offering access from a designated
264 | place (gratis or for a charge), and offer equivalent access to the
265 | Corresponding Source in the same way through the same place at no
266 | further charge. You need not require recipients to copy the
267 | Corresponding Source along with the object code. If the place to
268 | copy the object code is a network server, the Corresponding Source
269 | may be on a different server (operated by you or a third party)
270 | that supports equivalent copying facilities, provided you maintain
271 | clear directions next to the object code saying where to find the
272 | Corresponding Source. Regardless of what server hosts the
273 | Corresponding Source, you remain obligated to ensure that it is
274 | available for as long as needed to satisfy these requirements.
275 |
276 | e) Convey the object code using peer-to-peer transmission, provided
277 | you inform other peers where the object code and Corresponding
278 | Source of the work are being offered to the general public at no
279 | charge under subsection 6d.
280 |
281 | A separable portion of the object code, whose source code is excluded
282 | from the Corresponding Source as a System Library, need not be
283 | included in conveying the object code work.
284 |
285 | A "User Product" is either (1) a "consumer product", which means any
286 | tangible personal property which is normally used for personal, family,
287 | or household purposes, or (2) anything designed or sold for incorporation
288 | into a dwelling. In determining whether a product is a consumer product,
289 | doubtful cases shall be resolved in favor of coverage. For a particular
290 | product received by a particular user, "normally used" refers to a
291 | typical or common use of that class of product, regardless of the status
292 | of the particular user or of the way in which the particular user
293 | actually uses, or expects or is expected to use, the product. A product
294 | is a consumer product regardless of whether the product has substantial
295 | commercial, industrial or non-consumer uses, unless such uses represent
296 | the only significant mode of use of the product.
297 |
298 | "Installation Information" for a User Product means any methods,
299 | procedures, authorization keys, or other information required to install
300 | and execute modified versions of a covered work in that User Product from
301 | a modified version of its Corresponding Source. The information must
302 | suffice to ensure that the continued functioning of the modified object
303 | code is in no case prevented or interfered with solely because
304 | modification has been made.
305 |
306 | If you convey an object code work under this section in, or with, or
307 | specifically for use in, a User Product, and the conveying occurs as
308 | part of a transaction in which the right of possession and use of the
309 | User Product is transferred to the recipient in perpetuity or for a
310 | fixed term (regardless of how the transaction is characterized), the
311 | Corresponding Source conveyed under this section must be accompanied
312 | by the Installation Information. But this requirement does not apply
313 | if neither you nor any third party retains the ability to install
314 | modified object code on the User Product (for example, the work has
315 | been installed in ROM).
316 |
317 | The requirement to provide Installation Information does not include a
318 | requirement to continue to provide support service, warranty, or updates
319 | for a work that has been modified or installed by the recipient, or for
320 | the User Product in which it has been modified or installed. Access to a
321 | network may be denied when the modification itself materially and
322 | adversely affects the operation of the network or violates the rules and
323 | protocols for communication across the network.
324 |
325 | Corresponding Source conveyed, and Installation Information provided,
326 | in accord with this section must be in a format that is publicly
327 | documented (and with an implementation available to the public in
328 | source code form), and must require no special password or key for
329 | unpacking, reading or copying.
330 |
331 | 7. Additional Terms.
332 |
333 | "Additional permissions" are terms that supplement the terms of this
334 | License by making exceptions from one or more of its conditions.
335 | Additional permissions that are applicable to the entire Program shall
336 | be treated as though they were included in this License, to the extent
337 | that they are valid under applicable law. If additional permissions
338 | apply only to part of the Program, that part may be used separately
339 | under those permissions, but the entire Program remains governed by
340 | this License without regard to the additional permissions.
341 |
342 | When you convey a copy of a covered work, you may at your option
343 | remove any additional permissions from that copy, or from any part of
344 | it. (Additional permissions may be written to require their own
345 | removal in certain cases when you modify the work.) You may place
346 | additional permissions on material, added by you to a covered work,
347 | for which you have or can give appropriate copyright permission.
348 |
349 | Notwithstanding any other provision of this License, for material you
350 | add to a covered work, you may (if authorized by the copyright holders of
351 | that material) supplement the terms of this License with terms:
352 |
353 | a) Disclaiming warranty or limiting liability differently from the
354 | terms of sections 15 and 16 of this License; or
355 |
356 | b) Requiring preservation of specified reasonable legal notices or
357 | author attributions in that material or in the Appropriate Legal
358 | Notices displayed by works containing it; or
359 |
360 | c) Prohibiting misrepresentation of the origin of that material, or
361 | requiring that modified versions of such material be marked in
362 | reasonable ways as different from the original version; or
363 |
364 | d) Limiting the use for publicity purposes of names of licensors or
365 | authors of the material; or
366 |
367 | e) Declining to grant rights under trademark law for use of some
368 | trade names, trademarks, or service marks; or
369 |
370 | f) Requiring indemnification of licensors and authors of that
371 | material by anyone who conveys the material (or modified versions of
372 | it) with contractual assumptions of liability to the recipient, for
373 | any liability that these contractual assumptions directly impose on
374 | those licensors and authors.
375 |
376 | All other non-permissive additional terms are considered "further
377 | restrictions" within the meaning of section 10. If the Program as you
378 | received it, or any part of it, contains a notice stating that it is
379 | governed by this License along with a term that is a further
380 | restriction, you may remove that term. If a license document contains
381 | a further restriction but permits relicensing or conveying under this
382 | License, you may add to a covered work material governed by the terms
383 | of that license document, provided that the further restriction does
384 | not survive such relicensing or conveying.
385 |
386 | If you add terms to a covered work in accord with this section, you
387 | must place, in the relevant source files, a statement of the
388 | additional terms that apply to those files, or a notice indicating
389 | where to find the applicable terms.
390 |
391 | Additional terms, permissive or non-permissive, may be stated in the
392 | form of a separately written license, or stated as exceptions;
393 | the above requirements apply either way.
394 |
395 | 8. Termination.
396 |
397 | You may not propagate or modify a covered work except as expressly
398 | provided under this License. Any attempt otherwise to propagate or
399 | modify it is void, and will automatically terminate your rights under
400 | this License (including any patent licenses granted under the third
401 | paragraph of section 11).
402 |
403 | However, if you cease all violation of this License, then your
404 | license from a particular copyright holder is reinstated (a)
405 | provisionally, unless and until the copyright holder explicitly and
406 | finally terminates your license, and (b) permanently, if the copyright
407 | holder fails to notify you of the violation by some reasonable means
408 | prior to 60 days after the cessation.
409 |
410 | Moreover, your license from a particular copyright holder is
411 | reinstated permanently if the copyright holder notifies you of the
412 | violation by some reasonable means, this is the first time you have
413 | received notice of violation of this License (for any work) from that
414 | copyright holder, and you cure the violation prior to 30 days after
415 | your receipt of the notice.
416 |
417 | Termination of your rights under this section does not terminate the
418 | licenses of parties who have received copies or rights from you under
419 | this License. If your rights have been terminated and not permanently
420 | reinstated, you do not qualify to receive new licenses for the same
421 | material under section 10.
422 |
423 | 9. Acceptance Not Required for Having Copies.
424 |
425 | You are not required to accept this License in order to receive or
426 | run a copy of the Program. Ancillary propagation of a covered work
427 | occurring solely as a consequence of using peer-to-peer transmission
428 | to receive a copy likewise does not require acceptance. However,
429 | nothing other than this License grants you permission to propagate or
430 | modify any covered work. These actions infringe copyright if you do
431 | not accept this License. Therefore, by modifying or propagating a
432 | covered work, you indicate your acceptance of this License to do so.
433 |
434 | 10. Automatic Licensing of Downstream Recipients.
435 |
436 | Each time you convey a covered work, the recipient automatically
437 | receives a license from the original licensors, to run, modify and
438 | propagate that work, subject to this License. You are not responsible
439 | for enforcing compliance by third parties with this License.
440 |
441 | An "entity transaction" is a transaction transferring control of an
442 | organization, or substantially all assets of one, or subdividing an
443 | organization, or merging organizations. If propagation of a covered
444 | work results from an entity transaction, each party to that
445 | transaction who receives a copy of the work also receives whatever
446 | licenses to the work the party's predecessor in interest had or could
447 | give under the previous paragraph, plus a right to possession of the
448 | Corresponding Source of the work from the predecessor in interest, if
449 | the predecessor has it or can get it with reasonable efforts.
450 |
451 | You may not impose any further restrictions on the exercise of the
452 | rights granted or affirmed under this License. For example, you may
453 | not impose a license fee, royalty, or other charge for exercise of
454 | rights granted under this License, and you may not initiate litigation
455 | (including a cross-claim or counterclaim in a lawsuit) alleging that
456 | any patent claim is infringed by making, using, selling, offering for
457 | sale, or importing the Program or any portion of it.
458 |
459 | 11. Patents.
460 |
461 | A "contributor" is a copyright holder who authorizes use under this
462 | License of the Program or a work on which the Program is based. The
463 | work thus licensed is called the contributor's "contributor version".
464 |
465 | A contributor's "essential patent claims" are all patent claims
466 | owned or controlled by the contributor, whether already acquired or
467 | hereafter acquired, that would be infringed by some manner, permitted
468 | by this License, of making, using, or selling its contributor version,
469 | but do not include claims that would be infringed only as a
470 | consequence of further modification of the contributor version. For
471 | purposes of this definition, "control" includes the right to grant
472 | patent sublicenses in a manner consistent with the requirements of
473 | this License.
474 |
475 | Each contributor grants you a non-exclusive, worldwide, royalty-free
476 | patent license under the contributor's essential patent claims, to
477 | make, use, sell, offer for sale, import and otherwise run, modify and
478 | propagate the contents of its contributor version.
479 |
480 | In the following three paragraphs, a "patent license" is any express
481 | agreement or commitment, however denominated, not to enforce a patent
482 | (such as an express permission to practice a patent or covenant not to
483 | sue for patent infringement). To "grant" such a patent license to a
484 | party means to make such an agreement or commitment not to enforce a
485 | patent against the party.
486 |
487 | If you convey a covered work, knowingly relying on a patent license,
488 | and the Corresponding Source of the work is not available for anyone
489 | to copy, free of charge and under the terms of this License, through a
490 | publicly available network server or other readily accessible means,
491 | then you must either (1) cause the Corresponding Source to be so
492 | available, or (2) arrange to deprive yourself of the benefit of the
493 | patent license for this particular work, or (3) arrange, in a manner
494 | consistent with the requirements of this License, to extend the patent
495 | license to downstream recipients. "Knowingly relying" means you have
496 | actual knowledge that, but for the patent license, your conveying the
497 | covered work in a country, or your recipient's use of the covered work
498 | in a country, would infringe one or more identifiable patents in that
499 | country that you have reason to believe are valid.
500 |
501 | If, pursuant to or in connection with a single transaction or
502 | arrangement, you convey, or propagate by procuring conveyance of, a
503 | covered work, and grant a patent license to some of the parties
504 | receiving the covered work authorizing them to use, propagate, modify
505 | or convey a specific copy of the covered work, then the patent license
506 | you grant is automatically extended to all recipients of the covered
507 | work and works based on it.
508 |
509 | A patent license is "discriminatory" if it does not include within
510 | the scope of its coverage, prohibits the exercise of, or is
511 | conditioned on the non-exercise of one or more of the rights that are
512 | specifically granted under this License. You may not convey a covered
513 | work if you are a party to an arrangement with a third party that is
514 | in the business of distributing software, under which you make payment
515 | to the third party based on the extent of your activity of conveying
516 | the work, and under which the third party grants, to any of the
517 | parties who would receive the covered work from you, a discriminatory
518 | patent license (a) in connection with copies of the covered work
519 | conveyed by you (or copies made from those copies), or (b) primarily
520 | for and in connection with specific products or compilations that
521 | contain the covered work, unless you entered into that arrangement,
522 | or that patent license was granted, prior to 28 March 2007.
523 |
524 | Nothing in this License shall be construed as excluding or limiting
525 | any implied license or other defenses to infringement that may
526 | otherwise be available to you under applicable patent law.
527 |
528 | 12. No Surrender of Others' Freedom.
529 |
530 | If conditions are imposed on you (whether by court order, agreement or
531 | otherwise) that contradict the conditions of this License, they do not
532 | excuse you from the conditions of this License. If you cannot convey a
533 | covered work so as to satisfy simultaneously your obligations under this
534 | License and any other pertinent obligations, then as a consequence you may
535 | not convey it at all. For example, if you agree to terms that obligate you
536 | to collect a royalty for further conveying from those to whom you convey
537 | the Program, the only way you could satisfy both those terms and this
538 | License would be to refrain entirely from conveying the Program.
539 |
540 | 13. Remote Network Interaction; Use with the GNU General Public License.
541 |
542 | Notwithstanding any other provision of this License, if you modify the
543 | Program, your modified version must prominently offer all users
544 | interacting with it remotely through a computer network (if your version
545 | supports such interaction) an opportunity to receive the Corresponding
546 | Source of your version by providing access to the Corresponding Source
547 | from a network server at no charge, through some standard or customary
548 | means of facilitating copying of software. This Corresponding Source
549 | shall include the Corresponding Source for any work covered by version 3
550 | of the GNU General Public License that is incorporated pursuant to the
551 | following paragraph.
552 |
553 | Notwithstanding any other provision of this License, you have
554 | permission to link or combine any covered work with a work licensed
555 | under version 3 of the GNU General Public License into a single
556 | combined work, and to convey the resulting work. The terms of this
557 | License will continue to apply to the part which is the covered work,
558 | but the work with which it is combined will remain governed by version
559 | 3 of the GNU General Public License.
560 |
561 | 14. Revised Versions of this License.
562 |
563 | The Free Software Foundation may publish revised and/or new versions of
564 | the GNU Affero General Public License from time to time. Such new versions
565 | will be similar in spirit to the present version, but may differ in detail to
566 | address new problems or concerns.
567 |
568 | Each version is given a distinguishing version number. If the
569 | Program specifies that a certain numbered version of the GNU Affero General
570 | Public License "or any later version" applies to it, you have the
571 | option of following the terms and conditions either of that numbered
572 | version or of any later version published by the Free Software
573 | Foundation. If the Program does not specify a version number of the
574 | GNU Affero General Public License, you may choose any version ever published
575 | by the Free Software Foundation.
576 |
577 | If the Program specifies that a proxy can decide which future
578 | versions of the GNU Affero General Public License can be used, that proxy's
579 | public statement of acceptance of a version permanently authorizes you
580 | to choose that version for the Program.
581 |
582 | Later license versions may give you additional or different
583 | permissions. However, no additional obligations are imposed on any
584 | author or copyright holder as a result of your choosing to follow a
585 | later version.
586 |
587 | 15. Disclaimer of Warranty.
588 |
589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597 |
598 | 16. Limitation of Liability.
599 |
600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608 | SUCH DAMAGES.
609 |
610 | 17. Interpretation of Sections 15 and 16.
611 |
612 | If the disclaimer of warranty and limitation of liability provided
613 | above cannot be given local legal effect according to their terms,
614 | reviewing courts shall apply local law that most closely approximates
615 | an absolute waiver of all civil liability in connection with the
616 | Program, unless a warranty or assumption of liability accompanies a
617 | copy of the Program in return for a fee.
618 |
619 | END OF TERMS AND CONDITIONS
620 |
621 | How to Apply These Terms to Your New Programs
622 |
623 | If you develop a new program, and you want it to be of the greatest
624 | possible use to the public, the best way to achieve this is to make it
625 | free software which everyone can redistribute and change under these terms.
626 |
627 | To do so, attach the following notices to the program. It is safest
628 | to attach them to the start of each source file to most effectively
629 | state the exclusion of warranty; and each file should have at least
630 | the "copyright" line and a pointer to where the full notice is found.
631 |
632 |
633 | Copyright (C)
634 |
635 | This program is free software: you can redistribute it and/or modify
636 | it under the terms of the GNU Affero General Public License as published
637 | by the Free Software Foundation, either version 3 of the License, or
638 | (at your option) any later version.
639 |
640 | This program is distributed in the hope that it will be useful,
641 | but WITHOUT ANY WARRANTY; without even the implied warranty of
642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643 | GNU Affero General Public License for more details.
644 |
645 | You should have received a copy of the GNU Affero General Public License
646 | along with this program. If not, see .
647 |
648 | Also add information on how to contact you by electronic and paper mail.
649 |
650 | If your software can interact with users remotely through a computer
651 | network, you should also make sure that it provides a way for users to
652 | get its source. For example, if your program is a web application, its
653 | interface could display a "Source" link that leads users to an archive
654 | of the code. There are many ways you could offer source, and different
655 | solutions will be better for different programs; see section 13 for the
656 | specific requirements.
657 |
658 | You should also get your employer (if you work as a programmer) or school,
659 | if any, to sign a "copyright disclaimer" for the program, if necessary.
660 | For more information on this, and how to apply and follow the GNU AGPL, see
661 | .
662 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # binGraph.py
2 | A tool to graph files for quick visual analysis of binary files
3 |
4 | Feel free to use this project (in its entirety) in other tools, and please provide attribution back to the project.
5 |
6 | Creates matplotlib graphs to represent different aspects of a file (usually malware). Focusing on entropy.
7 |
8 | Given a file(s) (with ```--file```) different graphs can be generated (e.g. ```ent```, ```hist``` etc.) or ```all``` can be used to generate all the graphs available.
9 |
10 | Below are the ```--help ``` options:
11 |
12 | ```
13 | $ python binGraph.py --help
14 | usage: binGraph.py [-h] -f malware.exe [malware.exe ...] [-r] [-] [--prefix]
15 | [--out /data/graphs/] [--json] [--graphtitle "file.exe"]
16 | [--showplt] [--format png] [--figsize # #] [--dpi 100]
17 | [--blob] [-v]
18 | {all,hist,ent} ...
19 |
20 | positional arguments:
21 | {all,hist,ent} Graph type to generate. Graphs can also be
22 | individually generated by running the in isolation:
23 | python graphs/ent/graph.py -f file.bin
24 |
25 | optional arguments:
26 | -h, --help show this help message and exit
27 | -f malware.exe [malware.exe ...], --file malware.exe [malware.exe ...]
28 | Give me a graph of this file. Provide a list of files
29 | with the "@files.txt" syntax (for example from a
30 | `find` command). See - if this is the only argument
31 | specified.
32 | -r, --recurse If --file is a directory, add files recursively
33 | - *** Required if --file or -f is the only argument
34 | given before a graph type is provided (it's greedy!).
35 | E.g. "binGraph.py --file mal.exe - bin_ent"
36 | --prefix Add this prefix to the saved filenames
37 | --out /data/graphs/ Where to save the graph files
38 | --json Ouput graphs as json with graph images encoded as
39 | Base64
40 | --graphtitle "file.exe"
41 | Given title for graphs
42 | --showplt Show plot interactively (disables saving to file)
43 | --format png Graph output format. All matplotlib outputs are
44 | supported: e.g. png, pdf, ps, eps, svg
45 | --figsize # # Figure width and height in inches
46 | --dpi 100 Figure dpi
47 | --blob Do not intelligently parse certain file types. Treat
48 | all files as a binary blob. E.g. don't add PE entry
49 | point or section splitter to the graph
50 | -v, --verbose Print debug information to stderr
51 | ```
52 |
53 | ## Binary Entropy - ent
54 | Shows the entropy over certain sized chunked samples of the binary file. The sample size is scaled to the ```--chunks``` option (defaults to 750). More chunks give mode detail, but can get messy! The ```--ibytes``` option provides a method to highlight certain bytes and their occurence within that sample set. This often has direct reflection to why entropy goes up or down - lots of 0's? Entropy line goes down, and 0's line go up!
55 | ```--ibytes``` must be an list of json dictionaries. Dictionaries must contain a ```"name"```, and ```"bytes"``` values. ```"bytes"``` is an array of integers which are interpretted as hex bytes. The optional ```"colour"``` value can be a matplotlib colour (e.g. r, b or hex with/or without alpha), or not defined (in this case a seeded value is used)
56 |
57 | 
58 | !MALWARE! Sample from: https://cape.contextis.com/analysis/20194/
59 | ```
60 | $ python binGraph.py ent --help
61 | usage: binGraph.py ent [-h] [-c 750] [--ibytes [{ "name":"0s", "bytes":[0] },
62 | { "name":"Exploit", "bytes":[44, 144], "colour":"r" }]]
63 | [--entcolour #cf3da2ff]
64 |
65 | optional arguments:
66 | -h, --help show this help message and exit
67 | -c 750, --chunks 750 Defines how many chunks the binary is split into (and
68 | therefore the amount of bytes submitted for shannon
69 | sampling per time). Higher number gives more detail
70 | --ibytes [ { "name":"0s", "bytes":[0] }, { "name":"Exploit", "bytes":[44, 144], "colour":"r" } ]
71 | Bytes occurances to add to the graph - used to add
72 | extra visability into the type of bytes included in
73 | the binary. To disable this option, set the flag
74 | without an argument. The "name" value is the name of
75 | the bytes for the legend, the "bytes" value is the
76 | bytes to count the percentage of per section, the
77 | "colour" value maybe a matplotlib colour ( r,g,b
78 | etc.), a hex with or without an alpha value, or not
79 | defined (a seeded colour is chosen). The easiest way
80 | to construct these values is to create a dictionary
81 | and convert it using 'print(json.loads(dict))'
82 | --entcolour #cf3da2ff
83 | Colour of the Entropy line
84 | ```
85 |
86 | ## Binary Histogram - hist
87 | Provides an insight into the occurence of all bytes in the file. Two graphs are overlayed, the red graph shows bytes 0x00 to 0xFF in order. The blue graph shows the same bytes, ordered by count, this shows the overall distribution.
88 |
89 | 
90 | !MALWARE! Sample from: https://cape.contextis.com/analysis/20194/
91 | ```
92 | $ python binGraph.py hist --help
93 | usage: binGraph.py hist [-h] [--no_zero] [--width 1] [--no_log] [--no_order]
94 | [--colours #ff01d5 #ff01d5]
95 |
96 | optional arguments:
97 | -h, --help show this help message and exit
98 | --no_zero Remove 0x00 from the graph, sometimes this blows other
99 | results due to there being numerous amounts - also see
100 | --no_log
101 | --width 1 Sample width
102 | --no_log Do _not_ apply a log scale to occurance axis
103 | --no_order Remove the ordered histogram - It shows overall
104 | distribution when on
105 | --colours #ff01d5 #ff01d5
106 | Colours for the graph. First value is the ordered graph
107 | ```
108 |
109 | # To do:
110 |
111 | - Read from stdin for use with other tools such as Didier Stevens's zipdump.py - Kaitai allows binary array input
112 | - ent graph (and others) to use Kaitai as the parser instead of third party libs - bit more extensible
113 | - Add extra graph types - Hilbert curve
--------------------------------------------------------------------------------
/binGraph/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geekscrapy/binGraph/e149a06305316e215815fb0c5011b424a1865ace/binGraph/__init__.py
--------------------------------------------------------------------------------
/binGraph/__main__.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | """
3 | The main entry point. Invoke as `binGraph' or `python -m binGraph'.
4 |
5 | """
6 |
7 | import sys
8 | from .binGraph import main
9 |
10 | if __name__ == '__main__':
11 | sys.exit(main())
12 |
--------------------------------------------------------------------------------
/binGraph/binGraph.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | # encoding: utf-8
3 |
4 | from __future__ import absolute_import
5 | import sys
6 | import pkgutil
7 | import os
8 | import logging
9 | import argparse
10 | import io
11 | import base64
12 | import json
13 | import datetime
14 |
15 | __version__ = {}
16 | __version__["codename"] = "Iron Airedale" # http://www.codenamegenerator.com/?prefix=metal&dictionary=dogs
17 | __version__["digit"] = 3.3
18 | __version__["run_date"] = datetime.datetime.now().isoformat()
19 |
20 |
21 | # ## Global graphing default values
22 | __figformat__ = "png" # Output format of saved figure
23 | __figsize__ = (12, 4) # Size of figure in inches
24 | __figdpi__ = 100 # DPI of figure
25 | __json__ = False # Show the plot interactively
26 | __showplt__ = False # Show the plot interactively
27 | __blob__ = False # Treat all files as binary blobs. Disable intelligently parsing of file format specific features.
28 |
29 | # ## Logging
30 | # # Lower the matplotlib logger
31 | logging.getLogger("matplotlib").setLevel(logging.CRITICAL)
32 |
33 | # # Setup logging format
34 | # logging.basicConfig(stream=sys.stderr, format='%(name)s | %(levelname)s | %(message)s')
35 | log = logging.getLogger("binGraph")
36 | log.setLevel(logging.INFO)
37 |
38 | # ### Helper functions
39 |
40 |
41 | def File2Strings(filename):
42 | try:
43 | f = open(filename, "r")
44 | except:
45 | return None
46 | try:
47 | return [line.rstrip("\n") for line in f.readlines()]
48 | except:
49 | return None
50 | finally:
51 | f.close()
52 |
53 |
54 | # # Gather files to process - give it a list of paths (files or directories)
55 | # # and it will return all files in a list
56 | def find_files(search_paths, recurse):
57 |
58 | __files__ = []
59 | for f in search_paths:
60 |
61 | if recurse and os.path.isdir(f):
62 |
63 | for dir_name, dirs, files in os.walk(f):
64 | log.debug("Found directory: {}".format(dir_name))
65 |
66 | for fname in files:
67 | abs_fpath = os.path.join(dir_name, fname)
68 |
69 | if os.path.isfile(abs_fpath) and not os.path.islink(abs_fpath) and not os.stat(abs_fpath).st_size == 0:
70 | log.info('File found: "{}"'.format(abs_fpath))
71 | __files__.append(abs_fpath)
72 |
73 | elif os.path.isfile(f) and not os.path.islink(f) and not os.stat(f).st_size == 0:
74 | abs_fpath = os.path.abspath(f)
75 | log.debug('Found file: "{}"'.format(abs_fpath))
76 | __files__.append(abs_fpath)
77 |
78 | else:
79 | log.critical('Not a file, skipping: "{}"'.format(f))
80 | pass
81 |
82 | return __files__
83 |
84 |
85 | # # Cleanup given filename
86 | def clean_fname(fn):
87 |
88 | return "".join([c for c in fn if c.isalnum()])
89 |
90 |
91 | # # Generate the different file names required
92 | def gen_names(ffrmt, abs_fpath, abs_save_path, save_prefix=None, graphtype=None, findex=None):
93 |
94 | base_save_fname = "{prefix}-{findex}-{graphtype}-{cleaned_fname}.{ffrmt}"
95 |
96 | if save_prefix:
97 | save_fname = base_save_fname.replace("{prefix}", save_prefix)
98 | else:
99 | save_fname = base_save_fname.replace("{prefix}-", "")
100 |
101 | save_fname = save_fname.replace("{graphtype}", graphtype)
102 |
103 | cleaned_fname = clean_fname(os.path.basename(abs_fpath))
104 |
105 | if type(findex) == int:
106 | save_fname = save_fname.replace("{findex}", str(findex))
107 | save_fname = save_fname.replace("{cleaned_fname}", cleaned_fname)
108 | else:
109 | save_fname = save_fname.replace("{findex}-", "")
110 | save_fname = save_fname.replace("-{cleaned_fname}", "")
111 |
112 | save_fname = save_fname.replace("{ffrmt}", ffrmt)
113 |
114 | abs_save_fpath = os.path.join(abs_save_path, save_fname)
115 |
116 | return abs_save_fpath, os.path.basename(abs_fpath), cleaned_fname
117 |
118 |
119 | # # Dynamically import graphtypes
120 | def get_graph_modules():
121 |
122 | graphs_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "graphs")
123 | graph_individuals = [x[0] for x in os.walk(graphs_dir)][1:]
124 |
125 | modules = {}
126 |
127 | for graph in graph_individuals:
128 |
129 | for importer, package_name, _ in pkgutil.iter_modules([graph]):
130 |
131 | if sys.version_info[0] < 3:
132 | full_package_name = "{}".format(os.path.basename(graph))
133 | else:
134 | full_package_name = "{}.graph".format(os.path.basename(graph), package_name)
135 |
136 | if not (full_package_name in sys.modules):
137 |
138 | if sys.version_info[0] < 3:
139 | module = importer.find_module("graph", graph)
140 | else:
141 | module = importer.find_module(full_package_name)
142 |
143 | if module:
144 | module = module.load_module(full_package_name)
145 |
146 | modules[os.path.basename(graph)] = module
147 |
148 | return modules
149 |
150 |
151 | # # Try and import the graphs
152 | try:
153 | graphs = get_graph_modules()
154 | except Exception as e:
155 | log.critical("Failed to import graph: {}".format(e))
156 | exit(0)
157 |
158 | # # Main routine - import this and provide a
159 | def generate_graphs(args_dict):
160 | log.debug("args_dict = " + str(args_dict))
161 | """
162 | Dictionary of arguments to generate the graphs.
163 | See individual graphs for possible arguments
164 |
165 | args_dict = {
166 | 'files': ['/home/molley/bad_file.exe'],
167 | 'recurse': False,
168 | '__dummy': False,
169 | 'prefix': None,
170 | 'save_dir': '/home/molley/output/',
171 | 'json': False,
172 | 'graphtitle': None,
173 | 'showplt': False,
174 | 'format': 'png',
175 | 'figsize': (12, 4),
176 | 'dpi': 100,
177 | 'blob': False,
178 | 'verbose': False,
179 | 'graphtype': 'ent',
180 | 'chunks': 750,
181 | 'ibytes': [{
182 | 'name': '0s',
183 | 'bytes': [0],
184 | 'colour': (0.0, 1.0, 0.0, 1.0)
185 | }],
186 | 'entcolour': '#ff00ff'
187 | }
188 | """
189 |
190 | # # Set logging
191 | if args_dict.get("verbose", False):
192 | logging.getLogger().setLevel(logging.DEBUG)
193 | logging.getLogger("matplotlib").setLevel(logging.WARNING)
194 |
195 | # # Detect if all graphs are being requested
196 | __graphtypes__ = []
197 | if args_dict["graphtype"] == "all":
198 | __graphtypes__ = graphs
199 | else:
200 | __graphtypes__ = {args_dict["graphtype"]: graphs[args_dict["graphtype"]]}
201 |
202 | log.debug("Generating graphs: {}".format(", ".join(list(__graphtypes__.keys()))))
203 |
204 | # # Iterate over all given files
205 | for index, abs_fpath in enumerate(args_dict["files"]):
206 | log.debug('Processing: "{}"'.format(abs_fpath))
207 |
208 | for module_name, module in __graphtypes__.items():
209 | abs_save_fpath, fname, cleaned_fname = gen_names(
210 | args_dict["format"],
211 | abs_fpath,
212 | args_dict["save_dir"],
213 | save_prefix=args_dict["prefix"],
214 | graphtype=module_name,
215 | findex=(index if len(args_dict["files"]) > 1 else None),
216 | )
217 | args_dict["abs_fpath"] = abs_fpath # Define the current file we are acting on
218 | args_dict["fname"] = fname
219 | args_dict["cleaned_fname"] = cleaned_fname
220 |
221 | # # Generate and output the graph
222 | plt, save_kwargs, json_data = module.generate(**args_dict)
223 | fig = plt.gcf()
224 | fig.set_size_inches(*args_dict["figsize"], forward=True)
225 |
226 | plt.tight_layout()
227 |
228 | if args_dict["showplt"]:
229 | log.info("Opening graph interactively")
230 | plt.show()
231 |
232 | elif args_dict["json"]:
233 | log.info("Saving as json file")
234 |
235 | output = {}
236 | output["info"] = json_data
237 |
238 | buf = io.BytesIO()
239 | plt.savefig(buf, format=args_dict["format"], dpi=args_dict["dpi"], **save_kwargs)
240 | output["graph"] = base64.b64encode(buf.getvalue()).decode()
241 | buf.close()
242 |
243 | output["cmdline"] = " ".join(args_dict)
244 | output["version"] = __version__
245 |
246 | abs_save_fpath = os.path.splitext(abs_save_fpath)[0] + ".json"
247 | with open(abs_save_fpath, "w") as outfile:
248 | json.dump(output, outfile)
249 |
250 | log.info('Graph saved to: "{}"'.format(abs_save_fpath))
251 |
252 | else:
253 | plt.savefig(abs_save_fpath, format=args_dict["format"], dpi=args_dict["dpi"], **save_kwargs)
254 | log.info('Graph saved to: "{}"'.format(abs_save_fpath))
255 |
256 | plt.clf()
257 | plt.cla()
258 | plt.close()
259 |
260 | def main():
261 |
262 | # # Import the defaults
263 | parser = argparse.ArgumentParser()
264 | parser.add_argument(
265 | "-f",
266 | "--file",
267 | dest="files",
268 | type=str,
269 | required=True,
270 | nargs="+",
271 | metavar="malware.exe",
272 | help='Give me a graph of these files (space separated). Provide a list of files with the "@files.txt" syntax (for example output from the `find` command). See - if this is the only argument specified.',
273 | )
274 | parser.add_argument("-r", "--recurse", action="store_true", help="If --file is a directory, add files recursively")
275 | parser.add_argument(
276 | "-",
277 | dest="__dummy",
278 | action="store_true",
279 | help='*** Required if --file or -f is the only argument given before a graph type is provided (it\'s greedy!). E.g. "binGraph.py --file mal.exe - bin_ent"',
280 | )
281 | parser.add_argument("--prefix", type=str, metavar="", help="Add this prefix to the saved filenames")
282 | parser.add_argument(
283 | "--out", type=str, dest="save_dir", default=os.getcwd(), metavar="/data/graphs/", help="Where to save the graph files"
284 | )
285 | parser.add_argument(
286 | "--json", action="store_true", default=__json__, help="Ouput graphs as json with graph images encoded as Base64"
287 | )
288 | parser.add_argument("--graphtitle", type=str, metavar='"file.exe"', default=None, help="Given title for graphs")
289 | parser.add_argument(
290 | "--showplt", action="store_true", default=__showplt__, help="Show plot interactively (disables saving to file)"
291 | )
292 | parser.add_argument(
293 | "--format",
294 | type=str,
295 | default=__figformat__,
296 | choices=["png", "pdf", "ps", "eps", "svg"],
297 | required=False,
298 | metavar="png",
299 | help="Graph output format. All matplotlib outputs are supported: e.g. png, pdf, ps, eps, svg",
300 | )
301 | parser.add_argument("--figsize", type=int, nargs=2, default=__figsize__, metavar="#", help="Figure width and height in inches")
302 | parser.add_argument("--dpi", type=int, default=__figdpi__, metavar=__figdpi__, help="Figure dpi")
303 | parser.add_argument(
304 | "--blob",
305 | action="store_true",
306 | default=__blob__,
307 | help="Do not intelligently parse certain file types. Treat all files as a binary blob. E.g. don't add PE entry point or section splitter to the graph",
308 | )
309 | parser.add_argument("-v", "--verbose", action="store_true", help="Print debug information to stderr")
310 |
311 | subparsers = parser.add_subparsers(
312 | dest="graphtype",
313 | help="Graph type to generate. Graphs can also be individually generated by running the in isolation: python graphs/ent/graph.py -f file.bin",
314 | )
315 | subparsers.required = True
316 |
317 | subparsers.add_parser("all")
318 |
319 | # # Loop over all graph types to add their graph specific options
320 | for name, module in graphs.items():
321 | module_parser = subparsers.add_parser(name)
322 | module.args_setup(module_parser)
323 |
324 | args = parser.parse_args()
325 |
326 | ## # Verify global arguments
327 |
328 | # # Get a list of files from the arguments
329 | __files__ = []
330 | for file in args.files:
331 | if file.startswith("@"):
332 | files = File2Strings(file[1:])
333 | if files is None:
334 | raise Exception("Error reading {}".format(file))
335 | __files__ += list(files)
336 | else:
337 | __files__ += find_files([file], args.recurse)
338 |
339 | args.files = __files__
340 |
341 | # # Is the save_dir actually a dirctory?
342 | args.save_dir = os.path.abspath(args.save_dir)
343 | if not os.path.isdir(args.save_dir):
344 | log.critical("--out is not a directory: {}".format(args.save_dir))
345 | exit(1)
346 |
347 | # # Detect if all graphs are being requested
348 | __graphtypes__ = []
349 | if args.graphtype == "all":
350 | __graphtypes__ = graphs
351 | else:
352 | __graphtypes__ = {args.graphtype: graphs[args.graphtype]}
353 | # # Allow graph modules to verify if their arguments have been set correctly
354 | for name, module in __graphtypes__.items():
355 | module.args_validation(args)
356 |
357 | generate_graphs(args.__dict__)
358 |
359 | if __name__ == '__main__':
360 | main()
361 |
--------------------------------------------------------------------------------
/binGraph/graphs/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geekscrapy/binGraph/e149a06305316e215815fb0c5011b424a1865ace/binGraph/graphs/__init__.py
--------------------------------------------------------------------------------
/binGraph/graphs/ent/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geekscrapy/binGraph/e149a06305316e215815fb0c5011b424a1865ace/binGraph/graphs/ent/__init__.py
--------------------------------------------------------------------------------
/binGraph/graphs/ent/graph.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 |
3 | """
4 | Entropy and byte occurrence analysis over all file
5 | -------------------------------------------
6 | abs_fpath str: Absolute file path - File to load and analyse
7 | fname str: Filename
8 | blob bool: Do not intelligently parse certain file types. Treat all files as a binary blob. E.g. don\'t add PE entry point or section splitter to the graph
9 |
10 | chunks int: How many chunks to split the file over. Smaller chunks give a more averaged graph, a larger number of chunks give more detail
11 | ibytes list of dicts: Dicts are interesting bytes wanting to be displayed on the graph. These can often show relationships and reason for dips or
12 | increases in entropy at particular points. Bytes within each type are defined as lists of _decimals_, _not_ hex. Fields are:
13 | name = The printed name
14 | bytes = The bytes to represent
15 | colour = The colour of the line
16 | entcolour str Colour of the entropy graph
17 | """
18 | from __future__ import division
19 |
20 | # # Import graph specific libs
21 | from __future__ import absolute_import
22 | import matplotlib
23 |
24 | matplotlib.use("Agg")
25 | import matplotlib.pyplot as plt
26 | import matplotlib.ticker as ticker
27 | from matplotlib.ticker import MaxNLocator
28 |
29 | import hashlib
30 | import numpy as np
31 | import statistics
32 | from collections import Counter
33 | import os
34 | import json
35 | import sys
36 | import re
37 |
38 | try:
39 | import pefile
40 | except ImportError as e1:
41 | try:
42 | import lief
43 | except ImportError as e2:
44 | pass
45 |
46 |
47 | # # Python 2/3 fix
48 | import json
49 |
50 | try:
51 | from json.decoder import JSONDecodeError
52 | except ImportError:
53 | JSONDecodeError = ValueError
54 |
55 | import logging
56 |
57 | log = logging.getLogger("graph.ent")
58 |
59 | # # Graph defaults
60 | __chunks__ = 750
61 | __ibytes__ = '[ {"name":"0\'s", "colour": "#15ff04", "bytes": [0]}, {"name":"Exploit", "bytes": [44,144], "colour":"#ff2b01"}, {"name":"Printable ASCII", "colour":"b", "bytes": [32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126]} ]'
62 | __ibytes_dict__ = json.loads(__ibytes__)
63 | __entcolour__ = "#ff00ff"
64 |
65 | # # Set args in args parse - the given parser is a sub parser
66 | def args_setup(arg_parser):
67 | arg_parser.add_argument(
68 | "-c",
69 | "--chunks",
70 | type=int,
71 | default=__chunks__,
72 | metavar="750",
73 | help="Defines how many chunks the binary is split into (and therefore the amount of bytes submitted for shannon sampling per time). Higher number gives more detail",
74 | )
75 | arg_parser.add_argument(
76 | "--ibytes",
77 | type=str,
78 | nargs="?",
79 | metavar=' { "name":"0s", "bytes":[0] }, { "name":"Exploit", "bytes":[44, 144], "colour":"r" } ',
80 | default=__ibytes__,
81 | help="""
82 | Bytes occurances to add to the graph - used to add extra visability into the type of bytes included in the binary. To disable this option, set the flag without an argument.
83 | The "name" value is the name of the bytes for the legend, the "bytes" value is the bytes to count the percentage of per section, the "colour" value maybe a matplotlib colour
84 | ( r,g,b etc.), a hex with or without an alpha value, or not defined (a seeded colour is chosen). The easiest way to construct these values is to create a dictionary and convert it using \'print(json.loads(dict))\'""",
85 | )
86 | arg_parser.add_argument("--entcolour", type=str, metavar="#cf3da2ff", default=__entcolour__, help="Colour of the Entropy line")
87 |
88 |
89 | # # Validate graph specific arguments - Set the defaults here
90 | class ArgValidationEx(Exception):
91 | pass
92 |
93 |
94 | def args_validation(args):
95 |
96 | # # Test to see what matplotlib backend is setup
97 | backend = matplotlib.get_backend()
98 | if not backend == "TkAgg":
99 | log.warning(
100 | '{} matplotlib backend in use. This graph generation was tested with "TkAgg", bugs may lie ahead...'.format(backend)
101 | )
102 |
103 | # # Test to see if we should use defaults
104 | if args.graphtype == "all":
105 | args.chunks = __chunks__
106 | args.ibytes = __ibytes__
107 | args.entcolour = __entcolour__
108 |
109 | # # Test ibytes is jalid json
110 | try:
111 | args.ibytes = json.loads(args.ibytes)
112 | except JSONDecodeError as e:
113 | raise ArgValidationEx('Error decoding json --ibytes value. {}: "{}"'.format(e, args.ibytes))
114 | except TypeError as e:
115 | args.ibytes = False
116 |
117 | # # Test to see if ibytes are sane
118 | if args.ibytes:
119 |
120 | ibytes_list = []
121 |
122 | for ib in args.ibytes:
123 |
124 | ibyte = {}
125 |
126 | if not type(ib) == dict:
127 | raise ArgValidationEx('Error validating --ibytes - value is not a dict: "{}"'.format(ibytes_list))
128 | elif type(ib) == dict:
129 | if not ("name" in list(ib.keys()) and "bytes" in list(ib.keys())):
130 | raise ArgValidationEx("Error validating --ibytes - name or bytes field not present: {}".format(ib))
131 |
132 | ibyte["name"] = ib["name"]
133 | ibyte["bytes"] = []
134 |
135 | if not len(ib["bytes"]) > 0:
136 | raise ArgValidationEx('Error validating --ibytes - Missing "bytes" values: {}'.format(ib))
137 |
138 | for b in ib["bytes"]:
139 | if not type(b) == int:
140 | raise ArgValidationEx('Error validating --ibytes is not an int: "{}"'.format(b))
141 | else:
142 | ibyte["bytes"].append(b)
143 |
144 | # # Get/set the colour if it exists
145 | if not "colour" in list(ib.keys()):
146 | log.warning("No colour defined for --ibytes byte range: {} {}".format(ib["name"], ib["bytes"]))
147 | ibyte["colour"] = matplotlib.colors.to_rgba(hash_colour(ib["name"]))
148 | else:
149 | ibyte["colour"] = matplotlib.colors.to_rgba(ib["colour"])
150 |
151 | else:
152 | raise ArgValidationEx("Error validating --ibytes: {}".format(ib))
153 |
154 | ibytes_list.append(ibyte)
155 |
156 | args.ibytes = ibytes_list
157 |
158 |
159 | # # Generate the graph
160 | def generate(abs_fpath, fname, blob, chunks=__chunks__, ibytes=__ibytes_dict__, **kwargs):
161 |
162 | with open(abs_fpath, "rb") as fh:
163 | log.debug('Opening: "{}"'.format(fname))
164 |
165 | # # Calculate the overall chunksize
166 | fs = os.fstat(fh.fileno()).st_size
167 | if chunks > fs:
168 | chunksize = 1
169 | nr_chunksize = 1
170 | else:
171 | chunksize = -(-fs // chunks)
172 | nr_chunksize = fs / chunks
173 |
174 | log.debug("Filesize: {}, Chunksize (rounded): {}, Chunksize: {}, Chunks: {}".format(fs, chunksize, nr_chunksize, chunks))
175 | log.debug("Using ibytes: {}".format(ibytes))
176 | log.debug("Producing shannon ent with chunksize {}".format(chunksize))
177 |
178 | for index, _ in enumerate(ibytes):
179 | ibytes[index]["percentages"] = []
180 |
181 | shannon_samples = []
182 | for chunk in get_chunk(fh, chunksize=chunksize):
183 |
184 | # # Calculate ent
185 | ent = shannon_ent(chunk)
186 | shannon_samples.append(ent)
187 |
188 | # # Calculate percentages of given bytes, if provided
189 | if ibytes:
190 | cbytes = Counter(chunk)
191 |
192 | for index, _ in enumerate(ibytes):
193 | occurrence = 0
194 | for b in ibytes[index]["bytes"]:
195 | occurrence += cbytes[b]
196 |
197 | ibytes[index]["percentages"].append((float(occurrence) / float(len(chunk))) * 100)
198 |
199 | log.debug('Closed: "{}"'.format(fname))
200 |
201 | # # Create the figure
202 | fig, host = plt.subplots()
203 | parsedbin = ""
204 | log.debug("Plotting shannon samples")
205 | host.plot(np.array(shannon_samples), label="Entropy", c=kwargs["entcolour"], zorder=1001, linewidth=1.2)
206 |
207 | host.set_ylabel("Entropy\n".format(chunksize))
208 | host.set_xlabel("File offset")
209 | host.xaxis.set_major_formatter(ticker.FuncFormatter(lambda x, pos: ("0x{:02X}".format(int(x * chunksize)))))
210 | host.xaxis.set_major_locator(MaxNLocator(10))
211 | plt.xticks(rotation=-10, ha="left")
212 |
213 | # # Draw the graphs in order
214 | zorder = 1000
215 |
216 | # # Plot individual byte percentages
217 | if ibytes:
218 |
219 | axBytePc = host.twinx()
220 | # axBytePc.set_ylabel('Occurrence of "interesting" bytes')
221 | axBytePc.yaxis.set_major_formatter(ticker.FuncFormatter(lambda x, pos: ("{:d}%".format(int(x)))))
222 |
223 | for index, _ in enumerate(ibytes):
224 | c = ibytes[index]["colour"]
225 | axBytePc.plot(
226 | np.array(ibytes[index]["percentages"]), label=ibytes[index]["name"], c=c, zorder=zorder, linewidth=1.2, alpha=0.75
227 | )
228 | zorder -= 1
229 |
230 | axBytePc.set_ybound(lower=-0.3, upper=101)
231 |
232 | # # Amount of space required between the title and graph elements (such as the section name)
233 | # # Append a \n if you need more space!
234 | title_gap = "\n"
235 |
236 | # # Filetype specific additions
237 | if blob:
238 | log.warning("Parsing file as blob (as requested)")
239 | else:
240 |
241 | bp = bin_proxy(abs_fpath)
242 |
243 | if None in (bp.bin, bp.type):
244 | log.warning("Failed to parse binary format, parsing like --blob")
245 |
246 | else:
247 |
248 | if bp.type == "PE":
249 |
250 | log.debug("Adding PE customisations")
251 |
252 | # # Entrypoint (EP) pointer and vline
253 | phy_ep_pointer = bp.get_physical_from_rva(bp.get_virtual_ep())
254 | if phy_ep_pointer:
255 | phy_ep_pointer = phy_ep_pointer / nr_chunksize
256 | log.debug("{}: {}".format("Entrypoint", hex(bp.get_virtual_ep())))
257 |
258 | host.axvline(x=phy_ep_pointer, linestyle=":", c="#0000ff", zorder=zorder - 1)
259 | host.text(x=phy_ep_pointer, y=1.07, s="EntryPoint", color="b", rotation=45, va="bottom", ha="left")
260 |
261 | end_of_last_section = 0
262 | longest_section_name = 0
263 |
264 | # # Section vlines
265 | for index, section in bp.sections():
266 | zorder -= 1
267 |
268 | section_name = safe_section_name(section.name, index)
269 | section_offset = section.offset / nr_chunksize
270 | section_size = section.size / nr_chunksize
271 |
272 | log.debug("{}: {}".format(section_name, hex(section.offset)))
273 |
274 | host.axvline(x=section_offset, linestyle="--", zorder=zorder)
275 | host.text(x=section_offset, y=1.07, s=section_name, rotation=45, va="bottom", ha="left")
276 |
277 | # # Get end of last section
278 | if (section_offset + section_size) > end_of_last_section:
279 | end_of_last_section = section_offset + section_size
280 |
281 | # # Get longest section name
282 | longest_section_name = len(section_name) if len(section_name) > longest_section_name else longest_section_name
283 |
284 | # # End of final section vline
285 | host.axvline(x=end_of_last_section, linestyle="--", zorder=zorder)
286 | host.text(x=end_of_last_section, y=1.07, s="Overlay", color="b", rotation=45, va="bottom", ha="left")
287 |
288 | # # Eval the space required to show the section names
289 | if longest_section_name <= 9:
290 | title_gap = "\n\n"
291 | elif longest_section_name <= 15:
292 | title_gap = "\n\n\n"
293 |
294 | elif bp.type == "ELF":
295 |
296 | log.debug("Adding ELF customisations")
297 |
298 | # # Entrypoint (EP) pointer and vline
299 | phy_ep_pointer = parsedbin.virtual_address_to_offset(parsedbin.header.entrypoint) / nr_chunksize
300 | log.debug("{}: {}".format("Entrypoint", hex(parsedbin.header.entrypoint)))
301 |
302 | host.axvline(x=phy_ep_pointer, linestyle=":", c="r", zorder=zorder - 1)
303 | host.text(x=phy_ep_pointer, y=1.07, s="Entry", rotation=45, va="bottom", ha="left")
304 |
305 | longest_section_name = 0
306 | # # Section vlines
307 | for index, section in enumerate(parsedbin.sections):
308 | zorder -= 1
309 |
310 | section_name = safe_section_name(section.name, index)
311 | section_offset = section.offset / nr_chunksize
312 |
313 | log.debug("{}: {}".format(section_name, hex(section.offset)))
314 |
315 | host.axvline(x=section_offset, linestyle="--", zorder=zorder)
316 | host.text(x=section_offset, y=1.07, s=section_name, rotation=45, va="bottom", ha="left")
317 |
318 | # # Get longest section name
319 | longest_section_name = len(section_name) if len(section_name) > longest_section_name else longest_section_name
320 |
321 | # # Eval the space required to show the section names
322 | if longest_section_name <= 5:
323 | title_gap = "\n" * 2
324 | elif longest_section_name <= 9:
325 | title_gap = "\n" * 3
326 | elif longest_section_name <= 15:
327 | title_gap = "\n" * 4
328 |
329 | else:
330 | log.debug("File is a currently unsupported format - (supported by lief, not yet supported by binGraph)")
331 |
332 | # # Plot the entropy graph
333 | host.set_xbound(lower=-0.5, upper=len(shannon_samples) + 0.5)
334 | host.set_ybound(lower=0, upper=1.05)
335 |
336 | # # Add legends + title (adjust for different options given)
337 | legends = []
338 | if ibytes:
339 | legends.append(host.legend(loc="upper left", bbox_to_anchor=(1.1, 1), frameon=False))
340 | legends.append(axBytePc.legend(loc="upper left", bbox_to_anchor=(1.1, 0.85), frameon=False))
341 | else:
342 | legends.append(host.legend(loc="upper left", bbox_to_anchor=(1.01, 1), frameon=False))
343 |
344 | host.set_title("{title_gap}".format(title_gap=title_gap))
345 |
346 | # # Return the plt, kwargs for the plt.savefig function, and additional information for json data
347 | json_data = {
348 | "title": fname,
349 | "info": {"Mean": statistics.mean(shannon_samples), "Standard deviation": statistics.stdev(shannon_samples)},
350 | }
351 |
352 | return plt, {"bbox_inches": "tight", "bbox_extra_artists": tuple(legends)}, json_data
353 |
354 |
355 | # ### Helper functions
356 |
357 | # # Abstracts the bin properties away from specific library calls enabling lief and pefile usage
358 | class bin_proxy(object):
359 | """Abstract for different binary parsers types in use"""
360 |
361 | def __init__(self, abs_fpath, lib=None):
362 | super(bin_proxy, self).__init__()
363 | self.abs_fpath = abs_fpath
364 |
365 | if lib:
366 | self.lib = lib
367 | else:
368 |
369 | if "pefile" in sys.modules:
370 | self.lib = "pefile"
371 | elif "lief" in sys.modules:
372 | self.lib = "lief"
373 | else:
374 | # # We dont have a parser
375 | return None, None
376 |
377 | self.bin, self.type = None, None
378 | self.__parse_bin()
379 |
380 | class __ParseError(Exception):
381 |
382 | pass
383 |
384 | def __parse_bin(self):
385 |
386 | if self.lib == "lief":
387 | try:
388 | self.bin = lief.parse(filepath=self.abs_fpath)
389 | if type(self.bin) == lief.PE.Binary:
390 | self.type = "PE"
391 | log.debug("Parsed with lief as: {}".format(self.type))
392 | else:
393 | log.debug("File is a currently unsupported format: {}".format(self.type))
394 |
395 | except lief.bad_file as e:
396 | log.warning("Failed to parse with lief: {}".format(e))
397 |
398 | elif self.lib == "pefile":
399 | try:
400 | self.bin = pefile.PE(self.abs_fpath)
401 | self.type = "PE"
402 |
403 | log.debug("Parsed with pefile as: {}".format(self.type))
404 |
405 | except pefile.PEFormatError as e:
406 | log.warning("Failed to parse with pefile: {}".format(e))
407 |
408 | def get_virtual_ep(self):
409 |
410 | if self.lib == "lief":
411 | return self.bin.optional_header.addressof_entrypoint
412 | elif self.lib == "pefile":
413 | return self.bin.OPTIONAL_HEADER.AddressOfEntryPoint
414 |
415 | def get_physical_from_rva(self, rva):
416 |
417 | if self.lib == "lief":
418 | return self.bin.rva_to_offset(rva)
419 | elif self.lib == "pefile":
420 | return self.bin.get_physical_by_rva(rva)
421 |
422 | def sections(self):
423 |
424 | index = 0
425 | sections = []
426 |
427 | for lib_section in self.bin.sections:
428 |
429 | section = section_proxy(self.lib, lib_section)
430 |
431 | yield index, section
432 | index += 1
433 |
434 |
435 | # # Part of bin_proxy - abstracts section calls
436 | class section_proxy(object):
437 | """Abstract for different binary parsers types in use"""
438 |
439 | def __init__(self, lib, lib_section):
440 | super(section_proxy, self).__init__()
441 | self.lib = lib
442 | self.lib_section = lib_section
443 |
444 | if self.lib == "lief":
445 | self.name = lib_section.name
446 | self.offset = lib_section.offset
447 | elif self.lib == "pefile":
448 | self.name = str(lib_section.Name.rstrip(b"\x00").decode("utf-8"))
449 | self.offset = self.lib_section.PointerToRawData
450 | self.size = self.lib_section.SizeOfRawData
451 |
452 |
453 | # # Read files as chunks
454 | def get_chunk(fh, chunksize=8192):
455 | while True:
456 | chunk = fh.read(chunksize)
457 |
458 | # # Convert to bytearray if not python 3
459 | if sys.version_info[0] <= 3:
460 | chunk = bytearray(chunk)
461 |
462 | if chunk:
463 | yield list(chunk)
464 | else:
465 | break
466 |
467 |
468 | # # Some samples may have a corrupt section name (e.g. 206c0533ce9bf83ecdf904bec2f3532d)
469 | def safe_section_name(s_name, index):
470 | if s_name == "" or s_name == None:
471 | s_name = "sect_{:d}".format(index)
472 |
473 | # # Long sections names upset matplotlib
474 | if len(s_name) > 15:
475 | s_name = "{}...".format(s_name[0:12])
476 |
477 | return s_name
478 |
479 |
480 | # # Assign a colour to the section name. Static between samples
481 | def hash_colour(text):
482 |
483 | name_colour = int("F" + hashlib.md5(text.encode("utf-8")).hexdigest()[:4], base=16)
484 | np.random.seed(int(name_colour))
485 | return matplotlib.colors.to_rgba(
486 | np.random.rand(
487 | 3,
488 | )
489 | )
490 |
491 |
492 | # # Calculate entropy given a list
493 | def shannon_ent(labels, base=256):
494 | value, counts = np.unique(labels, return_counts=True)
495 | norm_counts = counts / counts.sum()
496 | e = 0
497 | base = e if base is None else base
498 | return -(norm_counts * np.log(norm_counts) / np.log(base)).sum()
499 |
500 |
501 | if __name__ == "__main__":
502 |
503 | import argparse
504 |
505 | logging.basicConfig(stream=sys.stderr, format="%(levelname)s | %(message)s", level=logging.DEBUG)
506 | logging.getLogger("matplotlib").setLevel(logging.CRITICAL)
507 | log = logging.getLogger("ent")
508 |
509 | # ## Global graphing default values
510 | __figformat__ = "png" # Output format of saved figure
511 | __figsize__ = (12, 4) # Size of figure in inches
512 | __figdpi__ = 100 # DPI of figure
513 | __showplt__ = False # Show the plot interactively
514 | __blob__ = False # Treat all files as binary blobs. Disable intelligently parsing of file format specific features.
515 |
516 | parser = argparse.ArgumentParser()
517 | parser.add_argument(
518 | "-f",
519 | "--file",
520 | type=str,
521 | required=True,
522 | metavar="malware.exe",
523 | help="Give me a graph of this file. See - if this is the only argument specified.",
524 | )
525 | parser.add_argument(
526 | "--showplt", action="store_true", default=__showplt__, help="Show plot interactively (disables saving to file)"
527 | )
528 | parser.add_argument(
529 | "--format",
530 | type=str,
531 | default=__figformat__,
532 | choices=["png", "pdf", "ps", "eps", "svg"],
533 | required=False,
534 | metavar="png",
535 | help="Graph output format",
536 | )
537 | parser.add_argument("--figsize", type=int, nargs=2, default=__figsize__, metavar="#", help="Figure width and height in inches")
538 | parser.add_argument("--dpi", type=int, default=__figdpi__, metavar=__figdpi__, help="Figure dpi")
539 | parser.add_argument(
540 | "--blob",
541 | action="store_true",
542 | default=__blob__,
543 | help="Do not intelligently parse certain file types. Treat all files as a binary blob. E.g. don't add PE entry point or section splitter to the graph",
544 | )
545 |
546 | args_setup(parser)
547 |
548 | args = parser.parse_args()
549 |
550 | args.graphtype = __name__
551 |
552 | args_validation(args)
553 |
554 | args_dict = args.__dict__
555 | args_dict["abs_fpath"] = args.file
556 | args_dict["fname"] = os.path.basename(args.file)
557 | args_dict["abs_save_fpath"] = "{}.{}".format(os.path.basename(args_dict["abs_fpath"]), args.format)
558 |
559 | plt, save_kwargs, json_data = generate(**args_dict)
560 |
561 | fig = plt.gcf()
562 | fig.set_size_inches(*args.figsize, forward=True)
563 |
564 | plt.tight_layout()
565 |
566 | if args.showplt:
567 | log.debug("Opening graph interactively")
568 | plt.show()
569 | else:
570 | plt.savefig(args_dict["abs_save_fpath"], format=args.format, dpi=args.dpi, **save_kwargs)
571 | log.info('Graph saved to: "{}"'.format(args_dict["abs_save_fpath"]))
572 |
--------------------------------------------------------------------------------
/binGraph/graphs/hist/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geekscrapy/binGraph/e149a06305316e215815fb0c5011b424a1865ace/binGraph/graphs/hist/__init__.py
--------------------------------------------------------------------------------
/binGraph/graphs/hist/graph.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 |
3 | """
4 | Byte histogram over all file
5 | -------------------------------------------
6 | abs_fpath: Absolute file path - File to load and analyse
7 | fname: Filename
8 |
9 | no_zero bool: Remove 0x00 from the graph, sometimes this blows other results due to there being numerous amounts - also see log
10 | width int: Sample width
11 | g_log bool: Whether to apply a log scale to occurance axis
12 | no_order bool: Remove the ordered histogram - it shows overall distribution
13 | """
14 |
15 | from __future__ import division
16 |
17 | from __future__ import absolute_import
18 | import os
19 | import sys
20 | import numpy as np
21 | import matplotlib
22 |
23 | matplotlib.use("Agg")
24 | import matplotlib.ticker as ticker
25 | import matplotlib.pyplot as plt
26 | from matplotlib.ticker import MaxNLocator
27 | from collections import Counter
28 |
29 | import logging
30 |
31 | log = logging.getLogger("graph.hist")
32 |
33 | # # Graph defaults
34 | __no_zero__ = False
35 | __width__ = 1
36 | __g_log__ = True
37 | __no_order__ = False
38 | __colours__ = ["#ff01d5", "#01ff2b"]
39 |
40 | # Set args in args parse
41 | def args_setup(arg_parser):
42 |
43 | arg_parser.add_argument(
44 | "--no_zero",
45 | action="store_true",
46 | default=__no_zero__,
47 | help="Remove 0x00 from the graph, sometimes this blows other results due to there being numerous amounts - also see --no_log",
48 | )
49 | arg_parser.add_argument("--width", type=int, default=__width__, metavar=__width__, help="Sample width")
50 | arg_parser.add_argument(
51 | "--no_log", action="store_false", default=__g_log__, help="Do _not_ apply a log scale to occurance axis"
52 | )
53 | arg_parser.add_argument(
54 | "--no_order",
55 | action="store_true",
56 | default=__no_order__,
57 | help="Remove the ordered histogram - It shows overall distribution when on",
58 | )
59 | arg_parser.add_argument(
60 | "--colours",
61 | type=str,
62 | nargs=2,
63 | default=__colours__,
64 | metavar="#ff01d5",
65 | help="Colours for the graph. First value is the ordered graph",
66 | )
67 |
68 |
69 | # Validate graph specific arguments
70 | class ArgValidationEx(Exception):
71 | pass
72 |
73 |
74 | def args_validation(args):
75 |
76 | # # Test to see what matplotlib backend is setup
77 | backend = matplotlib.get_backend()
78 | if not backend == "TkAgg":
79 | log.warning(
80 | '{} matplotlib backend in use. This graph generation was tested with "TkAgg", bugs may lie ahead...'.format(backend)
81 | )
82 |
83 | # # Test to see if we should use defaults
84 | if args.graphtype == "all":
85 | args.no_zero = __no_zero__
86 | args.width = __width__
87 | args.no_log = __g_log__
88 | args.no_order = __no_order__
89 | args.colours = __colours__
90 |
91 | try:
92 | args.colours[0] = matplotlib.colors.to_rgba(args.colours[0])
93 | args.colours[1] = matplotlib.colors.to_rgba(args.colours[1])
94 | except ValueError as e:
95 | raise ArgValidationEx("Error parsing --colours: {}".format(e))
96 |
97 |
98 | def generate(
99 | abs_fpath, fname, no_zero=__no_zero__, width=__width__, g_log=__g_log__, no_order=__no_order__, colours=__colours__, **kwargs
100 | ):
101 |
102 | file_array = []
103 | with open(abs_fpath, "rb") as fh:
104 | for x in bytearray(fh.read()):
105 | file_array.append(x)
106 |
107 | log.debug('Read: "{}", length: {}'.format(fname, len(file_array)))
108 |
109 | log.debug("Ignore 0's: {}".format(no_zero))
110 | no_zero = -int(no_zero)
111 |
112 | fig, ax = plt.subplots()
113 |
114 | # # Add a byte hist ordered 1 > 255
115 | ordered_row = []
116 | c = Counter(file_array)
117 | for x in range(no_zero, 256):
118 | ordered_row.append(c[x])
119 |
120 | ax.bar(
121 | np.array(list(range(no_zero, 256))),
122 | np.array(ordered_row),
123 | align="edge",
124 | width=width,
125 | label="Bytes",
126 | color=colours[0],
127 | log=g_log,
128 | zorder=0,
129 | linewidth=0,
130 | )
131 | log.debug("Graphed binary array")
132 |
133 | # # Add a byte hist ordered by occurrence - shows general distribution
134 | if not no_order:
135 | sorted_row = []
136 | c = Counter(file_array)
137 | for x in range(no_zero, 256):
138 | sorted_row.append(c[x])
139 |
140 | sorted_row.sort()
141 | sorted_row.reverse()
142 |
143 | ax.bar(
144 | np.array(list(range(no_zero, 256))),
145 | np.array(sorted_row),
146 | width=width,
147 | label="Ordered",
148 | color=colours[1],
149 | log=g_log,
150 | zorder=1,
151 | alpha=0.5,
152 | linewidth=0,
153 | )
154 | log.debug("Graphed ordered binary array")
155 |
156 | # # Formatting and watermarking
157 | ax.xaxis.set_major_formatter(ticker.FuncFormatter(lambda x, pos: ("0x{:02X}".format(int(x)))))
158 | ax.xaxis.set_major_locator(MaxNLocator(20))
159 | ax.set_xlabel(
160 | "Bytes (0x00 included: {}, {})".format(
161 | (True if no_zero == 0 else False), ("width 1" if width == 1 else "width: " + str(width))
162 | )
163 | )
164 | ax.set_ylabel("Occurrence (log {})".format(g_log))
165 |
166 | # Include 0x00 byte?
167 | if no_zero:
168 | ax.set_xlim(1, 255)
169 | ax.set_xbound(lower=1, upper=255)
170 | log.debug("Ignoring 0x00, setting xlim/xbounds to (1,255)")
171 | else:
172 | ax.set_xlim(0, 255)
173 | ax.set_xbound(lower=0, upper=255)
174 | log.debug("Setting xlim/xbounds to (0,255)")
175 |
176 | plt.legend(loc="upper center", ncol=3, bbox_to_anchor=(0.5, 1.07), framealpha=1)
177 |
178 | plt.title("Byte histogram: {}\n".format(fname))
179 |
180 | return plt, {}, {}
181 |
182 |
183 | if __name__ == "__main__":
184 |
185 | import argparse, sys
186 |
187 | logging.basicConfig(stream=sys.stderr, format="%(levelname)s | %(message)s", level=logging.DEBUG)
188 | logging.getLogger("matplotlib").setLevel(logging.CRITICAL)
189 | log = logging.getLogger("hist")
190 |
191 | # ## Global graphing default values
192 | __figformat__ = "png" # Output format of saved figure
193 | __figsize__ = (12, 4) # Size of figure in inches
194 | __figdpi__ = 100 # DPI of figure
195 | __showplt__ = False # Show the plot interactively
196 | __blob__ = False # Treat all files as binary blobs. Disable intelligently parsing of file format specific features.
197 |
198 | parser = argparse.ArgumentParser()
199 | parser.add_argument(
200 | "-f",
201 | "--file",
202 | type=str,
203 | required=True,
204 | metavar="malware.exe",
205 | help="Give me a graph of this file. See - if this is the only argument specified.",
206 | )
207 | parser.add_argument(
208 | "--showplt", action="store_true", default=__showplt__, help="Show plot interactively (disables saving to file)"
209 | )
210 | parser.add_argument(
211 | "--format",
212 | type=str,
213 | default=__figformat__,
214 | choices=["png", "pdf", "ps", "eps", "svg"],
215 | required=False,
216 | metavar="png",
217 | help="Graph output format",
218 | )
219 | parser.add_argument("--figsize", type=int, nargs=2, default=__figsize__, metavar="#", help="Figure width and height in inches")
220 | parser.add_argument("--dpi", type=int, default=__figdpi__, metavar=__figdpi__, help="Figure dpi")
221 | parser.add_argument(
222 | "--blob",
223 | action="store_true",
224 | default=__blob__,
225 | help="Do not intelligently parse certain file types. Treat all files as a binary blob. E.g. don't add PE entry point or section splitter to the graph",
226 | )
227 |
228 | args_setup(parser)
229 |
230 | args = parser.parse_args()
231 |
232 | args.graphtype = __name__
233 |
234 | args_validation(args)
235 |
236 | args_dict = args.__dict__
237 | args_dict["abs_fpath"] = args.file
238 | args_dict["fname"] = os.path.basename(args.file)
239 | args_dict["abs_save_fpath"] = "{}.{}".format(os.path.basename(args_dict["abs_fpath"]), args.format)
240 |
241 | plt, save_kwargs, json_data = generate(**args_dict)
242 |
243 | fig = plt.gcf()
244 | fig.set_size_inches(*args.figsize, forward=True)
245 |
246 | plt.tight_layout()
247 |
248 | if args.showplt:
249 | log.debug("Opening graph interactively")
250 | plt.show()
251 | else:
252 | plt.savefig(args_dict["abs_save_fpath"], format=args.format, dpi=args.dpi, **save_kwargs)
253 | log.info('Graph saved to: "{}"'.format(args_dict["abs_save_fpath"]))
254 |
--------------------------------------------------------------------------------
/example-ent.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geekscrapy/binGraph/e149a06305316e215815fb0c5011b424a1865ace/example-ent.png
--------------------------------------------------------------------------------
/example-hist.json:
--------------------------------------------------------------------------------
1 | {"info": {"title": "6fee4...30480", "info": {"Standard deviation": 7137.470709805633, "Variance": 50943488.13333333}}, "graph": "iVBORw0KGgoAAAANSUhEUgAABLAAAAGQCAYAAAC+tZleAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAPYQAAD2EBqD+naQAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4yLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvhp/UCwAAIABJREFUeJzs3XlYVdX+x/HPAQQUBMMRSRGcNWfU1BRFTUlLrTS9lkNqg4dMzWtqqaipZd5bmcchHMiyScu6DTaZlpoZzhXO4TxPICoynP37wzg/j+C8kQO8X/fhuXevvc5a333gPFc+rL22xTAMQwAAAAAAAICLcsvtAgAAAAAAAIBrIcACAAAAAACASyPAAgAAAAAAgEsjwAIAAAAAAIBLI8ACAAAAAACASyPAAgAAAAAAgEsjwAIAAAAAAIBLI8ACAAAAAACASyPAAgAAAAAAgEsjwAIAAAAAAIBLI8ACAAAAAACASyPAAgAAAAAAgEsjwAIAAAAAAIBLI8ACAAAAAACASyPAAgAApluxYoUsFosWL1583b59+vRRhQoVcr4oZCsuLk5NmzaVj4+PLBaLNm3alNslAQAAZEGABQBAHhEbGyuLxeL0VapUKbVq1UpLly69pTEPHTqk6OjoPBdaxMfHKzo6Wnv27MntUlxWamqqJk2apGrVqsnb21ulS5dWhw4ddODAAUeftLQ0de3aVadOndIbb7yh9957T8HBwTle2+7du+Xt7S2LxaJ169aZOnZMTIzCw8NVunRpeXl5KSQkRH379r3qz8rcuXNVvXp1eXt7q3Llynr77bevO0fbtm1lsVgUFRWV5VxiYqKGDx+uypUrq3DhwgoODla/fv20b9++LH0PHjyobt26qVixYvLz81OnTp30999/3/Q1AwBQEHjkdgEAAODmjB8/XiEhITIMQ0ePHlVsbKweeOABffnll+rYseNNjXXo0CGNGzdOFSpUUN26dXOo4muLiYmR3W6/qdfEx8dr3LhxatmyJau3spGWlqYOHTro119/1YABA1S7dm2dPn1aa9euVWJiou6++25Jl4KkvXv3KiYmRv37979j9Q0ZMkQeHh66ePGi6WNv3LhRISEheuihh3TXXXcpISFBMTEx+uqrr7R582aVLVvW0Xf27Nl65pln9Mgjj2jo0KFauXKlBg0apPPnz+vFF1/MdvzPPvtMa9asyfac3W5X27ZtFR8fr4EDB6pKlSratWuXZsyYoe+++05bt25V0aJFJUnJyclq1aqVEhMTNWrUKBUqVEhvvPGGwsPDtWnTJhUvXtz09wYAgLyMAAsAgDwmMjJSYWFhjuN+/fqpdOnS+vDDD286wHIFhQoVyu0SblpKSoo8PT3l5uaai9nfeOMN/fzzz1q1apUaNWp01X7Hjh2TJBUrVuxOlabvvvtO3333nYYPH65XXnnF9PFnzJiRpa1z584KCwvTggULNGLECEnShQsX9NJLL6lDhw6OW10HDBggu92uCRMm6KmnntJdd93lNE5KSopeeOEFvfjiixozZkyWeX777TfFxcVp+vTpslqtjvaqVavqySef1I8//qguXbo46ty5c6d+//13NWzYUNKlz/Y999yj//znP5o0aZI5bwgAAPmEa/6rCwAA3LBixYqpcOHC8vC49HcpwzBUoUIFderUKUvflJQU+fv76+mnn9aKFSscvzj37dvXcVtibGyso//atWvVvn17+fv7q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9p4vW/fvvL09HQcZ67yutaT1ooVK6Zz587phx9+uO74V/rxxx+VmpqqwYMHO+1PNWDAAPn5+TluC1u3bp1OnjypAQMGOG69lKSePXtm2fcoU+/evbOsvPHy8nLMk5GRoZMnT8rX11dVq1bVhg0bsozRq1cvpz2/GjduLMMwsqzEady4sfbv36/09HRHW3R0tAzDuObqK+nS5uCSdPbsWS1btkx9+vRRnz599OOPP8owDE2ZMuWarz916pR++ukndevWTWfPnnV870+ePKl27dpp586dOnjwoCRp0aJFat68ue666y5HvxMnTqhNmzbKyMjQL7/84hj3xRdfVGho6B3bLH7p0qX65ptv9J///Efly5fXuXPnnM5fuHDB6Wfzct7e3rpw4YLjePny5fr000+zrCjLTsmSJVWvXj1NnDhRn3/+uaKjo7Vy5Ur17dvXaW7p0s9PdnNf3gcAAFzCLYQAAOQxjRo1crrtqUePHqpXr56ioqLUsWNHxy/lvXr1UlRUlPbu3avg4GAtWrRIaWlpeuKJJ647x86dOyVdCm2uJjEx8aphT6by5cs7HWf2P3369FVfM3DgQH3yySeKjIxUUFCQ7r//fnXr1k3t27e/bt179+6VdGnT7Mt5enoqNDTUcT7zvytVquTUz8PD46pPNQwJCcnSlrnf1IwZM5SQkKCMjAzHueyeInfl++Hv7y9JKleuXJZ2u92uxMTEm34aXWbI1qxZM6dxy5cvr/vuu0+//vrrNV+/a9cuGYah0aNHa/To0dn2OXbsmIKCgrRz505t2bJFJUuWvGo/6dLm5u+9956WLVt2xza+z7xVMjIyUp06ddI999wjX19fRUVFSbr0PqWmpmb72pSUFMf7mJ6erkGDBumJJ55w2q8qO3///bdatWqlBQsW6JFHHpEkderUSRUqVFCfPn20dOlSRUZGOsbO7imMKSkpjvoAAMD/I8ACACCPc3NzU6tWrfTWW29p586dqlmzpiSpe/fuGjJkiBYuXKhRo0bp/fffV1hYWJZwJzuZq6tef/111a1bN9s+vr6+1x3H3d0923bDMK76mlKlSmnTpk367rvvtHTpUi1dulTz589Xr1699O677153zpySXaAwadIkjR49Wk8++aQmTJiggIAAubm5afDgwdmuULva+3Er79PVZO67deVG4tKl9zZz76eryax72LBhateuXbZ9MoM/u92utm3bavjw4dn2q1KliiRp+PDhat68uUJCQrRnzx5Jlzall6TDhw9r3759WcI9M1WsWFH16tXTwoULHQFWYGCgMjIydOzYMZUqVcrRNzU1VSdPnnS8jwsWLND27ds1e/ZsR+2Zzp49qz179qhUqVIqUqSIYmNjlZKSkuVpoA899JAkafXq1YqMjFRAQIC8vLx0+PDhLLVmtl25fxoAAAUdARYAAPlA5q1mmbePSVJAQIA6dOighQsXqmfPnlq9enWWW6Cudith5hPi/Pz8HBtP30menp568MEH9eCDD8put2vgwIGaPXu2Ro8erUqVKl217uDgYEnS9u3bFRoa6mhPTU1VQkKC41oy++3atcuxUke69D7u2bNHtWvXvqE6Fy9erFatWmnu3LlO7WfOnFGJEiVu/IJNVKtWLRUqVMhxm9/lDh06dNXVUpky37dChQpd93tfsWJFJScnX7ffvn37tHfv3mxXsT300EPy9/fP9imRZrpw4YLTiqfMYHbdunV64IEHHO3r1q2T3W53nN+3b5/S0tLUrFmzLGMuWLBACxYs0JIlS9S5c2cdPXpUhmE4rcSTLj19Ufr/z6mbm5tq1aqldevWZRlz7dq1Cg0NZQN3AACuwB5YAADkcWlpafr+++/l6enpeBJfpieeeELx8fH697//LXd3d3Xv3t3pvI+PjyRlCQ8aNGigihUraurUqU6hWKbjx4+bfBX/7+TJk07Hbm5ujkApM4C4Wt1t2rSRp6enpk2b5rR6ae7cuUpMTFSHDh0kXXpaXPHixRUTE+O0z9TChQuveXvjldzd3bOsklq0aFG24dHtOnHihLZt26bz589fs1/RokX1wAMP6Ndff9W2bdsc7Vu3btWvv/6qtm3bXvP1pUqVUsuWLTV79uxsVwhd/r3v1q2b1qxZo++++y5LvzNnzjje23feeUdLlixx+nruueckSVOnTnXaqy0xMVHbtm1TYmKioy0tLU3btm3LUs/u3bu1e/dux3F6enq237/ff/9df/zxh9OttxEREQoICNDMmTOd+s6cOVNFihRx/Kx07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sAcWAADIU7766iv5+vpKks6dO6fAwEB99dVXcnNz08MPP6yoqCh98cUXjiAjNjZWffr0kcViUUBAgNzd3VW0aFGVKVPGMebkyZPVs2dPx75YlStX1rRp0xQeHq6ZM2dq37598vHxUceOHVW0aFEFBwerXr16d/7i84idO3fKMAxVr1492/PVq1fX6dOndfz4cUlSRESEXnjhBcf5d955R3a7XXPnzpW3t7dq1qypAwcO6Nlnn3X0mT59uurVq6dJkyY52ubNm6dy5cppx44dqlKliqRL38spU6Y4+qxatUq///67jh07Ji8vL0mXArTPP/9cixcv1lNPPaU333xT/fr1U79+/SRJr7zyin788UdWYQEAkIsIsLJht9t16NAhFS1a1OnWAgAA8ou8/It4q1atNHPmTEnS6dOnNWPGDEVGRur3339XcHCwnnjiCc2bN0/dunXThg0b9Oeff+p///vfNcfcvHmztmzZooULFzraDMOQ3W5XQkKC2rZtq+DgYIWGhqp9+/Zq3769unTpoiJFiuToteZ1mSusricsLMzpeOvWrapdu7a8vb0dbU2aNHHqs3nzZi1fvtwRZl5u9+7djgCrQYMGWV6XnJycZRP5CxcuaPfu3Y75n3nmGafzTZo00fLly695HcnJyUpPT79mHwAA8qrM/1/38/PLlayEACsbhw4dUrly5XK7DAAAckzVqlWdwpq8xMfHR5UqVXIcz5kzR/7+/oqJidErr7yi/v37q27dujpw4IDmz5+viIgIBQcHX3PM5ORkPf300xo0aFCWc+XLl5enp6c2bNigFStW6Pvvv9eYMWMUHR2tuLg4FStWzPRrzOsqVaoki8WirVu3qkuXLlnOb926VXfddZdKliwp6dL39GYlJyfrwQcf1GuvvZblXGBgoON/Xzl2cnKyAgMDtWLFiiyvu93vZYsWLbR9+/bbGgMAAFeXmJgoPz+/Oz4vAVY2ihYtKunSo59z45sCAEBOS0lJ0f79+3O7DFNYLBa5ubnpwoULkqRatWopLCxMMTEx+uCDDzR9+nSn/p6ensrIyHBqq1+/vuLj452CsSt5eHioTZs2atOmjcaOHatixYrpp59+0sMPP2z+ReVxxYsXV9u2bTVjxgwNGTLEaR+sI0eOaOHCherVq9dV/3pbvXp1vffee0pJSXGswvrtt9+c+tSvX1+ffvqpKlSoIA+PG/8nbf369XXkyBF5eHioQoUKV51/7dq16tWrl6Ptyvmz88svvzitGgMAID9JSkrK1cU+BFjZyPzHlJ+fHwEWACBfuplf+F3NxYsXdeTIEUmXbiGcPn26YzVOpv79+ysqKko+Pj5ZVgBVqFBBv/zyi7p37y4vLy+VKFFCL774ou69915FRUWpf//+8vHxUXx8vH744QdNnz5dX331lf7++2+1aNFCd911l7755hvZ7XZVrVr1jl57XjJ9+nQ1bdpU7dq10yuvvKKQkBD99ddf+ve//62goCBNnDjxqq/917/+pZcvlbyEAAAgAElEQVReekkDBgzQyJEjtWfPHk2dOtWpj9VqVUxMjHr06KHhw4crICBAu3bt0kcffaQ5c+bI3d0927HbtGmjJk2aqHPnzpoyZYqqVKmiQ4cO6euvv1aXLl0UFham559/Xn369FFYWJiaNWumhQsX6q+//lJoaOg1r9nX15fbSgEAyCE8hRAAAOQp3377rQIDAxUYGKjGjRsrLi5OixYtUsuWLR19evToIQ8PD/Xo0SPLipjx48drz549qlixouMWttq1a+vnn3/Wjh071Lx5c9WrV09jxoxR2bJlJV26teyzzz5TRESEqlevrlmzZunDDz9UzZo179h15zWVK1fWunXrFBoaqm7duqlixYp66qmn1KpVK61Zs0YBAQFXfa2vr6++/PJL/fHHH6pXr55eeumlLLcKli1bVqtXr1ZGRobuv/9+1apVS4MHD1axYsXk5nb1f+JaLBZ98803atGihfr27asqVaqoe/fu2rt3r0qXLi1JeuyxxzR69GgNHz5cDRo00N69e502kAcAAHeexbjR3TULkKSkJPn7++fafZ0AAOS08+fPa+vWrapevXq+XDGSGVDFxcWpfv36uV0O8rn8/nkCAEDK/awk794/AAAAcIW0tDSdPHlSL7/8su69917CKwAAgHyCWwgBAEC+sXr1agUGBiouLk6zZs3K7XIAAABgElZgAQCAfKNly5ZidwQAAID8hxVYAAAAAAAAcGkEWAAAAAAAAHBpBFgAABRgdrs9t0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goK0sCBA286wLqW1NRUrV+/XiNHjnS0ubm5qU2bNlqzZo0kafLkyY7bB2NjY/Xnn39eM7y6ePGiLl686DhOSkoyrV4AAAAAAADcHlNuITx16pSqVauWpb1atWo6deqUGVM4nDhxQhkZGSpdurRTe+nSpXXkyJFbGnPy5Mny9/d3fJUrV86MUgEAAAAAAGACUwKsOnXqaPr06Vnap0+frjp16pgxxS3r06ePpk6des0+I0eOVGJiouNr//79d6g6AAAAAAAAXI8ptxBOmTJFHTp00I8//qgmTZpIktasWaP9+/frm2++MWMKhxIlSsjd3V1Hjx51aj969KjKlClzS2N6eXnJy8vLjPIAAAAAAABgMlNWYIWHh2vHjh3q0qWLzpw5ozNnzujhhx/W9u3b1bx5czOmcPD09FSDBg20bNkyR5vdbteyZcsc4RkAAAAAAADyD1NWYElS2bJlTdusPTk5Wbt27XIcJyQkaNOmTQoICFD58uU1dOhQ9e7dW2FhYWrUqJHefPNNnTt3zvFUwltls9lks9mUkZFxu5cAAAAAAAAAk9xygLVly5Yb7lu7du2bGnvdunVq1aqV43jo0KGSpN69eys2NlaPPfaYjh8/rjFjxujIkSOqW7euvv322ywbu98sq9Uqq9WqpKQk+fv739ZYAAAAAAAAMMctB1h169aVxWKRYRjX7GexWG56RVPLli2vO25UVJSioqJualwAAAAAAADkPbccYCUkJJhZBwAAAAAAAJCtWw6wgoODzawDAAAAAAAAyNYtP4Xwt99+u+G+58+f119//XWrUwEAAAAAAKAAu+UA64knnlC7du20aNEinTt3Lts+8fHxGjVqlCpWrKj169ffcpF3is1mU40aNdSwYcPcLgUAAAAAAAD/uOVbCOPj4zVz5ky9/PLL+te//qUqVaqobNmy8vb21unTp7Vt2zYlJyerS5cu+v7771WrVi0z684RPIUQAAAAAADA9dxygFWoUCENGjRIgwYN0rp167Rq1Srt3btXFy5cUJ06dTRkyBC1atVKAQEBZtYLAAAAAACAAuaWA6zLhYWFKSwszIyhAAAAAAAAACemBFgFWbSiTekDAAAAAACuYMmmzbjjVRRM2b33uei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IROnTrB398fTzzxBAYOHIhVq1bhwYMH+bb38OFDODg46N2iaKiKFSti6dKlWLBgAWrWrGnRia0bN26s/L+Pjw8A4Nq1awD+NwJLLadPn0bjxo31Jhpv06aN3j7x8fHYtWuX3u+pXr16AB6PoktMTMSjR48QGBioHOPu7p6rwDRixAjs2LHD5D67uroaVbwCHo/Oy8jIQPXq1fXiOHDgABITEw1uJygoSBlxFR0djY4dO+Lpp59GVFQU9u/fD1tbW708ZHf69Olc23LmuiDZrwt3d3dotVrlujCFk5NTga8rIiKisoojsIiIiEoYFxcX1KpVS1lesmQJ3NzcsHjxYkyZMgXA49sImzRpgsuXL2P58uVo3749/P39C2z33r17eP311/WeGJjFz88PWq0WR48eRVRUFLZt24YJEyZAp9Ph0KFDqFChQq5jPDw88ODBAzx69AharRYAlJEsV69eVYpBWctNmjTROz4mJga2trZITk7G/fv3Ua5cOYPb8Pb2zlVMSE9Px82bN42eyNve3l75/6xiXNZE5U5OTka1pdFoICJ66/755x+j2rh37x569OiBmTNn5trm4+NT7BOAu7i45FpnY2NTYJz37t2DVqtFXFxcrmOzfs+GCA4OxgcffICEhAQkJSWhdevWCA4ORlRUFPz9/dG6dWvl2lNb9usCePy7VWMC+5s3b8LT09PkdoiIiEobjsAiIiIq4TQaDWxsbPDw4UNlXaNGjdCiRQssXrwY3377LV599VW9Y7Raba55mpo1a4ZTp06hVq1auX6yigB2dnbo2LEjZs2ahWPHjuHChQvYuXNnnv3KKiadOnVKWVejRg14e3vrjfxJTU3FgQMH9Ea/7Nu3DzNnzsRPP/0EV1dXvUnpDWmjTZs2uH37No4cOaLss3PnTmRmZuY7IqcoGjdubNQoJk9PT2XOMeDxrXTZR9vUr18fx44d05toPOuWtizNmjXDyZMnUb169Vy/JxcXF9SsWRP29vZ6c33dunUL586dK0qIRZIzzn/++UfvOmjWrBnS0tJw69atXDHkvDW0IM2aNYOzszOmTJmCwMBAODo6KgWsqKioAm/nq1+/fq750HLmOq/XibmdOHGiwFtziYiIyioWsI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g1Dv3790L9/f7Rr1w4BAQG55pdatWoV+vbti1GjRqFu3bro3bs34uLilMnm//77b2g0GqxZs6bAcwUFBSEjI0O5/rOKWvb29mjdunW+xwUHB2P+/PmYNWsWAgICsHv37lxzrfXr1w/BwcFo27YtPD09sW7duiJk47Hvv/8eTZs2VYrJzz//PJo2barMVQc8nscrPT0dPXv2LPJ5iIiISiuN5JyggIiIiEqFrALVoUOH0KxZM4v04eHDh6hbty4iIyONmiCb6PTp02jatCnOnj1b6PxtpUXPnj0RFBSEt99+29JdISIisjqcxJ2IiKiU+eeff3Djxg18+OGHaN26tcWKV8DjSc5XrlyZ7y11RPnZvHkzwsPDy0zx6uHDh2jZsqXefG9ERET0PxyBRUREVMpERUWhXbt2qFOnDtauXYtGjRpZuktERERERCZhAYuIiIiIiIiIiKwaJ3EnIiIiIiIiIiKrxgIWERERERERERFZNRawiIiIiIiIiIjIqrGARUREREREREREVo0FLCIiIiIiIiIismosYBERERERERERkVVjAYuIiIiIiIiIiKwaC1hERERERERERGTVWMAiIiIiIiIiIiKrxgIWERERERERERFZNRawiIiIiIiIiIjIqrGARUREREREREREVo0FLCIiIiIiIiIismosYBERERERERERkVX7f3vwsoXjQ1ZvAAAAAElFTkSuQmCC", "cmdline": "files recurse __dummy prefix save_dir json graphtitle showplt format figsize dpi blob verbose graphtype chunks ibytes entcolour no_zero width no_log no_order colours abs_fpath fname cleaned_fname", "version": {"codename": "Iron Airedale", "digit": 3.2, "run_date": "2018-10-31T23:45:26.418728"}}
--------------------------------------------------------------------------------
/example-hist.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geekscrapy/binGraph/e149a06305316e215815fb0c5011b424a1865ace/example-hist.png
--------------------------------------------------------------------------------
/files.txt:
--------------------------------------------------------------------------------
1 | /bin/false
2 | /bin/bash
3 |
--------------------------------------------------------------------------------
/setup.py:
--------------------------------------------------------------------------------
1 | from setuptools import setup, find_packages
2 |
3 | setup(
4 | name='binGraph',
5 | version='3.3.1',
6 | description='CAPE\'s version of binGraph',
7 | license='GNU Affero General Public License v3.0',
8 | packages=find_packages(),
9 | url='https://github.com/CAPESandbox/binGraph',
10 | author='https://github.com/geekscrapy',
11 | classifiers=[
12 | "Development Status :: 5 - Production/Stable",
13 | "Environment :: Console",
14 | "Intended Audience :: Information Technology",
15 | "Intended Audience :: Science/Research",
16 | "Natural Language :: English",
17 | "Operating System :: POSIX :: Linux",
18 | "Programming Language :: Python :: 3.8",
19 | "Programming Language :: Python :: 3.9",
20 | "Programming Language :: Python :: 3.10",
21 | "Programming Language :: Python :: 3.11",
22 | "Programming Language :: Python :: 3.12",
23 | "Topic :: Security",
24 | ],
25 | entry_points={
26 | 'console_scripts': [
27 | 'binGraph = binGraph:__main__.main',
28 | ],
29 | },
30 | install_requires=[
31 | "matplotlib>=3.3.0", # 3.5.2
32 | "numpy>=1.19.1", # 1.21.0
33 | "pefile>=2021.9.3",
34 | ],
35 | )
36 |
--------------------------------------------------------------------------------