├── LICENSE ├── README.md ├── Template_Data ├── css │ └── main.css └── img │ ├── dealwithit.png │ ├── favicon.png │ ├── filter.png │ ├── header.png │ ├── home.png │ ├── logo.png │ ├── star.png │ └── title.png ├── User_Projects └── .gitignore ├── definitions.py ├── docs ├── AboutUs.html ├── Acknowledgements.html ├── CustomTags.html ├── FAQs.html ├── Metaforge-1.3.tar.gz ├── Metaforge-1.3.zip ├── images │ ├── AddCustomTag.png │ ├── blacktocat.svg │ ├── download.svg │ ├── logo.png │ └── screenshot.png ├── index.html └── stylesheets │ ├── normalize.css │ ├── pygment_trac.css │ └── stylesheet.css ├── exifdata └── .gitignore ├── exiftool.py ├── fileinteractions.py ├── filter.py ├── markups.py ├── media └── logo.png ├── metaforge.py └── requirements.txt /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 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 General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Metaforge # 2 | 3 | 4 | 5 | 6 | *"An OSINT tool that analyzes metadata and creates dynamic reports"* 7 |

8 | https://chriswmorris.github.io/Metaforge/ 9 | 10 | **Senior Design Project 2019 - By Chris Morris and Collin Mockbee** 11 | 12 | A Python3 Application for Unix-based Operating Systems 13 | 14 | **Note: Metaforge requires at least python version 3.5 to work!** 15 | 16 |
17 | 18 | **Supported Filetypes** 19 | 20 | dll | docx | doc | 21 | exe | gif | html | 22 | jpeg| mkv | mp3 | 23 | mp4 | odp | ods | 24 | odt | pdf | png | 25 | pptx| ppt | svg | 26 | torrent |wav | xlsx | 27 | xls |zip | 28 | 29 |
30 | 31 | ## Setup ## 32 | 33 | ### Install exiftool ### 34 | 35 | 36 | **Debian-based** 37 | 38 | apt install libimage-exiftool-perl 39 | 40 | **RHEL-based** 41 | 42 | yum install perl-Image-ExifTool 43 | 44 | **Arch Linux** 45 | 46 | pacman -S perl-image-exiftool 47 | 48 | **Mac OSX** 49 | 50 | brew install exiftool 51 | 52 | 53 | ### Install dependencies ### 54 | 55 | pip3 install -r requirements.txt 56 | 57 |
58 | 59 | 60 | 61 | ## Running Metaforge ## 62 | 63 | 1) Place the files you wish to analyze in the **/media** directory 64 | 65 | 2) Run metaforge.py 66 | 67 | python3 metaforge.py 68 | 69 | 70 |
71 | 72 | 73 | 74 | 75 | When Metaforge is finished running, check the User_Projects folder and look for the name of the project you entered. Click on the index.html file to view your generated report. 76 | 77 | 78 | 79 | 80 | 81 | **Thanks to...** 82 | 83 | 84 | Exiftool: https://www.sno.phy.queensu.ca/~phil/exiftool/ 85 | 86 | progress: https://pypi.org/project/progress/ 87 | 88 | dominate: https://pypi.org/project/dominate/ 89 | 90 | colorama: https://pypi.org/project/colorama/ 91 | 92 | pyexifinfo: https://pypi.org/project/pyexifinfo/ 93 | -------------------------------------------------------------------------------- /Template_Data/css/main.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | body {font-family: Arial, Helvetica, sans-serif;} 4 | 5 | 6 | #header{ 7 | 8 | background-image: url('../img/header.png'); 9 | background-size: cover; 10 | color: white; 11 | 12 | } 13 | 14 | #logo{ 15 | height: 150px; 16 | width: 250px; 17 | float: right; 18 | 19 | 20 | } 21 | 22 | /* NAVBAR */ 23 | 24 | #metaforge-credits{ 25 | 26 | text-align: right; 27 | } 28 | 29 | #navbar{ 30 | 31 | margin: 0; 32 | overflow: hidden; 33 | background-color:white; 34 | display: block; 35 | width: 100%; 36 | background-color: #484848; 37 | } 38 | 39 | #nav-li{ 40 | 41 | text-align: center; 42 | 43 | } 44 | 45 | 46 | 47 | /* WRAPPER PORTION */ 48 | span{ 49 | 50 | display: block; 51 | 52 | } 53 | 54 | #wrapper{ 55 | 56 | background-color: #d7dbdd; 57 | 58 | 59 | } 60 | 61 | #toprow{ 62 | 63 | display: flex; 64 | 65 | 66 | 67 | } 68 | 69 | #secondrow{ 70 | 71 | display: flex; 72 | } 73 | 74 | #thirdrow{ 75 | display: flex; 76 | } 77 | 78 | #filetypechart{ 79 | 80 | padding: 10px; 81 | 82 | 83 | } 84 | 85 | #filetypechart-box{ 86 | column-count: 2; 87 | padding: 20px; 88 | position: relative; 89 | overflow-x: hidden; 90 | line-height: 1%; 91 | width: 400px; 92 | height: 380px; 93 | border: 3px solid black; 94 | background-color: white; 95 | 96 | } 97 | 98 | #sizechart{ 99 | 100 | padding: 10px; 101 | 102 | } 103 | 104 | 105 | #size-box{ 106 | 107 | border: 3px solid black; 108 | width: 500px; 109 | height: 200px; 110 | padding: 20px; 111 | overflow-x: hidden; 112 | overflow-y: hidden; 113 | background-color: white; 114 | 115 | 116 | } 117 | 118 | 119 | #comparechart{ 120 | padding: 10px; 121 | 122 | } 123 | 124 | #comparechart-box{ 125 | 126 | border: 3px solid black; 127 | width: 400px; 128 | height: 200px; 129 | background-color: white; 130 | 131 | 132 | } 133 | 134 | 135 | 136 | 137 | 138 | #geolocationschart{ 139 | 140 | padding: 10px; 141 | 142 | } 143 | 144 | #geolocation-box{ 145 | 146 | padding: 10px; 147 | border-right: 3px solid black; 148 | border-left: 3px solid black; 149 | border-top: 3px solid black; 150 | border-bottom: 3px solid black; 151 | width: 520px; 152 | position: relative; 153 | background-color: white; 154 | 155 | } 156 | 157 | 158 | #authorchart{ 159 | 160 | padding: 10px; 161 | 162 | 163 | } 164 | 165 | 166 | #author-box{ 167 | 168 | padding: 10px; 169 | border-right: 3px solid black; 170 | border-left: 3px solid black; 171 | border-top: 3px solid black; 172 | border-bottom: 3px solid black; 173 | width: 520px; 174 | position: relative; 175 | background-color: white; 176 | 177 | 178 | } 179 | 180 | 181 | #softwarechart{ 182 | 183 | padding: 10px; 184 | 185 | } 186 | 187 | 188 | #software-box{ 189 | 190 | padding: 10px; 191 | border-right: 3px solid black; 192 | border-left: 3px solid black; 193 | border-top: 3px solid black; 194 | border-bottom: 3px solid black; 195 | width: 520px; 196 | position: relative; 197 | background-color: white; 198 | 199 | } 200 | 201 | #devicechart{ 202 | 203 | padding: 10px; 204 | 205 | } 206 | #device-box{ 207 | 208 | padding: 10px; 209 | border-right: 3px solid black; 210 | border-left: 3px solid black; 211 | border-top: 3px solid black; 212 | border-bottom: 3px solid black; 213 | width: 520px; 214 | position: relative; 215 | background-color: white; 216 | 217 | } 218 | 219 | #customchart{ 220 | 221 | padding: 10px; 222 | 223 | } 224 | #custom-box{ 225 | 226 | padding: 10px; 227 | border-right: 3px solid black; 228 | border-left: 3px solid black; 229 | border-top: 3px solid black; 230 | border-bottom: 3px solid black; 231 | width: 520px; 232 | position: relative; 233 | background-color: white; 234 | 235 | } 236 | 237 | 238 | 239 | /* FILTER PAGE*/ 240 | 241 | #filtertitle{ 242 | 243 | background-color: white; 244 | border-color: black; 245 | border-style: solid; 246 | margin-right: 800px; 247 | margin-left: 10px; 248 | } 249 | 250 | 251 | 252 | #filtered{ 253 | 254 | margin-left: 10px; 255 | columns: 2; 256 | 257 | 258 | 259 | } 260 | 261 | #filtered-box{ 262 | 263 | background-color: white; 264 | border-color: black; 265 | border-style: solid; 266 | border-radius: 10px; 267 | overflow: scroll; 268 | 269 | 270 | 271 | } 272 | 273 | 274 | /* ALL METADATA PAGE*/ 275 | 276 | #exifraw{ 277 | 278 | columns: 2; 279 | 280 | 281 | 282 | } 283 | 284 | 285 | #exifraw-box{ 286 | 287 | overflow: scroll; 288 | text-align: center; 289 | } 290 | 291 | 292 | /*BUTTONS*/ 293 | .button { 294 | border-top: 1px solid #96d1f8; 295 | background: #65a9d7; 296 | background: -webkit-gradient(linear, left top, left bottom, from(#e92626), to(#373737)); 297 | background: -webkit-linear-gradient(top, #e92626, #373737); 298 | background: -moz-linear-gradient(top, #e92626, #373737); 299 | background: -ms-linear-gradient(top, #e92626, #373737); 300 | background: -o-linear-gradient(top, #e92626, #373737); 301 | padding: 10px 30px; 302 | margin-right: 55px; 303 | -webkit-border-radius: 32px; 304 | -moz-border-radius: 32px; 305 | border-radius: 32px; 306 | -webkit-box-shadow: rgba(0,0,0,1) 0 1px 0; 307 | -moz-box-shadow: rgba(0,0,0,1) 0 1px 0; 308 | box-shadow: rgba(0,0,0,1) 0 1px 0; 309 | text-shadow: rgba(0,0,0,.4) 0 1px 0; 310 | color: white; 311 | font-size: 18px; 312 | text-decoration: none; 313 | vertical-align: middle; 314 | } 315 | .button:hover { 316 | border-top-color: #373737; 317 | background: #373737; 318 | color: #ccc; 319 | } 320 | .button:active { 321 | border-top-color: #373737; 322 | background: #373737; 323 | } 324 | -------------------------------------------------------------------------------- /Template_Data/img/dealwithit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/Template_Data/img/dealwithit.png -------------------------------------------------------------------------------- /Template_Data/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/Template_Data/img/favicon.png -------------------------------------------------------------------------------- /Template_Data/img/filter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/Template_Data/img/filter.png -------------------------------------------------------------------------------- /Template_Data/img/header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/Template_Data/img/header.png -------------------------------------------------------------------------------- /Template_Data/img/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/Template_Data/img/home.png -------------------------------------------------------------------------------- /Template_Data/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/Template_Data/img/logo.png -------------------------------------------------------------------------------- /Template_Data/img/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/Template_Data/img/star.png -------------------------------------------------------------------------------- /Template_Data/img/title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/Template_Data/img/title.png -------------------------------------------------------------------------------- /User_Projects/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore everything in this directory 2 | * 3 | # Except this file 4 | !.gitignore 5 | -------------------------------------------------------------------------------- /definitions.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | import os 3 | ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) 4 | 5 | -------------------------------------------------------------------------------- /docs/AboutUs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Metaforge : Senior Design Capstone 16 | 17 | 18 | 19 | 20 | 21 |
22 |
23 | View on GitHub 24 | 25 |

Metaforge


26 |
27 | 28 |

"A metadata analyzer that creates dynamic reports with a unique filter"

29 |
30 |
31 | 32 |
33 | 37 |
38 | 39 | 40 | 41 | 42 |
43 |
44 | Home    45 | Custom Tags    46 | FAQ's    47 | About Us    48 | Acknowledegments    49 |


50 | 51 |

About Us

52 | 53 |


54 | 55 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /docs/Acknowledgements.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Metaforge : Senior Design Capstone 16 | 17 | 18 | 19 | 20 | 21 |
22 |
23 | View on GitHub 24 | 25 |

Metaforge


26 |
27 | 28 |

"A metadata analyzer that creates dynamic reports with a unique filter"

29 |
30 |
31 | 32 |
33 | 37 |
38 | 39 | 40 | 41 | 42 |
43 |
44 | Home    45 | Custom Tags    46 | FAQ's    47 | About Us    48 | Acknowledegments    49 |


50 | 51 |

Acknowledgements

52 | 53 |

Thanks to...


