├── CODE-OF-CONDUCT.md
├── Dockerfile
├── LICENSE
├── README.md
├── requirements.txt
└── toolkit.py
/CODE-OF-CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | In the interest of fostering an open and welcoming environment, we as
6 | contributors and maintainers pledge to making participation in our project and
7 | our community a harassment-free experience for everyone, regardless of age, body
8 | size, disability, ethnicity, gender identity and expression, level of experience,
9 | nationality, personal appearance, race, religion, or sexual identity and
10 | orientation.
11 |
12 | ## Our Standards
13 |
14 | Examples of behavior that contributes to creating a positive environment
15 | include:
16 |
17 | * Using welcoming and inclusive language
18 | * Being respectful of differing viewpoints and experiences
19 | * Gracefully accepting constructive criticism
20 | * Focusing on what is best for the community
21 | * Showing empathy towards other community members
22 |
23 | Examples of unacceptable behavior by participants include:
24 |
25 | * The use of sexualized language or imagery and unwelcome sexual attention or
26 | advances
27 | * Trolling, insulting/derogatory comments, and personal or political attacks
28 | * Public or private harassment
29 | * Publishing others' private information, such as a physical or electronic
30 | address, without explicit permission
31 | * Other conduct which could reasonably be considered inappropriate in a
32 | professional setting
33 |
34 | ## Our Responsibilities
35 |
36 | Project maintainers are responsible for clarifying the standards of acceptable
37 | behavior and are expected to take appropriate and fair corrective action in
38 | response to any instances of unacceptable behavior.
39 |
40 | Project maintainers have the right and responsibility to remove, edit, or
41 | reject comments, commits, code, wiki edits, issues, and other contributions
42 | that are not aligned to this Code of Conduct, or to ban temporarily or
43 | permanently any contributor for other behaviors that they deem inappropriate,
44 | threatening, offensive, or harmful.
45 |
46 | ## Scope
47 |
48 | This Code of Conduct applies both within project spaces and in public spaces
49 | when an individual is representing the project or its community. Examples of
50 | representing a project or community include using an official project e-mail
51 | address, posting via an official social media account, or acting as an appointed
52 | representative at an online or offline event. Representation of a project may be
53 | further defined and clarified by project maintainers.
54 |
55 | ## Enforcement
56 |
57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
58 | reported by contacting the project team at rahmat.nurfauzi@gmail.com. All
59 | complaints will be reviewed and investigated and will result in a response that
60 | is deemed necessary and appropriate to the circumstances. The project team is
61 | obligated to maintain confidentiality with regard to the reporter of an incident.
62 | Further details of specific enforcement policies may be posted separately.
63 |
64 | Project maintainers who do not follow or enforce the Code of Conduct in good
65 | faith may face temporary or permanent repercussions as determined by other
66 | members of the project's leadership.
67 |
68 | ## Attribution
69 |
70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71 | available at [http://contributor-covenant.org/version/1/4][version]
72 |
73 | [homepage]: http://contributor-covenant.org
74 | [version]: http://contributor-covenant.org/version/1/4/
75 |
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM python:3.7.7-slim-stretch
2 | RUN apt update && apt install git -y
3 | RUN mkdir /red-toolkit
4 | COPY requirements.txt /red-toolkit/requirements.txt
5 | WORKDIR /red-toolkit
6 | RUN pip3 install -r requirements.txt
7 | COPY toolkit.py /red-toolkit/toolkit.py
8 | COPY README.md /red-toolkit/README.md
9 | ENTRYPOINT ["python3", "toolkit.py"]
--------------------------------------------------------------------------------
/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 | # Red Teaming/Adversary Simulation Toolkit
2 |
3 | A collection of open source and commercial penetration testing tools.
4 | This repository will help you during your red team engagement.
5 |
6 | Use toolkit.py script to maintain your collection.
7 | _________________________________________________________________________________________________________
8 |
9 | ## Contents
10 | * [Active Intelligence Gathering](#active-intelligence-gathering)
11 | * [Passive Intelligence Gathering](#passive-intelligence-gathering)
12 | * [Weaponization](#weaponization)
13 | * [Delivery](#delivery)
14 | * [Phishing](#phishing)
15 | * [Social Engineering](#social-engineering)
16 | * [Remote Access Tools](#remote-access-tools)
17 | * [Staging](#staging)
18 | * [Man In the Middle](#man-in-the-middle)
19 | * [Establish Foothold](#establish-foothold)
20 | * [Pivoting and Tunneling](#pivoting-and-tunneling)
21 | * [Lateral Movement](#lateral-movement)
22 | * [Local Privileges Escalation](#local-privileges-escalation)
23 | * [Domain Privileges Escalation](#domain-privileges-escalation)
24 | * [Data Exfiltration](#data-exfiltration)
25 | * [Anonymization](#anonymization)
26 | * [Malware Analysis](#malware-analysis)
27 | * [Adversary Simulation](#adversary-simulation)
28 | * [Wireless Networks](#wireless-networks)
29 | * [Embedded & Peripheral Devices Hacking](#embedded-peripheral-devices-hacking)
30 | * [Software For Team Communication](#software-for-team-communication)
31 | * [Log Aggregation](#log-aggregation)
32 | * [Cloud Computing](#cloud-computing)
33 | * [Labs](#labs)
34 | * [Binaries](#binaries)
35 | * [References](#references)
36 | * [Scripts](#scripts)
37 | * [Wordlists](#wordlists)
38 |
39 |
40 |
41 | ### Active Intelligence Gathering
42 | * **FinalRecon** All-in-one information gathering tool https://github.com/thewhiteh4t/FinalRecon
43 | * **Vanquish** Vanquish is Kali Linux based Enumeration Orchestrator. Vanquish leverages the opensource enumeration tools on Kali to perform multiple active information gathering phases. https://github.com/frizb/Vanquish
44 | * **nullinux** Nullinux is an internal penetration testing tool for Linux that can be used to enumerate OS information, domain information, shares, directories, and users through SMB https://github.com/m8r0wn/nullinux
45 | * **hakrevdns** Small, fast, simple tool for performing reverse DNS lookups en masse. https://github.com/hakluke/hakrevdns
46 | * **AutoRecon** AutoRecon is a multi-threaded network reconnaissance tool which performs automated enumeration of the network https://github.com/Tib3rius/AutoRecon
47 | * **enumapis** Enumerate javascript endpoints on a web-page from the given URL https://github.com/infosec-au/enumapis
48 | * **async-intrusion** Asynchronic python scripts for network reconnaissance https://github.com/cyberhexe/async-intrusion
49 | * **XSStrike** XSStrike is a Cross Site Scripting detection suite equipped with four hand written parsers, an intelligent payload generator, a powerful fuzzing engine and an incredibly fast crawler. https://github.com/s0md3v/XSStrike
50 | * **Osmedeus** Fully automated offensive security framework for reconnaissance and vulnerability scanning https://github.com/j3ssie/Osmedeus
51 | * **cve-2019-1040-scanner** Checks for CVE-2019-1040 vulnerability over SMB. https://github.com/fox-it/cve-2019-1040-scanner
52 | * **bfac** BFAC (Backup File Artifacts Checker): An automated tool that checks for backup artifacts that may disclose the web-application's source code. https://github.com/mazen160/bfac
53 | * **Reconnoitre** A reconnaissance tool made for the OSCP labs to automate information gathering and service enumeration whilst creating a directory structure to store results, findings and exploits used for each host, recommended commands to execute and directory structures for storing loot and flags. https://github.com/codingo/Reconnoitre
54 | * **nullinux** Nullinux is an internal penetration testing tool for Linux that can be used to enumerate OS information, domain information, shares, directories, and users through SMB. https://github.com/m8r0wn/nullinux
55 | * **sharesearch** ShareSearch tool goes through hosts with SMB, NFS, checking credentials, looking for interesting stuff and greping sensitive data in it. WARNING! Alfa version, a lot of bugs and spaghetti code. https://github.com/nikallass/sharesearch
56 | * **smbclient_cheatsheet** This is a list of useful commands/tricks using smbclient and nmap smb scripts - very useful on a pentesting https://sharingsec.blogspot.com https://github.com/irgoncalves/smbclient_cheatsheet
57 | * **enumapis** Discovery of hidden API's through traversing web applications https://github.com/infosec-au/enumapis
58 | * **jsearch** Jsearch a simple script that grep infos from javascript files https://github.com/incogbyte/jsearch
59 | * **altdns** Altdns is a DNS recon tool that allows for the discovery of subdomains that conform to patterns. Altdns takes in words that could be present in subdomains under a domain (such as test, dev, staging) as well as takes in a list of subdomains that you know of.https://github.com/urbanadventurer/altdns
60 | * **unhidens** Small DNS Recon utility, allows you to obtain some useful info about NS-servers placed behind relays, firewalls, etc. Requires 'dig' utility! https://github.com/german-namestnikov/unhidens
61 | * **knock** is a python tool designed to enumerate subdomains on a target domain through a wordlist. It is designed to scan for **DNS zone transfer** and to try to bypass the **wildcard DNS record** automatically if it is enabled. Now knockpy supports queries to VirusTotal subdomains, you can setting the API_KEY within the config.json file. https://github.com/guelfoweb/knock.git
62 | * **subbrute** SubBrute is a community driven project with the goal of creating the fastest, and most accurate subdomain enumeration tool. Some of the magic behind SubBrute is that it uses open resolvers as a kind of proxy to circumvent DNS rate-limiting. This design also provides a layer of anonymity, as SubBrute does not send traffic directly to the target's name servers. https://github.com/infosec-au/subbrute
63 | * **subscraper** SubScraper uses DNS brute force, Google & Bing scraping, and Virus Total to enumerate subdomains. Written in Python3, SubScraper performs HTTP(S) requests and DNS "A" record lookups during the enumeration process to validate discovered subdomains. This provides further information to help prioritize targets and aid in potential next steps. Post-Enumeration, "CNAME" lookups are displayed to identify subdomain takeover opportunities. https://github.com/m8r0wn/subscraper
64 | * **EyeWitness** is designed to take screenshots of websites, provide some server header info, and identify default credentials if possible. https://github.com/ChrisTruncer/EyeWitness
65 | * **AWSBucketDump** is a tool to quickly enumerate AWS S3 buckets to look for loot. https://github.com/jordanpotti/AWSBucketDump
66 | * **AQUATONE** is a set of tools for performing reconnaissance on domain names. https://github.com/michenriksen/aquatone
67 | * **spoofcheck** a program that checks if a domain can be spoofed from. The program checks SPF and DMARC records for weak configurations that allow spoofing. https://github.com/BishopFox/spoofcheck
68 | * **dnsrecon** a tool DNS Enumeration Script. https://github.com/darkoperator/dnsrecon
69 | * **dirsearch** is a simple command line tool designed to brute force directories and files in websites. https://github.com/maurosoria/dirsearch
70 | * **masscan-web-ui** MASSCAN Web UI from Offensive Security https://github.com/offensive-security/masscan-web-ui
71 | * **jwt-hack** JWT cracking tool https://github.com/hahwul/jwt-hack
72 |
73 | ### Passive Intelligence Gathering
74 | * **awesome-osint** A curated list of amazingly awesome open source intelligence tools and resources. https://github.com/jivoi/awesome-osint
75 | * **Maryam** OWASP Maryam is an Open-source intelligence(OSINT) and Web-based Footprinting optional/modular framework based on the Recon-ng core and written in Python. https://github.com/saeeddhqan/Maryam
76 | * **darkshot** Darkshot is a scraper tool on steroids, to analyze all of the +2 Billions pictures publicly available on Lightshot. It uses OCR to analyze pictures and auto-categorize them thanks to keywords and detection functions. https://github.com/mxrch/darkshot
77 | * **fav-up** Lookups for real IP starting from the favicon icon and using Shodan. https://github.com/pielco11/fav-up
78 | * **lenz** Geolocate all active TCP/ UDP socket conn peer(s) on console map. https://github.com/itzmeanjan/lenz
79 | * **threat-actor-intelligence-server** A simple ReST server to lookup threat actors (by name, synonym or UUID) and returning the corresponding MISP galaxy information about the known threat actors. https://github.com/MISP/threat-actor-intelligence-server
80 | * **Photon** The extensive range of options provided by Photon lets you crawl the web exactly the way you want. https://github.com/s0md3v/Photon
81 | * **git-vuln-finder** Finding potential software vulnerabilities from git commit messages https://github.com/cve-search/git-vuln-finder
82 | * **Ultimate-Dork** Dork Web Crawler https://github.com/jaxBCD/Ultimate-Dork
83 | * **Amass** In-depth Attack Surface Mapping and Asset Discovery https://github.com/OWASP/Amass
84 | * **ODIN** Automated network asset, email, and social media profile discovery and cataloguing https://github.com/chrismaddalena/ODIN
85 | * **Awesome-Asset-Discovery** List of Awesome Open Source Intelligence Resources https://github.com/redhuntlabs/Awesome-Asset-Discovery
86 | * **gitrob** Gitrob is a tool to help find potentially sensitive files pushed to public repositories on Github. Gitrob will clone repositories belonging to a user or organization down to a configurable depth and iterate through the commit history and flag files that match signatures for potentially sensitive files. https://github.com/michenriksen/gitrob
87 | * **security-focus-dataset** A tool to scrape the security-focus, a public exploits database. https://github.com/cyberhexe/security-focus-dataset
88 | * **shodan-eye** Shodan Eye This tool collects all the information about all devices directly connected to the internet using the specified keywords that you enter. https://github.com/BullsEye0/shodan-eye
89 | * **userrecon-py** Find usernames in **187** social networks. https://github.com/decoxviii/userrecon-py
90 | * **sherlock-js** Node-JS enumeration tool to find accounts in social networks by a given username. https://github.com/GitSquared/sherlock-js
91 | * **pymeta** Pymeta uses specially crafted search queries to identify and download the following file types (pdf, xls, xlsx, doc, docx, ppt, pptx) from a given domain using Google and Bing. https://github.com/m8r0wn/pymeta
92 | * **GoogleScraper** Scraping search engines professionally https://github.com/NikolaiT/GoogleScraper
93 | * **cloud_enum** Multi-cloud OSINT tool. Enumerate public resources in AWS, Azure, and Google Cloud. https://github.com/initstring/cloud_enum
94 | * **SiteBroker** A cross-platform python based utility for information gathering and penetration automation! https://github.com/Anon-Exploiter/SiteBroker
95 | * **Social Mapper** OSINT Social Media RMapping Tool, takes a list of names & images (or LinkedIn company name) and performs automated target searching on a huge scale across multiple social media sites. Not restricted by APIs as it instruments a browser using Selenium. Outputs reports to aid in correlating targets across sites. https://github.com/SpiderLabs/social_mapper
96 | * **skiptracer** OSINT scraping framework, utilizes some basic python webscraping (BeautifulSoup) of PII paywall sites to compile passive information on a target on a ramen noodle budget. https://github.com/xillwillx/skiptracer
97 | * **FOCA** (Fingerprinting Organizations with Collected Archives) is a tool used mainly to find metadata and hidden information in the documents its scans. https://github.com/ElevenPaths/FOCA
98 | * **Metagoofil** is a tool for extracting metadata of public documents (pdf,doc,xls,ppt,etc) availables in the target websites. https://github.com/laramies/metagoofil
99 | * **SimplyEmail** Email recon made fast and easy, with a framework to build on. https://github.com/killswitch-GUI/SimplyEmail
100 | * **truffleHog** searches through git repositories for secrets, digging deep into commit history and branches. https://github.com/dxa4481/truffleHog
101 | * **Just-Metadata** is a tool that gathers and analyzes metadata about IP addresses. It attempts to find relationships between systems within a large dataset. https://github.com/ChrisTruncer/Just-Metadata
102 | * **typofinder** a finder of domain typos showing country of IP address. https://github.com/nccgroup/typofinder
103 | * **pwnedOrNot** is a python script which checks if the email account has been compromised in a data breach, if the email account is compromised it proceeds to find passwords for the compromised account. https://github.com/thewhiteh4t/pwnedOrNot
104 | * **GitHarvester** This tool is used for harvesting information from GitHub like google dork. https://github.com/metac0rtex/GitHarvester
105 | * **pwndb** is a python command-line tool for searching leaked credentials using the Onion service with the same name. https://github.com/davidtavarez/pwndb/
106 | * **CrossLinked** LinkedIn enumeration tool to extract valid employee names from an organization through search engine scraping. https://github.com/m8r0wn/CrossLinked
107 | * **SpiderFoot** the open source footprinting and intelligence-gathering tool. https://github.com/smicallef/spiderfoot
108 | * **datasploit** is an OSINT Framework to perform various recon techniques on Companies, People, Phone Number, Bitcoin Addresses, etc., aggregate all the raw data, and give data in multiple formats. https://github.com/DataSploit/datasploit
109 |
110 | ## Weaponization
111 | * **android-malware** A collection of android malware samples. https://github.com/ashishb/android-malware
112 | * **OffensiveCSharp** This is a collection of C# tooling and POCs I've created for use on operations. Each project is designed to use no external libraries. Open each project's .SLN in Visual Studio and compile as "Release". https://github.com/matterpreter/OffensiveCSharp
113 | * **SharpSploit** is a .NET post-exploitation library written in C# that aims to highlight the attack surface of .NET and make the use of offensive .NET easier for red teamers. https://github.com/cobbr/SharpSploit
114 | * **SharpWeb** .NET 2.0 CLR project to retrieve saved browser credentials from Google Chrome, Mozilla Firefox and Microsoft Internet Explorer/Edge. https://github.com/djhohnstein/SharpWeb
115 | * **reconerator** C# Targeted Attack Reconnissance Tools. https://github.com/stufus/reconerator
116 | * **SharpView** C# implementation of harmj0y's PowerView. https://github.com/tevora-threat/SharpView
117 | * **spotter** potter is a tool to wrap payloads in environmentally-keyed, AES256-encrypted launchers. These keyed launchers provide a way to ensure your payload is running on its intended target, as well as provide a level of protection for the launcher itself. https://github.com/matterpreter/spotter
118 | * **misc** Collection of things I've written on pentests to make life easier. https://github.com/matterpreter/misc
119 | * **getDA.sh** This script checks for a few common, easy to leverage vulnerabilites I find testers using to get Domain Administrator access when stealth doesn't matter. https://github.com/matterpreter/getDA.sh
120 | * **ReverseTCPShell** A reverse shell with bbfuscation, AV evasion, FW and EDR bypassing. https://github.com/ZHacker13/ReverseTCPShell
121 | * **PayloadsAllTheThings** A list of useful payloads and bypass for Web Application Security and Pentest/CTF https://github.com/swisskyrepo/PayloadsAllTheThings
122 | * **TIDoS-Framework** The Offensive Manual Web Application Penetration Testing Framework. https://github.com/0xInfection/TIDoS-Framework
123 | * **webshells** A collection of web shells https://github.com/tennc/webshell
124 | * **Perfect-Malware-Samples** Fresh malware samples caught in the wild daily from random places https://github.com/Perfectdotexe/Perfect-Malware-Samples
125 | * **DLLREVERSESHELL** A CUSTOM CODED FUD DLL, CODED IN C , WHEN LOADED , VIA A DECOY WEB-DELIVERY MODULE( FIRING A DECOY PROGRAM), WILL GIVE A REVERSE SHELL (POWERSHELL) FROM THE VICTIM MACHINE TO THE ATTACKER CONSOLE , OVER LAN AND WAN. https://github.com/1captainnemo1/DLLREVERSESHELL
126 | * **tactical-exploitation** Modern tactical exploitation toolkit. https://github.com/0xdea/tactical-exploitation
127 | * **PayloadsAllTheThings** A list of useful payloads and bypass for Web Application Security and Pentest/CTF https://github.com/swisskyrepo/PayloadsAllTheThings
128 | * **Sickle** Sickle is a shellcode development tool created to speed up the various steps needed to create functioning shellcode. https://github.com/wetw0rk/Sickle
129 | * **Cheatsheets** Helped during my OSCP lab days. (REALLY GOOD STUFF) https://github.com/slyth11907/Cheatsheets
130 | * **Pandoras-Box** (OSCP) This repo will contain random scripts that I used/use during my offensive testing. It can contain scripts ranging from extremely stupid and basic stuf to some extremely awesome and elite stuff.... Stay tuned :) https://github.com/paranoidninja/Pandoras-Box.git
131 | * **Evil-Droid** Evil-Droid is a framework that create & generate & embed apk payload to penetrate android platforms. https://github.com/M4sc3r4n0/Evil-Droid
132 | * **PhoneSploit** Using open ADB ports we can exploit an android device https://github.com/metachar/PhoneSploit
133 | * **massadb** A python script to probe a number of android devices for an open ADB port https://github.com/cyberhexe/massadb
134 | * **TheFatRat** An Easy tool to Generate Backdoor for bypass AV and Easy Tool For Post exploitation attack like browser attack,dll . This tool compiles a malware with popular payload and then the compiled malware can be execute on windows, android, mac . . https://github.com/Screetsec/TheFatRat
135 | * **NetWorm** Python network worm that spreads on the local network and gives the attacker control of these machines. https://github.com/pylyf/NetWorm
136 | * **cryptondie** CryptonDie is a ransomware developed for study purposes. https://github.com/zer0dx/cryptondie
137 | * **Microsploit** a Simple tool and not very special but this tool fast and easy create backdoor office exploitation using module metasploit packet. Like Microsoft Office in windows or mac , Open Office in linux , Macro attack , Buffer Overflow in word . Work in kali rolling , Parrot , Backbox .. https://github.com/Screetsec/Microsploit
138 | * **IPObfuscator** A simple tool to convert the IP to different obfuscated forms https://github.com/OsandaMalith/IPObfuscator
139 | * **WinRAR Remote Code Execution** Proof of Concept exploit for CVE-2018-20250. https://github.com/WyAtu/CVE-2018-20250
140 | * **Composite Moniker** Proof of Concept exploit for CVE-2017-8570. https://github.com/rxwx/CVE-2017-8570
141 | * **Exploit toolkit CVE-2017-8759** is a handy python script which provides pentesters and security researchers a quick and effective way to test Microsoft .NET Framework RCE. https://github.com/bhdresh/CVE-2017-8759
142 | * **CVE-2017-11882 Exploit** accepts over 17k bytes long command/code in maximum. https://github.com/unamer/CVE-2017-11882
143 | * **Adobe Flash Exploit** CVE-2018-4878. https://github.com/anbai-inc/CVE-2018-4878
144 | * **Exploit toolkit CVE-2017-0199** is a handy python script which provides pentesters and security researchers a quick and effective way to test Microsoft Office RCE. https://github.com/bhdresh/CVE-2017-0199
145 | * **ExtensionSpoofer** Simple program to spoof file extensions and icons in Windows https://github.com/henriksb/ExtensionSpoofer
146 | * **demiguise** is a HTA encryption tool for RedTeams. https://github.com/nccgroup/demiguise
147 | * **Office-DDE-Payloads** collection of scripts and templates to generate Office documents embedded with the DDE, macro-less command execution technique. https://github.com/0xdeadbeefJERKY/Office-DDE-Payloads
148 | * **lnkexploit** Spoofing an executable payload as a LNK file https://github.com/mortychannel/lnkexploit
149 | * **CACTUSTORCH** Payload Generation for Adversary Simulations. https://github.com/mdsecactivebreach/CACTUSTORCH
150 | * **SharpShooter** is a payload creation framework for the retrieval and execution of arbitrary CSharp source code. https://github.com/mdsecactivebreach/SharpShooter
151 | * **Don't kill my cat** is a tool that generates obfuscated shellcode that is stored inside of polyglot images. The image is 100% valid and also 100% valid shellcode. https://github.com/Mr-Un1k0d3r/DKMC
152 | * **Malicious Macro Generator Utility** Simple utility design to generate obfuscated macro that also include a AV / Sandboxes escape mechanism. https://github.com/Mr-Un1k0d3r/MaliciousMacroGenerator
153 | * **Invoke-Obfuscation** PowerShell Obfuscator. https://github.com/danielbohannon/Invoke-Obfuscation
154 | * **Invoke-CradleCrafter** PowerShell remote download cradle generator and obfuscator. https://github.com/danielbohannon/Invoke-CradleCrafter
155 | * **eternalblue** EternalBlue MS17-010 scanner / sendNexecute exploit https://github.com/cyberhexe/eternalblue.git
156 | * **Invoke-DOSfuscation** cmd.exe Command Obfuscation Generator & Detection Test Harness. https://github.com/danielbohannon/Invoke-DOSfuscation
157 | * **Unicorn** is a simple tool for using a PowerShell downgrade attack and inject shellcode straight into memory. https://github.com/trustedsec/unicorn
158 | * **PyFuscation** Obfuscate powershell scripts by replacing Function names, Variables and Parameters. https://github.com/CBHue/PyFuscation
159 | * **EmbedInHTML** Embed and hide any file in an HTML file. https://github.com/Arno0x/EmbedInHTML
160 | * **SigThief** Stealing Signatures and Making One Invalid Signature at a Time. https://github.com/secretsquirrel/SigThief
161 | * **Veil** is a tool designed to generate metasploit payloads that bypass common anti-virus solutions. https://github.com/Veil-Framework/Veil
162 | * **CheckPlease** Sandbox evasion modules written in PowerShell, Python, Go, Ruby, C, C#, Perl, and Rust. https://github.com/Arvanaghi/CheckPlease
163 | * **Invoke-PSImage** is a tool to embeded a PowerShell script in the pixels of a PNG file and generates a oneliner to execute. https://github.com/peewpw/Invoke-PSImage
164 | * **LuckyStrike** a PowerShell based utility for the creation of malicious Office macro documents. To be used for pentesting or educational purposes only. https://github.com/curi0usJack/luckystrike
165 | * **ClickOnceGenerator** Quick Malicious ClickOnceGenerator for Red Team. The default application a simple WebBrowser widget that point to a website of your choice. https://github.com/Mr-Un1k0d3r/ClickOnceGenerator
166 | * **macro_pack** is a tool by @EmericNasi used to automatize obfuscation and generation of MS Office documents, VB scripts, and other formats for pentest, demo, and social engineering assessments. https://github.com/sevagas/macro_pack
167 | * **StarFighters** a JavaScript and VBScript Based Empire Launcher. https://github.com/Cn33liz/StarFighters
168 | * **bsr** A trojan with features: 1 - Kills explorer.exe so the user cant shutdown or open anything on desktop; 2- Constantly kills taskmgr.exe so the user cant end the process; 3 - At the end it kills critical processes so it causes a blue screen https://github.com/Artucuno/bsr
169 | * **nps_payload** this script will generate payloads for basic intrusion detection avoidance. It utilizes publicly demonstrated techniques from several different sources. https://github.com/trustedsec/nps_payload
170 | * **SocialEngineeringPayloads** a collection of social engineering tricks and payloads being used for credential theft and spear phishing attacks. https://github.com/bhdresh/SocialEngineeringPayloads
171 | * **The Social-Engineer Toolkit** is an open-source penetration testing framework designed for social engineering. https://github.com/trustedsec/social-engineer-toolkit
172 | * **PowerShdll** run PowerShell with rundll32. Bypass software restrictions. https://github.com/p3nt4/PowerShdll
173 | * **Ultimate AppLocker ByPass List** The goal of this repository is to document the most common techniques to bypass AppLocker. https://github.com/api0cradle/UltimateAppLockerByPassList
174 | * **Ruler** is a tool that allows you to interact with Exchange servers remotely, through either the MAPI/HTTP or RPC/HTTP protocol. https://github.com/sensepost/ruler
175 | * **Generate-Macro** is a standalone PowerShell script that will generate a malicious Microsoft Office document with a specified payload and persistence method. https://github.com/enigma0x3/Generate-Macro
176 | * **Malicious Macro MSBuild Generator** Generates Malicious Macro and Execute Powershell or Shellcode via MSBuild Application Whitelisting Bypass. https://github.com/infosecn1nja/MaliciousMacroMSBuild
177 | * **Meta Twin** is designed as a file resource cloner. Metadata, including digital signature, is extracted from one file and injected into another. https://github.com/threatexpress/metatwin
178 | * **WePWNise** generates architecture independent VBA code to be used in Office documents or templates and automates bypassing application control and exploit mitigation software. https://github.com/mwrlabs/wePWNise
179 | * **DotNetToJScript** a tool to create a JScript file which loads a .NET v2 assembly from memory. https://github.com/tyranid/DotNetToJScript
180 | * **PSAmsi** is a tool for auditing and defeating AMSI signatures. https://github.com/cobbr/PSAmsi
181 | * **Reflective DLL injection** is a library injection technique in which the concept of reflective programming is employed to perform the loading of a library from memory into a host process. https://github.com/stephenfewer/ReflectiveDLLInjection
182 | * **ps1encode** use to generate and encode a powershell based metasploit payloads. https://github.com/CroweCybersecurity/ps1encode
183 | * **Worse PDF** turn a normal PDF file into malicious. Use to steal Net-NTLM Hashes from windows machines. https://github.com/3gstudent/Worse-PDF
184 | * **SpookFlare** has a different perspective to bypass security measures and it gives you the opportunity to bypass the endpoint countermeasures at the client-side detection and network-side detection. https://github.com/hlldz/SpookFlare
185 | * **GreatSCT** is an open source project to generate application white list bypasses. This tool is intended for BOTH red and blue team. https://github.com/GreatSCT/GreatSCT
186 | * **nps** running powershell without powershell. https://github.com/Ben0xA/nps
187 | * **Meterpreter_Paranoid_Mode.sh** allows users to secure your staged/stageless connection for Meterpreter by having it check the certificate of the handler it is connecting to. https://github.com/r00t-3xp10it/Meterpreter_Paranoid_Mode-SSL
188 | * **MacroShop** a collection of scripts to aid in delivering payloads via Office Macros. https://github.com/khr0x40sh/MacroShop
189 | * **UnmanagedPowerShell** Executes PowerShell from an unmanaged process. https://github.com/leechristensen/UnmanagedPowerShell
190 | * **evil-ssdp** Spoof SSDP replies to phish for NTLM hashes on a network. Creates a fake UPNP device, tricking users into visiting a malicious phishing page. https://gitlab.com/initstring/evil-ssdp
191 | * **Ebowla** Framework for Making Environmental Keyed Payloads. https://github.com/Genetic-Malware/Ebowla
192 | * **avet** (AntiVirusEvasionTool) is targeting windows machines with executable files using different evasion techniques. https://github.com/govolution/avet
193 | * **EvilClippy** A cross-platform assistant for creating malicious MS Office documents. Can hide VBA macros, stomp VBA code (via P-Code) and confuse macro analysis tools. Runs on Linux, OSX and Windows. https://github.com/outflanknl/EvilClippy
194 | * **CallObfuscator** Obfuscate windows apis from static analysis tools and debuggers. https://github.com/d35ha/CallObfuscator
195 | * **CScriptShell** CScriptShell, a Powershell Host running within cscript.exe. This code let's you Bypass Application Whitelisting and Powershell.exe restrictions and gives you a shell that almost looks and feels like a normal Powershell session (Get-Credential, PSSessions -> Works). https://github.com/Cn33liz/CScriptShell
196 | * **Donut** is a shellcode generation tool that creates position-independant shellcode payloads from .NET Assemblies. This shellcode may be used to inject the Assembly into arbitrary Windows processes. https://github.com/TheWover/donut
197 |
198 | ### Delivery
199 | * **red-transfers** A script to quickly generate a lot of echo uninteractive commands to be executed on the compromised system. Both downloading and uplocading are supported. https://github.com/cyberhexe/red-transfers
200 | * **flask-filebox** Basic file upload Web UI. Make sure to update config.py according to your needs. https://github.com/mtalimanchuk/flask-filebox
201 |
202 | ### Phishing
203 | * **HiddenEye** All-in-one tool to generate a phishing page https://github.com/DarkSecDevelopers/HiddenEye
204 | * **Phishery** is a Simple SSL Enabled HTTP server with the primary purpose of phishing credentials via Basic Authentication. https://github.com/ryhanson/phishery
205 | * **King Phisher** is a tool for testing and promoting user awareness by simulating real world phishing attacks. https://github.com/securestate/king-phisher
206 | * **FiercePhish** is a full-fledged phishing framework to manage all phishing engagements. It allows you to track separate phishing campaigns, schedule sending of emails, and much more. https://github.com/Raikia/FiercePhish
207 | * **ReelPhish** is a Real-Time Two-Factor Phishing Tool. https://github.com/fireeye/ReelPhish/
208 | * **Gophish** is an open-source phishing toolkit designed for businesses and penetration testers. It provides the ability to quickly and easily setup and execute phishing engagements and security awareness training. https://github.com/gophish/gophish
209 | * **CredSniper** is a phishing framework written with the Python micro-framework Flask and Jinja2 templating which supports capturing 2FA tokens. https://github.com/ustayready/CredSniper
210 | * **PwnAuth** a web application framework for launching and managing OAuth abuse campaigns. https://github.com/fireeye/PwnAuth
211 | * **Phishing Frenzy** Ruby on Rails Phishing Framework. https://github.com/pentestgeek/phishing-frenzy
212 | * **Phishing Pretexts** a library of pretexts to use on offensive phishing engagements. https://github.com/L4bF0x/PhishingPretexts
213 | * **Modlishka** is a flexible and powerful reverse proxy, that will take your ethical phishing campaigns to the next level. https://github.com/drk1wi/Modlishka
214 | * **Evilginx** is a man-in-the-middle attack framework used for phishing credentials and session cookies of any web service. https://github.com/kgretzky/evilginx2
215 |
216 | ### Social Engineering
217 | * **FakeID** Fake identity generator https://github.com/Manisso/FakeID
218 |
219 | ### Remote Access Tools
220 | * **L3MON** Remote Android Management Suite https://github.com/etechd/L3MON
221 | * **android-backdoor-dashboard** Android Meterpreter Backdoor Command & Control https://github.com/cyberhexe/android-backdoor-dashboard
222 | * **flask-reverse-shell** Python HTTPS reverse shell with Flask https://github.com/cyberhexe/flask-reverse-shell
223 | * **tsh** Tiny SHell - An open-source UNIX backdoor https://github.com/creaktive/tsh
224 | * **KeyPlexer** Keyplexer is a Remote Access Trojan (RAT) written in Python. It combines the functionalities of Keylogger with remote access abilities. Meaning, that not only the program records all movements of the user, but also has access to the machine live through the created backdoor or Trojan. https://github.com/nairuzabulhul/KeyPlexer
225 | * **Empire** is a post-exploitation framework that includes a pure-PowerShell2.0 Windows agent, and a pure Python 2.6/2.7 Linux/OS X agent. https://github.com/EmpireProject/Empire
226 | * **Spidernet** SSH Botnet C&C Using Python https://github.com/Und3rf10w/Spidernet
227 | * **SILENTTRINITY** A post-exploitation agent powered by Python, IronPython, C#/.NET. https://github.com/byt3bl33d3r/SILENTTRINITY
228 | * **Pupy** is an opensource, cross-platform (Windows, Linux, OSX, Android) remote administration and post-exploitation tool mainly written in python. https://github.com/n1nj4sec/pupy
229 | * **Koadic** or COM Command & Control, is a Windows post-exploitation rootkit similar to other penetration testing tools such as Meterpreter and Powershell Empire. https://github.com/zerosum0x0/koadic
230 | * **PoshC2** is a proxy aware C2 framework written completely in PowerShell to aid penetration testers with red teaming, post-exploitation and lateral movement. https://github.com/nettitude/PoshC2_Python
231 | * **Gcat** a stealthy Python based backdoor that uses Gmail as a command and control server. https://github.com/byt3bl33d3r/gcat
232 | * **TrevorC2** is a legitimate website (browsable) that tunnels client/server communications for covert command execution. https://github.com/trustedsec/trevorc2
233 | * **Merlin** is a cross-platform post-exploitation HTTP/2 Command & Control server and agent written in golang. https://github.com/Ne0nd0g/merlin
234 | * **Quasar** is a fast and light-weight remote administration tool coded in C#. Providing high stability and an easy-to-use user interface, Quasar is the perfect remote administration solution for you. https://github.com/quasar/QuasarRAT
235 | * **Covenant** is a .NET command and control framework that aims to highlight the attack surface of .NET, make the use of offensive .NET tradecraft easier, and serve as a collaborative command and control platform for red teamers. https://github.com/cobbr/Covenant
236 | * **DNScat2** is a tool is designed to create an encrypted command-and-control (C&C) channel over the DNS protocol. https://github.com/iagox86/dnscat2
237 | * **Sliver** is a general purpose cross-platform implant framework that supports C2 over Mutual-TLS, HTTP(S), and DNS. https://github.com/BishopFox/sliver
238 | * **EvilOSX** An evil RAT (Remote Administration Tool) for macOS / OS X. https://github.com/Marten4n6/EvilOSX
239 | * **EggShell** is a post exploitation surveillance tool written in Python. It gives you a command line session with extra functionality between you and a target machine. https://github.com/neoneggplant/EggShell
240 |
241 | ### Staging
242 | * **Vegile** This tool will set up your backdoor/rootkits when backdoor is already setup it will be hidden, unlimited. Even when it is killed, it will re-run again. There will always be a procces which will run another process, so we can assume that this procces is unstopable like a Ghost in The Shell. https://github.com/Screetsec/Vegile
243 | * **Rapid Attack Infrastructure (RAI)** Red Team Infrastructure... Quick... Fast... Simplified
One of the most tedious phases of a Red Team Operation is usually the infrastructure setup. This usually entails
a teamserver or controller, domains, redirectors, and a Phishing server. https://github.com/obscuritylabs/RAI
244 | * **Red Baron** is a set of modules and custom/third-party providers for Terraform which tries to automate creating resilient, disposable, secure and agile infrastructure for Red Teams. https://github.com/byt3bl33d3r/Red-Baron
245 | * **EvilURL** generate unicode evil domains for IDN Homograph Attack and detect them. https://github.com/UndeadSec/EvilURL
246 | * **Domain Hunter** checks expired domains, bluecoat categorization, and Archive.org history to determine good candidates for phishing and C2 domain names. https://github.com/threatexpress/domainhunter
247 | * **PowerDNS** is a simple proof of concept to demonstrate the execution of PowerShell script using DNS only. https://github.com/mdsecactivebreach/PowerDNS
248 | * **Chameleon** a tool for evading Proxy categorisation. https://github.com/mdsecactivebreach/Chameleon
249 | * **Malleable C2** is a domain specific language to redefine indicators in Beacon's communication. https://github.com/rsmudge/Malleable-C2-Profiles
250 | * **FindFrontableDomains** search for potential frontable domains. https://github.com/rvrsh3ll/FindFrontableDomains
251 | * **Postfix-Server-Setup** Setting up a phishing server is a very long and tedious process. It can take hours to setup, and can be compromised in minutes. https://github.com/n0pe-sled/Postfix-Server-Setup
252 | * **DomainFrontingLists** a list of Domain Frontable Domains by CDN. https://github.com/vysec/DomainFrontingLists
253 | * **Apache2-Mod-Rewrite-Setup** Quickly Implement Mod-Rewrite in your infastructure. https://github.com/n0pe-sled/Apache2-Mod-Rewrite-Setup
254 | * **mod_rewrite rule** to evade vendor sandboxes. https://gist.github.com/curi0usJack/971385e8334e189d93a6cb4671238b10
255 | * **e2modrewrite** a tools for convert Empire profiles to Apache modrewrite scripts. https://github.com/infosecn1nja/e2modrewrite
256 | * **cat-sites** Library of sites for categorization. https://github.com/audrummer15/cat-sites
257 | * **ycsm** is a quick script installation for resilient redirector using nginx reverse proxy and letsencrypt compatible with some popular Post-Ex Tools (Cobalt Strike, Empire, Metasploit, PoshC2). https://github.com/infosecn1nja/ycsm
258 | * **Domain Fronting Google App Engine**. https://github.com/redteam-cyberark/Google-Domain-fronting
259 | * **DomainFrontDiscover** Scripts and results for finding domain frontable CloudFront domains. https://github.com/peewpw/DomainFrontDiscover
260 | * **Automated Empire Infrastructure** https://github.com/bneg/RedTeam-Automation
261 | * **Serving Random Payloads** with NGINX. https://gist.github.com/jivoi/a33ace2e25515a31aa2ffbae246d98c9
262 | * **meek** is a blocking-resistant pluggable transport for Tor. It encodes a data stream as a sequence of HTTPS requests and responses. https://github.com/arlolra/meek
263 | * **mkhtaccess_red** Auto-generate an HTaccess for payload delivery -- automatically pulls ips/nets/etc from known sandbox companies/sources that have been seen before, and redirects them to a benign payload. https://github.com/violentlydave/mkhtaccess_red
264 | * **RedFile** a flask wsgi application that serves files with intelligence, good for serving conditional RedTeam payloads. https://github.com/outflanknl/RedFile
265 | * **keyserver** Easily serve HTTP and DNS keys for proper payload protection. https://github.com/leoloobeek/keyserver
266 | * **HTran** is a connection bouncer, a kind of proxy server. A “listener” program is hacked stealthily onto an unsuspecting host anywhere on the Internet. https://github.com/HiwinCN/HTran
267 |
268 |
269 | ### Man In the Middle
270 | * **js-mitm-proxy** https://github.com/ondrakrat/js-mitm-proxy
271 |
272 | ### Establish Foothold
273 | * **TinyShell** Web Shell Framework. https://github.com/threatexpress/tinyshell
274 | * **reGeorg** the successor to reDuh, pwn a bastion webserver and create SOCKS proxies through the DMZ. Pivot and pwn. https://github.com/sensepost/reGeorg
275 | * **atbomb** A script to quickly generate a lot of AT statements to be executed on the compromised Windows machine https://github.com/cyberhexe/atbomb
276 | * **Blade** is a webshell connection tool based on console, currently under development and aims to be a choice of replacement of Chooper. https://github.com/wonderqs/Blade
277 | * **PowerLurk** is a PowerShell toolset for building malicious WMI Event Subsriptions. https://github.com/Sw4mpf0x/PowerLurk
278 | * **DAMP** The Discretionary ACL Modification Project: Persistence Through Host-based Security Descriptor Modification. https://github.com/HarmJ0y/DAMP
279 |
280 | ### Pivoting and Tunneling
281 | * **dns-tcp-proxy** A python script to tunnel the DNS queries through a TCP proxy https://github.com/cyberhexe/dns-tcp-proxy
282 | * **rpivot** This is a method of traversing NAT connections. Rpivot is a reverse socks proxy tool that allows you to tunnel traffic via socks proxy. It connects back to your machine and binds a socks proxy on it. It works just like `ssh -D` but in opposite direction https://github.com/artkond/rpivot
283 | * **redsocks** Redsocks is the tool that allows you to proxify(redirect) network traffic through a SOCKS4, SOCKS5 or HTTPs proxy server. It works on the lowest level, the kernel level (iptables). The other possible way is to use application level proxy, when the proxy client is implemented in the same language as an application is written in. Redsocks operates on the lowest system level, that’s why all running application don’t even have an idea that network traffic is sent through a proxy server, as a result it is called a transparent proxy redirector. https://github.com/darkk/redsocks
284 | * **Tunna** is a set of tools which will wrap and tunnel any TCP communication over HTTP. It can be used to bypass network restrictions in fully firewalled environments. https://github.com/SECFORCE/Tunna
285 | * **http-tunnel** A program to tunnel TCP connection through HTTP connection. https://github.com/khuevu/http-tunnel
286 | * **microsocks** a SOCKS5 service that you can run on your remote boxes to tunnel connections through them, if for some reason SSH doesn't cut it for you. https://github.com/cyberhexe/microsocks
287 | * **pyrexecd** PyRexecd is a standalone SSH server for Windows. https://github.com/euske/pyrexecd.git
288 | * **3proxy** is a tiny free proxy server https://github.com/z3APA3A/3proxy
289 | * **win-sshd** A native windows ssh2 server https://github.com/saju/win-sshd
290 | * **sshuttle** Transparent proxy server that works as a poor man's VPN. Forwards over ssh. Doesn't require admin. Works with Linux and MacOS. Supports DNS tunneling. https://github.com/sshuttle/sshuttle
291 |
292 | ### Lateral Movement
293 | * **TREVORspray** A featureful Python O365 sprayer based on MSOLSpray which uses the Microsoft Graph API https://github.com/blacklanternsecurity/TREVORspray
294 | * **rshijack** tcp connection hijacker. The way this works is by sniffing for a packet of a specific connection, then read the SEQ and ACK fields. Using that information, it's possible to send a packet on a raw socket that is accepted by the remote server as valid. https://github.com/kpcyrd/rshijack
295 | * **DumpsterDiver** DumpsterDiver is a tool, which can analyze big volumes of data in search of hardcoded secrets like keys (e.g. AWS Access Key, Azure Share Key or SSH keys) or passwords. https://github.com/securing/DumpsterDiver
296 | * **aes-finder** Utility to find AES keys in running process memory. Works for 128, 192 and 256-bit keys. https://github.com/mmozeiko/aes-finder
297 | * **evil-winrm** This program can be used on any Microsoft Windows Servers with this feature enabled (usually at port 5985), of course only if you have credentials and permissions to use it. https://github.com/Hackplayers/evil-winrm
298 | * **CrackMapExec** is a swiss army knife for pentesting networks. https://github.com/byt3bl33d3r/CrackMapExec
299 | * **Invoke-Phant0m** This script walks thread stacks of Event Log Service process (spesific svchost.exe) and identify Event Log Threads to kill Event Log Service Threads. So the system will not be able to collect logs and at the same time the Event Log Service will appear to be running. https://github.com/Und3rf10w/Invoke-Phant0m
300 | * **PowerLessShell** rely on MSBuild.exe to remotely execute PowerShell scripts and commands without spawning powershell.exe. https://github.com/Mr-Un1k0d3r/PowerLessShell
301 | * **GoFetch** is a tool to automatically exercise an attack plan generated by the BloodHound application. https://github.com/GoFetchAD/GoFetch
302 | * **DeathStar** is a Python script that uses Empire's RESTful API to automate gaining Domain Admin rights in Active Directory environments using a variety of techinques. https://github.com/byt3bl33d3r/DeathStar
303 | * **SharpHound** C# Rewrite of the BloodHound Ingestor. https://github.com/BloodHoundAD/SharpHound
304 | * **BloodHound.py** is a Python based ingestor for BloodHound, based on Impacket. https://github.com/fox-it/BloodHound.py
305 | * **SessionGopher** is a PowerShell tool that uses WMI to extract saved session information for remote access tools such as WinSCP, PuTTY, SuperPuTTY, FileZilla, and Microsoft Remote Desktop. It can be run remotely or locally. https://github.com/fireeye/SessionGopher
306 | * **PowerSploit** is a collection of Microsoft PowerShell modules that can be used to aid penetration testers during all phases of an assessment. https://github.com/PowerShellMafia/PowerSploit
307 | * **Nishang** is a framework and collection of scripts and payloads which enables usage of PowerShell for offensive security, penetration testing and red teaming. Nishang is useful during all phases of penetration testing. https://github.com/samratashok/nishang
308 | * **Inveigh** is a Windows PowerShell LLMNR/mDNS/NBNS spoofer/man-in-the-middle tool. https://github.com/Kevin-Robertson/Inveigh
309 | * **PowerUpSQL** a PowerShell Toolkit for Attacking SQL Server. https://github.com/NetSPI/PowerUpSQL
310 | * **MailSniper** is a penetration testing tool for searching through email in a Microsoft Exchange environment for specific terms (passwords, insider intel, network architecture information, etc.). https://github.com/dafthack/MailSniper
311 | * **WMIOps** is a powershell script that uses WMI to perform a variety of actions on hosts, local or remote, within a Windows environment. It's designed primarily for use on penetration tests or red team engagements. https://github.com/ChrisTruncer/WMIOps
312 | * **Mimikatz** is an open-source utility that enables the viewing of credential information from the Windows lsass. https://github.com/gentilkiwi/mimikatz
313 | * **LaZagne** project is an open source application used to retrieve lots of passwords stored on a local computer. https://github.com/AlessandroZ/LaZagne
314 | * **mimipenguin** a tool to dump the login password from the current linux desktop user. Adapted from the idea behind the popular Windows tool mimikatz. https://github.com/huntergregal/mimipenguin
315 | * **PsExec** is a light-weight telnet-replacement that lets you execute processes on other systems, complete with full interactivity for console applications, without having to manually install client software. https://docs.microsoft.com/en-us/sysinternals/downloads/psexec
316 | * **KeeThief** allows for the extraction of KeePass 2.X key material from memory, as well as the backdooring and enumeration of the KeePass trigger system. https://github.com/HarmJ0y/KeeThief
317 | * **PSAttack** combines some of the best projects in the infosec powershell community into a self contained custom PowerShell console. https://github.com/jaredhaight/PSAttack
318 | * **Internal Monologue Attack** Retrieving NTLM Hashes without Touching LSASS. https://github.com/eladshamir/Internal-Monologue
319 | * **Impacket** is a collection of Python classes for working with network protocols. Impacket is focused on providing low-level programmatic access to the packets and for some protocols (for instance NMB, SMB1-3 and MS-DCERPC) the protocol implementation itself. https://github.com/CoreSecurity/impacket
320 | * **icebreaker** gets plaintext Active Directory credentials if you're on the internal network but outside the AD environment. https://github.com/DanMcInerney/icebreaker
321 | * **Living Off The Land Binaries and Scripts (and now also Libraries)** The goal of these lists are to document every binary, script and library that can be used for other purposes than they are designed to. https://github.com/api0cradle/LOLBAS
322 | * **WSUSpendu** for compromised WSUS server to extend the compromise to clients. https://github.com/AlsidOfficial/WSUSpendu
323 | * **Evilgrade** is a modular framework that allows the user to take advantage of poor upgrade implementations by injecting fake updates. https://github.com/infobyte/evilgrade
324 | * **NetRipper** is a post exploitation tool targeting Windows systems which uses API hooking in order to intercept network traffic and encryption related functions from a low privileged user, being able to capture both plain-text traffic and encrypted traffic before encryption/after decryption. https://github.com/NytroRST/NetRipper
325 | * **LethalHTA** Lateral Movement technique using DCOM and HTA. https://github.com/codewhitesec/LethalHTA
326 | * **Invoke-PowerThIEf** an Internet Explorer Post Exploitation library. https://github.com/nettitude/Invoke-PowerThIEf
327 | * **RedSnarf** is a pen-testing / red-teaming tool for Windows environments. https://github.com/nccgroup/redsnarf
328 | * **HoneypotBuster** Microsoft PowerShell module designed for red teams that can be used to find honeypots and honeytokens in the network or at the host. https://github.com/JavelinNetworks/HoneypotBuster
329 | * **PAExec** lets you launch Windows programs on remote Windows computers without needing to install software on the remote computer first. https://www.poweradmin.com/paexec/
330 | * **nishang** Nishang is a framework and collection of scripts and payloads which enables usage of PowerShell for offensive security, penetration testing and red teaming. Nishang is useful during all phases of penetration testing. https://github.com/samratashok/nishang
331 |
332 | ### Local Privileges Escalation
333 | * **JAWS** JAWS is PowerShell script designed to help penetration testers (and CTFers) quickly identify potential privilege escalation vectors on Windows systems. It is written using PowerShell 2.0 so 'should' run on every Windows version since Windows 7. https://github.com/411Hall/JAWS
334 | * **AutoLocalPrivilegeEscalation** An automated script that download potential exploit for linux kernel from exploitdb, and compile them automatically https://github.com/ngalongc/AutoLocalPrivilegeEscalation
335 | * **linux-smart-enumeration** Linux Privilege Escalation Enumeration Script (with colored output) https://github.com/diego-treitos/linux-smart-enumeration
336 | * **Powerless** Windows Privilege Escalation Enumeration Script (only cmd, no powershell) https://github.com/M4ximuss/Powerless
337 | * **Privesc** Windows batch script that finds misconfiguration issues which can lead to privilege escalation. https://github.com/enjoiz/Privesc
338 | * **windows-privesc-check** Windows-privesc-check is standalone executable that runs on Windows systems. It tries to find misconfigurations that could allow local unprivileged users to escalate privileges to other users or to access local apps (e.g. databases) https://github.com/pentestmonkey/windows-privesc-check
339 | * **Linux_Exploit_Suggester** Linux exploit suggester for Privilege Escalation && Local Enumeration https://github.com/InteliSecureLabs/Linux_Exploit_Suggester
340 | * **linux-kernel-exploits** A number of Linux kernel exploits for Privilege Escalation && Local Enumeration https://github.com/SecWiki/linux-kernel-exploits
341 | * **LinEnum** Scripted Local Linux Enumeration & Privilege Escalation Checks https://github.com/rebootuser/LinEnum
342 | * **wesng** WES-NG is a tool based on the output of Windows' `systeminfo` utility which provides the list of vulnerabilities the OS is vulnerable to, including any exploits for these vulnerabilities. Every Windows OS between Windows XP and Windows 10, including their Windows Server counterparts, is supported. https://github.com/bitsadmin/wesng
343 | * **Windows-Exploit-Suggester** This tool compares a targets patch levels against the Microsoft vulnerability database in order to detect potential missing patches on the target. It also notifies the user if there are public exploits and Metasploit modules available for the missing bulletins. https://github.com/GDSSecurity/Windows-Exploit-Suggester
344 | * **UACMe** is an open source assessment tool that contains many methods for bypassing Windows User Account Control on multiple versions of the operating system. https://github.com/hfiref0x/UACME
345 | * **windows-kernel-exploits** a collection windows kernel exploit. https://github.com/SecWiki/windows-kernel-exploits
346 | * **Sherlock** a powerShell script to quickly find missing software patches for local privilege escalation vulnerabilities. https://github.com/rasta-mouse/Sherlock
347 | * **Watson** is a (.NET 2.0 compliant) C# implementation of Sherlock. https://github.com/rasta-mouse/Watson
348 | * **Tokenvator** a tool to elevate privilege with Windows Tokens. https://github.com/0xbadjuju/Tokenvator
349 |
350 | ### Domain Privileges Escalation
351 | * **linikatz** linikatz is a tool to attack AD on UNIX https://github.com/portcullislabs/linikatz
352 | * **Invoke-ACLpwn** is a tool that automates the discovery and pwnage of ACLs in Active Directory that are unsafe configured. https://github.com/fox-it/Invoke-ACLPwn
353 | * **BloodHound** uses graph theory to reveal the hidden and often unintended relationships within an Active Directory environment. https://github.com/BloodHoundAD/BloodHound
354 | * **Grouper** a PowerShell script for helping to find vulnerable settings in AD Group Policy. https://github.com/l0ss/Grouper
355 | * **ADRecon** is a tool which extracts various artifacts (as highlighted below) out of an AD environment in a specially formatted Microsoft Excel report that includes summary views with metrics to facilitate analysis. https://github.com/sense-of-security/ADRecon
356 | * **ADACLScanner** one script for ACL's in Active Directory. https://github.com/canix1/ADACLScanner
357 | * **ACLight** a useful script for advanced discovery of Domain Privileged Accounts that could be targeted - including Shadow Admins. https://github.com/cyberark/ACLight
358 | * **LAPSToolkit** a tool to audit and attack LAPS environments. https://github.com/leoloobeek/LAPSToolkit
359 | * **PingCastle** is a free, Windows-based utility to audit the risk level of your AD infrastructure and check for vulnerable practices. https://www.pingcastle.com/download
360 | * **RiskySPNs** is a collection of PowerShell scripts focused on detecting and abusing accounts associated with SPNs (Service Principal Name). https://github.com/cyberark/RiskySPN
361 | * **Mystique** is a PowerShell tool to play with Kerberos S4U extensions, this module can assist blue teams to identify risky Kerberos delegation configurations as well as red teams to impersonate arbitrary users by leveraging KCD with Protocol Transition. https://github.com/machosec/Mystique
362 | * **Rubeus** is a C# toolset for raw Kerberos interaction and abuses. It is heavily adapted from Benjamin Delpy's Kekeo project. https://github.com/GhostPack/Rubeus
363 | * **kekeo** is a little toolbox I have started to manipulate Microsoft Kerberos in C (and for fun). https://github.com/gentilkiwi/kekeo
364 |
365 | ### Data Exfiltration
366 | * **CloakifyFactory** & the Cloakify Toolset - Data Exfiltration & Infiltration In Plain Sight; Evade DLP/MLS Devices; Social Engineering of Analysts; Defeat Data Whitelisting Controls; Evade AV Detection. https://github.com/TryCatchHCF/Cloakify
367 | * **DET** (is provided AS IS), is a proof of concept to perform Data Exfiltration using either single or multiple channel(s) at the same time. https://github.com/sensepost/DET
368 | * **DNSExfiltrator** allows for transfering (exfiltrate) a file over a DNS request covert channel. This is basically a data leak testing tool allowing to exfiltrate data over a covert channel. https://github.com/Arno0x/DNSExfiltrator
369 | * **PyExfil** a Python Package for Data Exfiltration. https://github.com/ytisf/PyExfil
370 | * **Egress-Assess** is a tool used to test egress data detection capabilities. https://github.com/ChrisTruncer/Egress-Assess
371 | * **LNKUp** This tool will allow you to generate LNK payloads. Upon rendering or being run, they will exfiltrate data. https://github.com/Plazmaz/LNKUp
372 | * **Powershell RAT** python based backdoor that uses Gmail to exfiltrate data as an e-mail attachment. https://github.com/Viralmaniar/Powershell-RAT
373 |
374 | ### Anonymization
375 | * **torghost** Tor anonymizer https://github.com/susmithHCK/torghost
376 | * **docker-onion-nmap** Scan .onion hidden services with nmap using Tor, proxychains and dnsmasq in a minimal alpine Docker container. https://github.com/milesrichardson/docker-onion-nmap
377 | * **kali-anonsurf** Anonsurf will anonymize the entire system under TOR using IPTables. It will also allow you to start and stop i2p as well. https://github.com/Und3rf10w/kali-anonsurf
378 |
379 | ### Malware Analysis
380 | * **capa** capa detects capabilities in executable files. You run it against a PE file or shellcode and it tells you what it thinks the program can do. For example, it might suggest that the file is a backdoor, is capable of installing services, or relies on HTTP to communicate. https://github.com/fireeye/capa
381 |
382 | ### Adversary Simulation
383 | * **MITRE CALDERA** - An automated adversary emulation system that performs post-compromise adversarial behavior within Windows Enterprise networks. https://github.com/mitre/caldera
384 | * **APTSimulator** - A Windows Batch script that uses a set of tools and output files to make a system look as if it was compromised. https://github.com/NextronSystems/APTSimulator
385 | * **Atomic Red Team** - Small and highly portable detection tests mapped to the Mitre ATT&CK Framework. https://github.com/redcanaryco/atomic-red-team
386 | * **Network Flight Simulator** - flightsim is a lightweight utility used to generate malicious network traffic and help security teams to evaluate security controls and network visibility. https://github.com/alphasoc/flightsim
387 | * **Metta** - A security preparedness tool to do adversarial simulation. https://github.com/uber-common/metta
388 | * **Red Team Automation (RTA)** - RTA provides a framework of scripts designed to allow blue teams to test their detection capabilities against malicious tradecraft, modeled after MITRE ATT&CK. https://github.com/endgameinc/RTA
389 |
390 | ### Wireless Networks
391 | * **opendrop** An open AirDrop Apple implementation written on Python https://github.com/seemoo-lab/opendrop
392 | * **bluescan** A powerful Bluetooth scanner. https://github.com/fO-000/bluescan
393 | * **WiFiBroot** A WiFi Pentest Cracking tool for WPA/WPA2 (Handshake, PMKID, Cracking, EAPOL, Deauthentication) https://github.com/hash3liZer/WiFiBroot
394 | * **apple_bleee** These scripts are experimental PoCs that show what an attacker get from Apple devices if they sniff Bluetooth traffic. https://github.com/hexway/apple_bleee
395 | * **IMSI-catcher** This program shows you IMSI numbers, country, brand and operator of cellphones around you. https://github.com/marcinguy/IMSI-catcher
396 | * **Awesome-Cellular-Hacking** A list of resources about cellular hacking https://github.com/W00t3k/Awesome-Cellular-Hacking
397 | * **Wifiphisher** is a security tool that performs Wi-Fi automatic association attacks to force wireless clients to unknowingly connect to an attacker-controlled Access Point. https://github.com/wifiphisher/wifiphisher
398 | * **mana** toolkit for wifi rogue AP attacks and MitM. https://github.com/sensepost/mana
399 | * **wifite** An automated wireless attack tool https://github.com/Und3rf10w/wifite
400 |
401 | ### Embedded & Peripheral Devices Hacking
402 | * **USBTrojan** Super simple loader that spreads over removable drives (USB flash drives, portable and network drives, SD cards). Features: You can add the HWID of your PC to the whitelist and trojan will ignore it; You can add any payload (executable file); Slient work. Ideal for school, university or office. https://github.com/mashed-potatoes/USBTrojan
403 | * **USB-Rubber-Ducky** The USB Rubber Ducky is a Human Interface Device programmable with a simple scripting language allowing penetration testers to quickly and easily craft and deploy security auditing payloads that mimic human keyboard input. https://github.com/hak5darren/USB-Rubber-Ducky
404 | * **magspoof** a portable device that can spoof/emulate any magnetic stripe, credit card or hotel card "wirelessly", even on standard magstripe (non-NFC/RFID) readers. https://github.com/samyk/magspoof
405 | * **WarBerryPi** was built to be used as a hardware implant during red teaming scenarios where we want to obtain as much information as possible in a short period of time with being as stealth as possible. https://github.com/secgroundzero/warberry
406 | * **P4wnP1** is a highly customizable USB attack platform, based on a low cost Raspberry Pi Zero or Raspberry Pi Zero W (required for HID backdoor). https://github.com/mame82/P4wnP1
407 | * **malusb** HID spoofing multi-OS payload for Teensy. https://github.com/ebursztein/malusb
408 | * **Fenrir** is a tool designed to be used "out-of-the-box" for penetration tests and offensive engagements. Its main feature and purpose is to bypass wired 802.1x protection and to give you an access to the target network. https://github.com/Orange-Cyberdefense/fenrir-ocd
409 | * **poisontap** exploits locked/password protected computers over USB, drops persistent WebSocket-based backdoor, exposes internal router, and siphons cookies using Raspberry Pi Zero & Node.js. https://github.com/samyk/poisontap
410 | * **WHID** WiFi HID Injector - An USB Rubberducky / BadUSB On Steroids. https://github.com/whid-injector/WHID
411 | * **PhanTap** is an ‘invisible’ network tap aimed at red teams. With limited physical access to a target building, this tap can be installed inline between a network device and the corporate network. https://github.com/nccgroup/phantap
412 |
413 | ### Software For Team Communication
414 | * **shhh** Flask app to share encrypted secrets with people using custom links, passphrases and expiration dates. https://github.com/smallwat3r/shhh
415 | * **RocketChat** is free, unlimited and open source. Replace email & Slack with the ultimate team chat software solution. https://rocket.chat
416 | * **Etherpad** is an open source, web-based collaborative real-time editor, allowing authors to simultaneously edit a text document https://etherpad.net
417 |
418 | ### Log Aggregation
419 | * **RedELK** Red Team's SIEM - easy deployable tool for Red Teams used for tracking and alarming about Blue Team activities as well as better usability in long term operations. https://github.com/outflanknl/RedELK/
420 | * **Red Team Telemetry** A collection of scripts and configurations to enable centralized logging of red team infrastructure. https://github.com/ztgrace/red_team_telemetry
421 | * **Elastic for Red Teaming** Repository of resources for configuring a Red Team SIEM using Elastic. https://github.com/SecurityRiskAdvisors/RedTeamSIEM
422 | * **Ghostwriter** is a Django project written in Python 3.7 and is designed to be used by a team of operators. https://github.com/GhostManager/Ghostwriter
423 |
424 | ### Cloud Computing
425 | * **kali-cloud-build** This script bootstraps a barebones Kali installation to create either an Amazon machine image or a Google Compute Engine image. The image contains no latent logfiles no .bash_history or even the apt package cache. https://github.com/Und3rf10w/kali-cloud-build
426 |
427 | ### Labs
428 | * **Detection Lab** This lab has been designed with defenders in mind. Its primary purpose is to allow the user to quickly build a Windows domain that comes pre-loaded with security tooling and some best practices when it comes to system logging configurations. https://github.com/clong/DetectionLab
429 | * **Modern Windows Attacks and Defense Lab** This is the lab configuration for the Modern Windows Attacks and Defense class that Sean Metcalf (@pyrotek3) and I teach. https://github.com/jaredhaight/WindowsAttackAndDefenseLab
430 | * **Invoke-UserSimulator** Simulates common user behaviour on local and remote Windows hosts. https://github.com/ubeeri/Invoke-UserSimulator
431 | * **Invoke-ADLabDeployer** Automated deployment of Windows and Active Directory test lab networks. Useful for red and blue teams. https://github.com/outflanknl/Invoke-ADLabDeployer
432 | * **Sheepl** Creating realistic user behaviour for supporting tradecraft development within lab environments. https://github.com/SpiderLabs/sheepl
433 |
434 | ### Binaries
435 | * **accesschk.exe** accesschk.exe is a Microsoft Sysinternals tool that is great for auditing privileges on your systems https://web.archive.org/web/20080530012252/http://live.sysinternals.com/accesschk.exe
436 |
437 | ## References
438 | * **the-hacking-trove** This website can definitely help you during your penetration test, technical security audit, PWK/OSCP Lab or exam, CTF, challenge, training, etc. by providing cheat sheets, tools, examples, references, etc. https://noraj.gitlab.io/the-hacking-trove/
439 | * **Cheatsheet-God** Penetration Testing Biggest Reference Bank - OSCP / PTP & PTX Cheatsheet https://github.com/OlivierLaflamme/Cheatsheet-God
440 | * **RedTeam-Tactics-and-Techniques** This is publicly accessible personal notes at https://ired.team about my pentesting / red teaming experiments in a controlled environment that involve playing with various tools and techniques used by penetration testers, red teams and advanced adversaries. https://github.com/mantvydasb/RedTeam-Tactics-and-Techniques
441 | * **Awesome-WAF** Everything awesome about web application firewalls (WAFs). https://github.com/0xInfection/Awesome-WAF
442 | * **PENTESTING-BIBLE** hundreds of ethical hacking & penetration testing & red team & cyber security & computer science resources. https://github.com/blaCCkHatHacEEkr/PENTESTING-BIBLE/
443 | * **awesome-python** A curated list of awesome Python frameworks, libraries, software and resources. https://github.com/vinta/awesome-python
444 | * **awesome-reversing** A curated list of awesome reversing resources https://github.com/tylerha97/awesome-reversing
445 | * **Cheatsheets** Penetration Testing/Security Cheatsheets that I have collated over the years. https://github.com/rmusser01/Cheatsheets
446 | * **awesome-nginx-security** A curated list of awesome links related to application/API security in NGINX environment. https://github.com/wallarm/awesome-nginx-security
447 | * **MITRE’s ATT&CK™** is a curated knowledge base and model for cyber adversary behavior, reflecting the various phases of an adversary’s lifecycle and the platforms they are known to target. https://attack.mitre.org/wiki/Main_Page
448 | * **Cheat Sheets** for various projects (Beacon/Cobalt Strike,PowerView, PowerUp, Empire, and PowerSploit). https://github.com/HarmJ0y/CheatSheets
449 | * **PRE-ATT&CK** Adversarial Tactics, Techniques & Common Knowledge for Left-of-Exploit. https://attack.mitre.org/pre-attack/index.php/Main_Page
450 | * **Adversary OPSEC** consists of the use of various technologies or 3rd party services to obfuscate, hide, or blend in with accepted network traffic or system behavior. https://attack.mitre.org/pre-attack/index.php/Adversary_OPSEC
451 | * **Adversary Emulation Plans** To showcase the practical use of ATT&CK for offensive operators and defenders, MITRE created Adversary Emulation Plans. https://attack.mitre.org/wiki/Adversary_Emulation_Plans
452 | * **Red-Team-Infrastructure-Wiki** Wiki to collect Red Team infrastructure hardening resources. https://github.com/bluscreenofjeff/Red-Team-Infrastructure-Wiki
453 | * **Advanced Threat Tactics – Course and Notes** This is a course on red team operations and adversary simulations. https://blog.cobaltstrike.com/2015/09/30/advanced-threat-tactics-course-and-notes
454 | * **Red Team Tips** as posted by @vysecurity on Twitter. https://vincentyiu.co.uk/red-team-tips
455 | * **Awesome Red Teaming** List of Awesome Red Team / Red Teaming Resources. https://github.com/yeyintminthuhtut/Awesome-Red-Teaming
456 | * **ATT&CK for Enterprise Software** is a generic term for custom or commercial code, operating system utilities, open-source software, or other tools used to conduct behavior modeled in ATT&CK. https://attack.mitre.org/wiki/Software
457 | * **Planning a Red Team exercise** This document helps inform red team planning by contrasting against the very specific red team style described in Red Teams. https://github.com/magoo/redteam-plan
458 | * **Awesome Lockpicking** a curated list of awesome guides, tools, and other resources related to the security and compromise of locks, safes, and keys. https://github.com/meitar/awesome-lockpicking
459 | * **Awesome Threat Intelligence** a curated list of awesome Threat Intelligence resources. https://github.com/hslatman/awesome-threat-intelligence
460 | * **APT Notes** Need some scenario? APTnotes is a repository of publicly-available papers and blogs (sorted by year) related to malicious campaigns/activity/software that have been associated with vendor-defined APT (Advanced Persistent Threat) groups and/or tool-sets. https://github.com/aptnotes/data
461 | * **TIBER-EU FRAMEWORK** The European Framework for Threat Intelligence-based Ethical Red Teaming (TIBER-EU), which is the first Europe-wide framework for controlled and bespoke tests against cyber attacks in the financial market. http://www.ecb.europa.eu/pub/pdf/other/ecb.tiber_eu_framework.en.pdf
462 | * **CBEST Implementation Guide** CBEST is a framework to deliver controlled, bespoke, intelligence-led cyber security tests. The tests replicate behaviours of threat actors, assessed by the UK Government and commercial intelligence providers as posing a genuine threat to systemically important financial institutions. https://www.crest-approved.org/wp-content/uploads/2014/07/CBEST-Implementation-Guide.pdf
463 | * **Red Team: Adversarial Attack Simulation Exercise Guidelines for the Financial Industry in Singapore** The Association of Banks in Singapore (ABS), with support from the Monetary Authority of Singapore (MAS), has developed a set of cybersecurity assessment guidelines today to strengthen the cyber resilience of the financial sector in Singapore. Known as the Adversarial Attack Simulation Exercises (AASE) Guidelines or “Red Teaming” Guidelines, the Guidelines provide financial institutions (FIs) with best practices and guidance on planning and conducting Red Teaming exercises to enhance their security testing. https://abs.org.sg/docs/library/abs-red-team-adversarial-attack-simulation-exercises-guidelines-v1-06766a69f299c69658b7dff00006ed795.pdf
464 |
465 | ### Scripts
466 | * https://github.com/Und3rf10w
467 | * https://github.com/invokethreatguy/CSASC
468 | * https://github.com/secgroundzero/CS-Aggressor-Scripts
469 | * https://github.com/Und3rf10w/Aggressor-scripts
470 | * https://github.com/harleyQu1nn/AggressorScripts
471 | * https://github.com/rasta-mouse/Aggressor-Script
472 | * https://github.com/RhinoSecurityLabs/Aggressor-Scripts
473 | * https://github.com/bluscreenofjeff/AggressorScripts
474 | * https://github.com/001SPARTaN/aggressor_scripts
475 | * https://github.com/FortyNorthSecurity/AggressorAssessor
476 | * https://github.com/ramen0x3f/AggressorScripts
477 | * https://github.com/FuzzySecurity/PowerShell-Suite
478 | * https://github.com/nettitude/Powershell
479 | * https://github.com/Mr-Un1k0d3r/RedTeamPowershellScripts
480 | * https://github.com/threatexpress/red-team-scripts
481 | * https://github.com/SadProcessor/SomeStuff
482 | * https://github.com/rvrsh3ll/Misc-Powershell-Scripts
483 | * https://github.com/enigma0x3/Misc-PowerShell-Stuff
484 | * https://github.com/ChrisTruncer/PenTestScripts
485 | * https://github.com/bluscreenofjeff/Scripts
486 | * https://github.com/xorrior/RandomPS-Scripts
487 | * https://github.com/xorrior/Random-CSharpTools
488 | * https://github.com/leechristensen/Random
489 | * https://github.com/mgeeky/Penetration-Testing-Tools/tree/master/social-engineering
490 | * https://github.com/kevthehermit/pentest/blob/master/linux-enum-mod.sh
491 |
492 | ### Wordlists
493 | * **SecLists** It's a collection of multiple types of lists used during security assessments, collected in one place. List types include usernames, passwords, URLs, sensitive data patterns, fuzzing payloads, web shells, and many more. https://github.com/danielmiessler/SecLists
494 | * **fuzzdb** Dictionary of attack patterns and primitives for black-box application fault injection and resource discovery. https://github.com/fuzzdb-project/fuzzdb
495 |
496 |
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | gitpython
2 |
--------------------------------------------------------------------------------
/toolkit.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 | import logging
3 | import os
4 | from argparse import ArgumentParser
5 | from pathlib import Path
6 |
7 | from git.repo.base import Repo
8 |
9 |
10 | def get_arguments():
11 | parser = ArgumentParser()
12 | parser.add_argument('--search',
13 | dest='search',
14 | required=False,
15 | help='Optional. A query to search within the toolkit.')
16 | parser.add_argument('--download',
17 | dest='download',
18 | required=False,
19 | help='Optional. Download a tool by it\'s name. The tool will be downloaded in a newly created '
20 | 'directory. Pass DOWNLOAD_ALL to download everything.')
21 | parser.add_argument('--update',
22 | dest='update',
23 | required=False,
24 | help='Optional. Update a given tool. '
25 | 'Pass UPDATE_ALL to update all downloaded '
26 | 'tools')
27 | parser.add_argument('--show',
28 | dest='show',
29 | required=False,
30 | help='Optional. Show details about the downloaded tool.')
31 | parser.add_argument('--drop-deprecated',
32 | action='store_true',
33 | required=False,
34 | help='Optional. Define when the toolkit should clean up deprecated tools (a tool will be '
35 | 'marked as deprecated when it doesn\'t stored anymore in the root README.md file)')
36 | parser.add_argument('--logging',
37 | dest='logging',
38 | choices=['INFO', 'DEBUG', 'WARNING', 'ERROR'],
39 | default='INFO',
40 | help='Optional. Logging level.')
41 | options = parser.parse_args()
42 |
43 | return options
44 |
45 |
46 | class colors:
47 | BLACK = "\u001b[30m"
48 | PALE_RED = "\u001b[31m"
49 | PALE_GREEN = "\u001b[32m"
50 | PALE_YELLOW = "\u001b[33m"
51 | PALE_BLUE = "\u001b[34m"
52 | PALE_MAGENTA = "\u001b[35m"
53 | PALE_CYAN = "\u001b[36m"
54 |
55 | GRAY = "\u001b[90m"
56 | RED = "\u001b[91m"
57 | GREEN = "\u001b[92m"
58 | YELLOW = "\u001b[93m"
59 | BLUE = "\u001b[94m"
60 | MAGENTA = "\u001b[95m"
61 | CYAN = "\u001b[96m"
62 | WHITE = "\u001b[97m"
63 |
64 | BG_GRAY = "\u001b[100m"
65 | BG_RED = "\u001b[41m"
66 | BG_GREEN = "\u001b[42m"
67 | BG_YELLOW = "\u001b[43m"
68 | BG_BLUE = "\u001b[44m"
69 | BG_MAGENTA = "\u001b[45m"
70 | BG_CYAN = "\u001b[46m"
71 | BG_WHITE = "\u001b[47m"
72 |
73 | BOLD = "\u001b[1m"
74 | RESET = "\u001b[0m"
75 |
76 | @staticmethod
77 | def colored(text, color=WHITE):
78 | return f"{color}{text}{colors.RESET}"
79 |
80 | @staticmethod
81 | def print_colored(text, color=WHITE):
82 | print(colors.colored(text, color))
83 |
84 | @staticmethod
85 | def red(text):
86 | return colors.colored(text, colors.RED)
87 |
88 | @staticmethod
89 | def green(text):
90 | return colors.colored(text, colors.GREEN)
91 |
92 | @staticmethod
93 | def yellow(text):
94 | return colors.colored(text, colors.YELLOW)
95 |
96 | @staticmethod
97 | def bold(text):
98 | return colors.colored(text, colors.BOLD)
99 |
100 | @staticmethod
101 | def print_red(text):
102 | colors.print_colored(text, colors.RED)
103 |
104 | @staticmethod
105 | def print_bold(text):
106 | print(colors.bold(text))
107 |
108 | @staticmethod
109 | def print_green(text):
110 | print(colors.green(text))
111 |
112 |
113 | """
114 | Download tools asynchronously
115 | """
116 |
117 | import time
118 | import platform
119 | import asyncio
120 | from enum import Enum
121 |
122 |
123 | class SynchronizationMode(Enum):
124 | DOWNLOAD = "DOWNLOAD",
125 | UPDATE = "UPDATE"
126 |
127 |
128 | class BatchAsyncDownloader:
129 | def __init__(self):
130 | pass
131 |
132 | """
133 | Updates a list of tools
134 | """
135 |
136 | def update_tools(self, tools: list):
137 | self.generate_and_run_commands(
138 | [t for t in tools if t.is_downloaded() and t.is_git_repository()],
139 | SynchronizationMode.UPDATE)
140 |
141 | """
142 | Clones a list of tools
143 | """
144 |
145 | def download_tools(self, tools: list):
146 | self.generate_and_run_commands(
147 | [t for t in tools if not t.is_downloaded() and any(host in t.url for host in git_sources)],
148 | SynchronizationMode.DOWNLOAD)
149 |
150 | """
151 | Spawn a process to download/update a tool
152 | """
153 |
154 | async def sync_tool(self, mode: SynchronizationMode, tool):
155 | """
156 | Run tool synchronization in subprocess
157 | """
158 |
159 | if mode == SynchronizationMode.DOWNLOAD:
160 | tool.path.mkdir(parents=True, exist_ok=True)
161 | command = ['git', 'clone', tool.url, str(tool.path)]
162 | elif mode == SynchronizationMode.UPDATE:
163 | command = ['git', '-C', str(tool.path), 'pull']
164 | else:
165 | raise Exception("Unsupported synchornization mode: " + str(mode))
166 |
167 | logging.debug('Executing %s command: %s', mode, str(command))
168 | process = await asyncio.create_subprocess_exec(
169 | *command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE
170 | )
171 |
172 | tool_name = tool.name
173 |
174 | if mode == SynchronizationMode.DOWNLOAD:
175 | logging.info('Downloading %s', tool_name)
176 | if mode == SynchronizationMode.UPDATE:
177 | logging.info('Updating %s', tool_name)
178 |
179 | stdout, stderr = await process.communicate()
180 |
181 | if process.returncode == 0:
182 | if mode == SynchronizationMode.DOWNLOAD:
183 | logging.info(colors.green('{} has been downloaded'.format(tool_name)))
184 | if mode == SynchronizationMode.UPDATE:
185 | logging.info(colors.green('{} has been updated'.format(tool_name)))
186 |
187 | else:
188 | if mode == SynchronizationMode.DOWNLOAD:
189 | logging.error(colors.red("{} failed to download".format(tool_name)))
190 | logging.debug('{}: {} / {}'.format(tool_name, stdout, stderr))
191 | if mode == SynchronizationMode.UPDATE:
192 | logging.error(colors.red("{} failed to update".format(tool_name)))
193 | logging.debug('{}: {} / {}'.format(tool_name, stdout, stderr))
194 | result = stdout.decode().strip()
195 |
196 | return result
197 |
198 | def generate_and_run_commands(self, tools: list, mode: SynchronizationMode):
199 | start_time = time.time()
200 | logging.debug('%s tool(s) received for %s', len(tools), mode)
201 | tasks = []
202 | for tool in tools:
203 | result = self.sync_tool(mode, tool)
204 | tasks.append(result)
205 |
206 | def run_asyncio_commands(tasks, max_concurrent_tasks=0):
207 | def make_chunks(l, n):
208 | """Yield successive n-sized chunks from l.
209 |
210 | Note:
211 | Taken from https://stackoverflow.com/a/312464
212 | """
213 | for i in range(0, len(l), n):
214 | yield l[i: i + n]
215 |
216 | """Run tasks asynchronously using asyncio and return results.
217 |
218 | If max_concurrent_tasks are set to 0, no limit is applied.
219 |
220 | Note:
221 | By default, Windows uses SelectorEventLoop, which does not support
222 | subprocesses. Therefore ProactorEventLoop is used on Windows.
223 | https://docs.python.org/3/library/asyncio-eventloops.html#windows
224 | """
225 | all_results = []
226 |
227 | if max_concurrent_tasks == 0:
228 | chunks = [tasks]
229 | num_chunks = len(chunks)
230 | else:
231 | chunks = make_chunks(l=tasks, n=max_concurrent_tasks)
232 | num_chunks = len(list(make_chunks(l=tasks, n=max_concurrent_tasks)))
233 |
234 | if asyncio.get_event_loop().is_closed():
235 | asyncio.set_event_loop(asyncio.new_event_loop())
236 | if platform.system() == "Windows":
237 | asyncio.set_event_loop(asyncio.ProactorEventLoop())
238 | loop = asyncio.get_event_loop()
239 |
240 | for i, tasks_in_chunk in enumerate(chunks):
241 | chunk = i + 1
242 | logging.debug(f"Beginning work on chunk {chunk}/{num_chunks}")
243 | commands = asyncio.gather(*tasks_in_chunk)
244 | # TODO queueing instead of chunking?
245 | results = loop.run_until_complete(commands)
246 | all_results += results
247 | logging.debug(f"Completed work on chunk {chunk}/{num_chunks}")
248 |
249 | loop.close()
250 | return all_results
251 |
252 | results = run_asyncio_commands(tasks, max_concurrent_tasks=20) # At most 20 parallel tasks
253 | logging.debug("Results: " + os.linesep.join(results))
254 |
255 | if len(results) > 0:
256 | end = time.time()
257 | rounded_end = "{0:.4f}".format(round(end - start_time, 4))
258 | logging.info(
259 | f"Async tools {'downloader' if mode == SynchronizationMode.DOWNLOAD else 'updater'} ran in "
260 | f"about" +
261 | f" {rounded_end} seconds")
262 |
263 |
264 | options = get_arguments()
265 |
266 | logging.basicConfig(format='[%(asctime)s %(levelname)s]: %(message)s',
267 | datefmt='%m/%d/%Y %I:%M:%S %p',
268 | level=options.logging)
269 |
270 | git_sources = [
271 | 'github.com',
272 | 'bitbucket.com'
273 | ]
274 |
275 | prefix = colors.colored('/red-toolkit $ ', colors.BG_RED)
276 |
277 |
278 | class Tool:
279 | @staticmethod
280 | def find_category(url, readme_file):
281 | with open(readme_file, 'r', encoding='utf-8') as file:
282 | sections = file.read().split('## ')
283 | for sec in sections:
284 | if url in sec:
285 | category = sec.split(os.linesep)[0]
286 | return {
287 | 'name': category,
288 | 'alias': category.lower().replace(' ', '-')
289 | }
290 |
291 | @staticmethod
292 | def fetch_tool_readme(tool_path, tool_name):
293 | readme_files_candidates = ['README.md', 'README', 'README.MD', 'readme', 'readme.md']
294 | for readme in readme_files_candidates:
295 | readme_path = str(tool_path) + '/' + readme
296 | if os.path.exists(readme_path):
297 | logging.debug('README file has been extracted for %s', tool_name)
298 | return open(readme_path, 'r', encoding='utf-8').read()
299 |
300 | def __init__(self, line, file_content_as_string):
301 | assert line and line.strip() != ''
302 | self.name = line.split('**')[1].split('**')[0]
303 | self.description = line.split('**')[2].split('http')[0].strip()
304 | self.url = line.split(' ')[-1]
305 | self.category = self.find_category(self.url, file_content_as_string)
306 | self.path = Path(f"{os.getcwd()}/{self.category['alias']}/{self.name}")
307 | self.tool_readme = self.fetch_tool_readme(f'{self.path}', self.name) if self.is_downloaded() else None
308 |
309 | def is_downloaded(self):
310 | return os.path.exists(self.path) and os.listdir(self.path)
311 |
312 | def is_git_repository(self):
313 | try:
314 | return Repo(self.path) != None
315 | except:
316 | return False
317 |
318 | def update(self):
319 | if not self.is_downloaded():
320 | logging.debug(colors.red('{} is not downloaded'.format(self.name)))
321 | return
322 | try:
323 | Repo(self.path).remote().pull()
324 | logging.info(colors.green('{} has been updated'.format(self.name)))
325 | except Exception as e:
326 | logging.error(colors.red('Update failed: ' + str(e)))
327 |
328 | def printout(self, verbose=False):
329 | if not self.is_downloaded():
330 | name = colors.bold(self.name)
331 | category = colors.bold(self.category['name'])
332 | status_message = colors.bold('NOT_DOWNLOADED')
333 | url = self.url
334 | description = colors.bold(self.description)
335 | readme = colors.bold("-")
336 | else:
337 | name = colors.green(self.name)
338 | category = colors.red(self.category['name'])
339 | status_message = colors.green(f'DOWNLOADED - {self.path}')
340 | url = colors.red(self.url)
341 | description = colors.green(self.description)
342 | readme = colors.colored(self.tool_readme if self.tool_readme else
343 | self.fetch_tool_readme(self.path, self.name),
344 | colors.BLUE)
345 |
346 | colors.print_bold(f"Name: {name}")
347 | colors.print_bold(f"Category: {category}")
348 | colors.print_bold(f"Status: {status_message}")
349 | colors.print_bold(f'URL: {url}')
350 | colors.print_bold(f'Description: {description}')
351 | colors.print_bold(f'Readme: {readme}')
352 |
353 | def use(self):
354 | print('Switching to ' + self.name)
355 | print(self.path)
356 |
357 | # FIXME: port to windows?
358 | os.chdir(self.path)
359 | os.environ['PS1'] = colors.red(f"[$PWD]\n{self.category['alias']}/{self.name} >> ")
360 | os.system('/bin/sh -i')
361 |
362 |
363 | def download_tool(tool_name, tools):
364 | tools_to_download_list = []
365 |
366 | for tool in tools:
367 | if tool.name == tool_name or tool_name == 'DOWNLOAD_ALL':
368 | tools_to_download_list.append(tool)
369 | asyncgit = BatchAsyncDownloader()
370 | asyncgit.download_tools(tools_to_download_list)
371 |
372 |
373 | def update_tool(tool_name, tools):
374 | tools_to_update_list = []
375 | for tool in tools:
376 | if tool.name == tool_name or tool_name == 'UPDATE_ALL':
377 | tools_to_update_list.append(tool)
378 | asyncgit = BatchAsyncDownloader()
379 | asyncgit.update_tools(tools_to_update_list)
380 |
381 |
382 | def show_tool_info(tool_name, tools):
383 | tool_found = False
384 | for tool in tools:
385 | if tool_name == tool.name:
386 | tool_found = True
387 | tool.printout(True)
388 | if not tool_found:
389 | logging.error(colors.red('%s wasn\'t found in the toolkit context' % tool_name))
390 |
391 |
392 | def use_tool(tool_name, tools):
393 | for tool in tools:
394 | if tool_name == tool.name:
395 | tool.use()
396 |
397 |
398 | def get_tools_from_readme(readme_file):
399 | tools = []
400 | with open(readme_file, 'r', encoding='utf-8') as file:
401 | lines = [line.replace(os.linesep, '') for line in file.readlines()]
402 | for line in lines:
403 | if line.startswith('* **'):
404 | tool = Tool(line, readme_file)
405 | tools.append(tool)
406 | return tools
407 |
408 |
409 | def get_scripts_from_readme(readme_file):
410 | scripts_url = []
411 | with open(readme_file, 'r', encoding='utf-8') as file:
412 | file_content_as_string = [line.replace(os.linesep, '') for line in file.readlines()]
413 | for line in file_content_as_string:
414 | if line.startswith(' * '):
415 | scripts_url.append(line.replace(' * ', ''))
416 | return scripts_url
417 |
418 |
419 | def interact(tools):
420 | def search(command, tools):
421 | query = command.replace('search ', '')
422 | search_in_tools(query, tools)
423 |
424 | def download(command, tools):
425 | tool_name = command.replace('download ', '')
426 | download_tool(tool_name, tools)
427 |
428 | def update(command, tools):
429 | tool_name = command.replace('update ', '')
430 | update_tool(tool_name, tools)
431 |
432 | def show(command, tools):
433 | tool_name = command.replace('show ', '')
434 | show_tool_info(tool_name, tools)
435 |
436 | def use(command, tools):
437 | tool_name = command.replace('use ', '')
438 | use_tool(tool_name, tools)
439 |
440 | def help():
441 | print('search "search dns"')
442 | print('download "download SharpSploit"/"download DOWNLOAD_ALL"')
443 | print('update "update SharpSploit"/"update UPDATE_ALL"')
444 | print('show "show SharpSploit"')
445 | print('use "use SharpSploit"')
446 |
447 | while True:
448 | command = input(prefix)
449 | if command == 'exit':
450 | exit(0)
451 | if command == 'help' or command == '?':
452 | help()
453 | if command.startswith('search '):
454 | search(command, tools)
455 | if command.startswith('download '):
456 | download(command, tools)
457 | if command.startswith('update '):
458 | update(command, tools)
459 | if command.startswith('show '):
460 | show(command, tools)
461 | if command.startswith('use '):
462 | use(command, tools)
463 |
464 |
465 | def print_categories(tools):
466 | categories = {}
467 | for tool in tools:
468 | category = tool.category['name']
469 | if category in categories:
470 | categories[category] += 1
471 | else:
472 | categories[category] = 1
473 | colors.print_bold('Categories:')
474 | for category, entries in dict([(k, categories[k]) for k in
475 | sorted(categories, key=categories.get, reverse=True)]
476 | ).items():
477 | if entries > 0:
478 | colors.print_green(f'{category} - {entries} tool(s)')
479 |
480 |
481 | def mark_deprecated_tools(synchronized_tools, categories):
482 | stored_tools_names = []
483 | deprecated_tools_names = []
484 | for category in categories:
485 | if os.path.isdir(category):
486 | for t in os.listdir('./' + category + '/'):
487 | if t.replace(os.linesep, '').strip() != '':
488 | stored_tools_names.append(t)
489 | for tool in stored_tools_names:
490 | if not any(tool in sync_tool.name for sync_tool in synchronized_tools):
491 | logging.warning(colors.yellow('{} has been marked as deprecated'.format(tool)))
492 | deprecated_tools_names.append(tool)
493 | return deprecated_tools_names
494 |
495 |
496 | def drop_deprecated_tools(deprecated_tools):
497 | import shutil
498 |
499 | for tool_name in deprecated_tools:
500 | for dir in [dir[0] for dir in os.walk(Path(os.getcwd()))]:
501 | if tool_name in dir:
502 | shutil.rmtree(Path(str(dir).split(tool_name)[0] + tool_name))
503 | logging.info(colors.green('{} tool has been deleted'.format(tool_name)))
504 | break
505 |
506 |
507 | def search_in_tools(search, tools):
508 | logging.info('Searching for %s', search)
509 | matched_tools = []
510 | for tool in tools:
511 | pattern = search.lower()
512 | if pattern in tool.name.lower() \
513 | or pattern in tool.description.lower() \
514 | or pattern in tool.category['name'].lower():
515 | matched_tools.append(tool)
516 | matched_tools_count = len(matched_tools)
517 | logging.info("%s tools have been found", matched_tools_count)
518 | if matched_tools_count > 0:
519 | print_categories(matched_tools)
520 | for tool in matched_tools:
521 | tool.printout()
522 | colors.print_bold(os.linesep + '_' * 60)
523 |
524 |
525 | if __name__ == "__main__":
526 | colors.print_bold("""
527 | NNNNNNNNNNNNNNNNNNNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmNNNNNNNNNNNNNNNNN
528 | NNNNNNNNNNNNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmNNNNNNNNNNNNNN
529 | NNNNNNNNNNNNNNmmmdhddmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmNNNNNNNNNNNN
530 | NNNNNNNNNNNNNmmmmmmmmhyyhdmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmNNNNNNNNNNN
531 | NNNNNNNNNNNmmmmmmmmmmmmmdyssydmmmmmmmmmmmmddmmdmmmmmmmmmmmmmmmmmmmmmmNNNNNNNNN
532 | NNNNNNNNNNNmmmmmmmmmmmmmmmmmhs+sydmmmmmmmmmmddmmdddmmmmmmmmmmmmmmmmmmmmNNNNNNN
533 | hhhhhhhhhhhdddmmmmmmmmmmmmmmmmmhs++sdmmmmmmmmddddmmddmmmmmmmmmmmmmmmmmmNNNNNNN
534 | dhhhhyyyyssssooosssyhdmmmmmmmmmmmmds//ohmmmmmmmdddddmdddmmmmmmmmmmmmmmmmNNNNNN
535 | hhyyyyyyssoosoo+++/////oydmddmmmmddddhs//sddmmmmmmdddddmmmmmmmmmmmmmmmmmmNNNNN
536 | ddddddddhhysooo+++////:/::++:ohmmdddddddh+-+ydmmmmmddddmdddmmmmmmmmmmmmmmmNNNN
537 | NNNNNmmmmmmmmmdhyyo+/:::::::---/sdo/hdddddds::sdddmmmddddmmmmmmmmmmmmmmmmmNNNN
538 | NNNNNmmmmmmmmmmmmmmmmdhyo+:---:------+hdddoydy:-oddmmmmdddmmmmmmmmmmmmmmmmmNNN
539 | NNNNNmmmmmmmmmmmmmmmmmmmmmdhso/--......:oy+-/hds:-oddmmmmmddmmmmmmmmmmmmmmmNNN
540 | NNNNNmmmmmmmmmmmmmmmmmmmmmddddddys/:...--...--sddooyddmmmmmmddmmmmmmmmmmmmmmmN
541 | NNNNmmmmmmmmmmmmmmmmmmmmmmmddddddddddyo/-.-.---+ssssshmmmmmmmmddmmmmmmmmmmmmNm
542 | NNNNNmmmmmmmmmmmmmmmmmmmmmmddddddddddddddhs+:--------:ymmmmmmmmmmmmmmmmmmmmmmm
543 | NNNNNmmmmmmmmmmmmmmmmmmmmmmmdddddddddddddddddo--:-----:ommmmmmmmmmmmmmmmmmmmmN
544 | NNNNNmmmmmmmmmmmmmmmmmmmmmmmdddddddddddddddddo--:----++-+dmmmmmmmmmmmmmmmmmmmm
545 | NNNNNmmmmmmmmmmmmmmmmmmmmmmmmmdddddddddddddddh:----:--//:/hmmmmmmmmmmmmmmmmmmm
546 | NNNNNNmmmmmmmmmmmmmmmmmmmmmmmmmddddddddddddddddyo/-:::::::smmmmmmmmmmmmmmmmNNN
547 | NNNNNNmmmmmmmmmmmmmmmmmmmmmmmmmmmddddddddddddddddmdhs+:/://+hmmmmmmmmmmmmmmmNN
548 | NNNNNNNNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmdy+////+ydmmmmmmmmNNNNmm
549 | NNNNNNNNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmds+++++syhdmmmNNNNNNN
550 | NNNNNNNNNNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmyo++shdmmmmNNNNNNN
551 | NNNNNNNNNNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmhymmmmmNNNNNNNNN
552 | NNNNNNNNNNNNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmNNNNNNNNNN
553 | NNNNNNNNNNNNNNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmNNNNNNNNNNNN
554 | NNNNNNNNNNNNNNNmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmNNNNNNNNNNNNN
555 | """)
556 |
557 | readme = 'README.md'
558 |
559 | scripts = get_scripts_from_readme(readme)
560 | tools = get_tools_from_readme(readme)
561 | downloaded_tools = [t for t in tools if t.is_downloaded()]
562 | categories = set([t.category['alias'] for t in tools])
563 |
564 | # check for the deprecated tools
565 | deprecated_tools = mark_deprecated_tools(tools, categories)
566 |
567 | if options.drop_deprecated:
568 | drop_deprecated_tools(deprecated_tools)
569 |
570 | print(f'{colors.bold(len(categories))} categories')
571 | print(f'{colors.bold(len(tools))} tools')
572 | print(f'{colors.bold(len(downloaded_tools))} downloaded tools')
573 | print(f'{colors.bold(len(scripts))} scripts')
574 |
575 | try:
576 | if options.search:
577 | search_in_tools(options.search, tools)
578 | elif options.update:
579 | update_tool(options.update, tools)
580 | elif options.download:
581 | download_tool(options.download, tools)
582 | elif options.show:
583 | show_tool_info(options.show, tools)
584 | else:
585 | interact(tools)
586 | except KeyboardInterrupt:
587 | logging.info('Keyboard interrupt, exiting')
588 | exit(0)
589 | # except Exception as e:
590 | # logging.error(colors.red('Unexpected error: ' + str(e)))
591 |
--------------------------------------------------------------------------------