Codebase list osrframework / e562a49
Initial release (Closes: 3042) Sophie Brun 6 years ago
20 changed file(s) with 1347 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 osrframework (0.17.2-0kali1) kali-dev; urgency=medium
1
2 * Initial release (Closes: 3042)
3
4 -- Sophie Brun <[email protected]> Fri, 25 Aug 2017 14:09:17 +0200
0 Source: osrframework
1 Section: misc
2 Priority: optional
3 Maintainer: Sophie Brun <[email protected]>
4 Build-Depends: debhelper (>= 10), dh-python, python-all, python-setuptools
5 Standards-Version: 4.0.0
6 Homepage: https://github.com/i3visio/osrframework
7 Vcs-Git: git://git.kali.org/packages/osrframework.git
8 Vcs-Browser: http://git.kali.org/gitweb/?p=packages/osrframework.git;a=summary
9 Testsuite: autopkgtest-pkg-python
10
11 Package: osrframework
12 Architecture: all
13 Depends: ${python:Depends}, ${misc:Depends}
14 Description: Open Sources Research Framework
15 This package contains a set of libraries developed by i3visio to perform Open
16 Source Intelligence tasks. They include references to a bunch of different
17 applications related to username checking, DNS lookups, information leaks
18 research, deep web search, regular expressions extraction and many others. At
19 the same time, by means of ad-hoc Maltego transforms, OSRFramework provides a
20 way of making these queries graphically as well as several interfaces to
21 interact with like OSRFConsole or a Web interface.
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: osrframework
2 Source: https://github.com/i3visio/osrframework
3
4 Files: *
5 Copyright: 2014-2017 F. Brezo and Y. Rubio, i3visio
6 License: AGPL-3+
7
8 Files: debian/*
9 Copyright: 2017 Sophie Brun <[email protected]>
10 License: AGPL-3+
11
12 License: AGPL-3+
13 GNU AFFERO GENERAL PUBLIC LICENSE
14 Version 3, 19 November 2007
15 .
16 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
17 Everyone is permitted to copy and distribute verbatim copies
18 of this license document, but changing it is not allowed.
19 .
20 Preamble
21 .
22 The GNU Affero General Public License is a free, copyleft license for
23 software and other kinds of works, specifically designed to ensure
24 cooperation with the community in the case of network server software.
25 .
26 The licenses for most software and other practical works are designed
27 to take away your freedom to share and change the works. By contrast,
28 our General Public Licenses are intended to guarantee your freedom to
29 share and change all versions of a program--to make sure it remains free
30 software for all its users.
31 .
32 When we speak of free software, we are referring to freedom, not
33 price. Our General Public Licenses are designed to make sure that you
34 have the freedom to distribute copies of free software (and charge for
35 them if you wish), that you receive source code or can get it if you
36 want it, that you can change the software or use pieces of it in new
37 free programs, and that you know you can do these things.
38 .
39 Developers that use our General Public Licenses protect your rights
40 with two steps: (1) assert copyright on the software, and (2) offer
41 you this License which gives you legal permission to copy, distribute
42 and/or modify the software.
43 .
44 A secondary benefit of defending all users' freedom is that
45 improvements made in alternate versions of the program, if they
46 receive widespread use, become available for other developers to
47 incorporate. Many developers of free software are heartened and
48 encouraged by the resulting cooperation. However, in the case of
49 software used on network servers, this result may fail to come about.
50 The GNU General Public License permits making a modified version and
51 letting the public access it on a server without ever releasing its
52 source code to the public.
53 .
54 The GNU Affero General Public License is designed specifically to
55 ensure that, in such cases, the modified source code becomes available
56 to the community. It requires the operator of a network server to
57 provide the source code of the modified version running there to the
58 users of that server. Therefore, public use of a modified version, on
59 a publicly accessible server, gives the public access to the source
60 code of the modified version.
61 .
62 An older license, called the Affero General Public License and
63 published by Affero, was designed to accomplish similar goals. This is
64 a different license, not a version of the Affero GPL, but Affero has
65 released a new version of the Affero GPL which permits relicensing under
66 this license.
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 Affero 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. Remote Network Interaction; Use with the GNU General Public License.
553 .
554 Notwithstanding any other provision of this License, if you modify the
555 Program, your modified version must prominently offer all users
556 interacting with it remotely through a computer network (if your version
557 supports such interaction) an opportunity to receive the Corresponding
558 Source of your version by providing access to the Corresponding Source
559 from a network server at no charge, through some standard or customary
560 means of facilitating copying of software. This Corresponding Source
561 shall include the Corresponding Source for any work covered by version 3
562 of the GNU General Public License that is incorporated pursuant to the
563 following paragraph.
564 .
565 Notwithstanding any other provision of this License, you have
566 permission to link or combine any covered work with a work licensed
567 under version 3 of the GNU General Public License into a single
568 combined work, and to convey the resulting work. The terms of this
569 License will continue to apply to the part which is the covered work,
570 but the work with which it is combined will remain governed by version
571 3 of the GNU General Public License.
572 .
573 14. Revised Versions of this License.
574 .
575 The Free Software Foundation may publish revised and/or new versions of
576 the GNU Affero General Public License from time to time. Such new versions
577 will be similar in spirit to the present version, but may differ in detail to
578 address new problems or concerns.
579 .
580 Each version is given a distinguishing version number. If the
581 Program specifies that a certain numbered version of the GNU Affero General
582 Public License "or any later version" applies to it, you have the
583 option of following the terms and conditions either of that numbered
584 version or of any later version published by the Free Software
585 Foundation. If the Program does not specify a version number of the
586 GNU Affero General Public License, you may choose any version ever published
587 by the Free Software Foundation.
588 .
589 If the Program specifies that a proxy can decide which future
590 versions of the GNU Affero General Public License can be used, that proxy's
591 public statement of acceptance of a version permanently authorizes you
592 to choose that version for the Program.
593 .
594 Later license versions may give you additional or different
595 permissions. However, no additional obligations are imposed on any
596 author or copyright holder as a result of your choosing to follow a
597 later version.
598 .
599 15. Disclaimer of Warranty.
600 .
601 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
602 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
603 HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
604 OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
605 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
606 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
607 IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
608 ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
609 .
610 16. Limitation of Liability.
611 .
612 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
613 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
614 THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
615 GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
616 USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
617 DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
618 PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
619 EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
620 SUCH DAMAGES.
621 .
622 17. Interpretation of Sections 15 and 16.
623 .
624 If the disclaimer of warranty and limitation of liability provided
625 above cannot be given local legal effect according to their terms,
626 reviewing courts shall apply local law that most closely approximates
627 an absolute waiver of all civil liability in connection with the
628 Program, unless a warranty or assumption of liability accompanies a
629 copy of the Program in return for a fee.
630 .
631 END OF TERMS AND CONDITIONS
632 .
633 How to Apply These Terms to Your New Programs
634 .
635 If you develop a new program, and you want it to be of the greatest
636 possible use to the public, the best way to achieve this is to make it
637 free software which everyone can redistribute and change under these terms.
638 .
639 To do so, attach the following notices to the program. It is safest
640 to attach them to the start of each source file to most effectively
641 state the exclusion of warranty; and each file should have at least
642 the "copyright" line and a pointer to where the full notice is found.
643 .
644 <one line to give the program's name and a brief idea of what it does.>
645 Copyright (C) <year> <name of author>
646 .
647 This program is free software: you can redistribute it and/or modify
648 it under the terms of the GNU Affero General Public License as published by
649 the Free Software Foundation, either version 3 of the License, or
650 (at your option) any later version.
651 .
652 This program is distributed in the hope that it will be useful,
653 but WITHOUT ANY WARRANTY; without even the implied warranty of
654 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
655 GNU Affero General Public License for more details.
656 .
657 You should have received a copy of the GNU Affero General Public License
658 along with this program. If not, see <http://www.gnu.org/licenses/>.
659 .
660 Also add information on how to contact you by electronic and paper mail.
661 .
662 If your software can interact with users remotely through a computer
663 network, you should also make sure that it provides a way for users to
664 get its source. For example, if your program is a web application, its
665 interface could display a "Source" link that leads users to an archive
666 of the code. There are many ways you could offer source, and different
667 solutions will be better for different programs; see section 13 for the
668 specific requirements.
669 .
670 You should also get your employer (if you work as a programmer) or school,
671 if any, to sign a "copyright disclaimer" for the program, if necessary.
672 For more information on this, and how to apply and follow the GNU AGPL, see
673 <http://www.gnu.org/licenses/>.
0 osrframework/transforms/lib/TUTORIAL-MALTEGO.txt
0 osrframework/static osrframework/templates /etc/osrframework/server
1 osrframework/transforms/lib/osrframework-maltego-settings /etc/osrframework/default
0 Description: Cleanup setup.py
1 The setup.py makes changes that should not be done in a setup:
2 - change the bin path: there is no need for Kali
3 - install config files is the home user directory: should be done at
4 first launch
5 - configure maltego: should be done at first launch
6 Author: Sophie Brun <[email protected]>
7 Last-Update: 2017-09-04
8 ---
9 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
10 --- a/setup.py
11 +++ b/setup.py
12 @@ -31,67 +31,67 @@ import site
13 IS_VIRTUAL_ENV = False
14
15 # Get packagesPaths depending on whether the user launched it with sudo or not
16 -if sys.platform == 'win32':
17 +#if sys.platform == 'win32':
18 # This will throw two folders, but we need the first one only. Typically:
19 # ['c:\\Users\\<a_user>\\AppData\\Roaming\\Python\\Python27\\site-packages']
20 - packagesPaths = site.getusersitepackages()[0]
21 - print "[*] The installation is going to be run as superuser."
22 -else:
23 +# packagesPaths = site.getusersitepackages()[0]
24 +# print "[*] The installation is going to be run as superuser."
25 +#else:
26 # We need this verification because Windows does not have a wrapper ofr os.geteuid()
27 - if not os.geteuid() == 0:
28 - try:
29 - packagesPaths = site.getusersitepackages()
30 +# if not os.geteuid() == 0:
31 +# try:
32 +# packagesPaths = site.getusersitepackages()
33 # TODO: Check whether the packagesPaths is in the PATH, if not, add it
34 - print "[*] The installation has not been launched as superuser."
35 - user_bin_path = site.USER_BASE + "/bin"
36 - print "[*] We will verify is the '" + user_bin_path + "' folder is in the path so as to make the utils available anywhere in the system."
37 - bin_path = os.popen("echo $PATH").read()
38 - if user_bin_path in bin_path:
39 - print "[*] Great. '" + user_bin_path + "' is in the path. No further actions needed."
40 - else:
41 - print "[*] We are manually adding the '" + user_bin_path + "' folder to the ~/.bashrc file."
42 +# print "[*] The installation has not been launched as superuser."
43 +# user_bin_path = site.USER_BASE + "/bin"
44 +# print "[*] We will verify is the '" + user_bin_path + "' folder is in the path so as to make the utils available anywhere in the system."
45 +# bin_path = os.popen("echo $PATH").read()
46 +# if user_bin_path in bin_path:
47 +# print "[*] Great. '" + user_bin_path + "' is in the path. No further actions needed."
48 +# else:
49 +# print "[*] We are manually adding the '" + user_bin_path + "' folder to the ~/.bashrc file."
50 # Building the commands to be added to .bashrc
51 - new_lines = """
52 +# new_lines = """
53 # Added by OSRFramework
54 # ---------------------
55 # Check this issue in Github for additional information about why these lines where added: <https://github.com/i3visio/osrframework/issues/187>
56
57 - export PY_USER_BIN= """ + user_bin_path + """
58 - export PATH=$PATH:$PY_USER_BIN
59 - """
60 -
61 - command = "echo '''" + new_lines + "''' >> ~/.bashrc"
62 - print "[*] As we want to be transparent, the command that is being run is the following:\n" + command
63 - a = os.popen(command).read()
64 - except:
65 - IS_VIRTUAL_ENV = True
66 - else:
67 +# export PY_USER_BIN= """ + user_bin_path + """
68 +# export PATH=$PATH:$PY_USER_BIN
69 +# """
70 +
71 +# command = "echo '''" + new_lines + "''' >> ~/.bashrc"
72 +# print "[*] As we want to be transparent, the command that is being run is the following:\n" + command
73 +# a = os.popen(command).read()
74 +# except:
75 +# IS_VIRTUAL_ENV = True
76 +# else:
77 # This will throw two folders, but we need the first one only:
78 # ['/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']
79 - packagesPaths = site.getsitepackages()[0]
80 - print "[*] The installation is going to be run as superuser."
81 +# packagesPaths = site.getsitepackages()[0]
82 +# print "[*] The installation is going to be run as superuser."
83
84 -if not IS_VIRTUAL_ENV:
85 - osrframeworkSystemPath = os.path.join(packagesPaths, "osrframework")
86 +#if not IS_VIRTUAL_ENV:
87 +# osrframeworkSystemPath = os.path.join(packagesPaths, "osrframework")
88
89 - print "[*] The chosen installation path is: " + osrframeworkSystemPath
90 +# print "[*] The chosen installation path is: " + osrframeworkSystemPath
91
92 # Removing old installations first...
93 - if os.path.isdir(osrframeworkSystemPath):
94 - print "[!] Found an old installation at: " + osrframeworkSystemPath
95 - try:
96 - shutil.rmtree(osrframeworkSystemPath)
97 - print "[*] Successfully removed the old installation. Installation will resume now to upgrade it..."
98 - except Exception as e:
99 - print str(e)
100 - print "[E] The installed version of OSRFramework cannot be removed. Try to remove it manually in your python installation under 'local/lib/python2.7/dist-packages/'."
101 - print sys.exit()
102 - else:
103 - print "[*] No OSRFramework installation found in the system."
104 -else:
105 - print "[*] OSRFramework seems to be installed using `virtualenv`."
106 -
107 -HERE = os.path.abspath(os.path.dirname(__file__))
108 +# if os.path.isdir(osrframeworkSystemPath):
109 +# print "[!] Found an old installation at: " + osrframeworkSystemPath
110 +# try:
111 +# shutil.rmtree(osrframeworkSystemPath)
112 +# print "[*] Successfully removed the old installation. Installation will resume now to upgrade it..."
113 +# except Exception as e:
114 +# print str(e)
115 +# print "[E] The installed version of OSRFramework cannot be removed. Try to remove it manually in your python installation under 'local/lib/python2.7/dist-packages/'."
116 +# print sys.exit()
117 +# else:
118 +# print "[*] No OSRFramework installation found in the system."
119 +#else:
120 +# print "[*] OSRFramework seems to be installed using `virtualenv`."
121 +#
122 +#HERE = os.path.abspath(os.path.dirname(__file__))
123
124 # Importing the temporal scripts for the setup and taking the new version number
125 import osrframework
126 @@ -100,15 +100,15 @@ NEW_VERSION = osrframework.__version__
127 import osrframework.utils.configuration as configuration
128
129 # Depending on the place in which the project is going to be upgraded
130 -try:
131 - raise Exception('Trying to load the markdown manually!')
132 - from pypandoc import convert
133 - read_md = lambda f: convert(f, 'rst')
134 -except ImportError:
135 - print("[!] pypandoc module not found, could not convert Markdown to RST")
136 - read_md = lambda f: open(f, 'r').read()
137 -except Exception:
138 - read_md = lambda f: open(f, 'r').read()
139 +#try:
140 +# raise Exception('Trying to load the markdown manually!')
141 +# from pypandoc import convert
142 +# read_md = lambda f: convert(f, 'rst')
143 +#except ImportError:
144 +# print("[!] pypandoc module not found, could not convert Markdown to RST")
145 +# read_md = lambda f: open(f, 'r').read()
146 +#except Exception:
147 +# read_md = lambda f: open(f, 'r').read()
148
149 # Reading the .md file
150 try:
151 @@ -218,101 +218,101 @@ setup(
152 ############################
153 ### Creating other files ###
154 ############################
155 -print "[*] Changing permissions of the user folders..."
156 -try:
157 - configuration.changePermissionsRecursively(paths["appPath"], int(os.getenv('SUDO_UID')), int(os.getenv('SUDO_GID')))
158 -except:
159 +#print "[*] Changing permissions of the user folders..."
160 +#try:
161 +# configuration.changePermissionsRecursively(paths["appPath"], int(os.getenv('SUDO_UID')), int(os.getenv('SUDO_GID')))
162 +#except:
163 # Something happened with the permissions... We omit this.
164 - pass
165 +# pass
166
167 -print "[*] Copying relevant files..."
168 -files_to_copy= {
169 - paths["appPath"] : [
170 - os.path.join("config", "browser.cfg"),
171 - os.path.join("config", "general.cfg"),
172 - ],
173 - paths["appPathDefaults"] : [
174 - os.path.join("config", "accounts.cfg"),
175 - os.path.join("config", "api_keys.cfg"),
176 - os.path.join("config", "browser.cfg"),
177 - os.path.join("config", "general.cfg"),
178 - ],
179 - paths["appPathTransforms"] : [
180 - os.path.join("osrframework", "alias_generator.py"),
181 - os.path.join("osrframework", "entify.py"),
182 - os.path.join("osrframework", "phonefy.py"),
183 - os.path.join("osrframework", "searchfy.py"),
184 - os.path.join("osrframework", "mailfy.py"),
185 - os.path.join("osrframework", "usufy.py"),
186 - os.path.join("osrframework", "domainfy.py"),
187 - os.path.join("osrframework", "transforms", "aliasToKnownDomains.py"),
188 - os.path.join("osrframework", "transforms", "aliasToKnownEmails.py"),
189 - os.path.join("osrframework", "transforms", "aliasToSkypeAccounts.py"),
190 - os.path.join("osrframework", "transforms", "aliasToSkypeIP.py"),
191 - os.path.join("osrframework", "transforms", "bitcoinAddressToBlockchainDetails.py"),
192 - os.path.join("osrframework", "transforms", "coordinatesToGoogleMapsBrowser.py"),
193 - os.path.join("osrframework", "transforms", "coordinatesToTwitterBrowser.py"),
194 - os.path.join("osrframework", "transforms", "domainToGoogleSearchUriWithEmails.py"),
195 - os.path.join("osrframework", "transforms", "domainToTld.py"),
196 - os.path.join("osrframework", "transforms", "emailToAlias.py"),
197 - os.path.join("osrframework", "transforms", "emailToBreachedAccounts.py"),
198 - os.path.join("osrframework", "transforms", "emailToDomain.py"),
199 - os.path.join("osrframework", "transforms", "emailToSkypeAccounts.py"),
200 - os.path.join("osrframework", "transforms", "expandPropertiesFromI3visioEntity.py"),
201 - os.path.join("osrframework", "transforms", "hashToMD5crackDotCom.py"),
202 - os.path.join("osrframework", "transforms", "ipToIp_ApiInformation.py"),
203 - os.path.join("osrframework", "transforms", "phoneToMoreInfo.py"),
204 - os.path.join("osrframework", "transforms", "phoneToPerson.py"),
205 - os.path.join("osrframework", "transforms", "textToEntities.py"),
206 - os.path.join("osrframework", "transforms", "textToGoogleSearchUri.py"),
207 - os.path.join("osrframework", "transforms", "textToPlatformSearch.py"),
208 - os.path.join("osrframework", "transforms", "textToProfiles.py"),
209 - os.path.join("osrframework", "transforms", "uriToBrowser.py"),
210 - os.path.join("osrframework", "transforms", "uriToDomain.py"),
211 - os.path.join("osrframework", "transforms", "uriToEntities.py"),
212 - os.path.join("osrframework", "transforms", "uriToGoogleCacheUri.py"),
213 - os.path.join("osrframework", "transforms", "uriToPort.py"),
214 - os.path.join("osrframework", "transforms", "uriToProtocol.py"),
215 - ],
216 - paths["appPathWrappers"] : [
217 - os.path.join("config", "plugins", "wrapper.py.sample"),
218 - ],
219 - paths["appPathPatterns"] : [
220 - os.path.join("config", "plugins", "pattern.py.sample"),
221 - ],
222 - paths["appPathServer"] : [
223 - os.path.join("osrframework", "static"),
224 - os.path.join("osrframework", "templates"),
225 - ]
226 -}
227 +#print "[*] Copying relevant files..."
228 +#files_to_copy= {
229 +# paths["appPath"] : [
230 +# os.path.join("config", "browser.cfg"),
231 +# os.path.join("config", "general.cfg"),
232 +# ],
233 +# paths["appPathDefaults"] : [
234 +# os.path.join("config", "accounts.cfg"),
235 +# os.path.join("config", "api_keys.cfg"),
236 +# os.path.join("config", "browser.cfg"),
237 +# os.path.join("config", "general.cfg"),
238 +# ],
239 +# paths["appPathTransforms"] : [
240 +# os.path.join("osrframework", "alias_generator.py"),
241 +# os.path.join("osrframework", "entify.py"),
242 +# os.path.join("osrframework", "phonefy.py"),
243 +# os.path.join("osrframework", "searchfy.py"),
244 +# os.path.join("osrframework", "mailfy.py"),
245 +# os.path.join("osrframework", "usufy.py"),
246 +# os.path.join("osrframework", "domainfy.py"),
247 +# os.path.join("osrframework", "transforms", "aliasToKnownDomains.py"),
248 +# os.path.join("osrframework", "transforms", "aliasToKnownEmails.py"),
249 +# os.path.join("osrframework", "transforms", "aliasToSkypeAccounts.py"),
250 +# os.path.join("osrframework", "transforms", "aliasToSkypeIP.py"),
251 +# os.path.join("osrframework", "transforms", "bitcoinAddressToBlockchainDetails.py"),
252 +# os.path.join("osrframework", "transforms", "coordinatesToGoogleMapsBrowser.py"),
253 +# os.path.join("osrframework", "transforms", "coordinatesToTwitterBrowser.py"),
254 +# os.path.join("osrframework", "transforms", "domainToGoogleSearchUriWithEmails.py"),
255 +# os.path.join("osrframework", "transforms", "domainToTld.py"),
256 +# os.path.join("osrframework", "transforms", "emailToAlias.py"),
257 +# os.path.join("osrframework", "transforms", "emailToBreachedAccounts.py"),
258 +# os.path.join("osrframework", "transforms", "emailToDomain.py"),
259 +# os.path.join("osrframework", "transforms", "emailToSkypeAccounts.py"),
260 +# os.path.join("osrframework", "transforms", "expandPropertiesFromI3visioEntity.py"),
261 +# os.path.join("osrframework", "transforms", "hashToMD5crackDotCom.py"),
262 +# os.path.join("osrframework", "transforms", "ipToIp_ApiInformation.py"),
263 +# os.path.join("osrframework", "transforms", "phoneToMoreInfo.py"),
264 +# os.path.join("osrframework", "transforms", "phoneToPerson.py"),
265 +# os.path.join("osrframework", "transforms", "textToEntities.py"),
266 +# os.path.join("osrframework", "transforms", "textToGoogleSearchUri.py"),
267 +# os.path.join("osrframework", "transforms", "textToPlatformSearch.py"),
268 +# os.path.join("osrframework", "transforms", "textToProfiles.py"),
269 +# os.path.join("osrframework", "transforms", "uriToBrowser.py"),
270 +# os.path.join("osrframework", "transforms", "uriToDomain.py"),
271 +# os.path.join("osrframework", "transforms", "uriToEntities.py"),
272 +# os.path.join("osrframework", "transforms", "uriToGoogleCacheUri.py"),
273 +# os.path.join("osrframework", "transforms", "uriToPort.py"),
274 +# os.path.join("osrframework", "transforms", "uriToProtocol.py"),
275 +# ],
276 +# paths["appPathWrappers"] : [
277 +# os.path.join("config", "plugins", "wrapper.py.sample"),
278 +# ],
279 +# paths["appPathPatterns"] : [
280 +# os.path.join("config", "plugins", "pattern.py.sample"),
281 +# ],
282 +# paths["appPathServer"] : [
283 +# os.path.join("osrframework", "static"),
284 +# os.path.join("osrframework", "templates"),
285 +# ]
286 +#}
287
288 # Iterating through all destinations to write the info
289 -for destiny in files_to_copy.keys():
290 - # Grabbing each source file to be moved
291 - for sourceFile in files_to_copy[destiny]:
292 - fileToMove = os.path.join(HERE,sourceFile)
293 -
294 +#for destiny in files_to_copy.keys():
295 +# # Grabbing each source file to be moved
296 +# for sourceFile in files_to_copy[destiny]:
297 +# fileToMove = os.path.join(HERE,sourceFile)
298 +#
299 # Choosing the command depending on the SO
300 - if sys.platform == 'win32':
301 - if os.path.isdir(fileToMove):
302 - cmd = "echo d | xcopy \"" + fileToMove + "\" \"" + destiny + "\" /s /e"
303 - else:
304 - cmd = "copy \"" + fileToMove + "\" \"" + destiny + "\""
305 - elif sys.platform == 'linux2' or sys.platform == 'darwin':
306 - if not os.geteuid() == 0:
307 - cmd = "cp -r -- \"" + fileToMove + "\" \"" + destiny + "\""
308 - else:
309 - cmd = "sudo cp -r -- \"" + fileToMove + "\" \"" + destiny + "\""
310 +# if sys.platform == 'win32':
311 +# if os.path.isdir(fileToMove):
312 +# cmd = "echo d | xcopy \"" + fileToMove + "\" \"" + destiny + "\" /s /e"
313 +# else:
314 +# cmd = "copy \"" + fileToMove + "\" \"" + destiny + "\""
315 +# elif sys.platform == 'linux2' or sys.platform == 'darwin':
316 +# if not os.geteuid() == 0:
317 +# cmd = "cp -r -- \"" + fileToMove + "\" \"" + destiny + "\""
318 +# else:
319 +# cmd = "sudo cp -r -- \"" + fileToMove + "\" \"" + destiny + "\""
320 #print cmd
321 - output = os.popen(cmd).read()
322 +# output = os.popen(cmd).read()
323
324 -print
325 -print "[*] Last part: trying to configure Maltego Transforms..."
326 +#print
327 +#print "[*] Last part: trying to configure Maltego Transforms..."
328 # Creating the configuration file
329 -try:
330 - import osrframework.transforms.lib.configure_maltego as maltego
331 - maltego.configureMaltego(transformsConfigFolder=paths["appPathTransforms"], base=os.path.join(HERE,"osrframework/transforms/lib/osrframework-maltego-settings"), debug=False, backupPath=paths["appPathDefaults"])
332 -except Exception, e:
333 - print "[!] The Maltego configuration file to use i3visio transforms could not be created and thus, cannot be used. Check the following error:"
334 - print str(e)
335 -print
336 +#try:
337 +# import osrframework.transforms.lib.configure_maltego as maltego
338 +# maltego.configureMaltego(transformsConfigFolder=paths["appPathTransforms"], base=os.path.join(HERE,"osrframework/transforms/lib/osrframework-maltego-settings"), debug=False, backupPath=paths["appPathDefaults"])
339 +#except Exception, e:
340 +# print "[!] The Maltego configuration file to use i3visio transforms could not be created and thus, cannot be used. Check the following error:"
341 +# print str(e)
342 +#print
0 Description: Drop import validate_email
1 The module validate_email is only mandatory for windows because module
2 emailahoy doesn't work correctly. Drop the import validate_email in Kali
3 package.
4 Author: Sophie Brun <[email protected]>
5 Last-Update: 2017-08-25
6 ---
7 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
8 --- a/osrframework/mailfy.py
9 +++ b/osrframework/mailfy.py
10 @@ -42,7 +42,7 @@ import sys
11
12 # Email verification libraries
13 import emailahoy
14 -import validate_email
15 +#import validate_email
16
17 import osrframework.thirdparties.haveibeenpwned_com.hibp as hibp
18 import osrframework.utils.banner as banner
19 --- a/setup.py
20 +++ b/setup.py
21 @@ -196,7 +196,7 @@ setup(
22 "tweepy",
23 "networkx",
24 "decorator",
25 - "validate_email",
26 +# "validate_email",
27 "pydns",
28 "tabulate",
29 "oauthlib>=1.0.0",
0 Description: Drop the check for updates
1 Don't check available updates on pypi. We don't want the user to update
2 with pypi.
3 Author: Sophie Brun <[email protected]>
4 Forwarded: not-needed
5 Last-Update: 2017-09-18 <YYYY-MM-DD, last update of the meta-information, optional>
6 ---
7 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
8 --- a/osrframework/osrframework_server.py
9 +++ b/osrframework/osrframework_server.py
10 @@ -58,7 +58,7 @@ import osrframework.usufy as usufy
11
12 import osrframework.utils.configuration as configuration
13 import osrframework.utils.platform_selection as platform_selection
14 -import osrframework.utils.updates as updates
15 +#import osrframework.utils.updates as updates
16 import osrframework.utils.general as general
17 from osrframework.utils.general import error, warning, success, info, title, emphasis
18
19 @@ -90,26 +90,26 @@ app = Flask(
20 @app.route("/")
21 def index():
22 # Getting the status of the current OSRFramework installation
23 - try:
24 - hasUpdates, version = updates.hasUpdatesOnPypi("osrframework")
25 - if hasUpdates:
26 - notice = {
27 - "icon": "warning",
28 - "message": "OSRFramework's version is " + version + ", but there is a new release on Pypi (" + version + "). We encourage you to upgrade soon!" ,
29 - "type": "warning"
30 - }
31 - else:
32 - notice = {
33 - "icon": "thumbs-up",
34 - "message": "OSRFramework is updated to the latest version (" + version + ").",
35 - "type": "success"
36 - }
37 - except:
38 - notice = {
39 - "icon": "close",
40 - "message": "OSRFramework Server could not get connected to Pypi to find new versions. Current version is: " + str(osrframework.__version__) + ".",
41 - "type": "error"
42 - }
43 +# try:
44 +# hasUpdates, version = updates.hasUpdatesOnPypi("osrframework")
45 +# if hasUpdates:
46 +# notice = {
47 +# "icon": "warning",
48 +# "message": "OSRFramework's version is " + version + ", but there is a new release on Pypi (" + version + "). We encourage you to upgrade soon!" ,
49 +# "type": "warning"
50 +# }
51 +# else:
52 + notice = {
53 + "icon": "thumbs-up",
54 + "message": "OSRFramework",
55 + "type": "success"
56 + }
57 +# except:
58 +# notice = {
59 +# "icon": "close",
60 +# "message": "OSRFramework Server could not get connected to Pypi to find new versions. Current version is: " + str(osrframework.__version__) + ".",
61 +# "type": "error"
62 +# }
63 return render_template('home.html', mt_home='class=current', notice=notice)
64
65
0 Description: Drop depends on importlib
1 We don't need to explicitly add importlib to Depends as it's a backport
2 of python2.7 and we already have Python 2.7
3 Author: Sophie Brun <[email protected]>
4 Last-Update: 2017-08-25
5 ---
6 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
7 --- a/setup.py
8 +++ b/setup.py
9 @@ -201,7 +201,7 @@ setup(
10 "tabulate",
11 "oauthlib>=1.0.0",
12 # Added to dinamically import wrappers:
13 - "importlib",
14 +# "importlib",
15 #"inspect",
16 #"pkgutil",
17 # Adding dependencies to avoid the InsecurePlatformWarning when calling Twitter API dealing with SSL: <http://stackoverflow.com/a/29202163>. Other options would require the user to upgrade to Python 2.7.9.
0 Description: Fix exit function
1 When you quit osrfconsole by typing exit, you have an error:
2 "NameError: global name 'info' is not defined"
3 Author: Sophie Brun <[email protected]>
4 Last-Update: 2017-09-05
5 ---
6 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
7 --- a/osrframework/osrfconsole.py
8 +++ b/osrframework/osrfconsole.py
9 @@ -995,7 +995,7 @@ This is free software, and you are welco
10 """
11 This command will exit osrfconsole normally.
12 """
13 - print(info("Exiting..."))
14 + print(general.info("Exiting..."))
15 sys.exit()
16
17
0 Description: Fix a syntax error
1 Add a missing parenthesis
2 Author: Sophie Brun <[email protected]>
3 Last-Update: 2017-09-15
4 ---
5 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
6 --- a/osrframework/enumeration.py
7 +++ b/osrframework/enumeration.py
8 @@ -75,7 +75,7 @@ def enumerateURL(urlDict, outputFolder,
9 oF.write(data)
10 else:
11 # The profile was found so we will store it:
12 - print(general.info("Storing resource as:\t" + filename + "...")
13 + print(general.info("Storing resource as:\t" + filename + "..."))
14 with open( outputFolder + "/" + filename, "w") as oF:
15 oF.write(data)
16 except:
0 Description: Initialize the config directory and files
1 Upstream creates and initializes the ~/.config/OSRFramework in the
2 setup.py. We disable this for Kali and create a function
3 initialize_config_files to manage the creation and installation of all
4 the required files, including maltego settings.
5 Author: Sophie Brun <[email protected]>
6 Last-Update: 2017-09-18
7 ---
8 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
9 --- a/osrframework/utils/configuration.py
10 +++ b/osrframework/utils/configuration.py
11 @@ -22,8 +22,54 @@
12
13 import os
14 import sys
15 +import shutil
16 +import glob
17 import osrframework.utils.errors as errors
18
19 +
20 +def initialize_config_files():
21 + """
22 + Function to create and initialize the configration files and
23 + directories.
24 + """
25 + LOCAL_CONFIG_DIR = getConfigPath()["appPath"]
26 + LOCAL_CONFIG_TRANSFORMS_DIR = getConfigPath()["appPathTransforms"]
27 + INSTALL_PATH = '/usr/lib/python2.7/dist-packages/osrframework'
28 +
29 + if os.path.exists(LOCAL_CONFIG_DIR):
30 + return
31 +
32 + # Copy default config file into osrframework local config
33 + shutil.copytree('/etc/osrframework', LOCAL_CONFIG_DIR)
34 +
35 + # Create directory data
36 + os.mkdir(getConfigPath()["appPathData"])
37 +
38 + # Create directory Transforms before copy *.py files
39 + os.mkdir(LOCAL_CONFIG_TRANSFORMS_DIR)
40 +
41 + # Copy *.py files in transforms directory
42 + for f in glob.glob(os.path.join(INSTALL_PATH, "transforms/[a-z]*.py")):
43 + shutil.copy(f, LOCAL_CONFIG_TRANSFORMS_DIR)
44 + for f in ["alias_generator.py", "entify.py", "phonefy.py", "searchfy.py", "mailfy.py", "usufy.py", "domainfy.py"]:
45 + shutil.copy((os.path.join(INSTALL_PATH, f)), LOCAL_CONFIG_TRANSFORMS_DIR)
46 +
47 + # Copy default config files for the user
48 + for f in ["accounts.cfg", "api_keys.cfg", "browser.cfg", "general.cfg"]:
49 + shutil.copy((os.path.join(getConfigPath()["appPathDefaults"], f)),LOCAL_CONFIG_DIR)
50 +
51 + # Configure maltego
52 + LOCAL_CONFIG_DEFAULT_DIR = getConfigPath()["appPathDefaults"]
53 + try:
54 + import osrframework.transforms.lib.configure_maltego as maltego
55 + maltego.configureMaltego(transformsConfigFolder=LOCAL_CONFIG_TRANSFORMS_DIR,
56 + base=os.path.join(LOCAL_CONFIG_DEFAULT_DIR, "osrframework-maltego-settings"),
57 + debug=False, backupPath=LOCAL_CONFIG_DEFAULT_DIR)
58 + except Exception, e:
59 + print "[!] The Maltego configuration file to use i3visio transforms could not be created and thus, cannot be used. Check the following error:"
60 + print str(e)
61 +
62 +
63 def changePermissionsRecursively(path, uid, gid):
64 """
65 Function to recursively change the user id and group id. It sets 700
66 @@ -84,9 +130,10 @@ def getConfigPath(configFileName = None)
67 }
68
69 # Creating them if they don't exist
70 - for path in paths.keys():
71 - if not os.path.exists(paths[path]):
72 - os.makedirs(paths[path])
73 +#Don't create them in Kali: initialize_config_files() will create them
74 +# for path in paths.keys():
75 +# if not os.path.exists(paths[path]):
76 +# os.makedirs(paths[path])
77
78 return paths
79
80 @@ -100,6 +147,7 @@ def returnListOfConfigurationValues(util
81 '''
82
83 VALUES = {}
84 + initialize_config_files()
85
86 # If a api_keys.cfg has not been found, creating it by copying from default
87 configPath = os.path.join(getConfigPath()["appPath"], "general.cfg")
0 fix-syntax-error.patch
1 cleanup-setup.patch
2 dont-use-validate-email.patch
3 drop-explicit-need-of-importlib.patch
4 upgrade-installation.patch
5 fix-exit-function.patch
6 initalize-config.patch
7 drop-check-updates.patch
0 Description: Improve installation
1 Upstream installs configuration files directly in the home user directory
2 but we can't / don't do that in packages.
3 Add a data_files in setup to manage the installation of config files in
4 /etc/osrframework. These files will be copied in the user directory at the
5 first launch.
6 Author: Sophie Brun <[email protected]>
7 Last-Update: 2017-09-04
8 ---
9 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
10 --- a/setup.py
11 +++ b/setup.py
12 @@ -22,6 +22,8 @@
13
14 import os
15 import sys
16 +import glob
17 +
18 from setuptools import setup
19
20 # Checking if obsolete versions are installed in the machine
21 @@ -179,6 +181,11 @@ setup(
22 "osrframework.searchengines",
23 "osrframework.domains",
24 ],
25 + data_files=[
26 + ("/etc/osrframework/default", glob.glob("config/*.cfg")),
27 + ("/etc/osrframework/plugins/patterns", ["config/plugins/pattern.py.sample"]),
28 + ("/etc/osrframework/plugins/wrappers", ["config/plugins/wrapper.py.sample"]),
29 + ],
30 long_description=long_description,
31 install_requires=[
32 "setuptools",
0 Skype4Py python-skype4py
1 python_whois python-whois
2 pyexcel python-pyexcel
3 pyexcel_ods python-pyexcel-ods
4 pyexcel_xls python-pyexcel-xls
5 pyexcel_xlsx python-pyexcel-xlsx
6 pyexcel_io python-pyexcel-io
7 pyexcel_text python-pyexcel-text
8 python_emailahoy python-emailahoy
0 #!/usr/bin/make -f
1
2 export PYBUILD_NAME=osrframework
3
4 %:
5 dh $@ --with python2 --buildsystem=pybuild
0 3.0 (quilt)
0 extend-diff-ignore = "^[^/]*[.]egg-info/"
0 version=4
1 # PyPI
2 opts="uversionmangle=s/a/~a/; s/b/~b/; s/rc/~rc/" \
3 https://pypi.debian.net/osrframework/osrframework-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))