54 |
  • Exiftool: https://www.sno.phy.queensu.ca/~phil/exiftool/
  • 55 |
  • progress: https://pypi.org/project/progress/
  • 56 |
  • dominate: https://pypi.org/project/dominate/
  • 57 |
  • colorama: https://pypi.org/project/colorama/
  • 58 |
  • pyexifinfo: https://pypi.org/project/pyexifinfo/
  • 59 |
  • Special thanks: Jason Costello for the free Slate theme
  • 60 | 61 |


    62 | 63 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /docs/CustomTags.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Metaforge : Senior Design Capstone 16 | 17 | 18 | 19 | 20 | 21 |
    22 |
    23 | View on GitHub 24 | 25 |

    Metaforge


    26 |
    27 | 28 |

    "A metadata analyzer that creates dynamic reports with a unique filter"

    29 |
    30 |
    31 | 32 |
    33 | 37 |
    38 | 39 | 40 | 41 | 42 |
    43 |
    44 | Home    45 | Custom Tags    46 | FAQ's    47 | About Us    48 | Acknowledegments    49 |


    50 | 51 |

    Adding your own Tags!

    52 |

    With each file type comes countless different tags. If you are looking for some specific tag, this page is dedicated to showing you how to add tags into the filter so you can get what you want.

    53 |

    This section will include a step-by-step guide in retreiving tags manually, picking out the tags you want, and where to find them in the HTML report that Metaforge produces.

    54 |


    55 | 56 |

    Exiftool and Retreiving Metadata Manually

    57 |
      58 |
    1. Choose the file type you want to work with and download a good number of files of that type for metadata gathering purposes.
    2. 59 |
    3. Google searches can be helpful here. Random files can be found using "inurl: .(extension type here)"
    4. 60 |
    5. After gathering your sample files, place them in one local place and run the command:
    6. 61 | exiftool -j -G * > alltags.txt

      62 |
    7. This command prints them in JSON format (very important to use the -j param) and prints the output to a text file
    8. 63 |
    9. Open up a notepad as you will now be collecting the tags you want to collect from your chosen file type. It is recommended that you name the file after your file type that you are collecting the tags from.
    10. 64 |
    11. Sort through the newly created file "alltags.txt" for the file type that you selected, as this will contain all the raw metadata for each file.
    12. 65 |
    13. Record each tag you would like to have added to the CustomTags section of the HTML report generated by Metaforge in your open notepad for easy transfer.
    14. 66 |
    15. Examples of tags are "Composite:ImageSize", "System:FileModifyDate", "IFDO:Copyright". 67 |



    68 | 69 |

    Adding Tags to the Custom Tags

    70 |
      71 |
    1. Open up "markup.py" with your editor of choice and proceed to line 34 in the code.


    2. 72 |

      73 |
    3. Do not remove the PLACEHOLDER or DELETE_ME
    4. 74 |
    5. Following the same "", format, continue adding tags after the DELETE_ME with a coma and opening the new tag with quotations.
    6. 75 |
    7. The last tag added should not include a coma but should include a closing parenthesis.
    8. 76 |
    77 | 78 |


    79 | 80 | 86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /docs/FAQs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Metaforge : Senior Design Capstone 16 | 17 | 18 | 19 | 20 | 21 |
    22 |
    23 | View on GitHub 24 | 25 |

    Metaforge


    26 |
    27 | 28 |

    "A metadata analyzer that creates dynamic reports with a unique filter"

    29 |
    30 |
    31 | 32 |
    33 | 37 |
    38 | 39 | 40 | 41 | 42 | 43 |
    44 |
    45 | Home    46 | Custom Tags    47 | FAQ's    48 | About Us    49 | Acknowledegments    50 |


    51 | 52 |

    FAQ's

    53 | 54 |
  • Q: What happens when you put in an unsupported file?
  • 55 |
  • A: Metaforge will ignore the file upon filtering the results of the metadata, however, you will see the appropriate results for the raw metadata.
  • 56 |
    57 |
  • Q: What happens if you add a custom tag that is already supported by Metaforge?
  • 58 |
  • A: The “newly added” tag will be displayed in Custom Tags, regardless. This means that even if the filter catches the “custom tag” by default, it will still display it.
  • 59 |
    60 |
  • Q: Is there a maximum amount of files that Metaforge can filter at one time?
  • 61 |
  • A: At this time, we have ran stress tests consisting of ~24GB worth of files with no troubles. The time involved in generating the HTML report increases as the amount of files and their sizes increase, but no errors have resulted.
  • 62 |
    63 | 64 |


    65 | 66 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /docs/Metaforge-1.3.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/docs/Metaforge-1.3.tar.gz -------------------------------------------------------------------------------- /docs/Metaforge-1.3.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/docs/Metaforge-1.3.zip -------------------------------------------------------------------------------- /docs/images/AddCustomTag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/docs/images/AddCustomTag.png -------------------------------------------------------------------------------- /docs/images/blacktocat.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 9 | 10 | 11 | 12 | 18 | 19 | 20 | 24 | 25 | 26 | 32 | 34 | 36 | 38 | 40 | 42 | 44 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /docs/images/download.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 9 | 11 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /docs/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/docs/images/logo.png -------------------------------------------------------------------------------- /docs/images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/docs/images/screenshot.png -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Metaforge : Senior Design Capstone 16 | 17 | 18 | 19 | 20 | 21 | 22 |
    23 |
    24 | View on GitHub 25 | 26 |

    Metaforge


    27 |
    28 | 29 |

    "A metadata analyzer that creates dynamic reports with a unique filter"

    30 |
    31 |
    32 | 33 |
    34 | 38 |
    39 | 40 | 41 | 42 |
    43 |
    44 | Home    45 | Custom Tags    46 | FAQ's    47 | About Us    48 | Acknowledegments    49 |


    50 | 51 |

    Introduction

    52 |

    This GitHub Page is dedicated to our Senior Design Project that will be presented at the IT expo. We created this site to provide more information about metadata, provide a download link for Metaforge, provide requirements for the installation, as well as a step-by-step guide on how to use Metaforge.

    53 |


    54 | 55 | 56 |

    What is "metadata"?

    57 | 58 |

    To put it simply, metadata is just information about data. The information comes from the tags that capture valuable information about each specific file. Each file has can have many different tags of data that can be retreived for multiple purposes.

    59 |

    The uses for metadata are endless and can prove valuable to those in the information security fields for pentesting and gathering information, like who created the file and what software was used to edit it.

    60 |


    61 | 62 | 63 | 64 |

    Metaforge Checklist

    65 |
      66 |
    • Must have a Unix-based Operating System (Arch, Debian, and RHEL Linux distros have been tested and also Mac OSX)
    • 67 |
    • Must have at least Python3.5 or higher
    • 68 |
    • Must place all data you wish to analyze in the /media directory. Cannot place folders within the /media directory.
    • 69 |
    70 |


    71 | 72 | 73 |

    Install Requirements

    74 |

    1.1 Install Exiftool

    75 |

    In order for Metaforge to work, you must install exiftool first. Also, if you install the requirements.txt first, it won’t work because pyexifinfo requires exiftool to install.

    76 |

    So to install exiftool, run the following based on your OS.

    77 |

    Note: you might need to run these commands as root! So run…

    78 | sudo apt/yum/pacman... 79 |

    80 | 81 | 82 |
    Debian-based
    83 | apt install libimage-exiftool-perl 84 | 85 |
    RHEL-based
    86 | yum install perl-Image-ExifTool 87 | 88 |
    Arch Linux
    89 | pacman -S perl-image-exiftool 90 | 91 |
    Mac OSX
    92 | brew install exiftool 93 |

    94 | 95 |

    1.2 Install Dependencies

    96 | 97 |

    Install the libraries that we used to create Metaforge. Make sure that you’re using pip3! If you don’t know how, here is some help.

    98 |
      99 |
    • https://www.tecmint.com/install-pip-in-linux/
    • 100 |
    101 | pip3 install -r requirements.txt 102 | 103 |

    If this doesn’t work, try to install each individual package and report the error message you got and we can help!

    104 |


    105 | 106 |

    Running Metaforge

    107 |
      108 |
    1. Place the files you wish to analyze in the /media directory
    2. 109 |
    3. Run metaforge.py
    4. 110 |
    111 | python3 metaforge.py 112 | 113 |

    Note: If you want to make it easier to run multiple times, run these commands…

    114 | chmod +x metaforge.py
    115 | ./metaforge.py 116 |


    117 | 118 | 119 | 125 | 126 | 127 | 128 | -------------------------------------------------------------------------------- /docs/stylesheets/normalize.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v2.1.3 | MIT License | git.io/normalize */ 2 | 3 | /* ========================================================================== 4 | HTML5 display definitions 5 | ========================================================================== */ 6 | 7 | /** 8 | * Correct `block` display not defined in IE 8/9. 9 | */ 10 | 11 | article, 12 | aside, 13 | details, 14 | figcaption, 15 | figure, 16 | footer, 17 | header, 18 | hgroup, 19 | main, 20 | nav, 21 | section, 22 | summary { 23 | display: block; 24 | } 25 | 26 | /** 27 | * Correct `inline-block` display not defined in IE 8/9. 28 | */ 29 | 30 | audio, 31 | canvas, 32 | video { 33 | display: inline-block; 34 | } 35 | 36 | /** 37 | * Prevent modern browsers from displaying `audio` without controls. 38 | * Remove excess height in iOS 5 devices. 39 | */ 40 | 41 | audio:not([controls]) { 42 | display: none; 43 | height: 0; 44 | } 45 | 46 | /** 47 | * Address `[hidden]` styling not present in IE 8/9. 48 | * Hide the `template` element in IE, Safari, and Firefox < 22. 49 | */ 50 | 51 | [hidden], 52 | template { 53 | display: none; 54 | } 55 | 56 | /* ========================================================================== 57 | Base 58 | ========================================================================== */ 59 | 60 | /** 61 | * 1. Set default font family to sans-serif. 62 | * 2. Prevent iOS text size adjust after orientation change, without disabling 63 | * user zoom. 64 | */ 65 | 66 | html { 67 | font-family: sans-serif; /* 1 */ 68 | -ms-text-size-adjust: 100%; /* 2 */ 69 | -webkit-text-size-adjust: 100%; /* 2 */ 70 | } 71 | 72 | /** 73 | * Remove default margin. 74 | */ 75 | 76 | body { 77 | margin: 0; 78 | } 79 | 80 | /* ========================================================================== 81 | Links 82 | ========================================================================== */ 83 | 84 | /** 85 | * Remove the gray background color from active links in IE 10. 86 | */ 87 | 88 | a { 89 | background: transparent; 90 | } 91 | 92 | /** 93 | * Address `outline` inconsistency between Chrome and other browsers. 94 | */ 95 | 96 | a:focus { 97 | outline: thin dotted; 98 | } 99 | 100 | /** 101 | * Improve readability when focused and also mouse hovered in all browsers. 102 | */ 103 | 104 | a:active, 105 | a:hover { 106 | outline: 0; 107 | } 108 | 109 | /* ========================================================================== 110 | Typography 111 | ========================================================================== */ 112 | 113 | /** 114 | * Address variable `h1` font-size and margin within `section` and `article` 115 | * contexts in Firefox 4+, Safari 5, and Chrome. 116 | */ 117 | 118 | h1 { 119 | font-size: 2em; 120 | margin: 0.67em 0; 121 | } 122 | 123 | /** 124 | * Address styling not present in IE 8/9, Safari 5, and Chrome. 125 | */ 126 | 127 | abbr[title] { 128 | border-bottom: 1px dotted; 129 | } 130 | 131 | /** 132 | * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. 133 | */ 134 | 135 | b, 136 | strong { 137 | font-weight: bold; 138 | } 139 | 140 | /** 141 | * Address styling not present in Safari 5 and Chrome. 142 | */ 143 | 144 | dfn { 145 | font-style: italic; 146 | } 147 | 148 | /** 149 | * Address differences between Firefox and other browsers. 150 | */ 151 | 152 | hr { 153 | -moz-box-sizing: content-box; 154 | box-sizing: content-box; 155 | height: 0; 156 | } 157 | 158 | /** 159 | * Address styling not present in IE 8/9. 160 | */ 161 | 162 | mark { 163 | background: #ff0; 164 | color: #000; 165 | } 166 | 167 | /** 168 | * Correct font family set oddly in Safari 5 and Chrome. 169 | */ 170 | 171 | code, 172 | kbd, 173 | pre, 174 | samp { 175 | font-family: monospace, serif; 176 | font-size: 1em; 177 | } 178 | 179 | /** 180 | * Improve readability of pre-formatted text in all browsers. 181 | */ 182 | 183 | pre { 184 | white-space: pre-wrap; 185 | } 186 | 187 | /** 188 | * Set consistent quote types. 189 | */ 190 | 191 | q { 192 | quotes: "\201C" "\201D" "\2018" "\2019"; 193 | } 194 | 195 | /** 196 | * Address inconsistent and variable font size in all browsers. 197 | */ 198 | 199 | small { 200 | font-size: 80%; 201 | } 202 | 203 | /** 204 | * Prevent `sub` and `sup` affecting `line-height` in all browsers. 205 | */ 206 | 207 | sub, 208 | sup { 209 | font-size: 75%; 210 | line-height: 0; 211 | position: relative; 212 | vertical-align: baseline; 213 | } 214 | 215 | sup { 216 | top: -0.5em; 217 | } 218 | 219 | sub { 220 | bottom: -0.25em; 221 | } 222 | 223 | /* ========================================================================== 224 | Embedded content 225 | ========================================================================== */ 226 | 227 | /** 228 | * Remove border when inside `a` element in IE 8/9. 229 | */ 230 | 231 | img { 232 | border: 0; 233 | } 234 | 235 | /** 236 | * Correct overflow displayed oddly in IE 9. 237 | */ 238 | 239 | svg:not(:root) { 240 | overflow: hidden; 241 | } 242 | 243 | /* ========================================================================== 244 | Figures 245 | ========================================================================== */ 246 | 247 | /** 248 | * Address margin not present in IE 8/9 and Safari 5. 249 | */ 250 | 251 | figure { 252 | margin: 0; 253 | } 254 | 255 | /* ========================================================================== 256 | Forms 257 | ========================================================================== */ 258 | 259 | /** 260 | * Define consistent border, margin, and padding. 261 | */ 262 | 263 | fieldset { 264 | border: 1px solid #c0c0c0; 265 | margin: 0 2px; 266 | padding: 0.35em 0.625em 0.75em; 267 | } 268 | 269 | /** 270 | * 1. Correct `color` not being inherited in IE 8/9. 271 | * 2. Remove padding so people aren't caught out if they zero out fieldsets. 272 | */ 273 | 274 | legend { 275 | border: 0; /* 1 */ 276 | padding: 0; /* 2 */ 277 | } 278 | 279 | /** 280 | * 1. Correct font family not being inherited in all browsers. 281 | * 2. Correct font size not being inherited in all browsers. 282 | * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome. 283 | */ 284 | 285 | button, 286 | input, 287 | select, 288 | textarea { 289 | font-family: inherit; /* 1 */ 290 | font-size: 100%; /* 2 */ 291 | margin: 0; /* 3 */ 292 | } 293 | 294 | /** 295 | * Address Firefox 4+ setting `line-height` on `input` using `!important` in 296 | * the UA stylesheet. 297 | */ 298 | 299 | button, 300 | input { 301 | line-height: normal; 302 | } 303 | 304 | /** 305 | * Address inconsistent `text-transform` inheritance for `button` and `select`. 306 | * All other form control elements do not inherit `text-transform` values. 307 | * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+. 308 | * Correct `select` style inheritance in Firefox 4+ and Opera. 309 | */ 310 | 311 | button, 312 | select { 313 | text-transform: none; 314 | } 315 | 316 | /** 317 | * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` 318 | * and `video` controls. 319 | * 2. Correct inability to style clickable `input` types in iOS. 320 | * 3. Improve usability and consistency of cursor style between image-type 321 | * `input` and others. 322 | */ 323 | 324 | button, 325 | html input[type="button"], /* 1 */ 326 | input[type="reset"], 327 | input[type="submit"] { 328 | -webkit-appearance: button; /* 2 */ 329 | cursor: pointer; /* 3 */ 330 | } 331 | 332 | /** 333 | * Re-set default cursor for disabled elements. 334 | */ 335 | 336 | button[disabled], 337 | html input[disabled] { 338 | cursor: default; 339 | } 340 | 341 | /** 342 | * 1. Address box sizing set to `content-box` in IE 8/9/10. 343 | * 2. Remove excess padding in IE 8/9/10. 344 | */ 345 | 346 | input[type="checkbox"], 347 | input[type="radio"] { 348 | box-sizing: border-box; /* 1 */ 349 | padding: 0; /* 2 */ 350 | } 351 | 352 | /** 353 | * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. 354 | * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome 355 | * (include `-moz` to future-proof). 356 | */ 357 | 358 | input[type="search"] { 359 | -webkit-appearance: textfield; /* 1 */ 360 | -moz-box-sizing: content-box; 361 | -webkit-box-sizing: content-box; /* 2 */ 362 | box-sizing: content-box; 363 | } 364 | 365 | /** 366 | * Remove inner padding and search cancel button in Safari 5 and Chrome 367 | * on OS X. 368 | */ 369 | 370 | input[type="search"]::-webkit-search-cancel-button, 371 | input[type="search"]::-webkit-search-decoration { 372 | -webkit-appearance: none; 373 | } 374 | 375 | /** 376 | * Remove inner padding and border in Firefox 4+. 377 | */ 378 | 379 | button::-moz-focus-inner, 380 | input::-moz-focus-inner { 381 | border: 0; 382 | padding: 0; 383 | } 384 | 385 | /** 386 | * 1. Remove default vertical scrollbar in IE 8/9. 387 | * 2. Improve readability and alignment in all browsers. 388 | */ 389 | 390 | textarea { 391 | overflow: auto; /* 1 */ 392 | vertical-align: top; /* 2 */ 393 | } 394 | 395 | /* ========================================================================== 396 | Tables 397 | ========================================================================== */ 398 | 399 | /** 400 | * Remove most spacing between table cells. 401 | */ 402 | 403 | table { 404 | border-collapse: collapse; 405 | border-spacing: 0; 406 | } 407 | -------------------------------------------------------------------------------- /docs/stylesheets/pygment_trac.css: -------------------------------------------------------------------------------- 1 | .highlight .hll { background-color: #ffffcc } 2 | .highlight { background: #f0f3f3; } 3 | .highlight .c { color: #0099FF; font-style: italic } /* Comment */ 4 | .highlight .err { color: #AA0000; background-color: #FFAAAA } /* Error */ 5 | .highlight .k { color: #006699; font-weight: bold } /* Keyword */ 6 | .highlight .o { color: #555555 } /* Operator */ 7 | .highlight .cm { color: #0099FF; font-style: italic } /* Comment.Multiline */ 8 | .highlight .cp { color: #009999 } /* Comment.Preproc */ 9 | .highlight .c1 { color: #0099FF; font-style: italic } /* Comment.Single */ 10 | .highlight .cs { color: #0099FF; font-weight: bold; font-style: italic } /* Comment.Special */ 11 | .highlight .gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */ 12 | .highlight .ge { font-style: italic } /* Generic.Emph */ 13 | .highlight .gr { color: #FF0000 } /* Generic.Error */ 14 | .highlight .gh { color: #003300; font-weight: bold } /* Generic.Heading */ 15 | .highlight .gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */ 16 | .highlight .go { color: #AAAAAA } /* Generic.Output */ 17 | .highlight .gp { color: #000099; font-weight: bold } /* Generic.Prompt */ 18 | .highlight .gs { font-weight: bold } /* Generic.Strong */ 19 | .highlight .gu { color: #003300; font-weight: bold } /* Generic.Subheading */ 20 | .highlight .gt { color: #99CC66 } /* Generic.Traceback */ 21 | .highlight .kc { color: #006699; font-weight: bold } /* Keyword.Constant */ 22 | .highlight .kd { color: #006699; font-weight: bold } /* Keyword.Declaration */ 23 | .highlight .kn { color: #006699; font-weight: bold } /* Keyword.Namespace */ 24 | .highlight .kp { color: #006699 } /* Keyword.Pseudo */ 25 | .highlight .kr { color: #006699; font-weight: bold } /* Keyword.Reserved */ 26 | .highlight .kt { color: #007788; font-weight: bold } /* Keyword.Type */ 27 | .highlight .m { color: #FF6600 } /* Literal.Number */ 28 | .highlight .s { color: #CC3300 } /* Literal.String */ 29 | .highlight .na { color: #330099 } /* Name.Attribute */ 30 | .highlight .nb { color: #336666 } /* Name.Builtin */ 31 | .highlight .nc { color: #00AA88; font-weight: bold } /* Name.Class */ 32 | .highlight .no { color: #336600 } /* Name.Constant */ 33 | .highlight .nd { color: #9999FF } /* Name.Decorator */ 34 | .highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */ 35 | .highlight .ne { color: #CC0000; font-weight: bold } /* Name.Exception */ 36 | .highlight .nf { color: #CC00FF } /* Name.Function */ 37 | .highlight .nl { color: #9999FF } /* Name.Label */ 38 | .highlight .nn { color: #00CCFF; font-weight: bold } /* Name.Namespace */ 39 | .highlight .nt { color: #330099; font-weight: bold } /* Name.Tag */ 40 | .highlight .nv { color: #003333 } /* Name.Variable */ 41 | .highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ 42 | .highlight .w { color: #bbbbbb } /* Text.Whitespace */ 43 | .highlight .mf { color: #FF6600 } /* Literal.Number.Float */ 44 | .highlight .mh { color: #FF6600 } /* Literal.Number.Hex */ 45 | .highlight .mi { color: #FF6600 } /* Literal.Number.Integer */ 46 | .highlight .mo { color: #FF6600 } /* Literal.Number.Oct */ 47 | .highlight .sb { color: #CC3300 } /* Literal.String.Backtick */ 48 | .highlight .sc { color: #CC3300 } /* Literal.String.Char */ 49 | .highlight .sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */ 50 | .highlight .s2 { color: #CC3300 } /* Literal.String.Double */ 51 | .highlight .se { color: #CC3300; font-weight: bold } /* Literal.String.Escape */ 52 | .highlight .sh { color: #CC3300 } /* Literal.String.Heredoc */ 53 | .highlight .si { color: #AA0000 } /* Literal.String.Interpol */ 54 | .highlight .sx { color: #CC3300 } /* Literal.String.Other */ 55 | .highlight .sr { color: #33AAAA } /* Literal.String.Regex */ 56 | .highlight .s1 { color: #CC3300 } /* Literal.String.Single */ 57 | .highlight .ss { color: #FFCC33 } /* Literal.String.Symbol */ 58 | .highlight .bp { color: #336666 } /* Name.Builtin.Pseudo */ 59 | .highlight .vc { color: #003333 } /* Name.Variable.Class */ 60 | .highlight .vg { color: #003333 } /* Name.Variable.Global */ 61 | .highlight .vi { color: #003333 } /* Name.Variable.Instance */ 62 | .highlight .il { color: #FF6600 } /* Literal.Number.Integer.Long */ 63 | 64 | .type-csharp .highlight .k { color: #0000FF } 65 | .type-csharp .highlight .kt { color: #0000FF } 66 | .type-csharp .highlight .nf { color: #000000; font-weight: normal } 67 | .type-csharp .highlight .nc { color: #2B91AF } 68 | .type-csharp .highlight .nn { color: #000000 } 69 | .type-csharp .highlight .s { color: #A31515 } 70 | .type-csharp .highlight .sc { color: #A31515 } 71 | -------------------------------------------------------------------------------- /docs/stylesheets/stylesheet.css: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | Slate Theme for GitHub Pages 3 | by Jason Costello, @jsncostello 4 | *******************************************************************************/ 5 | 6 | @import url(normalize.css); 7 | @import url(pygment_trac.css); 8 | 9 | /******************************************************************************* 10 | Theme Styles 11 | *******************************************************************************/ 12 | 13 | *, *:before, *:after { 14 | -moz-box-sizing: border-box; 15 | -webkit-box-sizing: border-box; 16 | box-sizing: border-box; 17 | } 18 | 19 | body { 20 | color:#373737; 21 | background: #212121; 22 | font-size: 18px; 23 | font-family: "Roboto", Helvetica, Arial, sans-serif; 24 | line-height: 1.5; 25 | -webkit-font-smoothing: antialiased; 26 | } 27 | 28 | h1, h2, h3, h4, h5, h6 { 29 | font-family: "Roboto Condensed", Helvetica, Arial, sans-serif; 30 | margin: 10px 0; 31 | font-weight: 700; 32 | color:#222222; 33 | } 34 | 35 | h1 { 36 | margin-bottom: 20px; 37 | font-size: 36px; 38 | line-height: 1.1; 39 | font-weight: 700; 40 | } 41 | 42 | h1#project_title { 43 | text-transform: uppercase; 44 | } 45 | 46 | h2 { 47 | font-size: 32px; 48 | line-height: 1.2; 49 | } 50 | 51 | h3 { 52 | margin-bottom: 0; 53 | padding-bottom: 0; 54 | font-size: 24px; 55 | line-height: 1.3; 56 | } 57 | 58 | h4 { 59 | margin-bottom: 0; 60 | padding-bottom: 0; 61 | font-size: 21px; 62 | } 63 | 64 | h5 { 65 | margin-bottom: 0; 66 | padding-bottom: 0; 67 | font-size: 18px; 68 | } 69 | 70 | h6 { 71 | margin-bottom: 0; 72 | padding-bottom: 0; 73 | font-size: 16px; 74 | } 75 | 76 | p { 77 | font-family: "Roboto Slab", 78 | font-size: 18px; 79 | margin: 0px 0 15px 0; 80 | } 81 | 82 | footer p { 83 | color: #f2f2f2; 84 | } 85 | 86 | a { 87 | display: inline-block; 88 | text-decoration: none; 89 | border-bottom: 1px dotted #666; 90 | color: inherit; 91 | text-shadow: none; 92 | } 93 | 94 | a:hover, a:focus {border-bottom: 1px solid #0090ff;} 95 | 96 | 97 | em { 98 | font-style: italic; 99 | } 100 | 101 | strong { 102 | font-weight: bold; 103 | } 104 | 105 | img { 106 | position: relative; 107 | margin: 0 auto; 108 | max-width: 739px; 109 | padding: 5px; 110 | margin: 10px 0 10px 0; 111 | 112 | 113 | -webkit-box-shadow: 0 0 5px #ebebeb; 114 | -moz-box-shadow: 0 0 5px #ebebeb; 115 | -o-box-shadow: 0 0 5px #ebebeb; 116 | -ms-box-shadow: 0 0 5px #ebebeb; 117 | } 118 | 119 | p img { 120 | display: inline; 121 | margin: 0; 122 | padding: 0; 123 | vertical-align: middle; 124 | text-align: center; 125 | border: none; 126 | } 127 | 128 | pre, code { 129 | width: 100%; 130 | color: #fff; 131 | background-color: #222; 132 | 133 | font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; 134 | font-size: 14px; 135 | 136 | 137 | box-shadow: 0 0 10px rgba(0,0,0,.1); 138 | } 139 | 140 | pre { 141 | padding: 10px 20px; 142 | overflow: auto; 143 | } 144 | 145 | code { 146 | padding: 3px; 147 | margin: 0 3px; 148 | } 149 | 150 | pre code { 151 | display: block; 152 | box-shadow: none; 153 | } 154 | 155 | blockquote { 156 | color: #666; 157 | margin: 0 0 20px 2px; 158 | padding-left: 20px; 159 | border-left: 3px solid #bbb; 160 | font-style: italic; 161 | } 162 | 163 | ul, ol, dl { 164 | margin: 0 0 15px 0; 165 | padding-left: 20px; 166 | } 167 | 168 | dl dt { 169 | font-weight: bold; 170 | } 171 | 172 | dl dd { 173 | margin-left: 0; 174 | padding-left: 0; 175 | font-style: italic; 176 | } 177 | 178 | dl p { 179 | padding-left: 20px; 180 | font-style: italic; 181 | } 182 | 183 | hr { 184 | height: 1px; 185 | margin-bottom: 5px; 186 | border: none; 187 | background: url('../images/bg_hr.png') repeat-x center; 188 | } 189 | 190 | table { 191 | border: 1px solid #373737; 192 | margin-bottom: 20px; 193 | text-align: left; 194 | } 195 | 196 | th { 197 | padding: 10px; 198 | background: #222; 199 | color: #fff; 200 | } 201 | 202 | td { 203 | padding: 10px; 204 | border: 1px solid #222; 205 | } 206 | 207 | form { 208 | background: #f2f2f2; 209 | padding: 20px; 210 | } 211 | 212 | /******************************************************************************* 213 | Full-Width Styles 214 | *******************************************************************************/ 215 | 216 | .outer { 217 | width: 100%; 218 | padding: 0 10px; 219 | } 220 | 221 | .inner { 222 | position: relative; 223 | max-width: 960px; 224 | padding: 20px 10px; 225 | margin: 0 auto; 226 | } 227 | 228 | #forkme_banner { 229 | display: block; 230 | position: absolute; 231 | top:0; 232 | right: 10px; 233 | z-index: 10; 234 | padding: 10px 20px 10px 50px; 235 | color: #fff; 236 | background: url('../images/blacktocat.svg') #0090ff no-repeat 8% 50%; 237 | background-size: 25px; 238 | font-weight: 700; 239 | border: none; 240 | } 241 | 242 | #forkme_banner:hover { 243 | background-color: #1883ed; 244 | } 245 | 246 | header { 247 | color: #f2f2f2; 248 | } 249 | 250 | #header_wrap { 251 | background: #212121; 252 | } 253 | 254 | #header_wrap .inner { 255 | padding: 60px 10px 0px 0px; 256 | } 257 | 258 | #project_title { 259 | margin: 0; 260 | color: #fff; 261 | font-size: 54px; 262 | font-weight: 700; 263 | } 264 | 265 | #project_tagline { 266 | color: #fff; 267 | font-size: 36px; 268 | font-weight: 300; 269 | background: none; 270 | } 271 | 272 | .downloads { 273 | display: block; 274 | padding-left: 50px; 275 | color: #f2f2f2; 276 | position: relative; 277 | height: 70px; 278 | background: url(../images/download.svg) no-repeat center left; 279 | background-size: 25px 20px; 280 | } 281 | 282 | .downloads a { 283 | margin-right: 20px; 284 | } 285 | .downloads a:hover { 286 | text-decoration: underline solid #fff; 287 | } 288 | 289 | #main_content { 290 | padding-top: 40px; 291 | } 292 | 293 | #main_content.inner { 294 | background-color: #fff; 295 | padding: 70px 100px; 296 | box-shadow: 0 0 5px #ebebeb; 297 | -webkit-box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); 298 | -moz-box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); 299 | -o-box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); 300 | -ms-box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); 301 | } 302 | 303 | #footer_wrap { 304 | background: #212121; 305 | } 306 | 307 | /******************************************************************************* 308 | Small Device Styles 309 | *******************************************************************************/ 310 | 311 | @media screen and (max-width: 992px) { 312 | img { 313 | max-width: 100%; 314 | } 315 | } 316 | 317 | @media screen and (max-width: 480px) { 318 | body { 319 | font-size: 13px; 320 | } 321 | 322 | .downloads { 323 | display: none; 324 | } 325 | 326 | .outer { 327 | padding: 0; 328 | } 329 | 330 | .inner { 331 | min-width: 320px; 332 | max-width: 480px; 333 | } 334 | 335 | #header_wrap .inner { 336 | padding: 60px 10px; 337 | } 338 | 339 | #main_content.inner { 340 | padding: 10px; 341 | } 342 | 343 | #project_title { 344 | font-size: 32px; 345 | } 346 | 347 | h1 { 348 | font-size: 28px; 349 | } 350 | 351 | h2 { 352 | font-size: 24px; 353 | } 354 | 355 | h3 { 356 | font-size: 21px; 357 | } 358 | 359 | h4 { 360 | font-size: 18px; 361 | } 362 | 363 | h5 { 364 | font-size: 14px; 365 | } 366 | 367 | h6 { 368 | font-size: 12px; 369 | } 370 | 371 | code, pre { 372 | min-width: 320px; 373 | max-width: 480px; 374 | font-size: 11px; 375 | } 376 | } 377 | -------------------------------------------------------------------------------- /exifdata/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore everything in this directory 2 | * 3 | # Except this file 4 | !.gitignore 5 | -------------------------------------------------------------------------------- /exiftool.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import pyexifinfo as exif 4 | import os, sys 5 | import subprocess 6 | import json 7 | from os.path import basename 8 | from definitions import ROOT_DIR 9 | import shutil 10 | from progress.bar import Bar 11 | 12 | #This is the exiftool processor, it runs exiftool and puts the outputs in either 13 | #html, json or XML depending on which function is called. Exiftool needs to be installed for this 14 | #to work. 15 | 16 | 17 | #exiftool in JSON 18 | def exifJSON(): 19 | print("Running exiftool to JSON") 20 | os.chdir(ROOT_DIR + "/media/") 21 | mediadir = os.listdir() 22 | mediafiles = len(mediadir) 23 | jsonbar = Bar('Processing', max=mediafiles) 24 | for i in range(mediafiles): 25 | for filename in os.listdir("."): 26 | exifoutputjson = exif.get_json(filename) 27 | #basejson = os.path.basename(filename) 28 | os.chdir(ROOT_DIR + "/exifdata/json") 29 | #Prints output to json file 30 | print(json.dumps(exifoutputjson, sort_keys=True, indent=0, separators=(',', ': ')), 31 | file= open(filename + ".json","w")) 32 | #print(json.dumps(exifoutputjson, sort_keys=True, indent=0, separators=(',', ': ')), 33 | # file= open(os.path.splitext(basejson)[0]+".json","w")) 34 | 35 | jsonbar.next() 36 | os.chdir(ROOT_DIR + "/media") 37 | break 38 | jsonbar.finish() 39 | 40 | #exiftool in HTML 41 | def exifHTML(): 42 | print("Running exiftool to HTML") 43 | os.chdir(ROOT_DIR + "/media/") 44 | mediadir = os.listdir() 45 | mediafiles = len(mediadir) 46 | htmlbar = Bar('Processing', max=mediafiles) 47 | for i in range(mediafiles): 48 | for filename in os.listdir("."): 49 | #Prints output to HTML 50 | #basehtml = os.path.basename(filename) 51 | exifoutputhtml = exif.command_line(['exiftool', '-h', filename]) 52 | os.chdir(ROOT_DIR + "/exifdata/html") 53 | #print(exifoutputhtml,file = open(os.path.splitext(basehtml)[0]+ ".html", "w")) 54 | print(exifoutputhtml,file = open(filename + ".html","w")) 55 | htmlbar.next() 56 | os.chdir(ROOT_DIR + "/media") 57 | break 58 | htmlbar.finish() 59 | 60 | #exiftool hex dump to html 61 | def exifHTMLDump(): 62 | print("Running exiftool to HTML Dump") 63 | os.chdir(ROOT_DIR + "/media/") 64 | mediadir = os.listdir() 65 | mediafiles = len(mediadir) 66 | os.chdir(ROOT_DIR + "/media/") 67 | htmldumpbar = Bar('Processing', max=mediafiles) 68 | for i in range(mediafiles): 69 | for filename in os.listdir("."): 70 | #basehtmldump = os.path.basename(filename) 71 | exifoutputhtmldump = exif.command_line(['exiftool', '-htmlDump', filename]) 72 | os.chdir(ROOT_DIR + "/exifdata/hex_html") 73 | #htmldumpfile = open(os.path.splitext(basehtmldump)[0] + ".html", 'wb') 74 | htmldumpfile = open(filename + ".html", 'wb') 75 | htmldumpfile.write(exifoutputhtmldump) 76 | htmldumpfile.close() 77 | htmldumpbar.next() 78 | os.chdir(ROOT_DIR + "/media") 79 | break 80 | htmldumpbar.finish() 81 | -------------------------------------------------------------------------------- /fileinteractions.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | import os, sys 3 | from definitions import ROOT_DIR 4 | import json 5 | import shutil 6 | import colorama 7 | from colorama import Fore, Back, Style 8 | 9 | 10 | def stageset(): 11 | 12 | #This fuction checks to make sure that the exifdata directory is set correctly 13 | #It creates folders that need to be there 14 | 15 | exifdatadir = ROOT_DIR + "/exifdata/" 16 | filtereddir = ROOT_DIR + "/exifdata/filtered/" 17 | hexhtmldir = ROOT_DIR + "/exifdata/hex_html/" 18 | htmldir = ROOT_DIR + "/exifdata/html/" 19 | jsondir = ROOT_DIR + "/exifdata/json/" 20 | statsdir = ROOT_DIR + "/exifdata/stats/" 21 | geolocationdir = ROOT_DIR + "/exifdata/stats/geolocations" 22 | softwaredir = ROOT_DIR + "/exifdata/stats/software" 23 | devicesdir = ROOT_DIR + "/exifdata/stats/devices" 24 | authorsdir = ROOT_DIR + "/exifdata/stats/authors" 25 | customdir = ROOT_DIR + "/exifdata/stats/custom" 26 | 27 | filetypedir = ['odp', 'odt','png', 'mp3', 'dll', 'torrent', 'pptx', 'ods', 'zip', 'exe', 28 | 'xlsx', 'svg', 'pdf', 'mp4', 'html', 'docx', 'gif', 'wav', 'jpeg', 'mkv', 'all'] 29 | 30 | if not os.path.exists(exifdatadir): 31 | os.mkdir(exifdatadir) 32 | 33 | if not os.path.exists(filtereddir): 34 | os.mkdir(filtereddir) 35 | 36 | if not os.path.exists(hexhtmldir): 37 | os.mkdir(hexhtmldir) 38 | 39 | if not os.path.exists(htmldir): 40 | os.mkdir(htmldir) 41 | 42 | if not os.path.exists(jsondir): 43 | os.mkdir(jsondir) 44 | 45 | if not os.path.exists(statsdir): 46 | os.mkdir(statsdir) 47 | 48 | if not os.path.exists(geolocationdir): 49 | os.mkdir(geolocationdir) 50 | 51 | if not os.path.exists(softwaredir): 52 | os.mkdir(softwaredir) 53 | 54 | if not os.path.exists(devicesdir): 55 | os.mkdir(devicesdir) 56 | 57 | if not os.path.exists(authorsdir): 58 | os.mkdir(authorsdir) 59 | 60 | if not os.path.exists(customdir): 61 | os.mkdir(customdir) 62 | 63 | for filetype in filetypedir: 64 | if not os.path.exists(jsondir + filetype): 65 | os.mkdir(jsondir + filetype) 66 | 67 | 68 | #This function will check to see if the exifdata/ directory and the exifdata/json/ are empty 69 | #if it isn't it will prompt the user to delete them or not 70 | def checkdelete(): 71 | jsonpath = ROOT_DIR + "/exifdata/json/" 72 | filteredjsonpath = ROOT_DIR + "/exifdata/filtered/" 73 | jsonsubdirs = ['odp', 'odt', 'png', 'mp3', 'dll', 'torrent', 'pptx', 'ods', 'zip', 'exe', 74 | 'xlsx', 'svg', 'pdf', 'mp4', 'html', 'docx', 'gif', 'wav', 'jpeg', 'mkv', 'all'] 75 | 76 | #FILTER DIRECTORY 77 | if not os.listdir(filteredjsonpath): 78 | pass 79 | else: 80 | print(Fore.RED + filteredjsonpath + " has files inside") 81 | print(Style.RESET_ALL) 82 | print(Style.BRIGHT + "Would you like to delete these files?") 83 | print("It is recommended, just save the files elsewhere") 84 | print(Style.RESET_ALL) 85 | filteredjsonanswer = input("y/n: ") 86 | if filteredjsonanswer == "y": 87 | for filename in os.listdir(filteredjsonpath): 88 | os.remove(filteredjsonpath + filename) 89 | 90 | else: 91 | print("Not going to delete anything in: " + jsonpath) 92 | print(Fore.RED +"This could cause errors!") 93 | print(Style.RESET_ALL) 94 | pass 95 | 96 | #JSON FOLDERS 97 | os.chdir(jsonpath) 98 | files = [filename for filename in os.listdir('.') if os.path.isfile(filename)] 99 | if not os.listdir(jsonpath): 100 | pass 101 | if files == []: 102 | pass 103 | 104 | else: 105 | print() 106 | print(Fore.RED + " exifdata/json has files inside") 107 | print(Style.RESET_ALL) 108 | print(Style.BRIGHT + "Would you like to delete these files?") 109 | print("It is recommended, just save the files elsewhere") 110 | print(Style.RESET_ALL) 111 | jsonanswer = input("y/n: ") 112 | if jsonanswer == "y": 113 | for filename in files: 114 | os.remove(filename) 115 | else: 116 | print("Not going to delete anything in: " + jsonpath) 117 | print(Fore.RED +"This could cause errors!") 118 | print(Style.RESET_ALL) 119 | pass 120 | 121 | #DIRECTORIES IN EXIFDATA/JSON/ 122 | os.chdir(jsonpath) 123 | for subdir in jsonsubdirs: 124 | if not os.listdir(subdir): 125 | pass 126 | else: 127 | print() 128 | print(Fore.RED + "exifdata/json/" + subdir + " has files inside") 129 | filesinsubdir = os.listdir(subdir) 130 | print(Style.RESET_ALL) 131 | print(Style.BRIGHT + "Would you like to delete these files?") 132 | print("It is recommended, just save the files elsewhere") 133 | print(Style.RESET_ALL) 134 | subdirsanswer = input("y/n: ") 135 | if subdirsanswer == "y": 136 | for f in filesinsubdir: 137 | fstring = ''.join(f) 138 | os.remove(jsonpath +"/"+ subdir +"/"+ fstring) 139 | 140 | else: 141 | print("Not going to delete anything in: " + subdir) 142 | print(Fore.RED +"This could cause errors!") 143 | print(Style.RESET_ALL) 144 | pass 145 | 146 | 147 | #This function sorts the json files into their respective folder based on file extension 148 | def jsonsort(): 149 | 150 | docs = ["docx", "doc", "DOC", "DOCX"] 151 | excel = ["xlsx", "xls", "XLSX", "XLS"] 152 | powerpoint = ["pptx","ppt","PPTX","PPT"] 153 | 154 | 155 | os.chdir(ROOT_DIR + "/exifdata/json/") 156 | jfiles = [filename for filename in os.listdir(".") if os.path.isfile(filename)] 157 | for filename in jfiles: 158 | os.chdir(ROOT_DIR + "/exifdata/json/") 159 | shutil.copy(filename, ROOT_DIR + "/exifdata/json/all") 160 | 161 | try: 162 | with open(filename) as jsonfile: 163 | pjsonfile = json.load(jsonfile) 164 | for p in pjsonfile: 165 | if p['File:FileTypeExtension'] == "jpg": 166 | dest = ROOT_DIR + "/exifdata/json/jpeg" 167 | shutil.move(filename, dest) 168 | pass 169 | 170 | elif p['File:FileTypeExtension'] == "png": 171 | dest = ROOT_DIR + "/exifdata/json/png" 172 | shutil.move(filename, dest) 173 | pass 174 | 175 | elif p['File:FileTypeExtension'] == "gif": 176 | dest = ROOT_DIR + "/exifdata/json/gif" 177 | shutil.move(filename, dest) 178 | pass 179 | 180 | elif p['File:FileTypeExtension'] == "dll": 181 | dest = ROOT_DIR + "/exifdata/json/dll" 182 | shutil.move(filename, dest) 183 | pass 184 | 185 | elif p['File:FileTypeExtension'] == "exe": 186 | dest = ROOT_DIR + "/exifdata/json/exe" 187 | shutil.move(filename, dest) 188 | pass 189 | 190 | elif p['File:FileTypeExtension'] == "html": 191 | dest = ROOT_DIR + "/exifdata/json/html" 192 | shutil.move(filename, dest) 193 | pass 194 | 195 | elif p['File:FileTypeExtension'] == "mkv": 196 | dest = ROOT_DIR + "/exifdata/json/mkv" 197 | shutil.move(filename, dest) 198 | pass 199 | 200 | elif p['File:FileTypeExtension'] == "mp3": 201 | dest = ROOT_DIR + "/exifdata/json/mp3" 202 | shutil.move(filename, dest) 203 | pass 204 | 205 | elif p['File:FileTypeExtension'] == "mp4": 206 | dest = ROOT_DIR + "/exifdata/json/mp4" 207 | shutil.move(filename, dest) 208 | pass 209 | 210 | elif p['File:FileTypeExtension'] == "odp": 211 | dest = ROOT_DIR + "/exifdata/json/odp" 212 | shutil.move(filename, dest) 213 | pass 214 | 215 | elif p['File:FileTypeExtension'] == "ods": 216 | dest = ROOT_DIR + "/exifdata/json/ods" 217 | shutil.move(filename, dest) 218 | pass 219 | 220 | elif p['File:FileTypeExtension'] == "odt": 221 | dest = ROOT_DIR + "/exifdata/json/odt" 222 | shutil.move(filename, dest) 223 | pass 224 | 225 | elif p['File:FileTypeExtension'] == "pdf": 226 | dest = ROOT_DIR + "/exifdata/json/pdf" 227 | shutil.move(filename, dest) 228 | pass 229 | 230 | elif p['File:FileTypeExtension'] == "svg": 231 | dest = ROOT_DIR + "/exifdata/json/svg" 232 | shutil.move(filename, dest) 233 | pass 234 | 235 | elif p['File:FileTypeExtension'] == "torrent": 236 | dest = ROOT_DIR + "/exifdata/json/torrent" 237 | shutil.move(filename, dest) 238 | pass 239 | 240 | elif p['File:FileTypeExtension'] == "wav": 241 | dest = ROOT_DIR + "/exifdata/json/wav" 242 | shutil.move(filename, dest) 243 | pass 244 | 245 | 246 | elif p['File:FileTypeExtension'] == "zip": 247 | dest = ROOT_DIR + "/exifdata/json/zip" 248 | shutil.move(filename, dest) 249 | pass 250 | 251 | # Legacy MS Office Filetypes go into their newer-type's folder 252 | 253 | elif p['File:FileTypeExtension'] in docs: 254 | dest = ROOT_DIR + "/exifdata/json/docx" 255 | shutil.move(filename, dest) 256 | pass 257 | 258 | 259 | elif p['File:FileTypeExtension'] in excel: 260 | dest = ROOT_DIR + "exifdata/json/xlsx" 261 | shutil.move(filename, dest) 262 | pass 263 | 264 | elif p['File:FileTypeExtension'] in powerpoint: 265 | dest = ROOT_DIR + "exifdata/json/pptx" 266 | shutil.move(filename, dest) 267 | pass 268 | 269 | except: 270 | print("Filetype is not supported:" + filename) 271 | 272 | -------------------------------------------------------------------------------- /filter.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | from definitions import ROOT_DIR 4 | from os.path import basename 5 | import os, sys 6 | import shutil 7 | 8 | ''' 9 | These will filter the JSON files and sort them into useful categories. 10 | Each function is a file extension. 11 | 12 | 1) Load Filter 13 | 2) Load Metadata 14 | 3) Compare each line of Metadata to Filter (tuple) 15 | 4) Print Similarities 16 | 17 | IMPORTANT: Always include the name of the file in the filtered tags as a tuple 18 | https://www.miniwebtool.com/remove-line-breaks/ 19 | ''' 20 | 21 | dest = ROOT_DIR + "/exifdata/filtered/" 22 | 23 | def JPEGfilter(): 24 | #Load list of tags as a tuple 25 | jpegtags = ('Adobe:APP14Flags0', 'Adobe:DCTEncodeVersion', 'Composite:CircleOfConfusion', 'Composite:FocalLength35efl', 26 | 'Composite:FOV', 'Composite:GPSDateTime', 'Composite:GPSLatitude', 'Composite:GPSLongitude', 'Composite:GPSPosition', 27 | 'Composite:HyperfocalDistance', 'Composite:ImageSize', 'Composite:LensID', 'Composite:ShutterSpeed', 'Composite:SubSecCreateDate', 28 | 'Composite:SubSecDateTimeOriginal', 'Composite:SubSecModifyDate', 'Ducky:Quality', 'EXIF:ApertureValue', 'EXIF:Copyright', 29 | 'EXIF:CreateDate', 'EXIF:CustomRendered', 'EXIF:DateTimeOriginal', 'EXIF:ExposureProgram', 'EXIF:FileSource', 'EXIF:Flash', 30 | 'EXIF:FlashpixVersion', 'EXIF:FocalLength', 'EXIF:FocalLengthIn35mmFormat', 'EXIF:Gamma', 'ExifIFD:CreateDate', 'ExifIFD:DateTimeOriginal', 31 | 'ExifIFD:ExposureProgram', 'ExifIFD:FileSource', 'ExifIFD:Flash', 'ExifIFD:FlashpixVersion', 'ExifIFD:FocalLength', 32 | 'ExifIFD:FocalLengthIn35mmFormat', 'ExifIFD:Gamma', 'ExifIFD:ISO', 'ExifIFD:LensInfo', 'ExifIFD:LensMake', 'ExifIFD:LensModel', 33 | 'ExifIFD:LightSource', 'ExifIFD:MaxApertureValue', 'ExifIFD:Saturation', 'ExifIFD:SceneCaptureType', 'ExifIFD:SceneType', 34 | 'ExifIFD:SensingMethod', 'ExifIFD:Sharpness', 'ExifIFD:ShutterSpeedValue', 'ExifIFD:SubjectDistance', 'ExifIFD:SubjectDistanceRange', 35 | 'EXIF:ISO', 'EXIF:LensInfo', 'EXIF:LensMake', 'EXIF:LensModel', 'EXIF:LightSource', 'EXIF:Make', 'EXIF:MaxApertureValue', 36 | 'EXIF:Model', 'EXIF:ModifyDate', 'EXIF:Saturation', 'EXIF:SceneCaptureType', 'EXIF:SceneType', 'EXIF:SensingMethod', 'EXIF:Sharpness', 37 | 'EXIF:ShutterSpeedValue', 'EXIF:Software', 'EXIF:SubjectDistance', 'EXIF:SubjectDistanceRange', 'ExifTool:Warning', 'File:Comment', 38 | 'FOV', 'GPS:GPSAltitude', 'GPS:GPSDateStamp', 'GPS:GPSDOP', 'GPS:GPSLatitude', 'GPS:GPSLatitudeRef', 'GPS:GPSLongitude', 39 | 'GPS:GPSLongitudeRef', 'GPS:GPSTimeStamp', 'ICC-header:DeviceAttributes' 'ICC-header:PrimaryPlatform', 'ICC-header:ProfileCreator', 40 | 'ICC-header:ProfileDateTime', 'ICC-header:RenderingIntent', 'ICC-meas:MeasurementObserver', 'ICC_Profile:ProfileCopyright', 41 | 'ICC_Profile:ProfileDescription', 'ICC_Profile:Technology', 'IFD0:Copyright', 'IFD0:ImageDescription', 'IFD0:Orientation', 42 | 'InternalSerialNumber', 'IPTC:By-line', 'IPTC:Caption-Abstract', 'IPTC:CodedCharacterSet', 'IPTC:CopyrightNotice', 'IPTC:Credit', 43 | 'IPTC:ObjectName', 'IPTC:Source', 'IPTC:SpecialInstructions', 'JFIF:JFIFVersion', 'Macro', 'MakerNotes:AFMode', 'MakerNotes:FacesDetected', 44 | 'MakerNotes:FocusMode', 'MakerNotes:FujiFlashMode', 'MakerNotes:InternalSerialNumber', 'MakerNotes:PictureMode', 'MakerNotes:Quality', 45 | 'MakerNotes:Sharpness', 'Photoshop:PhotoshopFormat', 'Photoshop:ProgressiveScans', 'Photoshop:ReaderName', 'Photoshop:URL_List', 46 | 'Photoshop:WriterName', 'Quality', 'System:FileInodeChangeDate', 'System:FileModifyDate', 'XMP:About', 'XMP:CreatorTool', 47 | 'XMP:DateAcquired', 'XMP-dc:Creator', 'XMP-dc:Rights', 'XMP:DocumentID', 'XMP-exif:UserComment', 'XMP:InstanceID', 48 | 'XMP-photoshop:DateCreated', 'XMP-xmp:CreatorTool', 'XMP-xmpMM:DerivedFromDocumentID', 'XMP:XMPToolkit', 'XMP-x:XMPToolkit') 49 | 50 | #Load files then compare to list of tags 51 | jpegsrc = ROOT_DIR + "/exifdata/json/jpeg/" 52 | 53 | os.chdir(jpegsrc) 54 | for jpegfile in os.listdir("."): 55 | with open(jpegfile) as ofilejson: 56 | basejpeg = os.path.basename(jpegfile) 57 | with open(os.path.splitext(basejpeg)[0]+".txt","w") as jpeg_filename: 58 | for line in ofilejson: 59 | for tag in jpegtags: 60 | if tag in line: 61 | jpeg_filename.write(line) 62 | 63 | #Move the outputs to filtered directory 64 | os.chdir(ROOT_DIR + "/exifdata/json/jpeg") 65 | for jpegfile in os.listdir("."): 66 | if ".txt" in jpegfile: 67 | shutil.move(jpegsrc + jpegfile, dest) 68 | 69 | 70 | 71 | def PNGfilter(): 72 | 73 | pngtags = ('File:FileModifyDate','Composite:CircleOfConfusion', 'Composite:FocalLength35efl', 'Composite:FOV', 'Composite:GPSDateTime', 'Composite:GPSLatitude', 74 | 'Composite:GPSLongitude', 'Composite:GPSPosition', 'Composite:HyperfocalDistance', 'Composite:ImageSize', 'Composite:LensID', 75 | 'Composite:ShutterSpeed', 'Composite:SubSecCreateDate', 'Composite:SubSecDateTimeOriginal', 'Composite:SubSecModifyDate', 'Ducky:Quality', 76 | 'File:Comment', 'File:FileAccessDate', 'File:FileInodeChangeDate', 'GPSAltitude', 'GPSDateStamp', 'GPSDOP', 'GPSLatitude', 77 | 'GPSLatitudeRef', 'GPSLongitude', 'GPSLongitudeRef', 'GPSTimeStamp', 'ICC-header:DeviceAttributes' 'ICC-header:PrimaryPlatform', 78 | 'ICC-header:ProfileCreator', 'ICC-header:ProfileDateTime', 'ICC-header:RenderingIntent', 'ICC-meas:MeasurementObserver', 79 | 'ICC_Profile:DeviceMfgDesc', 'ICC_Profile:DeviceModel', 'ICC_Profile:DeviceModelDesc', 'ICC_Profile:MakeAndModel', 80 | 'ICC_Profile:MeasurementIlluminant', 'ICC_Profile:MeasurementObserver', 'ICC_Profile:PrimaryPlatform', 'ICC_Profile:ProfileCMMType', 81 | 'ICC_Profile:ProfileCopyright', 'ICC_Profile:ProfileCreator' 'ICC_Profile:ProfileDateTime', 'ICC_Profile:ProfileDescription', 82 | 'ICC_Profile:ProfileFileSignature', 'ICC_Profile:ProfileID', 'ICC_Profile:RenderingIntent', 'ICC_Profile:Technology', 'ICC_Profile:ViewingCondDesc', 83 | 'PNG:Copyright', 'PNG:CreationTime', 'PNG:datecreate', 'PNG:datemodify', 'PNG:Filter', 'PNG:ModifyDate', 'PNG:Palette', 'PNG:ProfileName', 84 | 'PNG:Software', 'PNG:SRGBRendering', 'PNG:VirtualPageUnits', 'XMP:About', 'XMP:Compression', 'XMP:CreateDate', 'XMP:CreatorTool', 85 | 'XMP:DateAcquired', 'XMP:DateCreated', 'XMP-dc:Creator', 'XMP-dc:Rights', 'XMP:DerivedFromDocumentID', 'XMP:DerivedFromInstanceID', 86 | 'XMP:DerivedFromOriginalDocumentID', 'XMP:DocumentID', 'XMP-exif:UserComment', 'XMP:HistoryAction', 'XMP:HistoryChanged', 87 | 'XMP:HistoryInstanceID', 'XMP:HistoryParameters', 'XMP:HistorySoftwareAgent', 'XMP:HistoryWhen', 'XMP:ICCProfileName', 'XMP:InstanceID', 88 | 'XMP:Marked', 'XMP:MetadataDate', 'XMP:ModifyDate', 'XMP:Orientation', 'XMP-photoshop:DateCreated', 'XMP:Title', 'XMP:TransmissionReference', 89 | 'XMP:UserComment', 'XMP-xmp:CreatorTool', 'XMP-xmpMM:DerivedFromDocumentID', 'XMP:XMPToolkit', 'XMP:XMPToolkit', 'XMP-x:XMPToolkit') 90 | 91 | pngsrc = ROOT_DIR + "/exifdata/json/png/" 92 | 93 | os.chdir(pngsrc) 94 | for pngfile in os.listdir("."): 95 | with open(pngfile) as opngfile: 96 | basepng = os.path.basename(pngfile) 97 | with open(os.path.splitext(basepng)[0]+".txt","w") as png_filename: 98 | for line in opngfile: 99 | for tag in pngtags: 100 | if tag in line: 101 | png_filename.write(line) 102 | 103 | os.chdir(pngsrc) 104 | for pngfile in os.listdir("."): 105 | if ".txt" in pngfile: 106 | shutil.move(pngsrc + pngfile, dest) 107 | 108 | 109 | def GIFfilter(): 110 | 111 | giftags =("File:FileModifyDate","File:Comment" ,"HTML:HTTPEquivXUaCompatible","HTML:viewport","HTML:twitterAccount_id","HTML:twitterCard", 112 | "HTML:twitterTitle","HTML:twitterCreator","HTML:twitterSite","HTML:twitterDescription","HTML:twitterImageSrc","HTML:twitterDomain", 113 | "HTML:twitterPlayer","HTML:Rating","HTML:Description","HTML:Author","HTML:Keywords","HTML:pinterest","HTML:Title","GIF:GIFVersion", 114 | "GIF:AnimationIterations","GIF:FrameCount","GIF:Duration","HTML:Copyright","HTML:msapplicationTileColor","HTML:msapplicationTileImage", 115 | "HTML:pDomain_verify") 116 | 117 | gifsrc = ROOT_DIR + "/exifdata/json/gif/" 118 | 119 | os.chdir(gifsrc) 120 | for giffile in os.listdir("."): 121 | with open(giffile) as ogiffile: 122 | basegif = os.path.basename(giffile) 123 | with open(os.path.splitext(basegif)[0]+".txt","w") as gif_filename: 124 | for line in ogiffile: 125 | for tag in giftags: 126 | if tag in line: 127 | gif_filename.write(line) 128 | 129 | os.chdir(gifsrc) 130 | for giffile in os.listdir("."): 131 | if ".txt" in giffile: 132 | shutil.move(gifsrc + giffile, dest) 133 | 134 | 135 | 136 | def DOCXfilter(): 137 | 138 | docxtags=("File:FileModifyDate","File:MIMEType","ZIP:ZipModifyDate","XML:Template","XML:TotalEditTime","XML:Application", 139 | "XML:Paragraphs","XML:LastPrinted","XML:CreateDate","XML:RevisionNumber","XMP:Creator","XML:ModifyDate","XMP:Creator", 140 | "XMP:Language","XML:Words","XML:Pages","XML:CharactersWithSpaces","XMP:Description","XMP:Subject","XMP:Title","XML:Characters", 141 | "XML:DocSecurity","XML:Keywords","XML:Lines","XML:Company","XML:SharedDoc","XML:AppVersion","XML:LastModifiedBy","FlashPix:Title", 142 | "FlashPix:Subject","FlashPix:Author","FlashPix:LastModifiedBy","FlashPix:RevisionNumber","FlashPix:Software", 143 | "FlashPix:TotalEditTime","FlashPix:LastPrinted","FlashPix:CreateDate","FlashPix:Pages","FlashPix:Words","FlashPix:Characters", 144 | "FlashPix:Security","FlashPix:CodePage","FlashPix:Company","FlashPix:Lines","FlashPix:Paragraphs","FlashPix:CharCountWithSpaces", 145 | "FlashPix:SharedDoc","FlashPix:CompObjUserType","FlashPix:Comments","FlashPix:Bytes","FlashPix:Slides","FlashPix:Notes", 146 | "FlashPix:HiddenSlides","FlashPix:AppVersion") 147 | 148 | docxsrc = ROOT_DIR + "/exifdata/json/docx/" 149 | 150 | os.chdir(docxsrc) 151 | for docxfile in os.listdir("."): 152 | with open(docxfile) as odocxfile: 153 | basedocx = os.path.basename(docxfile) 154 | with open(os.path.splitext(basedocx)[0]+".txt","w") as docx_filename: 155 | for line in odocxfile: 156 | for tag in docxtags: 157 | if tag in line: 158 | docx_filename.write(line) 159 | 160 | os.chdir(docxsrc) 161 | for docxfile in os.listdir("."): 162 | if ".txt" in docxfile: 163 | shutil.move(docxsrc + docxfile, dest) 164 | 165 | 166 | def EXEfilter(): 167 | 168 | exetags=("File:FileType","File:FileModifyDate","EXE:MachineType","EXE:TimeStamp","EXE:PEType","EXE:LinkerVersion", 169 | "EXE:OSVersion","EXE:Subsystem","EXE:ProductName","EXE:OriginalFileName","EXE:LegalCopyright","EXE:InternalName", 170 | "EXE:FileVersion","EXE:FileDescription","EXE:CompanyName","EXE:CharacterSet","EXE:LanguageCode","EXE:FileOS", 171 | "EXE:ProductVersionNumber","EXE:EntryPoint","EXE:SquirrelAwareVersion","EXE:ProductVersion","EXE:CharacterSet", 172 | "EXE:Comments","EXE:ObjectFileType","EXE:FileVersionNumber","EXE:FileFlags","EXE:InitializedDataSize") 173 | 174 | exesrc = ROOT_DIR + "/exifdata/json/exe/" 175 | 176 | os.chdir(exesrc) 177 | for exefile in os.listdir("."): 178 | with open(exefile) as oexefile: 179 | baseexe = os.path.basename(exefile) 180 | with open(os.path.splitext(baseexe)[0]+".txt","w") as exe_filename: 181 | for line in oexefile: 182 | for tag in exetags: 183 | if tag in line: 184 | exe_filename.write(line) 185 | 186 | os.chdir(exesrc) 187 | for exefile in os.listdir("."): 188 | if ".txt" in exefile: 189 | shutil.move(exesrc + exefile, dest) 190 | 191 | 192 | def MKVfilter(): 193 | mkvtags=("File:FileModifyDate","Matroska:MuxingApp","Matroska:WritingApp","Matroska:Duration","Matroska:TrackType","Matroska:Title","Matroska:AudioSampleRate", 194 | "Matroska:VideoFrameRate","Matroska:VideoCodecID","Matroska:ImageWidth","Matroska:ImageHeight","Composite:ImageSize","Composite:Megapixels") 195 | 196 | mkvsrc = ROOT_DIR + "/exifdata/json/mkv/" 197 | 198 | os.chdir(mp3src) 199 | for mkvfile in os.listdir("."): 200 | with open(mkvfile) as omkvfile: 201 | basemkv = os.path.basename(mkvfile) 202 | with open(os.path.splitext(basemkv)[0]+".txt","w") as mkv_filename: 203 | for line in omkvfile: 204 | for tag in mkvtags: 205 | if tag in line: 206 | mkv_filename.write(line) 207 | 208 | os.chdir(mkvsrc) 209 | for mkvfile in os.listdir("."): 210 | if ".txt" in mkvfile: 211 | shutil.move(mkvsrc + mkvfile, dest) 212 | 213 | 214 | 215 | 216 | def MP3filter(): 217 | 218 | mp3tags=('File:ID3Size','MPEG:MPEGAudioVersion','MPEG:AudioLayer','MPEG:AudioBitrate','MPEG:SampleRate', 219 | 'MPEG:ChannelMode','MPEG:MSStereo','MPEG:IntensityStereo','MPEG:CopyrightFlag','MPEG:OriginalMedia','MPEG:Emphasis', 220 | 'ID3:Title','ID3:Artist','ID3:Album','ID3:Year','ID3:Comment','ID3:Genre','Composite:DateTimeOriginal','Composite:Duration') 221 | 222 | 223 | mp3src = ROOT_DIR + "/exifdata/json/mp3/" 224 | 225 | os.chdir(mp3src) 226 | for mp3file in os.listdir("."): 227 | with open(mp3file) as omp3file: 228 | basemp3 = os.path.basename(mp3file) 229 | with open(os.path.splitext(basemp3)[0]+".txt","w") as mp3_filename: 230 | for line in omp3file: 231 | for tag in mp3tags: 232 | if tag in line: 233 | mp3_filename.write(line) 234 | 235 | os.chdir(mp3src) 236 | for mp3file in os.listdir("."): 237 | if ".txt" in mp3file: 238 | shutil.move(mp3src + mp3file, dest) 239 | 240 | 241 | def MP4filter(): 242 | mp4tags=("QuickTime:CreateDate","QuickTime:Duration","QuickTime:GraphicsMode","QuickTime:CompressorName","QuickTime:MajorBrand","QuickTime:MediaLanguageCode", 243 | "QuickTime:HandlerDescription","QuickTime:HandlerVendorID","XMP:CreateDate","XMP:VideoFieldOrder","XMP:HistorySoftwareAgent","XMP:XMPToolkit", 244 | "XMP:PantryHistorySoftwareAgent","XMP:WindowsAtomUncProjectPath","XMP:CreatorTool","XMP:MacAtomPosixProjectPath") 245 | 246 | mp4src = ROOT_DIR + "/exifdata/json/mp4/" 247 | 248 | os.chdir(mp4src) 249 | for mp4file in os.listdir("."): 250 | with open(mp4file) as omp4file: 251 | basemp4 = os.path.basename(mp4file) 252 | with open(os.path.splitext(basemp4)[0]+".txt","w") as mp4_filename: 253 | for line in omp4file: 254 | for tag in mp4tags: 255 | if tag in line: 256 | mp4_filename.write(line) 257 | 258 | os.chdir(mp4src) 259 | for mp4file in os.listdir("."): 260 | if ".txt" in mp4file: 261 | shutil.move(mp4src + mp4file, dest) 262 | 263 | 264 | def HTMLfilter(): 265 | 266 | htmltags=("HTML:Title","HTML:Description","HTML:twitterCard","HTML:Robots","HTML:twitterTitle","HTML:twitterDescription","HTML:twitterUrl","HTML:twitterImage", 267 | "HTML:googleSiteVerification","HTML:swiftPageName","HTML:msapplicationTileImage","HTML:hostname","HTML:googleAnalytics","HTML:requestId","HTML:userLogin", 268 | "HTML:expectedHostname","HTML:jsProxySiteDetectionPayload","HTML:enabledFeatures","HTML:browserStatsUrl","HTML:browserErrorsUrl","HTML:themeColor","HTML:mobileWebAppCapable", 269 | "HTML:Keywords","HTML:csrfToken","HTML:themeColor") 270 | 271 | 272 | htmlsrc = ROOT_DIR + "/exifdata/json/html/" 273 | 274 | os.chdir(htmlsrc) 275 | for htmlfile in os.listdir("."): 276 | with open(htmlfile) as ohtmlfile: 277 | basehtml = os.path.basename(htmlfile) 278 | with open(os.path.splitext(basehtml)[0]+".txt","w") as html_filename: 279 | for line in ohtmlfile: 280 | for tag in htmltags: 281 | if tag in line: 282 | html_filename.write(line) 283 | 284 | os.chdir(htmlsrc) 285 | for htmlfile in os.listdir("."): 286 | if ".txt" in htmlfile: 287 | shutil.move(htmlsrc + htmlfile, dest) 288 | 289 | def ODPfilter(): 290 | 291 | odptags=("XMP:Creation-date","XMP:Date","XMP:Editing-duration","XMP:Editing-cycles","XMP:Generator", 292 | "XMP:Document-statisticObject-count","XMP:Language","XMP:Print-date","XMP:Creator","XMP:User-definedName", 293 | "XMP:XMPToolkit","XMP:Description","XMP:Title","XMP:CreationDate--Text","XMP:Producer","XMP:CreatorTool", 294 | "XMP:ModifyDate","XMP:About","XMP:CreatorTool","XMP:DateAcquired","XMP-dc:Creator","XMP-dc:Rights","XMP:DocumentID", 295 | "XMP-exif:UserComment","XMP:InstanceID","XMP-photoshop:DateCreated","XMP-xmp:CreatorTool","XMP-xmpMM:DerivedFromDocumentID", 296 | "XMP:XMPToolkit","XMP-x:XMPToolkit") 297 | 298 | odpsrc = ROOT_DIR + "/exifdata/json/odp/" 299 | 300 | os.chdir(odpsrc) 301 | for odpfile in os.listdir("."): 302 | with open(odpfile) as oodpfile: 303 | baseodp = os.path.basename(odpfile) 304 | with open(os.path.splitext(baseodp)[0]+".txt","w") as odp_filename: 305 | for line in oodpfile: 306 | for tag in odptags: 307 | if tag in line: 308 | odp_filename.write(line) 309 | 310 | os.chdir(odpsrc) 311 | for odpfile in os.listdir("."): 312 | if ".txt" in odpfile: 313 | shutil.move(odpsrc + odpfile, dest) 314 | 315 | 316 | 317 | def PPTXfilter(): 318 | pptxtags = ('File:FileModifyDate', 'File:FileAccessDate', 'File:FileInodeChangeDate', 'FlashPix:CurrentUser', 319 | 'FlashPix:Title', 'FlashPix:Author', 'FlashPix:Template', 'FlashPix:LastModifiedBy', 'FlashPix:RevisionNumber', 'FlashPix:Software', 320 | 'FlashPix:TotalEditTime', 'FlashPix:CreateDate', 'FlashPix:ModifyDate', 'FlashPix:Words', 'FlashPix:PresentationTarget', 321 | 'FlashPix:Company', 'FlashPix:Bytes', 'FlashPix:Paragraphs', 'FlashPix:Slides', 'FlashPix:Notes', 'FlashPix:HiddenSlides', 322 | 'FlashPix:MMClips', 'FlashPix:AppVersion', 'FlashPix:ScaleCrop', 'FlashPix:LinksUpToDate', 'FlashPix:SharedDoc', 323 | 'FlashPix:HyperlinksChanged', 'FlashPix:TitleOfParts', 'FlashPix:HeadingPairs', 'FlashPix:CodePage', 'FlashPix:Hyperlinks', 324 | 'FlashPix:ContentType', 'FlashPix:HyperlinkBase', 'XML:TitlesOfParts', 'ZIP:ZipRequiredVersion', 'ZIP:ZipFileName', 325 | 'ZIP:ZipModifyDate', 'XML:Template', 'XML:TotalEditTime', 'XML:Words', 'XML:Application', 'XML:PresentationFormat', 326 | 'XML:Paragraphs', 'XML:Slides', 'XML:Notes', 'XML:HiddenSlides', 'XML:MMClips', 'XML:ScaleCrop', 'XML:HeadingPairs', 327 | 'XML:LinksUpToDate', 'XML:SharedDoc', 'XML:HyperlinksChanged', 'XML:AppVersion', 'XML:LastModifiedBy', 'XML:RevisionNumber', 328 | 'XML:CreateDate', 'XML:ModifyDate', 'XML:KSOProductBuildVer', 'XMP:Title', 'XMP:Creator', 'XML:Company', 'XML:LastPrinted') 329 | 330 | pptxsrc = ROOT_DIR + "/exifdata/json/pptx/" 331 | 332 | os.chdir(pptxsrc) 333 | for pptxfile in os.listdir("."): 334 | with open(pptxfile) as opptxfile: 335 | basepptx = os.path.basename(pptxfile) 336 | with open(os.path.splitext(basepptx)[0]+".txt","w") as pptx_filename: 337 | for line in opptxfile: 338 | for tag in pptxtags: 339 | if tag in line: 340 | pptx_filename.write(line) 341 | 342 | os.chdir(pptxsrc) 343 | for pptxfile in os.listdir("."): 344 | if ".txt" in pptxfile: 345 | shutil.move(pptxsrc + pptxfile, dest) 346 | 347 | 348 | def ODSfilter(): 349 | odstags=("XMP:About","XMP:CreatorTool","XMP:DateAcquired","XMP-dc:Creator","XMP-dc:Rights","XMP:DocumentID","XMP-exif:UserComment","XMP:InstanceID", 350 | "XMP-photoshop:DateCreated","XMP-xmp:CreatorTool","XMP-xmpMM:DerivedFromDocumentID","XMP:XMPToolkit","XMP-x:XMPToolkit","XMP:Creator","XMP:Compression", 351 | "XMP:CreateDate","XMP:CreatorTool","XMP:DateAcquired","XMP:DateCreated","XMP-dc:Creator","XMP-dc:Rights","XMP:DerivedFromDocumentID","XMP:DerivedFromInstanceID", 352 | "XMP:DerivedFromOriginalDocumentID","XMP:DocumentID","XMP-exif:UserComment","XMP:HistoryAction","XMP:HistoryChanged","XMP:HistoryInstanceID","XMP:HistoryParameters", 353 | "XMP:HistorySoftwareAgent","XMP:HistoryWhen","XMP:ICCProfileName","XMP:InstanceID","XMP:Marked","XMP:MetadataDate","XMP:ModifyDate","XMP:Orientation","XMP-photoshop:DateCreated","XMP:Title", 354 | "XMP:TransmissionReference","XMP:UserComment","XMP-xmp:CreatorTool","XMP-xmpMM:DerivedFromDocumentID","XMP:XMPToolkit","XMP:XMPToolkit","XMP-x:XMPToolkit", 355 | "XMP:Date","XMP:Editing-duration","XMP:Editing-cycles","XMP:Document-statisticTable-count","XMP:Document-statisticCell-count","XMP:Document-statisticObject-count", 356 | "XMP:Generator") 357 | 358 | odssrc = ROOT_DIR + "/exifdata/json/ods/" 359 | 360 | os.chdir(odssrc) 361 | for odsfile in os.listdir("."): 362 | with open(odsfile) as oodsfile: 363 | baseods = os.path.basename(odsfile) 364 | with open(os.path.splitext(baseods)[0]+".txt","w") as ods_filename: 365 | for line in oodsfile: 366 | for tag in odstags: 367 | if tag in line: 368 | ods_filename.write(line) 369 | 370 | os.chdir(odssrc) 371 | for odsfile in os.listdir("."): 372 | if ".txt" in odsfile: 373 | shutil.move(odssrc + odsfile, dest) 374 | 375 | def PDFfilter(): 376 | 377 | pdftags=("PDF:PageCount","PDF:PDFVersion","PDF:Author","PDF:CreationDate--Text","PDF:CreateDate","PDF:Creator","PDF:ModifyDate","PDF:Producer", 378 | "PDF:Subject","PDF:Title","XMP:XMPToolkit","XMP:Creator","XMP:Description","XMP:Title","XMP:CreationDate--Text","XMP:Producer","XMP:CreatorTool", 379 | "XMP:ModifyDate","XMP:About","XMP:CreatorTool","XMP:DateAcquired","XMP-dc:Creator","XMP-dc:Rights","XMP:DocumentID","XMP-exif:UserComment", 380 | "XMP:InstanceID","XMP-photoshop:DateCreated","XMP-xmp:CreatorTool","XMP-xmpMM:DerivedFromDocumentID","XMP:XMPToolkit","XMP-x:XMPToolkit", 381 | "PDF:PageCount","PDF:Language","PDF:PTEX_Fullbanner","PDF:PXCViewerInfo") 382 | 383 | pdftsrc = ROOT_DIR + "/exifdata/json/pdf/" 384 | 385 | os.chdir(pdfsrc) 386 | for pdffile in os.listdir("."): 387 | with open(pdffile) as opdffile: 388 | basepdf = os.path.basename(pdffile) 389 | with open(os.path.splitext(basepdf)[0]+".txt","w") as pdf_filename: 390 | for line in opdffile: 391 | for tag in pdftags: 392 | if tag in line: 393 | pdf_filename.write(line) 394 | 395 | os.chdir(pdfsrc) 396 | for pdffile in os.listdir("."): 397 | if ".txt" in pdffile: 398 | shutil.move(pdfsrc + pdffile, dest) 399 | 400 | 401 | 402 | def SVGfilter(): 403 | svgtags=("SVG:Xmlns","SVG:ID","SVG:ImageHeight","SVG:ImageWidth","SVG:Version","SVG:Docname","SVG:Output_extension","SVG:Export-filename","SVG:MetadataID", 404 | "XMP:WorkFormat","XMP:WorkType","XMP:WorkDescription","XMP:WorkTitle","XMP:WorkPublisherAgentTitle","XMP:WorkCreatorAgentTitle","XMP:WorkRightsAgentTitle", 405 | "XMP:WorkLicense","XMP:WorkLanguage","XMP:About","XMP:LicensePermits") 406 | 407 | svgsrc = ROOT_DIR + "/exifdata/json/svg/" 408 | 409 | os.chdir(svgsrc) 410 | for svgfile in os.listdir("."): 411 | with open(svgfile) as osvgfile: 412 | basesvg = os.path.basename(svgfile) 413 | with open(os.path.splitext(basesvg)[0]+".txt","w") as svg_filename: 414 | for line in osvgfile: 415 | for tag in svgtags: 416 | if tag in line: 417 | svg_filename.write(line) 418 | 419 | os.chdir(svgsrc) 420 | for svgfile in os.listdir("."): 421 | if ".txt" in svgfile: 422 | shutil.move(svgsrc + svgfile, dest) 423 | 424 | 425 | def TORRENTfilter(): 426 | 427 | torrenttags = ('Torrent:Announce','Torrent:CreateDate','Torrent:Length','Torrent:Name','Torrent:PieceLength','Torrent:Comment','Torrent:Creator','Torrent:URLList', 428 | 'Torrent:Private','Torrent:AnnounceList','Torrent:File','Torrent:FileLength') 429 | 430 | torrentsrc = ROOT_DIR + "/exifdata/json/torrent/" 431 | 432 | os.chdir(torrentsrc) 433 | for torrentfile in os.listdir("."): 434 | with open(torrentfile) as otorrentfile: 435 | basetorrent = os.path.basename(torrentfile) 436 | with open(os.path.splitext(basetorrent)[0]+".txt","w") as torrent_filename: 437 | for line in otorrentfile: 438 | for tag in torrenttags: 439 | if tag in line: 440 | torrent_filename.write(line) 441 | 442 | os.chdir(torrentsrc) 443 | for torrentfile in os.listdir("."): 444 | if ".txt" in torrentfile: 445 | shutil.move(torrentsrc + torrentfile, dest) 446 | 447 | def WAVfilter(): 448 | wavtags=("File:FileModifyDate","RIFF:Encoding","RIFF:SampleRate","RIFF:AvgBytesPerSec","RIFF:Description","RIFF:Originator","RIFF:DateTimeOriginal", 449 | "RIFF:OriginatorReference","Composite:Duration","RIFF:Software","RIFF:Title","RIFF:Artist","RIFF:Comment","RIFF:DateCreated") 450 | 451 | wavsrc = ROOT_DIR + "/exifdata/json/wav/" 452 | 453 | os.chdir(wavsrc) 454 | for wavfile in os.listdir("."): 455 | with open(wavfile) as owavfile: 456 | basewav = os.path.basename(wavfile) 457 | with open(os.path.splitext(basewav)[0]+".txt","w") as wav_filename: 458 | for line in owavfile: 459 | for tag in wavtags: 460 | if tag in line: 461 | wav_filename.write(line) 462 | 463 | os.chdir(wavsrc) 464 | for wavfile in os.listdir("."): 465 | if ".txt" in wavfile: 466 | shutil.move(wavsrc + wavfile, dest) 467 | 468 | 469 | def ZIPfilter(): 470 | 471 | ziptags=("File:FileModifyDate","ZIP:ZipRequiredVersion","ZIP:ZipModifyDate","ZIP:ZipFileName","ZIP:ZipUncompressedSize","ZIP:ZipCompressedSize","ZIP:ZipCRC") 472 | 473 | zipsrc = ROOT_DIR + "/exifdata/json/zip/" 474 | 475 | os.chdir(zipsrc) 476 | for zipfile in os.listdir("."): 477 | with open(zipfile) as ozipfile: 478 | basezip = os.path.basename(zipfile) 479 | with open(os.path.splitext(basezip)[0]+".txt","w") as zip_filename: 480 | for line in ozipfile: 481 | for tag in ziptags: 482 | if tag in line: 483 | zip_filename.write(line) 484 | 485 | os.chdir(zipsrc) 486 | for zipfile in os.listdir("."): 487 | if ".txt" in zipfile: 488 | shutil.move(zipsrc + zipfile, dest) 489 | 490 | def DLLfilter(): 491 | 492 | dlltags=("File:FileType","File:FileModifyDate","EXE:MachineType","EXE:TimeStamp","EXE:PEType","EXE:LinkerVersion","EXE:OSVersion", 493 | "EXE:Subsystem","EXE:ProductName","EXE:OriginalFileName","EXE:LegalCopyright","EXE:InternalName","EXE:FileVersion","EXE:FileDescription", 494 | "EXE:CompanyName","EXE:CharacterSet","EXE:LanguageCode","EXE:FileOS","EXE:ProductVersionNumber","EXE:EntryPoint","EXE:SquirrelAwareVersion", 495 | "EXE:ProductVersion","EXE:CharacterSet","EXE:Comments","EXE:ObjectFileType","EXE:FileVersionNumber","EXE:FileFlags","EXE:InitializedDataSize") 496 | 497 | dllsrc = ROOT_DIR + "/exifdata/json/dll/" 498 | 499 | os.chdir(dllsrc) 500 | for dllfile in os.listdir("."): 501 | with open(dllfile) as odllfile: 502 | basedll = os.path.basename(dllfile) 503 | with open(os.path.splitext(basedll)[0]+".txt","w") as dll_filename: 504 | for line in odllfile: 505 | for tag in dlltags: 506 | if tag in line: 507 | dll_filename.write(line) 508 | 509 | os.chdir(dllsrc) 510 | for dllfile in os.listdir("."): 511 | if ".txt" in dllfile: 512 | shutil.move(dllsrc + dllfile, dest) 513 | 514 | 515 | 516 | 517 | def XLSXfilter(): 518 | 519 | xlsxtags=("XML:LastModifiedBy","XML:CreateDate","XML:ModifyDate","XML:Application","XML:DocSecurity","XML:HeadingPairs", 520 | "XML:TitlesOfParts","XML:SharedDoc","XML:AppVersion","XML:Keywords","XML:Company","XMP:Title","XMP:Subject","XMP:Creator", 521 | "XMP:Description","FlashPix:Author","FlashPix:CodePage","FlashPix:LastModifiedBy","FlashPix:Software","FlashPix:CreateDate", 522 | "FlashPix:ModifyDate","FlashPix:Security","FlashPix:Company","FlashPix:TitleOfParts","FlashPix:HeadingPairs","FlashPix:SharedDoc", 523 | "FlashPix:AppVersion","FlashPix:Tag_EmailSubject","FlashPix:Tag_AuthorEmail","FlashPix:Tag_AuthorEmailDisplayName","XML:Application") 524 | 525 | xlsxsrc = ROOT_DIR + "/exifdata/json/xlsx/" 526 | 527 | os.chdir(xlsxsrc) 528 | for xlsxfile in os.listdir("."): 529 | with open(xlsxfile) as oxlsxfile: 530 | basexlsx = os.path.basename(xlsxfile) 531 | with open(os.path.splitext(basexlsx)[0]+".txt","w") as xlsx_filename: 532 | for line in oxlsxfile: 533 | for tag in xlsxtags: 534 | if tag in line: 535 | xlsx_filename.write(line) 536 | 537 | os.chdir(xlsxsrc) 538 | for xlsxfile in os.listdir("."): 539 | if ".txt" in xlsxfile: 540 | shutil.move(xlsxsrc + xlsxfile, dest) 541 | 542 | 543 | def ODTfilter(): 544 | 545 | odttags=("File:FileModifyDate","XMP:Creation-date","XMP:Date","XMP:Editing-duration","XMP:Editing-cycles","XMP:Generator", 546 | "XMP:Document-statisticObject-count","XMP:Language","XMP:Print-date","XMP:User-definedName","XMP:XMPToolkit", 547 | "XMP:Creator","XMP:Description","XMP:Title","XMP:CreationDate--Text","XMP:Producer","XMP:CreatorTool","XMP:ModifyDate", 548 | "XMP:About","XMP:DateAcquired","XMP-dc:Creator","XMP-dc:Rights","XMP:DocumentID","XMP-exif:UserComment","XMP:InstanceID", 549 | "XMP-photoshop:DateCreated","XMP-xmp:CreatorTool","XMP-xmpMM:DerivedFromDocumentID","XMP:XMPToolkit","XMP-x:XMPToolkit") 550 | 551 | odtsrc = ROOT_DIR + "/exifdata/json/odt/" 552 | 553 | os.chdir(odtsrc) 554 | for odtfile in os.listdir("."): 555 | with open(odtfile) as oodtfile: 556 | baseodt = os.path.basename(odtfile) 557 | with open(os.path.splitext(baseodt)[0]+".txt","w") as odt_filename: 558 | for line in oodtfile: 559 | for tag in odttags: 560 | if tag in line: 561 | odt_filename.write(line) 562 | 563 | os.chdir(odtsrc) 564 | for odtfile in os.listdir("."): 565 | if ".txt" in odtfile: 566 | shutil.move(odtsrc + odtfile, dest) 567 | 568 | 569 | 570 | 571 | def filterexec(): 572 | try: 573 | ODPfilter() 574 | except: 575 | pass 576 | 577 | try: 578 | MP3filter() 579 | except: 580 | pass 581 | 582 | try: 583 | DLLfilter() 584 | except: 585 | pass 586 | 587 | try: 588 | TORRENTfilter() 589 | except: 590 | pass 591 | 592 | try: 593 | PPTXfilter() 594 | except: 595 | pass 596 | 597 | try: 598 | ODSfilter() 599 | except: 600 | pass 601 | 602 | try: 603 | ZIPfilter() 604 | except: 605 | pass 606 | 607 | try: 608 | EXEfilter() 609 | except: 610 | pass 611 | 612 | try: 613 | XLSXfilter() 614 | except: 615 | pass 616 | 617 | try: 618 | SVGfilter() 619 | except: 620 | pass 621 | 622 | try: 623 | PDFfilter() 624 | except: 625 | pass 626 | 627 | try: 628 | MP4filter() 629 | except: 630 | pass 631 | 632 | try: 633 | HTMLfilter() 634 | except: 635 | pass 636 | 637 | try: 638 | DOCXfilter() 639 | except: 640 | pass 641 | 642 | try: 643 | GIFfilter() 644 | except: 645 | pass 646 | try: 647 | WAVfilter() 648 | 649 | except: 650 | pass 651 | 652 | try: 653 | JPEGfilter() 654 | except: 655 | pass 656 | 657 | try: 658 | MKVfilter() 659 | except: 660 | pass 661 | 662 | try: 663 | PNGfilter() 664 | except: 665 | pass 666 | 667 | try: 668 | ODTfilter() 669 | except: 670 | pass 671 | 672 | -------------------------------------------------------------------------------- /markups.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import os, os.path, sys 4 | import dominate 5 | import shutil 6 | import subprocess 7 | from dominate.tags import * 8 | from dominate.util import raw 9 | from definitions import ROOT_DIR 10 | from os import listdir 11 | from os.path import isfile, join 12 | 13 | def statshtml(): 14 | # This will display stats about the files 15 | # Some stats to include will be... 16 | # 1) Number of file types (graph too) 17 | # 2) Geolocations with map (maybe?) 18 | # 3) Filtered vs. unfiltered meta 19 | # 4) File Size Graph? 20 | # 5) Software 21 | # 6) Device/manufact. model 22 | # 7) Top 5 largest files 23 | # Then Generate the html report 24 | 25 | # ADD CUSTOM TAGS HERE: 26 | # The best way to look for tags is to run exiftool -j -G 27 | # FORMAT: add "" and a comma to separate them. Example: "Composite:GPSPosition","EXIF:GPSAltitude" 28 | # 29 | # Leave the PLACEHOLDER there 30 | 31 | 32 | 33 | 34 | customtags = ("PLACEHOLDER", "PLACEHOLDER") 35 | 36 | ################################################################################# 37 | 38 | # FILETYPE CHART 39 | # Stats about the number of files in each supported filetype 40 | # Supported filetypes: dll, docx, exe, gif, html, jpeg, mkv, mp3, mp4, odp, odt ods, pdf, png, pptx, svg, torrent, wav, xlsx, zip 41 | jsonexifdir = (ROOT_DIR + "/exifdata/json/") 42 | statsdir = (ROOT_DIR + "/exifdata/stats/") 43 | jsondirs = ("dll", "docx", "exe", "gif", "html", "jpeg", "mkv", "mp3", "mp4", "odp","odt", "ods", "pdf", 44 | "png", "pptx", "svg", "torrent", "wav", "xlsx", "zip") 45 | 46 | 47 | try: 48 | filetypestxt= open(statsdir + "filetypes.txt","w+") 49 | os.chdir(jsonexifdir) 50 | for dirs in jsondirs: 51 | filetypestxt.write(dirs + ": " ) 52 | os.chdir(jsonexifdir + dirs) 53 | listfiles = os.listdir(".") 54 | numberoffiles = str(len(listfiles)) 55 | filetypestxt.write(numberoffiles + "\n") 56 | 57 | os.chdir(jsonexifdir) 58 | unkfiles = [f for f in listdir(".") if isfile(join(".", f))] 59 | filetypestxt.write("Unknown Files: " + str(len(unkfiles)) + "\n") 60 | os.chdir(ROOT_DIR + "/exifdata/html/") 61 | filetypestxt.write("Total Files: ") 62 | listtotal = os.listdir(".") 63 | numberoftotalfiles = str(len(listtotal)) 64 | filetypestxt.write(numberoftotalfiles + "\n") 65 | filetypestxt.close() 66 | 67 | except: 68 | print("Error: Filetype chart generation failed: ", sys.exc_info() ) 69 | 70 | #FILE SIZE CHART 71 | #Stats about the top 10 largest files 72 | mediadir = (ROOT_DIR + "/media") 73 | 74 | try: 75 | os.chdir(mediadir) 76 | subprocess.run("du -k * | sort -nr > filesizes.txt", shell=True, check=True) 77 | shutil.move(mediadir +"/" + "filesizes.txt", statsdir) 78 | 79 | except: 80 | print("Error: Filesize chart generation failed: ", sys.exc_info() ) 81 | 82 | 83 | #GEOLOCATION CHARTS 84 | #Filters through media to find only files with geolocation data 85 | jsonalldir = (ROOT_DIR + "/exifdata/json/all/") 86 | geolocationsdir = (ROOT_DIR + "/exifdata/stats/geolocations/") 87 | geotags=("Composite:GPSPosition","EXIF:GPSAltitude", "EXIF:GPSLongitude", "EXIF:GPSLatitude") 88 | 89 | 90 | try: 91 | os.chdir(jsonalldir) 92 | for gfile in os.listdir("."): 93 | with open(gfile) as ogfile: 94 | baseg = os.path.basename(gfile) 95 | with open(os.path.splitext(baseg)[0]+".txt", "w") as geolocationfile: 96 | for ogline in ogfile: 97 | for tag in geotags: 98 | if tag in ogline: 99 | geolocationfile.write(ogline+ "\n") 100 | 101 | os.chdir(jsonalldir) 102 | for geofile in os.listdir("."): 103 | if ".txt" in geofile: 104 | shutil.move(jsonalldir + geofile, geolocationsdir) 105 | 106 | os.chdir(geolocationsdir) 107 | for geofile in os.listdir("."): 108 | if os.path.exists(geofile) and os.path.getsize(geofile) == 0: 109 | os.remove(geofile) 110 | 111 | except: 112 | print("Error: Geolocation chart generation failed: ", sys.exc_info() ) 113 | 114 | 115 | 116 | # AUTHOR,ORG,COMPANY AND CREATORS CHART 117 | # Filters through media to find only files with above info 118 | 119 | authortags=("XMP:Creator", "XML:Company","FlashPix:Author","FlashPix:Company","HTML:Author","XMP-dc:Creator","PDF:Creator", 120 | "PDF:Producer", "PDF:Author","EXE:LegalCopyright","EXE:CompanyName","Torrent:Creator", "FlashPix:Tag_AuthorEmail", "FlashPix:Tag_AuthorEmailDisplayName") 121 | 122 | authordir=(ROOT_DIR + "/exifdata/stats/authors/") 123 | 124 | try: 125 | os.chdir(jsonalldir) 126 | for authorfile in os.listdir("."): 127 | with open(authorfile) as oauthorfile: 128 | baseauthor = os.path.basename(authorfile) 129 | with open(os.path.splitext(baseauthor)[0]+".txt", "w") as authoretcfile: 130 | for authorline in oauthorfile: 131 | for authortag in authortags: 132 | if authortag in authorline: 133 | authoretcfile.write(authorline+ "\n") 134 | 135 | os.chdir(jsonalldir) 136 | for authorfile in os.listdir("."): 137 | if ".txt" in authorfile: 138 | shutil.move(jsonalldir + authorfile, authordir) 139 | 140 | os.chdir(authordir) 141 | for authorfile in os.listdir("."): 142 | if os.path.exists(authorfile) and os.path.getsize(authorfile) == 0: 143 | os.remove(authorfile) 144 | 145 | 146 | except: 147 | print("Error: Author/Creator/etc chart generation failed: ", sys.exc_info() ) 148 | 149 | 150 | 151 | #SOFTWARE CHARTS 152 | #Filters through media to find only files with Software data 153 | 154 | softwaredir = (ROOT_DIR + "/exifdata/stats/software/") 155 | softwaretags = ("EXIF:Software","PNG:Software","FlashPix:Software","XML:Application", "FlashPix:Software", "PDF:Producer", "RIFF:Software") 156 | 157 | try: 158 | os.chdir(jsonalldir) 159 | for sfile in os.listdir("."): 160 | with open(sfile) as osfile: 161 | bases = os.path.basename(sfile) 162 | with open(os.path.splitext(bases)[0]+".txt", "w") as softwarefile: 163 | for osline in osfile: 164 | for sotag in softwaretags: 165 | if sotag in osline: 166 | softwarefile.write(osline + "\n") 167 | 168 | os.chdir(jsonalldir) 169 | for softfile in os.listdir("."): 170 | if ".txt" in softfile: 171 | shutil.move(jsonalldir + softfile, softwaredir) 172 | 173 | os.chdir(softwaredir) 174 | for softfile in os.listdir("."): 175 | if os.path.exists(softfile) and os.path.getsize(softfile) == 0: 176 | os.remove(softfile) 177 | 178 | except: 179 | print("Error: Software chart generation failed: ", sys.exc_info() ) 180 | 181 | #DEVICE/MODELS CHARTS 182 | #Filters through media to find only files with Device and Model data 183 | 184 | devicedir = (ROOT_DIR + "/exifdata/stats/devices/") 185 | devicetags = ("ICC-header:DeviceAttributes", "ICC_Profile:DeviceModel", "ICC_Profile:DeviceMfgDesc", "ICC_Profile:DeviceModelDesc", 186 | "ExifIFD:LensModel", "EXIF:Model", "ICC_Profile:MakeAndModel") 187 | 188 | try: 189 | os.chdir(jsonalldir) 190 | for devfile in os.listdir("."): 191 | with open(devfile) as odevfile: 192 | based = os.path.basename(devfile) 193 | with open(os.path.splitext(based)[0]+".txt", "w") as devicefile: 194 | for odevline in odevfile: 195 | for devtag in devicetags: 196 | if devtag in odevline: 197 | devicefile.write(odevline + "\n") 198 | 199 | os.chdir(jsonalldir) 200 | for devfile in os.listdir("."): 201 | if ".txt" in devfile: 202 | shutil.move(jsonalldir + devfile, devicedir) 203 | 204 | os.chdir(devicedir) 205 | for devfile in os.listdir("."): 206 | if os.path.exists(devfile) and os.path.getsize(devfile) == 0: 207 | os.remove(devfile) 208 | 209 | except: 210 | print("Error: Device/Model chart generation failed: ", sys.exc_info() ) 211 | 212 | # CUSTOM CHART 213 | # CUSTOM TAGS WILL BE HERE 214 | customdir = (ROOT_DIR + "/exifdata/stats/custom/") 215 | 216 | try: 217 | os.chdir(jsonalldir) 218 | for customfile in os.listdir("."): 219 | with open(customfile) as ocustomfile: 220 | basecustom = os.path.basename(customfile) 221 | with open(os.path.splitext(basecustom)[0]+".txt", "w") as thecustomfile: 222 | for customline in ocustomfile: 223 | for customtag in customtags: 224 | if customtag in customline: 225 | thecustomfile.write(customline + "\n") 226 | 227 | os.chdir(jsonalldir) 228 | for customfile in os.listdir("."): 229 | if ".txt" in customfile: 230 | shutil.move(jsonalldir + customfile, customdir) 231 | 232 | os.chdir(customdir) 233 | for customfile in os.listdir("."): 234 | if os.path.exists(customfile) and os.path.getsize(customfile) == 0: 235 | os.remove(customfile) 236 | 237 | except: 238 | print("Error: Custom chart generation failed: ", sys.exc_info() ) 239 | 240 | 241 | # FILTERED DATA VS RAW EXIF 242 | # Count the number of lines in all filtered and all raw 243 | # Use jsonalldir for raw metadata 244 | 245 | try: 246 | 247 | filterdir = (ROOT_DIR + "/exifdata/filtered/") 248 | os.chdir(jsonalldir) 249 | subprocess.run("cat * > all_lines.txt", shell=True, check=True) 250 | shutil.move(jsonalldir + "all_lines.txt", statsdir) 251 | os.chdir(filterdir) 252 | subprocess.run("cat * > all_filter.txt", shell=True, check=True) 253 | shutil.move(filterdir + 'all_filter.txt', statsdir) 254 | allnum_lines = 0 255 | allfilter_lines = 0 256 | linestatstxt= open(statsdir + "linestats.txt","w+") 257 | os.chdir(statsdir) 258 | with open("all_lines.txt", "r") as alllinestxt: 259 | for al_line in alllinestxt: 260 | allnum_lines += 1 261 | linestatstxt.write("Number of lines before filtering metadata: " + str(allnum_lines) + "\n") 262 | with open("all_filter.txt", "r") as allfiltertxt: 263 | for fi_line in allfiltertxt: 264 | allfilter_lines +=1 265 | linestatstxt.write("Number of lines after filtering metadata: " + str(allfilter_lines)) 266 | linestatstxt.close() 267 | os.remove(statsdir + 'all_filter.txt') 268 | os.remove(statsdir + 'all_lines.txt') 269 | 270 | except: 271 | print("Error: Filtered vs Raw chart generation failed: ", sys.exc_info() ) 272 | 273 | 274 | 275 | # START STAT HTML REPORT GEN---------------------------------------------------------------- 276 | # HTML REPORT GENERATION 277 | # THIS MAKES THE INDEX/STATS PAGE 278 | os.chdir(ROOT_DIR) 279 | doc = dominate.document(title='Metaforge') 280 | 281 | #Creates 282 | with doc.head: 283 | link(rel='stylesheet', href="Template_Data/css/main.css") 284 | link(rel='icon', type="image/png", href="Template_Data/img/favicon.png") 285 | script(type='text/javascript', src="Template_Data/js/main.js") 286 | 287 | 288 | #Creates 289 | with doc: 290 | with div(id='header'): 291 | img(src='Template_Data/img/title.png') 292 | img(id='logo',src='Template_Data/img/logo.png') 293 | h2("Home/Statistics") 294 | with div(id='metaforge-credits'): 295 | p("Created by Chris Morris and Collin Mockbee") 296 | p("https://github.com/chriswmorris/Metaforge") 297 | br() 298 | with div(id= 'wrapper'): 299 | with div(id='navbar').add(ul()): 300 | with div(id='nav-li'): 301 | 302 | img(src='Template_Data/img/home.png',width="35px", height="35px") 303 | a('Home/Stats' , cls='button', href='index.html' % ['index']) 304 | img(src='Template_Data/img/filter.png', width="35px", height="35px") 305 | a('Filtered Metadata',cls='button', href='filters.html' % ['filters']) 306 | img(src='Template_Data/img/star.png', width="35px", height="35px") 307 | a('All Metadata', cls='button',href='rawmeta.html' % ['rawmeta']) 308 | img(src='Template_Data/img/dealwithit.png', width="85px", height="25px") 309 | a('Hexadecimal View', cls='button', href='hexdump.html' % ['hexdump']) 310 | 311 | with div(id='toprow'): 312 | with div(id='filetypechart'): 313 | h4("Number of Files in each Filetype") 314 | with div(id='filetypechart-box'): 315 | filetype_stat = open(ROOT_DIR + "/exifdata/stats/filetypes.txt") 316 | filetyperead = filetype_stat.readlines() 317 | for fline in filetyperead: 318 | p(fline) 319 | br() 320 | br() 321 | 322 | with div(id='sizechart'): 323 | h4("Top 5 Largest Files") 324 | h5("File Size in Kilobytes") 325 | with div(id='size-box'): 326 | sizechart_stat = open(ROOT_DIR + "/exifdata/stats/filesizes.txt") 327 | asizechartread = sizechart_stat.readline() 328 | bsizechartread = sizechart_stat.readline() 329 | csizechartread = sizechart_stat.readline() 330 | dsizechartread = sizechart_stat.readline() 331 | esizechartread = sizechart_stat.readline() 332 | p(asizechartread) 333 | p(bsizechartread) 334 | p(csizechartread) 335 | p(dsizechartread) 336 | p(esizechartread) 337 | br() 338 | 339 | with div(id='comparechart'): 340 | h4("Raw Metadata vs Filtered Metadata") 341 | h5("Actual lines of metadata vs. Amount of filtered metadata") 342 | with div(id='comparechart-box'): 343 | linestats_stat = open(ROOT_DIR + "/exifdata/stats/linestats.txt") 344 | linestatsread = linestats_stat.readlines() 345 | for lsline in linestatsread: 346 | p(lsline) 347 | br() 348 | br() 349 | 350 | br() 351 | hr() 352 | with div(id='secondrow'): 353 | with div(id='customchart'): 354 | h4("Custom Tags") 355 | with div(id='custom-box'): 356 | os.chdir(customdir) 357 | for customfile in os.listdir("."): 358 | customfilename = os.path.splitext(customfile)[0] 359 | custom_read = open(customfile, 'r') 360 | h4(customfilename) 361 | p(custom_read.readline()) 362 | for custom_line in custom_read: 363 | p(custom_read.readlines(8)) 364 | br() 365 | 366 | os.chdir(ROOT_DIR) 367 | with div(id='geolocationschart'): 368 | h4("Geolocations") 369 | with div(id='geolocation-box'): 370 | os.chdir(geolocationsdir) 371 | for geolocationfile in os.listdir("."): 372 | geofilename = os.path.splitext(geolocationfile)[0] 373 | gfile_read = open(geolocationfile, 'r') 374 | h4(geofilename) 375 | p(gfile_read.readline()) 376 | for g_line in gfile_read: 377 | p(gfile_read.readlines(1)) 378 | br() 379 | os.chdir(ROOT_DIR) 380 | 381 | 382 | 383 | 384 | 385 | with div(id='thirdrow'): 386 | with div(id='devicechart'): 387 | h4("Devices/Models") 388 | with div(id='device-box'): 389 | os.chdir(devicedir) 390 | for softwfile in os.listdir("."): 391 | softfilename = os.path.splitext(softwfile)[0] 392 | sfile_read = open(softwfile, 'r') 393 | h4(softfilename) 394 | p(sfile_read.readline()) 395 | for soft_line in sfile_read: 396 | p(sfile_read.readlines(8)) 397 | br() 398 | os.chdir(ROOT_DIR) 399 | 400 | with div(id='authorchart'): 401 | h4("Authors/Companies/etc") 402 | with div (id='author-box'): 403 | os.chdir(authordir) 404 | for authorfile in os.listdir("."): 405 | authorfilename = os.path.splitext(authorfile)[0] 406 | author_read = open(authorfile, 'r') 407 | h4(authorfilename) 408 | p(author_read.readline()) 409 | for auth_line in author_read: 410 | p(author_read.readlines(1)) 411 | br() 412 | 413 | with div(id='softwarechart'): 414 | h4("Software") 415 | with div(id='software-box'): 416 | os.chdir(softwaredir) 417 | for softwfile in os.listdir("."): 418 | softfilename = os.path.splitext(softwfile)[0] 419 | sfile_read = open(softwfile, 'r') 420 | h4(softfilename) 421 | p(sfile_read.readline()) 422 | for soft_line in sfile_read: 423 | p(sfile_read.readlines(8)) 424 | br() 425 | os.chdir(ROOT_DIR) 426 | 427 | 428 | 429 | 430 | 431 | with open('index.html', 'w') as index: 432 | index.write(doc.render()) 433 | 434 | 435 | 436 | 437 | 438 | def filtershtml(): 439 | os.chdir(ROOT_DIR) 440 | doc = dominate.document(title='Metaforge') 441 | 442 | #Creates 443 | with doc.head: 444 | link(rel='stylesheet', href="Template_Data/css/main.css") 445 | link(rel='icon', type="image/png", href="Template_Data/img/favicon.png") 446 | script(type='text/javascript', src="Template_Data/js/main.js") 447 | 448 | #Creates 449 | with doc: 450 | with div(id='header'): 451 | img(src='Template_Data/img/title.png') 452 | img(id='logo',src='Template_Data/img/logo.png') 453 | h2("Home/Statistics") 454 | with div(id='metaforge-credits'): 455 | p("Created by Chris Morris and Collin Mockbee") 456 | p("https://github.com/chriswmorris/Metaforge") 457 | br() 458 | with div(id= 'wrapper'): 459 | with div(id='navbar').add(ul()): 460 | with div(id='nav-li'): 461 | 462 | img(src='Template_Data/img/home.png',width="35px", height="35px") 463 | a('Home/Stats' , cls='button', href='index.html' % ['index']) 464 | img(src='Template_Data/img/filter.png', width="35px", height="35px") 465 | a('Filtered Metadata',cls='button', href='filters.html' % ['filters']) 466 | img(src='Template_Data/img/star.png', width="35px", height="35px") 467 | a('All Metadata', cls='button',href='rawmeta.html' % ['rawmeta']) 468 | img(src='Template_Data/img/dealwithit.png', width="85px", height="25px") 469 | a('Hexadecimal View', cls='button', href='hexdump.html' % ['hexdump']) 470 | 471 | 472 | br() 473 | with div(id='filtertitle'): 474 | 475 | p(b("This section contains a shortened view of all of the metadata from all files.")) 476 | p("We went through the tags of each individual filetype and selected only noteworthy and important tags so you don't have to look through useless meta ;)") 477 | br() 478 | br() 479 | br() 480 | br() 481 | 482 | with span(id='filtered'): 483 | br() 484 | br() 485 | #loop through all exifoutputs 486 | 487 | 488 | os.chdir(ROOT_DIR +"/exifdata/filtered/") 489 | for file in os.listdir("."): 490 | filename = os.path.splitext(file)[0] 491 | file_read = open(file, 'r') 492 | with div(id='filtered-box'): 493 | h3(filename) 494 | p(file_read.readline()) 495 | for line in file_read: 496 | p(file_read.readlines(1)) 497 | br() 498 | br() 499 | os.chdir(ROOT_DIR) 500 | 501 | with open('filters.html', 'w') as filters: 502 | filters.write(doc.render()) 503 | 504 | 505 | def rawmetahtml(): 506 | #This creates HTML document with dominate 507 | os.chdir(ROOT_DIR) 508 | doc = dominate.document(title='Metaforge') 509 | 510 | #Creates 511 | with doc.head: 512 | link(rel='stylesheet', href="Template_Data/css/main.css") 513 | link(rel='icon', type="image/png", href="Template_Data/img/favicon.png") 514 | script(type='text/javascript', src="Template_Data/js/main.js") 515 | 516 | #Creates 517 | with doc: 518 | with div(id='header'): 519 | img(src='Template_Data/img/title.png') 520 | img(id='logo',src='Template_Data/img/logo.png') 521 | h2("Home/Statistics") 522 | with div(id='metaforge-credits'): 523 | p("Created by Chris Morris and Collin Mockbee") 524 | p("https://github.com/chriswmorris/Metaforge") 525 | br() 526 | with div(id= 'wrapper'): 527 | with div(id='navbar').add(ul()): 528 | with div(id='nav-li'): 529 | 530 | img(src='Template_Data/img/home.png',width="35px", height="35px") 531 | a('Home/Stats' , cls='button', href='index.html' % ['index']) 532 | img(src='Template_Data/img/filter.png', width="35px", height="35px") 533 | a('Filtered Metadata',cls='button', href='filters.html' % ['filters']) 534 | img(src='Template_Data/img/star.png', width="35px", height="35px") 535 | a('All Metadata', cls='button',href='rawmeta.html' % ['rawmeta']) 536 | img(src='Template_Data/img/dealwithit.png', width="85px", height="25px") 537 | a('Hexadecimal View', cls='button', href='hexdump.html' % ['hexdump']) 538 | 539 | with span(id='exifraw'): 540 | #loop through all exifoutputs 541 | os.chdir(ROOT_DIR +"/exifdata/html/") 542 | for filename in os.listdir("."): 543 | raw_filename = os.path.splitext(filename)[0] 544 | with div(id='exifraw-box'): 545 | h3(raw_filename) 546 | iframe(src="exifdata/html/" + filename, width="500", height="500") 547 | br() 548 | os.chdir(ROOT_DIR) 549 | with open('rawmeta.html', 'w') as rawmeta: 550 | rawmeta.write(doc.render()) 551 | 552 | 553 | def hexmetahtml(): 554 | os.chdir(ROOT_DIR) 555 | doc = dominate.document(title='Metaforge') 556 | 557 | #Creates 558 | with doc.head: 559 | link(rel='stylesheet', href="Template_Data/css/main.css") 560 | link(rel='icon', type="image/png", href="Template_Data/img/favicon.png") 561 | script(type='text/javascript', src="Template_Data/js/main.js") 562 | 563 | #Creates 564 | with doc: 565 | with div(id='header'): 566 | img(src='Template_Data/img/title.png') 567 | img(id='logo',src='Template_Data/img/logo.png') 568 | h2("Home/Statistics") 569 | with div(id='metaforge-credits'): 570 | p("Created by Chris Morris and Collin Mockbee") 571 | p("https://github.com/chriswmorris/Metaforge") 572 | br() 573 | with div(id= 'wrapper'): 574 | with div(id='navbar').add(ul()): 575 | with div(id='nav-li'): 576 | 577 | img(src='Template_Data/img/home.png',width="35px", height="35px") 578 | a('Home/Stats' , cls='button', href='index.html' % ['index']) 579 | img(src='Template_Data/img/filter.png', width="35px", height="35px") 580 | a('Filtered Metadata',cls='button', href='filters.html' % ['filters']) 581 | img(src='Template_Data/img/star.png', width="35px", height="35px") 582 | a('All Metadata', cls='button',href='rawmeta.html' % ['rawmeta']) 583 | img(src='Template_Data/img/dealwithit.png', width="85px", height="25px") 584 | a('Hexadecimal View', cls='button', href='hexdump.html' % ['hexdump']) 585 | 586 | with span(id='exifraw'): 587 | #loop through all exifoutputs 588 | os.chdir(ROOT_DIR +"/exifdata/hex_html/") 589 | for filename in os.listdir("."): 590 | raw_filename = os.path.splitext(filename)[0] 591 | with div(id="exifraw-box"): 592 | h3(raw_filename) 593 | iframe(src="exifdata/hex_html/" + filename, width="700", height="500") 594 | br() 595 | os.chdir(ROOT_DIR) 596 | 597 | with open('hexdump.html', 'w') as hexdump: 598 | hexdump.write(doc.render()) 599 | -------------------------------------------------------------------------------- /media/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chriswmorris/Metaforge/7b326932d21abdce93de696bf629c17e83cbe350/media/logo.png -------------------------------------------------------------------------------- /metaforge.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | 4 | #===================================================== 5 | # 6 | # Metaforge 7 | # 8 | #===================================================== 9 | # 10 | # 11 | #@version 1.3 (Pretty Reports Edition) 12 | #@link https://github.com/chriswmorris/Metaforge 13 | #@authors Chris Morris & Collin Mockbee 14 | 15 | import os, sys 16 | import errno 17 | import subprocess 18 | import string 19 | import random 20 | import shutil 21 | import colorama 22 | from colorama import Fore, Back, Style 23 | from definitions import ROOT_DIR 24 | from fileinteractions import stageset, checkdelete, jsonsort 25 | from exiftool import exifJSON, exifHTML, exifHTMLDump 26 | from filter import filterexec 27 | from markups import filtershtml, rawmetahtml, hexmetahtml, statshtml 28 | from shutil import copyfile 29 | 30 | def credits(): 31 | print("") 32 | print("") 33 | print("███╗ ███╗███████╗████████╗ █████╗ ███████╗ ██████╗ ██████╗ ██████╗ ███████╗") 34 | print("████╗ ████║██╔════╝╚══██╔══╝██╔══██╗██╔════╝██╔═══██╗██╔══██╗██╔════╝ ██╔════╝") 35 | print("██╔████╔██║█████╗ ██║ ███████║█████╗ ██║ ██║██████╔╝██║ ███╗█████╗ ") 36 | print("██║╚██╔╝██║██╔══╝ ██║ ██╔══██║██╔══╝ ██║ ██║██╔══██╗██║ ██║██╔══╝ ") 37 | print("██║ ╚═╝ ██║███████╗ ██║ ██║ ██║██║ ╚██████╔╝██║ ██║╚██████╔╝███████╗") 38 | print("╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝") 39 | print("") 40 | print("") 41 | print(Fore.WHITE + "An OSINT Metadata analyzing tool that filters through tags and creates reports") 42 | print("Version 1.3") 43 | print(Style.RESET_ALL) 44 | print(Fore.GREEN + "Authors: Chris Morris & Collin Mockbee") 45 | print("github.com/chriswmorris/Metaforge") 46 | print() 47 | print("=========================================================") 48 | print(Style.RESET_ALL) 49 | print(Fore.RED + "Remember to place the files you wish to analyze in this directory!") 50 | print(Style.BRIGHT +"--> "+ ROOT_DIR + "/media <--") 51 | print(Style.RESET_ALL) 52 | input("Press [ENTER] to continue") 53 | print() 54 | 55 | def condchecking(): 56 | print("=======================Step 1: Condition Checking =======================") 57 | print() 58 | print("Need to check to make sure that the program will run correctly...") 59 | print() 60 | input("Press [ENTER] to continue") 61 | 62 | try: 63 | stageset() 64 | checkdelete() 65 | print() 66 | print(Fore.GREEN + "Done. Everything looks correct") 67 | print(Style.RESET_ALL) 68 | 69 | except IOError as er: 70 | errno,strerror = er.args 71 | print(Fore.RED + "I/O error({0}): {1}".format(errno,strerror)) 72 | print(Style.RESET_ALL) 73 | 74 | 75 | except: 76 | print(Fore.RED + "Error:", sys.exc_info()[0]) 77 | print(Style.RESET_ALL) 78 | 79 | def projectcreation(): 80 | print("=========================Step 2: Project Creation=========================") 81 | #userproj is either defined by user or 6 random digits 82 | #This will create the file structure for the user's project 83 | 84 | randominput = ''.join(random.choice(string.ascii_lowercase 85 | + string.digits) for _ in range(6)) 86 | 87 | print() 88 | print() 89 | print("Enter a name for your project. It will also be the name of the directory.") 90 | print("(If you would like a random name, leave it blank and press enter)") 91 | print() 92 | userproj = input("Project Name--> ") 93 | print() 94 | 95 | if not userproj: 96 | userproj = "proj_" + randominput 97 | try: 98 | os.makedirs(ROOT_DIR +"/User_Projects/"+ userproj, exist_ok=True) 99 | projectdir = ROOT_DIR + "/User_Projects/" + userproj 100 | print(Style.BRIGHT + "Your project is named: " + userproj) 101 | print(Style.RESET_ALL) 102 | print(Fore.GREEN + "Successfully created project folder!") 103 | print(Style.RESET_ALL) 104 | 105 | except: 106 | print(Fore.RED + "ERROR: ", sys.exc_info()[0]) 107 | sys.exit("Quitting. You need a project folder") 108 | print(Style.RESET_ALL) 109 | 110 | return projectdir 111 | 112 | def exifrun(): 113 | print("=======================Step 3: Running the Exiftool=======================") 114 | print() 115 | #Runs exiftool on media/ directory to exifdata/ then runs 116 | #jsonsort to sort the json into designated folders 117 | 118 | print("This is going to run the exiftool on all of the media you defined here:") 119 | print(Fore.BLUE + ROOT_DIR + "/media") 120 | print(Style.RESET_ALL) 121 | print("It could take a while depending how many files you placed.") 122 | print() 123 | input("Press [ENTER] to continue") 124 | try: 125 | print() 126 | exifJSON() 127 | except: 128 | print(Fore.RED + "Exiftool to JSON failed") 129 | print("ERROR:", sys.exc_info()[0]) 130 | print(Style.RESET_ALL) 131 | pass 132 | 133 | try: 134 | exifHTML() 135 | except: 136 | print(Fore.RED +"Exiftool to HTML failed") 137 | print("ERROR:", sys.exc_info()[0]) 138 | print(Style.RESET_ALL) 139 | pass 140 | 141 | try: 142 | exifHTMLDump() 143 | except: 144 | print(Fore.RED +"Exiftool to Hexadecimal HTML failed") 145 | print("ERROR:", sys.exc_info()[0]) 146 | print(Style.RESET_ALL) 147 | pass 148 | print() 149 | 150 | 151 | def filtering(): 152 | print("=============================Step 4: Filtering=============================") 153 | print() 154 | #This will... 155 | #1) Sort the JSON into their respective folder 156 | #2) Filter out the "unimportant tags" 157 | 158 | jsondir = ROOT_DIR + "/exifdata/json/" 159 | jsonsubdirs = ['odp', 'png', 'mp3', 'dll', 'torrent', 'pptx', 'ods', 'odt,' 'zip', 'exe', 160 | 'xlsx', 'svg', 'pdf', 'mp4', 'html', 'docx', 'gif', 'wav', 'jpeg', 'mkv'] 161 | 162 | print("Now going to sort the JSON into their respective (original) filetype folder") 163 | print() 164 | input("Press [ENTER] to continue") 165 | print() 166 | try: 167 | jsonsort() 168 | print(Fore.GREEN + "Sorting Successful in exifdata/json/") 169 | print(Style.RESET_ALL) 170 | 171 | except IOError as sorter: 172 | errno,strerror = sorter.args 173 | print(Fore.RED + "I/O error({0}): {1}".format(errno,strerror)) 174 | print(Style.RESET_ALL) 175 | 176 | except: 177 | print(Fore.RED + "ERROR:", sys.exc_info()[0]) 178 | print(Style.RESET_ALL) 179 | 180 | print("Starting Filtering Process...") 181 | 182 | try: 183 | filterexec() 184 | print(Fore.GREEN + "Filtering Successful!") 185 | print(Style.RESET_ALL) 186 | 187 | except IOError as filterer: 188 | errno,strerror = filterer.args 189 | print(Fore.RED + "I/O error({0}): {1}".format(errno,strerror)) 190 | print(Style.RESET_ALL) 191 | 192 | 193 | except: 194 | print(Fore.RED +"ERROR:", sys.exc_info()[0]) 195 | print(Style.RESET_ALL) 196 | 197 | 198 | def makereport(PROJ_DIR): 199 | print("=========================Step 5: Make Report=========================") 200 | print() 201 | print("This will make the HTML reports and set up the User Project directory") 202 | print() 203 | input("Press [ENTER] to continue") 204 | print() 205 | 206 | def copyfolders(src,dest): 207 | try: 208 | shutil.copytree(src,dest) 209 | except OSERROR as exc: 210 | if exc.errno == errno.ENOTDIR: 211 | shutil.copy(src,dest) 212 | else: 213 | raise 214 | 215 | #Make HTML Reports 216 | try: 217 | statshtml() 218 | except: 219 | print(Fore.RED + "ERROR: could not run stat html report", sys.exc_info()[0]) 220 | print(Style.RESET_ALL) 221 | try: 222 | filtershtml() 223 | except: 224 | print(Fore.RED + "ERROR: could not run filter html report", sys.exc_info()[0]) 225 | print(Style.RESET_ALL) 226 | try: 227 | rawmetahtml() 228 | except: 229 | print(Fore.RED + "ERROR: could not run rawmetahtml report", sys.exc_info()[0]) 230 | print(Style.RESET_ALL) 231 | try: 232 | hexmetahtml() 233 | except: 234 | print(Fore.RED + "ERROR: could not run hexmetahtml report", sys.exc_info()[0]) 235 | print(Style.RESET_ALL) 236 | 237 | 238 | 239 | #Moving folders to project dir 240 | try: 241 | print("Copying exifdata to project directory") 242 | copyfolders(ROOT_DIR + "/exifdata/" , PROJ_DIR + "/exifdata/") 243 | except: 244 | print(Fore.RED + "ERROR: could not copy exifdata to project dir: ", sys.exc_info()[0]) 245 | print(Style.RESET_ALL) 246 | try: 247 | print("Placing Template_Data into project dir...") 248 | copyfolders(ROOT_DIR + "/Template_Data/", PROJ_DIR + "/Template_Data/") 249 | except: 250 | print(Fore.RED + "ERROR: Failed to copy Template_Data: ",sys.exc_info()[0]) 251 | print(Style.RESET_ALL) 252 | 253 | 254 | #Placing reports from ROOT_DIR to PROJ_DIR 255 | print("Placing reports into project dir...") 256 | try: 257 | copyfile(ROOT_DIR + "/" + "index.html", PROJ_DIR + "/index.html") 258 | os.remove(ROOT_DIR + "/" + "index.html") 259 | 260 | except: 261 | print(Fore.RED + "ERROR: Failed to copy index.html-- ",sys.exc_info()[0]) 262 | print(Style.RESET_ALL) 263 | 264 | try: 265 | copyfile(ROOT_DIR + "/" + "filters.html", PROJ_DIR + "/filters.html") 266 | os.remove(ROOT_DIR + "/" + "filters.html") 267 | 268 | except: 269 | print(Fore.RED + "ERROR: Failed to copy filters.html-- ",sys.exc_info()[0]) 270 | print(Style.RESET_ALL) 271 | 272 | try: 273 | copyfile(ROOT_DIR + "/" + "rawmeta.html", PROJ_DIR + "/rawmeta.html") 274 | os.remove(ROOT_DIR + "/" + "rawmeta.html") 275 | 276 | except: 277 | print(Fore.RED + "ERROR: Failed to copy rawmeta.html-- ",sys.exc_info()[0]) 278 | print(Style.RESET_ALL) 279 | 280 | try: 281 | copyfile(ROOT_DIR + "/" + "hexdump.html", PROJ_DIR + "/hexdump.html") 282 | os.remove(ROOT_DIR + "/" + "hexdump.html") 283 | except: 284 | print(Fore.RED + "ERROR: Failed to copy rawmeta.html-- ",sys.exc_info()[0]) 285 | print(Style.RESET_ALL) 286 | 287 | 288 | 289 | #Removing exifdata/ since it exsists in PROJ_DIR 290 | try: 291 | shutil.rmtree(ROOT_DIR + "/exifdata/") 292 | except: 293 | print(Fore.RED + "ERROR: Failed to remove /exifdata/ dir: ",sys.exc_info()[0]) 294 | print(Style.RESET_ALL) 295 | 296 | 297 | #Setting up exifdata dir for next run 298 | try: 299 | print("Setting up exifdata directory...") 300 | stageset() 301 | 302 | except: 303 | print(Fore.RED + "Could not run the stageset function-- ", sys.exc_info()[0]) 304 | print(Style.RESET_ALL) 305 | 306 | print() 307 | print(Fore.GREEN + "FINISHED!") 308 | print(Style.RESET_ALL) 309 | print(Style.BRIGHT + "Project Folder is here:") 310 | print(Style.RESET_ALL) 311 | print(Back.WHITE+ Fore.BLACK+ PROJ_DIR) 312 | print(Style.RESET_ALL) 313 | print(Style.BRIGHT+ "To view the Report, click on the index.html file") 314 | print(Style.RESET_ALL) 315 | print("===============================================================") 316 | print() 317 | sys.exit(0) 318 | 319 | def main(): 320 | credits() 321 | condchecking() 322 | PROJ_DIR = projectcreation() 323 | exifrun() 324 | filtering() 325 | makereport(PROJ_DIR) 326 | 327 | 328 | if __name__ == '__main__': 329 | main() 330 | 331 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | progress>=1.4 2 | dominate>=2.3.5 3 | colorama>=0.4.1 4 | pyexifinfo>=0.4.0 5 | --------------------------------------------------------------------------------