[
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nMjolnir AiO  Copyright (C) 2022  Vinyzu\nThis program comes with ABSOLUTELY NO WARRANTY.\nThis is free software, and you are welcome to redistribute it under certain conditions.\n\n"
  },
  {
    "path": "README.md",
    "content": "\n# Mjolnir AiO\n\nMjolnir All in One is the most advanced Spotify Botting tool on the Market.\n\nAll of its features are open source and free to use.\n\n\n## Features\n\n- Desktop / Web / Request Generator\n- Desktop / Web Streamer\n- Liker\n- Web / Mail Checker\n\n### Demo Video (Showing Desktop Generator and Streamer)\n\nhttps://user-images.githubusercontent.com/50874994/169865287-4c7a14e5-00f3-4fd8-b40d-1daebab524b7.mp4\n\n## Installation\n\n### Installing Mjolnir with Python\n\n```bash\n  git clone https://github.com/Vinyzu/MjolnirAiO MjolnirAiO\n  cd MjolnirAiO\n  pip install -r requirements.txt\n  python mjolnir.py\n```\n\n### Further Requirements\n\n- Windows\n- Install [Spotify](https://www.spotify.com/download/windows/)\n- Install [Sandboxie](https://github.com/sandboxie-plus/Sandboxie/releases/download/1.0.22/Sandboxie-Classic-x64-v5.55.22.exe)\n\n- [Git](https://git-scm.com/downloads) (To install Mjolnir)\n- [Pip](https://pip.pypa.io/en/stable/installation/) (To install Mjolnir)\n\n## Using\n[Recommended Usage](https://github.com/Vinyzu/MjolnirAiO/blob/main/usages.md)\n\n## Logging\n\nNote:\n\nThis Software logs your usage. However, it just sends the amount of usage to my server, you can always delete the lines of code, and most importantly, it uses proxies so your IP-address is hidden. I cant tell who is when using this software, just how often everyone together uses it. Thanks if you support me by this little if you don´t delete the lines.\n\n## Contributing\n\nContributions are always welcome!\n\nSee [Contributing](https://github.com/Vinyzu/MjolnirAiO/blob/main/contributing.md) for ways to get started.\n\n\n## To the Skids\n\nHello, skid. I know its in your nature to laboriously copy and paste this project and sell it as yours. And i can´t 100% prevent that. However, legally you aren´t allowed to share your skidded Mjolnir other than the source code. And i know that you give a fuck about Licenses and Copyright, but if you gonna use this code as yours and don´t mark me as the original author, i can assure you that you won´t have a good time selling this ;d.\n\n## Copyright and License\n© [Vinyzu](https://github.com/Vinyzu/)\n\n[GNU GPL](https://choosealicense.com/licenses/gpl-3.0/)\n\n(Commercial Usage is allowed, but source, license and copyright has to made available. Mjolnir does not provide and Liability or Warranty)\n\n## Authors\n\n- [@Vinyzu](https://github.com/Vinyzu)\n\n`If you appreciate this Repository, I would love to see you star and share this. It took a lot of effort and time to code all of those features and i originally planned to sell this project, so I´m \"wasting\" money for everyone´s fun ;:D.`\n\n\n\n[![mjolnir-discord](https://img.shields.io/badge/Mjolnir_Discord-000?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/NurPCR25uX)\n[![my-discord](https://img.shields.io/badge/My_Discord-000?style=for-the-badge&logo=google-chat&logoColor=blue)](https://discordapp.com/users/935224495126487150)\n[![buy-me-a-coffee](https://img.shields.io/badge/Buy_Me_A_Coffee-000?style=for-the-badge&logo=ko-fi&logoColor=brown)](https://ko-fi.com/vinyzu)\n\n\n\n![Version](https://img.shields.io/badge/Mjolnir-v1.0.7-blue)\n![License](https://img.shields.io/badge/License-GNU%20GPL-green)\n![Python](https://img.shields.io/badge/Python-v3.x-lightgrey)\n![Platforms](https://img.shields.io/badge/Platform-win--32%20%7C%20win--64-lightgrey)\n"
  },
  {
    "path": "changelog.md",
    "content": "# Changelog\n\nEvery new change will be logged\n\n## v1.0.7\n```\n+ Updated Generator.html, Request-Buttons overwrote Desktop-Buttons (for example the Desktop Proxy Button didnt work)\n+ Added a General-Class, for functions that are used multiple times (reduces lines of code)\n+ Added new Desktop-Spotify self-killing function (to avoid closing threads if the main call has an error)\n+ Fixxed the Request-Passwords, before sometimes the Password was to short\n+ Fixxed the .exe Loggings (was coded for Selling as .exe, now is .py)\n+ Fixxed Username-Password splitting everywhere (Now you can also leave the :name at the end)\n+ Some unnecessary lines were removed and some indentations cleaned up\n```\n\n## v1.0.6\n```\n+ Fixxed Like Probability (Liked every time before)\n+ Added Exception-Catcher on Browser-Crasher (threw an error sometimes before that you can just ignore)\n+ Recoded DesktopStreamer´s combo Algorithm (used the same account over and over again before)\n-> Note: Maight have to recode same Algorithm on other features!\n```\n\n## v1.0.5\n```\n+ Edited Sandbox Deletion (No AdminPerms required anymore and beforehand it didnt delete them sometimes)\n+ Fixxed DesktopStreamer Mute Feature\n+ Fixxed DesktopStreamer Preferences-Setting\n+ Fixxed WebStreamer Threads\n+ Some (a bit unnecessary) Sandbox renaming to avoid Sandbox-issues\n```\n\n## v1.0.4\n```\n+ Recoded the WebStreamer Calling Algorithm (Called one combo over and over again before)\n+ Changed Usage of executable_path to service object when calling selenium\n+ Added Login Button Click in the DesktopStreamer (Failed to Login before if u werent logged in yet)\n```\n\n## v1.0.3\n```\n+ Deleted unnecessary requirements (Packages are already inbuilt since python 3.x)\n+ Added Git and Pip to Program Requirements (for mjolnir installation)\n+ Changed Variable-name from \"password\" to \"pw\" in the Liker\n+ Doc-stringed \"proxy-select\" interactions (broke web-stream-button)  \n```\n\n## v1.0.2\n```\n+ Deleted unnecessary prints\n+ Deleted \"print_first_line=False, log_level=0\" when calling ChromeDriverManager, not supported on new versions\n+ Added \"logging.getLogger('WDM').setLevel(logging.NOTSET)\" to replace functionality of above update\n+ Changed path adding of \"[INFO] Coded by Vinyzu (https://github.com/Vinyzu/MjolnirAiO)\" (Before it was shown letter by letter in the logs)\n+ Removing \"If you paid for this you got scammed\" when Logs show up (they overlapped)\n+ Changed twocaptcha requirement to 2captcha-python (wrong package was put on initial commit)\n```\n\n## v1.0.1\n```\n+ Changed Download to Sandboxie (Old Dowload suggested Sandboxie-Plus, which was not supported)\n+ Changed websocket requirement to websocket-client (wrong package was put on initial commit)\n+ Added \" replacement in Desktop-Generator´s output_path\n+ Song-Count Request is now converted to an int() to  compare with start-position, which is an int\n```\n\n## v1.0\n```\n+ First Commit\n```\n"
  },
  {
    "path": "contributing.md",
    "content": "Contributing\n============\nIf you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.\n\n### How to make a clean pull request\n\nLook for a project's contribution instructions. If there are any, follow them.\n\n- Create a personal fork of the project on Github.\n- Clone the fork on your local machine. Your remote repo on Github is called `origin`.\n- Add the original repository as a remote called `upstream`.\n- If you created your fork a while ago be sure to pull upstream changes into your local repository.\n- Create a new branch to work on! Branch from `develop` if it exists, else from `master`.\n- Implement/fix your feature, comment your code.\n- Follow the code style of the project, including indentation.\n- If the project has tests run them!\n- Write or adapt tests as needed.\n- Add or change the documentation as needed.\n- Squash your commits into a single commit with git's [interactive rebase](https://help.github.com/articles/interactive-rebase). Create a new branch if necessary.\n- Push your branch to your fork on Github, the remote `origin`.\n- From your fork open a pull request in the correct branch. Target the project's `develop` branch if there is one, else go for `master`!\n- …\n- If the maintainer requests further changes just push them to your branch. The PR will be updated automatically.\n- Once the pull request is approved and merged you can pull the changes from `upstream` to your local repo and delete\nyour extra branch(es).\n\nAnd last but not least: Always write your commit messages in the present tense. Your commit message should describe what the commit, when applied, does to the code – not what you did to the code.\n\n`Source: https://github.com/MarcDiethelm/contributing`\n"
  },
  {
    "path": "frontend/checker.html",
    "content": "<!DOCTYPE html>\r\n<html lang=\"en\" dir=\"ltr\">\r\n  <head>\r\n    <link rel=\"stylesheet\" href=\"{{ url_for('static',filename='style.css') }}\">\r\n    <meta charset=\"utf-8\">\r\n    <title>Mjolnir AiO Tool</title>\r\n    <link rel=\"icon\" href=\"https://i.ibb.co/f49G2GL/Spotify-Logo.png\">\r\n  </head>\r\n  <body>\r\n    <div id=\"mySidenav\" class=\"sidenav\">\r\n      <a href=\"http://mjolnir.tool/generator\">Generator</a>\r\n      <a href=\"http://mjolnir.tool/streamer\">Streamer</a>\r\n      <a href=\"http://mjolnir.tool/liker\">Liker</a>\r\n      <a href=\"http://mjolnir.tool/checker\">Checker</a>\r\n      <a href=\"http://mjolnir.tool/combo\">ComboEditor</a>\r\n      <a href=\"https://github.com/Vinyzu/MjolnirAiO/\" style=\"position: absolute; bottom: 40px; font-size: 20px;\">Coded by Vinyzu</a>\r\n    </div>\r\n    <div class=\"title\">\r\n      <h1>Checker</h1>\r\n      <a id=\"scam\" href=\"https://github.com/Vinyzu/MjolnirAiO/\" style=\"margin: auto; width: 95%; position: absolute; bottom: 22px; font-size: 20px;\">If you paid for this, you got scammed!</a>\r\n    </div>\r\n    <div class=\"selection\">\r\n      <br><br>\r\n      <input type=\"submit\" value=\"Checker (Slow)\" id=\"checker\"><br><br>\r\n      <input type=\"submit\" value=\"Mail Checker (Fast)\" id=\"mchecker\"><br><br>\r\n    </div>\r\n    <div class=\"content\">\r\n      <br><br>\r\n      <label for=\"threads\">Threads:   </label><input type=\"text\" id=\"threads\" name=\"threads\" value=\"10\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">Use Proxies:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"proxy-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <div class=\"proxy-select\", id=\"div-proxy-select\">\r\n        <label for=\"gender\">Select a Proxy-Type:   </label>\r\n          <select name=\"proxy\" id=\"proxy-select\">\r\n            <option value=\"residential\">Residential</option>\r\n            <option value=\"datacenter\">Datacenter</option>\r\n          </select><br><br>\r\n      </div>\r\n      <!-- <label for=\"threads\">Time between Likes:   </label><input type=\"text\" id=\"timeout\" name=\"timeout\" value=\"5\"><br><br> -->\r\n      <label for=\"amount\">Maximum Timeout:   </label><input type=\"text\" id=\"max\" name=\"max\" value=\"10\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br>\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">In Seconds</label><br><br>\r\n      <label for=\"amount\">Combo Path:   </label><input type=\"text\" id=\"combo\" name=\"combo\" value=\"\"><br><br>\r\n      <input type=\"submit\" value=\"Submit\" id=\"submit\"><br><br>\r\n      <input type=\"file\" id=\"logo\">\r\n      <br><br>\r\n      <label for=\"logs\" id=\"logs\">Logs:</label><br><br>\r\n      <textarea id=\"textarea\" name=\"textarea\" rows=\"4\" cols=\"50\" readonly></textarea>\r\n    </div>\r\n    <div class=\"content\">\r\n      <br><br>\r\n      <label for=\"threads\">Threads:   </label><input type=\"text\" id=\"r_threads\" name=\"threads\" value=\"10\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">Use Proxies:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"r_proxy-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <!-- <label for=\"threads\">Time between Likes:   </label><input type=\"text\" id=\"timeout\" name=\"timeout\" value=\"5\"><br><br> -->\r\n      <label for=\"amount\">Maximum Timeout:   </label><input type=\"text\" id=\"r_max\" name=\"max\" value=\"10\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br>\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">In Seconds</label><br><br>\r\n      <label for=\"amount\">Combo Path:   </label><input type=\"text\" id=\"r_combo\" name=\"combo\" value=\"\"><br><br>\r\n      <input type=\"submit\" value=\"Submit\" id=\"r_submit\"><br><br>\r\n      <input type=\"file\" id=\"r_logo\">\r\n      <br><br>\r\n      <label for=\"logs\" id=\"r_logs\">Logs:</label><br><br>\r\n      <textarea id=\"r_textarea\" name=\"textarea\" rows=\"4\" cols=\"50\" readonly></textarea>\r\n    </div>\r\n  </body>\r\n  <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js\"></script>\r\n  <script>\r\n    document.getElementsByClassName(\"content\")[0].style.display = 'none';\r\n    document.getElementsByClassName(\"content\")[1].style.display = 'none';\r\n    document.getElementById(\"checker\").onclick = function(e) {document.getElementsByClassName(\"content\")[0].style.display = 'block'; document.getElementsByClassName(\"selection\")[0].style.display = 'none';}\r\n    document.getElementById(\"mchecker\").onclick = function(e) {document.getElementsByClassName(\"content\")[1].style.display = 'block'; document.getElementsByClassName(\"selection\")[0].style.display = 'none';}\r\n    // r_\r\n    $(\"#textarea\").css('opacity','0');\r\n    $(\"#logs\").css('opacity','0');\r\n    $(\"#r_textarea\").css('opacity','0');\r\n    $(\"#r_logs\").css('opacity','0');\r\n    window.setInterval(function() {var elem = document.getElementById('textarea'); elem.scrollTop = elem.scrollHeight;}, 1000);\r\n    window.setInterval(function() {var elem = document.getElementById('r_textarea'); elem.scrollTop = elem.scrollHeight;}, 1000);\r\n    var proxies = \"\";\r\n    $(\"#logo\").css('opacity','0');\r\n    document.getElementsByClassName(\"proxy-select\")[0].style.display = 'none';\r\n    document.getElementById(\"proxy-switch\").onclick = function(e){if (! document.getElementById(\"proxy-switch\").checked) {document.getElementById(\"proxy-switch\").checked = false; proxies = \"\"; document.getElementsByClassName(\"proxy-select\")[0].style.display = 'none';} else {$(\"#logo\").trigger('click');}};\r\n    $('#logo').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){proxies = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();\r\n      document.getElementsByClassName(\"proxy-select\")[0].style.display = 'block';});\r\n\r\n    document.getElementById(\"submit\").onclick = function(e){\r\n      $.ajax({\r\n        type: \"POST\",\r\n        url: \"{{ url_for(\"checker\") }}\",\r\n        contentType: \"application/json\",\r\n        data: JSON.stringify({\r\n          // timeout: document.getElementById(\"timeout\").value,\r\n          threads: document.getElementById(\"threads\").value,\r\n          proxies: proxies,\r\n          proxy_type: document.getElementById(\"proxy-select\").value,\r\n          max: document.getElementById(\"max\").value,\r\n          path: document.getElementById(\"combo\").value,\r\n        }),\r\n        success: function(res) {\r\n          console.log(res);\r\n          const socket = new WebSocket(res);\r\n          socket.addEventListener('open', () => {\r\n              console.log('Connection established');\r\n                socket.send(\"Update\");\r\n              }\r\n          );\r\n          socket.addEventListener('message', event => {\r\n              console.log('Message from server ', event.data);\r\n              document.getElementById('textarea').value += event.data + \"\\r\\n\";\r\n              // document.getElementById('textarea').value = event.data;\r\n              $(\"#textarea\").css('opacity','100');\r\n              $(\"#logs\").css('opacity','100');\r\n          });\r\n        },\r\n        error: function(err) {\r\n            console.log(err);\r\n        }\r\n    });\r\n    }\r\n\r\n    var r_proxies = \"\";\r\n    $(\"#r_logo\").css('opacity','0');\r\n    document.getElementById(\"r_proxy-switch\").onclick = function(e){if (! document.getElementById(\"r_proxy-switch\").checked) {document.getElementById(\"r_proxy-switch\").checked = false; r_proxies = \"\";} else {$(\"#r_logo\").trigger('click');}};\r\n    $('#logo').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){r_proxies = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();});\r\n\r\n    document.getElementById(\"r_submit\").onclick = function(e){\r\n      $.ajax({\r\n        type: \"POST\",\r\n        url: \"{{ url_for(\"mchecker\") }}\",\r\n        contentType: \"application/json\",\r\n        data: JSON.stringify({\r\n          // timeout: document.getElementById(\"timeout\").value,\r\n          threads: document.getElementById(\"r_threads\").value,\r\n          proxies: r_proxies,\r\n          max: document.getElementById(\"r_max\").value,\r\n          path: document.getElementById(\"r_combo\").value,\r\n        }),\r\n        success: function(res) {\r\n          console.log(res);\r\n          const socket = new WebSocket(res);\r\n          socket.addEventListener('open', () => {\r\n              console.log('Connection established');\r\n                socket.send(\"Update\");\r\n              }\r\n          );\r\n          socket.addEventListener('message', event => {\r\n              console.log('Message from server ', event.data);\r\n              document.getElementById('r_textarea').value += event.data + \"\\r\\n\";\r\n              // document.getElementById('textarea').value = event.data;\r\n              $(\"#scam\").css('opacity','0');\r\n              $(\"#r_textarea\").css('opacity','100');\r\n              $(\"#r_logs\").css('opacity','100');\r\n          });\r\n        },\r\n        error: function(err) {\r\n            console.log(err);\r\n        }\r\n    });\r\n    }\r\n    </script>\r\n</html>\r\n"
  },
  {
    "path": "frontend/combo.html",
    "content": "<!DOCTYPE html>\r\n<html lang=\"en\" dir=\"ltr\">\r\n  <head>\r\n    <link rel=\"stylesheet\" href=\"{{ url_for('static',filename='style.css') }}\">\r\n    <meta charset=\"utf-8\">\r\n    <title>Mjolnir AiO Tool</title>\r\n    <link rel=\"icon\" href=\"https://i.ibb.co/f49G2GL/Spotify-Logo.png\">\r\n  </head>\r\n  <body>\r\n    <div id=\"mySidenav\" class=\"sidenav\">\r\n      <a href=\"http://mjolnir.tool/generator\">Generator</a>\r\n      <a href=\"http://mjolnir.tool/streamer\">Streamer</a>\r\n      <a href=\"http://mjolnir.tool/liker\">Liker</a>\r\n      <a href=\"http://mjolnir.tool/checker\">Checker</a>\r\n      <a href=\"http://mjolnir.tool/combo\">ComboEditor</a>\r\n      <a href=\"https://github.com/Vinyzu/MjolnirAiO/\" style=\"position: absolute; bottom: 40px; font-size: 20px;\">Coded by Vinyzu</a>\r\n    </div>\r\n    <div class=\"title\">\r\n      <h1>Liker</h1>\r\n      <a href=\"https://github.com/Vinyzu/MjolnirAiO/\" style=\"margin: auto; width: 95%; position: absolute; bottom: 22px; font-size: 20px;\">If you paid for this, you got scammed!</a>\r\n    </div>\r\n    <div class=\"content\">\r\n      <br><br>\r\n      <label for=\"amount\">Combo Path:   </label><input type=\"text\" id=\"combo\" name=\"combo\" value=\"\"><br><br>\r\n      <label for=\"amount\">Output File Name:   </label><input type=\"text\" id=\"name\" name=\"name\" value=\"\"><br><br>\r\n      <input type=\"submit\" value=\"Submit\" id=\"submit\"><br><br>\r\n      <input type=\"file\" id=\"logo\">\r\n    </div>\r\n  </body>\r\n  <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js\"></script>\r\n  <script>\r\n    document.getElementById(\"submit\").onclick = function(e){\r\n      $.ajax({\r\n        type: \"POST\",\r\n        url: \"{{ url_for(\"wgen\") }}\",\r\n        contentType: \"application/json\",\r\n        data: JSON.stringify({\r\n          combo: document.getElementById(\"combo\").value,\r\n          name: document.getElementById(\"name\").value,\r\n        }),\r\n        dataType: \"json\",\r\n        success: function(response) {\r\n            console.log(response);\r\n        },\r\n        error: function(err) {\r\n            console.log(err);\r\n        }\r\n    });\r\n    }\r\n    </script>\r\n</html>\r\n"
  },
  {
    "path": "frontend/generator.html",
    "content": "<!DOCTYPE html>\r\n<html lang=\"en\" dir=\"ltr\">\r\n  <head>\r\n    <link rel=\"stylesheet\" href=\"{{ url_for('static',filename='style.css') }}\">\r\n    <meta charset=\"utf-8\">\r\n    <title>Mjolnir AiO Tool</title>\r\n    <link rel=\"icon\" href=\"https://i.ibb.co/f49G2GL/Spotify-Logo.png\">\r\n  </head>\r\n  <body>\r\n    <div id=\"mySidenav\" class=\"sidenav\">\r\n      <a href=\"http://mjolnir.tool/generator\">Generator</a>\r\n      <a href=\"http://mjolnir.tool/streamer\">Streamer</a>\r\n      <a href=\"http://mjolnir.tool/liker\">Liker</a>\r\n      <a href=\"http://mjolnir.tool/checker\">Checker</a>\r\n      <a href=\"http://mjolnir.tool/combo\">ComboEditor</a>\r\n      <a href=\"https://github.com/Vinyzu/MjolnirAiO/\" style=\"position: absolute; bottom: 40px; font-size: 20px;\">Coded by Vinyzu</a>\r\n    </div>\r\n    <div class=\"title\">\r\n      <h1>Generator</h1>\r\n      <a id=\"scam\" href=\"https://github.com/Vinyzu/MjolnirAiO/\" style=\"margin: auto; width: 95%; position: absolute; bottom: 22px; font-size: 20px;\">If you paid for this, you got scammed!</a>\r\n    </div>\r\n    <div class=\"selection\">\r\n      <br><br>\r\n      <input type=\"submit\" value=\"Desktop Generator\" id=\"desktop\"><br><br>\r\n      <input type=\"submit\" value=\"Web Generator\" id=\"web\"><br><br>\r\n      <input type=\"submit\" value=\"Request Generator\" id=\"request\"><br><br>\r\n    </div>\r\n    <div class=\"content\">\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">Desktop-Generator</label><br><br>\r\n      <br><br>\r\n      <label for=\"amount\">Amount:   </label><input type=\"text\" id=\"amount\" name=\"amount\" value=\"1\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">Threads:   </label><input type=\"text\" id=\"threads\" name=\"threads\" value=\"1\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">Use Own Names:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"name-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <label for=\"threads\">Use Own Passwords:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"password-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <label for=\"threads\">Use Proxies:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"proxy-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <label for=\"threads\">Use a Webhook:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"webhook-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <label for=\"gender\">Select a gender:   </label>\r\n        <select name=\"gender\" id=\"gender-select\">\r\n          <option value=\"male\">Male</option>\r\n          <option value=\"female\">Female</option>\r\n          <option value=\"none\">NonBinary</option>\r\n        </select><br><br>\r\n      <label for=\"order\">Select a date-order:   </label>\r\n        <select name=\"order\" id=\"order-select\">\r\n          <option value=\"day\">Day-Month-Year</option>\r\n          <option value=\"month\">Month-Day-Year</option>\r\n        </select><br><br>\r\n      <label for=\"threads\">Minimal Age:   </label><input type=\"text\" id=\"minAge\" name=\"minAge\" value=\"1970\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">Maximal Age:   </label><input type=\"text\" id=\"maxAge\" name=\"maxAge\" value=\"1980\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">Alternative Month Selection:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"alternative-switch\"><span class=\"slider round\"></span></label><br>\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">Use only when told by Support</label><br><br>\r\n      <label for=\"amount\">Output Path:   </label><input type=\"text\" id=\"path\" name=\"path\" value=\"\"><br><br>\r\n      <input type=\"submit\" value=\"Submit\" id=\"submit\"><br><br>\r\n      <input type=\"file\" id=\"logo\">\r\n      <input type=\"file\" id=\"logo1\">\r\n      <input type=\"file\" id=\"logo2\">\r\n      <br><br>\r\n      <label for=\"logs\" id=\"logs\">Logs:</label><br><br>\r\n      <textarea id=\"textarea\" name=\"textarea\" rows=\"4\" cols=\"50\" readonly></textarea>\r\n    </div>\r\n    <div class=\"content\">\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">Web-Generator</label><br><br>\r\n      <br><br>\r\n      <label for=\"amount\">Amount:   </label><input type=\"text\" id=\"w_amount\" name=\"w_amount\" value=\"1\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">Threads:   </label><input type=\"text\" id=\"w_threads\" name=\"w_threads\" value=\"1\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">Use Own Names:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"w_name-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <label for=\"threads\">Use Own Passwords:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"w_password-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <label for=\"threads\">Use Proxies:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"w_proxy-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <label for=\"gender\">Select a gender:   </label>\r\n        <select name=\"gender\" id=\"w_gender-select\">\r\n          <option value=\"male\">Male</option>\r\n          <option value=\"female\">Female</option>\r\n          <option value=\"none\">NonBinary</option>\r\n        </select><br><br>\r\n      <label for=\"threads\">Minimal Age:   </label><input type=\"text\" id=\"w_minAge\" name=\"minAge\" value=\"1970\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">Maximal Age:   </label><input type=\"text\" id=\"w_maxAge\" name=\"maxAge\" value=\"1980\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">2Captcha Key:   </label><input type=\"text\" id=\"w_key\" name=\"w_key\" value=\"\"><br><br>\r\n      <label for=\"amount\">Output Path:   </label><input type=\"text\" id=\"w_path\" name=\"path\" value=\"\"><br><br>\r\n      <input type=\"submit\" value=\"Submit\" id=\"w_submit\"><br><br>\r\n      <input type=\"file\" id=\"w_logo\">\r\n      <input type=\"file\" id=\"w_logo1\">\r\n      <input type=\"file\" id=\"w_logo2\">\r\n      <br><br>\r\n      <label for=\"logs\" id=\"w_logs\">Logs:</label><br><br>\r\n      <textarea id=\"w_textarea\" name=\"w_textarea\" rows=\"4\" cols=\"50\" readonly></textarea>\r\n    </div>\r\n    <div class=\"content\">\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">Request-Generator</label><br><br>\r\n      <br><br>\r\n      <label for=\"amount\">Amount:   </label><input type=\"text\" id=\"r_amount\" name=\"r_amount\" value=\"1\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n        <label for=\"threads\">Threads:   </label><input type=\"text\" id=\"r_threads\" name=\"r_threads\" value=\"10\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">Use Own Names:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"r_name-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <label for=\"threads\">Use Own Passwords:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"r_password-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <label for=\"threads\">Use Proxies:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"r_proxy-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <label for=\"amount\">Output Path:   </label><input type=\"text\" id=\"r_path\" name=\"r_path\" value=\"\"><br><br>\r\n      <input type=\"submit\" value=\"Submit\" id=\"r_submit\"><br><br>\r\n      <input type=\"file\" id=\"r_logo\">\r\n      <input type=\"file\" id=\"r_logo1\">\r\n      <input type=\"file\" id=\"r_logo2\">\r\n      <br><br>\r\n      <label for=\"logs\" id=\"r_logs\">Logs:</label><br><br>\r\n      <textarea id=\"r_textarea\" name=\"r_textarea\" rows=\"4\" cols=\"50\" readonly></textarea>\r\n    </div>\r\n  </body>\r\n  <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js\"></script>\r\n  <script>\r\n    $(\"#textarea\").css('opacity','0');\r\n    window.setInterval(function() {var elem = document.getElementById('textarea'); elem.scrollTop = elem.scrollHeight;}, 1000);\r\n    $(\"#r_textarea\").css('opacity','0');\r\n    window.setInterval(function() {var elem = document.getElementById('r_textarea'); elem.scrollTop = elem.scrollHeight;}, 1000);\r\n    $(\"#w_textarea\").css('opacity','0');\r\n    window.setInterval(function() {var elem = document.getElementById('w_textarea'); elem.scrollTop = elem.scrollHeight;}, 1000);\r\n    $(\"#w_logs\").css('opacity','0');\r\n    $(\"#logs\").css('opacity','0');\r\n    $(\"#r_logs\").css('opacity','0');\r\n    var names = \"\";\r\n    $(\"#logo\").css('opacity','0');\r\n    document.getElementById(\"name-switch\").onclick = function(e){if (! document.getElementById(\"name-switch\").checked) {document.getElementById(\"name-switch\").checked = false; names = \"\";} else {$(\"#logo\").trigger('click');}};\r\n    $('#logo').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){names = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();\r\n      document.getElementById(\"name-switch\").checked = true;});\r\n\r\n    var passwords = \"\";\r\n    $(\"#logo1\").css('opacity','0');\r\n    document.getElementById(\"password-switch\").onclick = function(e){if (! document.getElementById(\"password-switch\").checked) {document.getElementById(\"password-switch\").checked = false; passwords = \"\";} else {$(\"#logo1\").trigger('click');}};\r\n    $('#logo1').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){passwords = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();\r\n      document.getElementById(\"password-switch\").checked = true;});\r\n\r\n    var proxies = \"\";\r\n    $(\"#logo2\").css('opacity','0');\r\n    document.getElementById(\"proxy-switch\").onclick = function(e){if (! document.getElementById(\"proxy-switch\").checked) {document.getElementById(\"proxy-switch\").checked = false; proxies = \"\";} else {$(\"#logo2\").trigger('click');}};\r\n    $('#logo2').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){proxies = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();\r\n      document.getElementById(\"proxy-switch\").checked = true;});\r\n\r\n    var webhook = \"\";\r\n    document.getElementById(\"webhook-switch\").onclick = function(e){\r\n      if (! document.getElementById(\"webhook-switch\").checked) {\r\n        document.getElementById(\"webhook-switch\").checked = false; webhook = \"\";\r\n      } else {\r\n        var url = prompt(\"Please enter your webhook:\", \"\");\r\n        if (! url.includes(\"https\")) {\r\n          alert(\"The Webhook-Url was invalid!\");\r\n          document.getElementById(\"webhook-switch\").checked = false;\r\n        } else {\r\n        var xhr = new XMLHttpRequest();\r\n        xhr.open('GET', url, true);\r\n        xhr.responseType = 'json';\r\n        xhr.onload  = function(e) {console.log(xhr.response);\r\n        if(xhr.response.hasOwnProperty('message')){alert(\"The Webhook-Url was invalid!\"); document.getElementById(\"webhook-switch\").checked = false;\r\n          } else {webhook = url;}}\r\n        xhr.send();\r\n      }}};\r\n    document.getElementById(\"submit\").onclick = function(e){\r\n        url = $.ajax({\r\n          type: \"POST\",\r\n          url: \"{{ url_for(\"dgen\") }}\",\r\n          contentType: \"application/json\",\r\n          data: JSON.stringify({\r\n            amount: document.getElementById(\"amount\").value,\r\n            threads: document.getElementById(\"threads\").value,\r\n            names: names,\r\n            passwords: passwords,\r\n            proxies: proxies,\r\n            webhook: webhook,\r\n            gender: document.getElementById(\"gender-select\").value,\r\n            order: document.getElementById(\"order-select\").value,\r\n            alternative: document.getElementById(\"alternative-switch\").checked,\r\n            minAge: document.getElementById(\"minAge\").value,\r\n            maxAge: document.getElementById(\"maxAge\").value,\r\n            path: document.getElementById(\"path\").value,\r\n          }),\r\n          success: function(res) {\r\n            console.log(res);\r\n            const socket = new WebSocket(res);\r\n            socket.addEventListener('open', () => {\r\n                console.log('Connection established');\r\n                  socket.send(\"Update\");\r\n                }\r\n            );\r\n            socket.addEventListener('message', event => {\r\n                console.log('Message from server ', event.data);\r\n                document.getElementById('textarea').value += event.data + \"\\r\\n\";\r\n                // document.getElementById('textarea').value = event.data;\r\n                $(\"#scam\").css('opacity','0');\r\n                $(\"#textarea\").css('opacity','100');\r\n                $(\"#logs\").css('opacity','100');\r\n            });\r\n\r\n      },\r\n      error: function(err){console.log(err);}})\r\n    }\r\n\r\n\r\n    var w_names = \"\";\r\n    $(\"#w_logo\").css('opacity','0');\r\n    document.getElementById(\"w_name-switch\").onclick = function(e){if (! document.getElementById(\"w_name-switch\").checked) {document.getElementById(\"w_name-switch\").checked = false; w_names = \"\";} else {$(\"#w_logo\").trigger('click');}};\r\n    $('#w_logo').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){w_names = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();\r\n      document.getElementById(\"w_name-switch\").checked = true;});\r\n\r\n    var w_passwords = \"\";\r\n    $(\"#w_logo1\").css('opacity','0');\r\n    document.getElementById(\"w_password-switch\").onclick = function(e){if (! document.getElementById(\"w_password-switch\").checked) {document.getElementById(\"w_password-switch\").checked = false; w_passwords = \"\";} else {$(\"#w_logo1\").trigger('click');}};\r\n    $('#w_logo1').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){w_passwords = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();\r\n      document.getElementById(\"w_password-switch\").checked = true;});\r\n\r\n    var w_proxies = \"\";\r\n    $(\"#w_logo2\").css('opacity','0');\r\n    document.getElementById(\"w_proxy-switch\").onclick = function(e){if (! document.getElementById(\"w_proxy-switch\").checked) {document.getElementById(\"w_proxy-switch\").checked = false; w_proxies = \"\";} else {$(\"#w_logo2\").trigger('click');}};\r\n    $('#w_logo2').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){w_proxies = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();\r\n      document.getElementById(\"w_proxy-switch\").checked = true;});\r\n\r\n    document.getElementById(\"w_submit\").onclick = function(e){\r\n          url = $.ajax({\r\n            type: \"POST\",\r\n            url: \"{{ url_for(\"wgen\") }}\",\r\n            contentType: \"application/json\",\r\n            data: JSON.stringify({\r\n              amount: document.getElementById(\"w_amount\").value,\r\n              threads: document.getElementById(\"w_threads\").value,\r\n              names: w_names,\r\n              passwords: w_passwords,\r\n              proxies: w_proxies,\r\n              gender: document.getElementById(\"w_gender-select\").value,\r\n              minAge: document.getElementById(\"w_minAge\").value,\r\n              maxAge: document.getElementById(\"w_maxAge\").value,\r\n              key: document.getElementById(\"w_key\").value,\r\n              path: document.getElementById(\"w_path\").value,\r\n            }),\r\n            success: function(res) {\r\n              console.log(res);\r\n              const socket = new WebSocket(res);\r\n              socket.addEventListener('open', () => {\r\n                  console.log('Connection established');\r\n                    socket.send(\"Update\");\r\n                  }\r\n              );\r\n              socket.addEventListener('message', event => {\r\n                  console.log('Message from server ', event.data);\r\n                  document.getElementById('w_textarea').value += event.data + \"\\r\\n\";\r\n                  // document.getElementById('textarea').value = event.data;\r\n                  $(\"#scam\").css('opacity','0');\r\n                  $(\"#w_textarea\").css('opacity','100');\r\n                  $(\"#w_logs\").css('opacity','100');\r\n              });\r\n\r\n        },\r\n        error: function(err){console.log(err);}})\r\n      }\r\n\r\n    document.getElementsByClassName(\"content\")[0].style.display = 'none';\r\n    document.getElementsByClassName(\"content\")[1].style.display = 'none';\r\n    document.getElementsByClassName(\"content\")[2].style.display = 'none';\r\n    document.getElementById(\"desktop\").onclick = function(e) {document.getElementsByClassName(\"content\")[0].style.display = 'block'; document.getElementsByClassName(\"selection\")[0].style.display = 'none';}\r\n    document.getElementById(\"web\").onclick = function(e) {document.getElementsByClassName(\"content\")[1].style.display = 'block'; document.getElementsByClassName(\"selection\")[0].style.display = 'none';}\r\n    document.getElementById(\"request\").onclick = function(e) {document.getElementsByClassName(\"content\")[2].style.display = 'block'; document.getElementsByClassName(\"selection\")[0].style.display = 'none';}\r\n\r\n\r\n\r\n    var r_names = \"\";\r\n    $(\"#r_logo\").css('opacity','0');\r\n    document.getElementById(\"r_name-switch\").onclick = function(e){if (! document.getElementById(\"r_name-switch\").checked) {document.getElementById(\"r_name-switch\").checked = false; r_names = \"\";} else {$(\"#r_logo\").trigger('click');}};\r\n    $('#r_logo').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){r_names = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();\r\n      document.getElementById(\"r_name-switch\").checked = true;});\r\n\r\n    var r_passwords = \"\";\r\n    $(\"#r_logo1\").css('opacity','0');\r\n    document.getElementById(\"r_password-switch\").onclick = function(e){if (! document.getElementById(\"r_password-switch\").checked) {document.getElementById(\"r_password-switch\").checked = false; r_passwords = \"\";} else {$(\"#r_logo1\").trigger('click');}};\r\n    $('#r_logo1').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){r_passwords = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();\r\n      document.getElementById(\"r_password-switch\").checked = true;});\r\n\r\n    var r_proxies = \"\";\r\n    $(\"#r_logo2\").css('opacity','0');\r\n    document.getElementById(\"r_proxy-switch\").onclick = function(e){if (! document.getElementById(\"r_proxy-switch\").checked) {document.getElementById(\"r_proxy-switch\").checked = false; r_proxies = \"\";} else {$(\"#r_logo2\").trigger('click');}};\r\n    $('#r_logo2').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){r_proxies = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();\r\n      document.getElementById(\"r_proxy-switch\").checked = true;});\r\n\r\n      document.getElementById(\"r_submit\").onclick = function(e){\r\n        url = $.ajax({\r\n          type: \"POST\",\r\n          url: \"{{ url_for(\"rgen\") }}\",\r\n          contentType: \"application/json\",\r\n          data: JSON.stringify({\r\n            amount: document.getElementById(\"r_amount\").value,\r\n            threads: document.getElementById(\"r_threads\").value,\r\n            names: r_names,\r\n            passwords: r_passwords,\r\n            proxies: r_proxies,\r\n            path: document.getElementById(\"r_path\").value,\r\n          }),\r\n          success: function(res) {\r\n            console.log(res);\r\n            const socket = new WebSocket(res);\r\n            socket.addEventListener('open', () => {\r\n                console.log('Connection established');\r\n                  socket.send(\"Update\");\r\n                }\r\n            );\r\n            socket.addEventListener('message', event => {\r\n                console.log('Message from server ', event.data);\r\n                document.getElementById('r_textarea').value += event.data + \"\\r\\n\";\r\n                // document.getElementById('textarea').value = event.data;\r\n                $(\"#scam\").css('opacity','0');\r\n                $(\"#r_textarea\").css('opacity','100');\r\n                $(\"#r_logs\").css('opacity','100');\r\n            });\r\n\r\n      },\r\n    })}\r\n    </script>\r\n</html>\r\n"
  },
  {
    "path": "frontend/liker.html",
    "content": "<!DOCTYPE html>\r\n<html lang=\"en\" dir=\"ltr\">\r\n  <head>\r\n    <link rel=\"stylesheet\" href=\"{{ url_for('static',filename='style.css') }}\">\r\n    <meta charset=\"utf-8\">\r\n    <title>Mjolnir AiO Tool</title>\r\n    <link rel=\"icon\" href=\"https://i.ibb.co/f49G2GL/Spotify-Logo.png\">\r\n  </head>\r\n  <body>\r\n    <div id=\"mySidenav\" class=\"sidenav\">\r\n      <a href=\"http://mjolnir.tool/generator\">Generator</a>\r\n      <a href=\"http://mjolnir.tool/streamer\">Streamer</a>\r\n      <a href=\"http://mjolnir.tool/liker\">Liker</a>\r\n      <a href=\"http://mjolnir.tool/checker\">Checker</a>\r\n      <a href=\"http://mjolnir.tool/combo\">ComboEditor</a>\r\n      <a href=\"https://github.com/Vinyzu/MjolnirAiO/\" style=\"position: absolute; bottom: 40px; font-size: 20px;\">Coded by Vinyzu</a>\r\n    </div>\r\n    <div class=\"title\">\r\n      <h1>Liker</h1>\r\n      <a id=\"scam\" href=\"https://github.com/Vinyzu/MjolnirAiO/\" style=\"margin: auto; width: 95%; position: absolute; bottom: 22px; font-size: 20px;\">If you paid for this, you got scammed!</a>\r\n    </div>\r\n    <div class=\"content\">\r\n      <br><br>\r\n      <label for=\"amount\">Link:   </label><input type=\"text\" id=\"link\" name=\"link\" value=\"\"><br><br>\r\n      <label for=\"threads\">Threads:   </label><input type=\"text\" id=\"threads\" name=\"threads\" value=\"10\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">Use Proxies:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"proxy-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <div class=\"proxy-select\", id=\"div-proxy-select\">\r\n        <label for=\"gender\">Select a Proxy-Type:   </label>\r\n          <select name=\"proxy\" id=\"proxy-select\">\r\n            <option value=\"residential\">Residential</option>\r\n            <option value=\"datacenter\">Datacenter</option>\r\n          </select><br><br>\r\n      </div>\r\n      <label for=\"threads\">Timeout between Streams:   </label><input type=\"text\" id=\"timeout\" name=\"timeout\" value=\"5\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br>\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">In Seconds</label><br><br>\r\n      <label for=\"amount\">Combo Path:   </label><input type=\"text\" id=\"combo\" name=\"combo\" value=\"\"><br><br>\r\n      <input type=\"submit\" value=\"Submit\" id=\"submit\"><br><br>\r\n      <input type=\"file\" id=\"logo\">\r\n      <br><br>\r\n      <label for=\"logs\" id=\"logs\">Logs:</label><br><br>\r\n      <textarea id=\"textarea\" name=\"textarea\" rows=\"4\" cols=\"50\" readonly></textarea>\r\n    </div>\r\n  </body>\r\n  <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js\"></script>\r\n  <script>\r\n    $(\"#textarea\").css('opacity','0');\r\n    $(\"#logs\").css('opacity','0');\r\n    window.setInterval(function() {var elem = document.getElementById('textarea'); elem.scrollTop = elem.scrollHeight;}, 1000);\r\n    var proxies = \"\";\r\n    $(\"#logo\").css('opacity','0');\r\n    document.getElementsByClassName(\"proxy-select\")[0].style.display = 'none';\r\n    document.getElementById(\"proxy-switch\").onclick = function(e){if (! document.getElementById(\"proxy-switch\").checked) {document.getElementById(\"proxy-switch\").checked = false; proxies = \"\"; document.getElementsByClassName(\"proxy-select\")[0].style.display = 'none';} else {$(\"#logo\").trigger('click');}};\r\n    $('#logo').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){proxies = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();\r\n      document.getElementsByClassName(\"proxy-select\")[0].style.display = 'block';});\r\n\r\n    document.getElementById(\"submit\").onclick = function(e){\r\n      $.ajax({\r\n        type: \"POST\",\r\n        url: \"{{ url_for(\"liker\") }}\",\r\n        contentType: \"application/json\",\r\n        data: JSON.stringify({\r\n          link: document.getElementById(\"link\").value,\r\n          threads: document.getElementById(\"threads\").value,\r\n          timeout: document.getElementById(\"timeout\").value,\r\n          proxies: proxies,\r\n          proxy_type: document.getElementById(\"proxy-select\").value,\r\n          path: document.getElementById(\"combo\").value,\r\n        }),\r\n        // dataType: \"json\",\r\n        success: function(res) {\r\n          console.log(res);\r\n          const socket = new WebSocket(res);\r\n          socket.addEventListener('open', () => {\r\n              console.log('Connection established');\r\n                socket.send(\"Update\");\r\n              }\r\n          );\r\n          socket.addEventListener('message', event => {\r\n              console.log('Message from server ', event.data);\r\n              document.getElementById('textarea').value += event.data + \"\\r\\n\";\r\n              // document.getElementById('textarea').value = event.data;\r\n              $(\"#scam\").css('opacity','0');\r\n              $(\"#textarea\").css('opacity','100');\r\n              $(\"#logs\").css('opacity','100');\r\n          });\r\n        },\r\n        error: function(err) {\r\n            console.log(err);\r\n        }\r\n    });\r\n    }\r\n    </script>\r\n</html>\r\n"
  },
  {
    "path": "frontend/streamer.html",
    "content": "<!DOCTYPE html>\r\n<html lang=\"en\" dir=\"ltr\">\r\n  <head>\r\n    <link rel=\"stylesheet\" href=\"{{ url_for('static',filename='style.css') }}\">\r\n    <meta charset=\"utf-8\">\r\n    <title>Mjolnir AiO Tool</title>\r\n    <link rel=\"icon\" href=\"https://i.ibb.co/f49G2GL/Spotify-Logo.png\">\r\n  </head>\r\n  <body>\r\n    <div id=\"mySidenav\" class=\"sidenav\">\r\n      <a href=\"http://mjolnir.tool/generator\">Generator</a>\r\n      <a href=\"http://mjolnir.tool/streamer\">Streamer</a>\r\n      <a href=\"http://mjolnir.tool/liker\">Liker</a>\r\n      <a href=\"http://mjolnir.tool/checker\">Checker</a>\r\n      <a href=\"http://mjolnir.tool/combo\">ComboEditor</a>\r\n      <a href=\"https://github.com/Vinyzu/MjolnirAiO/\" style=\"position: absolute; bottom: 40px; font-size: 20px;\">Coded by Vinyzu</a>\r\n    </div>\r\n    <div class=\"title\">\r\n      <h1>Streamer</h1>\r\n      <a id=\"scam\" href=\"https://github.com/Vinyzu/MjolnirAiO/\" style=\"margin: auto; width: 95%; position: absolute; bottom: 22px; font-size: 20px;\">If you paid for this, you got scammed!</a>\r\n    </div>\r\n    <div class=\"selection\">\r\n      <br><br>\r\n      <input type=\"submit\" value=\"Desktop Streamer\" id=\"desktop\"><br><br>\r\n      <input type=\"submit\" value=\"Web Streamer\" id=\"web\"><br><br>\r\n    </div>\r\n    <div class=\"content\">\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">Desktop-Streamer</label><br><br>\r\n      <br><br>\r\n      <label for=\"amount\">Links:   </label><input type=\"text\" id=\"link\" name=\"link\" value=\"\"><br>\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">URLs(Seperated by \",\")/FilePath</label><br><br>\r\n      <label for=\"threads\">Threads:   </label><input type=\"text\" id=\"threads\" name=\"threads\" value=\"10\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">Maximal Streaming Time:   </label><input type=\"text\" id=\"max\" name=\"max\" value=\"5\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br>\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">In Minutes</label><br><br>\r\n      <label for=\"threads\">Stream from Position:   </label><input type=\"text\" id=\"pos\" name=\"pos\" value=\"0\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <!-- <label for=\"threads\">Like while Streaming:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"like-switch\"><span class=\"slider round\"></span></label><br><br> -->\r\n      <label for=\"amount\">Like Probability:   </label><input type=\"text\" id=\"like\" name=\"like\" value=\"50\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br>\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">In Percent (%)</label><br><br>\r\n      <!-- <label for=\"amount\">Follow Probability (%):   </label><input type=\"text\" id=\"follow\" name=\"like\" value=\"50\"><br><br> -->\r\n      <label for=\"threads\">Mute Audio:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"mute\"><span class=\"slider round\"></span></label><br><br>\r\n      <label for=\"threads\">Use Proxies:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"proxy-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <label for=\"threads\">Use a Webhook:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"webhook-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <label for=\"amount\">Combo Path:   </label><input type=\"text\" id=\"combo\" name=\"combo\" value=\"\"><br><br>\r\n      <input type=\"submit\" value=\"Submit\" id=\"submit\"><br><br>\r\n      <input type=\"file\" id=\"logo\">\r\n      <br><br>\r\n      <label for=\"logs\" id=\"logs\">Logs:</label><br><br>\r\n      <textarea id=\"textarea\" name=\"textarea\" rows=\"4\" cols=\"50\" readonly></textarea>\r\n    </div>\r\n    <div class=\"content\">\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">Web-Streamer</label><br><br>\r\n      <br><br>\r\n      <label for=\"amount\">Links:   </label><input type=\"text\" id=\"r_link\" name=\"link\" value=\"\"><br>\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">URLs(Seperated by \",\")/FilePath</label><br><br>\r\n      <label for=\"threads\">Threads:   </label><input type=\"text\" id=\"r_threads\" name=\"r_threads\" value=\"10\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <label for=\"threads\">Maximal Streaming Time:   </label><input type=\"text\" id=\"r_max\" name=\"r_max\" value=\"5\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br>\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">In Minutes</label><br><br>\r\n      <label for=\"threads\">Stream from Position:   </label><input type=\"text\" id=\"r_pos\" name=\"r_pos\" value=\"0\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br><br>\r\n      <!-- <label for=\"threads\">Like while Streaming:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"r_like-switch\"><span class=\"slider round\"></span></label><br><br> -->\r\n      <label for=\"amount\">Like Probability:   </label><input type=\"text\" id=\"r_like\" name=\"like\" value=\"50\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br>\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">In Percent (%)</label><br><br>\r\n      <!-- <label for=\"amount\">Follow Probability (%):   </label><input type=\"text\" id=\"r_follow\" name=\"like\" value=\"50\"><br><br> -->\r\n      <label for=\"threads\">Time between Streams:   </label><input type=\"text\" id=\"r_timeout\" name=\"r_timeout\" value=\"5\" oninput=\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*?)\\..*/g, '$1').replace(/^0[^.]/, '0');\"><br>\r\n      <label for=\"amount\" style=\"font-size: 15px; color: #545454;\">In Minutes</label><br><br>\r\n      <label for=\"threads\">Use Proxies:   </label>\r\n      <label class=\"switch\"><input type=\"checkbox\" id=\"r_proxy-switch\"><span class=\"slider round\"></span></label><br><br>\r\n      <!-- <div class=\"proxy-select\", id=\"div-proxy-select\">\r\n        <label for=\"gender\">Select a Proxy-Type:   </label>\r\n          <select name=\"proxy\" id=\"proxy-select\">\r\n            <option value=\"residential\">Residential</option>\r\n            <option value=\"datacenter\">Datacenter</option>\r\n          </select><br><br>\r\n      </div> -->\r\n      <label for=\"amount\">Combo Path:   </label><input type=\"text\" id=\"r_combo\" name=\"r_combo\" value=\"\"><br><br>\r\n      <input type=\"submit\" value=\"Submit\" id=\"r_submit\"><br><br>\r\n      <input type=\"file\" id=\"r_logo\">\r\n      <br><br>\r\n      <label for=\"logs\" id=\"r_logs\">Logs:</label><br><br>\r\n      <textarea id=\"r_textarea\" name=\"r_textarea\" rows=\"4\" cols=\"50\" readonly></textarea>\r\n    </div>\r\n  </body>\r\n  <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js\"></script>\r\n  <script>\r\n    $(\"#textarea\").css('opacity','0');\r\n    $(\"#logs\").css('opacity','0');\r\n    window.setInterval(function() {var elem = document.getElementById('textarea'); elem.scrollTop = elem.scrollHeight;}, 1000);\r\n    $(\"#r_textarea\").css('opacity','0');\r\n    $(\"#r_logs\").css('opacity','0');\r\n    window.setInterval(function() {var elem = document.getElementById('r_textarea'); elem.scrollTop = elem.scrollHeight;}, 1000);\r\n    var proxies = \"\";\r\n    $(\"#logo\").css('opacity','0');\r\n    document.getElementById(\"proxy-switch\").onclick = function(e){if (! document.getElementById(\"proxy-switch\").checked) {document.getElementById(\"proxy-switch\").checked = false; proxies = \"\";} else {$(\"#logo\").trigger('click');}};\r\n    $('#logo').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){proxies = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();});\r\n\r\n    var webhook = \"\";\r\n    document.getElementById(\"webhook-switch\").onclick = function(e){\r\n      if (! document.getElementById(\"webhook-switch\").checked) {\r\n        console.log(\"bad\");\r\n        document.getElementById(\"webhook-switch\").checked = false; webhook = \"\";\r\n      } else {\r\n        console.log(\"good\");\r\n        var url = prompt(\"Please enter your webhook:\", \"\");\r\n        if (! url.includes(\"https\")) {\r\n          alert(\"The Webhook-Url was invalid!\");\r\n          document.getElementById(\"webhook-switch\").checked = false;\r\n        } else {\r\n        var xhr = new XMLHttpRequest();\r\n        xhr.open('GET', url, true);\r\n        xhr.responseType = 'json';\r\n        xhr.onload  = function(e) {console.log(xhr.response);\r\n        if(xhr.response.hasOwnProperty('message')){alert(\"The Webhook-Url was invalid!\"); document.getElementById(\"webhook-switch\").checked = false;\r\n          } else {webhook = url;}}\r\n        xhr.send();\r\n      }}};\r\n    document.getElementById(\"submit\").onclick = function(e){\r\n      $.ajax({\r\n        type: \"POST\",\r\n        url: \"{{ url_for(\"dstream\") }}\",\r\n        contentType: \"application/json\",\r\n        data: JSON.stringify({\r\n          link: document.getElementById(\"link\").value,\r\n          threads: document.getElementById(\"threads\").value,\r\n          max: document.getElementById(\"max\").value,\r\n          pos: document.getElementById(\"pos\").value,\r\n          like: document.getElementById(\"like\").value,\r\n          // follow: document.getElementById(\"follow\").value,\r\n          mute: document.getElementById(\"mute\").checked,\r\n          proxies: proxies,\r\n          webhook: webhook,\r\n          path: document.getElementById(\"combo\").value,\r\n        }),\r\n        success: function(res) {\r\n          console.log(res);\r\n          const socket = new WebSocket(res);\r\n          socket.addEventListener('open', () => {\r\n              console.log('Connection established');\r\n                socket.send(\"Update\");\r\n              }\r\n          );\r\n          socket.addEventListener('message', event => {\r\n              console.log('Message from server ', event.data);\r\n              document.getElementById('textarea').value += event.data + \"\\r\\n\";\r\n              // document.getElementById('textarea').value = event.data;\r\n              $(\"#scam\").css('opacity','0');\r\n              $(\"#textarea\").css('opacity','100');\r\n              $(\"#logs\").css('opacity','100');\r\n          });\r\n        },\r\n        error: function(err) {\r\n            console.log(err);\r\n        }\r\n    });\r\n    }\r\n    document.getElementsByClassName(\"content\")[0].style.display = 'none';\r\n    document.getElementsByClassName(\"content\")[1].style.display = 'none';\r\n    document.getElementById(\"desktop\").onclick = function(e) {document.getElementsByClassName(\"content\")[0].style.display = 'block'; document.getElementsByClassName(\"selection\")[0].style.display = 'none';}\r\n    document.getElementById(\"web\").onclick = function(e) {document.getElementsByClassName(\"content\")[1].style.display = 'block'; document.getElementsByClassName(\"selection\")[0].style.display = 'none';}\r\n\r\n\r\n\r\n    var r_proxies = \"\";\r\n    $(\"#r_logo\").css('opacity','0');\r\n    // document.getElementsByClassName(\"proxy-select\")[0].style.display = 'none';\r\n    document.getElementById(\"r_proxy-switch\").onclick = function(e){if (! document.getElementById(\"r_proxy-switch\").checked) {document.getElementById(\"r_proxy-switch\").checked = false; proxies = \"\";} else {$(\"#r_logo\").trigger('click');}};\r\n    $('#r_logo').change( function(event) {\r\n      var tmppath = URL.createObjectURL(event.target.files[0]); var xhr = new XMLHttpRequest(); xhr.open('GET', tmppath, true); xhr.responseType = 'blob';\r\n      xhr.onload = function(e) {if (this.status == 200) {var blob = this.response; var myReader = new FileReader(); myReader.addEventListener(\"loadend\", function(e){r_proxies = e.srcElement.result;}); myReader.readAsText(blob);}};\r\n      xhr.send();\r\n      // document.getElementsByClassName(\"proxy-select\")[0].style.display = 'block';\r\n      });\r\n\r\n      document.getElementById(\"r_submit\").onclick = function(e){\r\n        $.ajax({\r\n          type: \"POST\",\r\n          url: \"{{ url_for(\"wstream\") }}\",\r\n          contentType: \"application/json\",\r\n          data: JSON.stringify({\r\n            link: document.getElementById(\"r_link\").value,\r\n            threads: document.getElementById(\"r_threads\").value,\r\n            max: document.getElementById(\"r_max\").value,\r\n            pos: document.getElementById(\"r_pos\").value,\r\n            timeout: document.getElementById(\"r_timeout\").value,\r\n            like: document.getElementById(\"r_like\").value,\r\n            // follow: document.getElementById(\"r_follow\").value,\r\n            proxies: r_proxies,\r\n            path: document.getElementById(\"r_combo\").value,\r\n          }),\r\n          success: function(res) {\r\n            console.log(res);\r\n            const socket = new WebSocket(res);\r\n            socket.addEventListener('open', () => {\r\n                console.log('Connection established');\r\n                  socket.send(\"Update\");\r\n                }\r\n            );\r\n            socket.addEventListener('message', event => {\r\n                console.log('Message from server ', event.data);\r\n                document.getElementById('r_textarea').value += event.data + \"\\r\\n\";\r\n                // document.getElementById('textarea').value = event.data;\r\n                $(\"#scam\").css('opacity','0');\r\n                $(\"#r_textarea\").css('opacity','100');\r\n                $(\"#r_logs\").css('opacity','100');\r\n            });\r\n          },\r\n          error: function(err) {\r\n              console.log(err);\r\n          }\r\n      });\r\n      }\r\n    </script>\r\n</html>\r\n"
  },
  {
    "path": "mjolnir.py",
    "content": "import traceback, multiprocessing, PySimpleGUI, hostsman, screeninfo, twocaptcha, cv2, pywinauto, urllib, os, ctypes, subprocess, random, string, requests, json, time, threading, websocket, shutil, proxy, psutil, socket, tempfile, webbrowser, warnings, logging, flask_sock\r\nimport matplotlib.pyplot as plt, matplotlib.gridspec as gridspec, selenium.webdriver as wd, numpy as np\r\nfrom selenium.webdriver.chrome.service import Service; from webdriver_manager.chrome import ChromeDriverManager; from selenium.webdriver.chrome.options import Options; from selenium.webdriver.common.by import By; from selenium.common.exceptions import ElementClickInterceptedException\r\nfrom discord_webhook import DiscordWebhook, DiscordEmbed\r\nfrom flask import Flask, request, render_template, redirect; from PIL import Image\r\n\r\nlogging.getLogger('werkzeug').setLevel(logging.ERROR)\r\nlogging.getLogger('WDM').setLevel(logging.NOTSET)\r\nwarnings.simplefilter(\"ignore\", UserWarning)\r\n\r\napp = Flask(__name__, template_folder=\"./frontend\")\r\napp.config['SOCK_SERVER_OPTIONS'] = {'ping_interval': 25}\r\nsock = flask_sock.Sock(app)\r\n\r\nctypes.windll.kernel32.SetConsoleTitleW(\"Mjolnir AiO Tool\")\r\nglobal server, paths\r\nserver, paths = \"http://mjolnir.only-fans.club\", {}\r\nclear = lambda: os.system('cls')\r\n\r\n@sock.route(\"/websockets\")\r\ndef websockets(ws):\r\n    while True:\r\n        if request.args.get(\"ws\") in paths:\r\n            ws.receive()\r\n            rn = 0\r\n            while True:\r\n                if rn != len(paths[request.args.get(\"ws\")]):\r\n                    for i in paths[request.args.get(\"ws\")][rn:]:\r\n                        ws.send(i)\r\n                        rn = len(paths[request.args.get(\"ws\")])\r\n\r\ndef log(path, msg):\r\n    paths[path].append(msg)\r\n\r\nclass General:\r\n    def close_spotify(ws):\r\n        payload = {\"id\":1,\"method\":\"Browser.close\"}\r\n        try: ws.send(json.dumps(payload))\r\n        except: pass\r\n        payload = {\"id\":1,\"method\":\"Browser.crash\"}\r\n        try: ws.send(json.dumps(payload))\r\n        except: pass\r\n\r\n    def proxy_pool(self):\r\n        log(self.websocket_url, \"[PROXY] Spawning ProxyPool\")\r\n        proxy_pool = []\r\n        for proxie in self.proxies: proxy_pool.extend([\"--proxy-pool\", proxie])\r\n        try:\r\n            with proxy.Proxy([\"--log-level\", \"e\", \"--plugins\" , \"proxy.plugin.ProxyPoolPlugin\", *proxy_pool]) as p:\r\n                proxy.sleep_loop()\r\n        except Exception as e: log(self.websocket_url, f\"[ERROR] Couldnt spawn ProxyPool (Error: {str(e)})\")\r\n\r\n    def combo_split(combo):\r\n        try:\r\n            username, password, rest =  combo.split(\":\", 2)\r\n        except:\r\n            try:\r\n                username, password = combo.split(\":\")\r\n            except: return False, False\r\n        return username, password\r\n\r\n    def check_installations(self):\r\n        if not os.path.isdir(self.spotify_path):\r\n            log(self.websocket_url, \"[INSTALLATION] You have to install Spotify!\")\r\n            webbrowser.open(\"https://www.spotify.com/download/windows/\")\r\n            return False\r\n        if not os.path.isdir(\"C:\\Sandbox\"):\r\n            log(self.websocket_url, \"[INSTALLATION] You have to install Sandboxie!\")\r\n            webbrowser.open(\"https://github.com/sandboxie-plus/Sandboxie/releases/download/1.0.22/Sandboxie-Classic-x64-v5.55.22.exe\")\r\n            return False\r\n        return True\r\n\r\n    def set_spotify(self):\r\n        #Setting Language to English\r\n        log(self.websocket_url, \"[SETUP] Setting Spotifys Preferences!\")\r\n        with open(f\"{self.spotify_path}prefs\", \"r\") as f:\r\n            words = ['language=\"en\"' if \"language\" in word else word for word in f.read().splitlines()]\r\n            words = [\"\" if \"autologin\" in word else word for word in words]\r\n            words = [\"\" if \"network\" in word else word for word in words]\r\n            open(f\"{self.spotify_path}prefs\", \"w\").close()\r\n            with open(f\"{self.spotify_path}prefs\", 'w') as f:\r\n                for item in words: f.write(\"%s\\n\" % item)\r\n        #Deleting all users\r\n        log(self.websocket_url, \"[SETUP] Deleting Spotify Users!\")\r\n        try:\r\n            roaming_path = str(self.spotify_path.replace(\"Roaming\", \"Local\"))\r\n            shutil.rmtree(str(roaming_path + \"\\\\Users\"))\r\n            newpath = str(roaming_path + \"\\\\Users\")\r\n            if not os.path.exists(newpath): os.makedirs(newpath)\r\n        except: log(self.websocket_url, \"[WARNING] Couldnt delete Spotify Users!\")\r\n        #Deleting all sandboxes\r\n        log(self.websocket_url, \"[SETUP] Deleting Mjolnir-Sandboxes!\")\r\n        try:\r\n            subfolders = [f.path for f in os.scandir(\"C:\\Sandbox\") if f.is_dir()]\r\n            for folder in [f.path for f in os.scandir(subfolders[0]) if f.is_dir()]:\r\n                if \"Mjolnir\" in str(folder):\r\n                    os.chmod(folder, 0o777)\r\n                    shutil.rmtree(folder) #os.remove(folder)\r\n        except Exception as e: log(self.websocket_url, \"[WARNING] Couldnt delete Sandboxes! (You have to run the .py with Admin Permissions)\")\r\n\r\n    def kill_spotify(self):\r\n        try: subprocess.check_call([\"TASKKILL\", \"/F\", \"/IM\", \"spotify.exe\"], stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)\r\n        except: pass\r\n\r\nclass DesktopGenerator:\r\n    def __init__(self, websocket_url, proxies, minAge, maxAge, gender, order, alternative):\r\n        #Global ClassValues\r\n        self.start_time, self.generating = time.time(), True\r\n        self.websocket_url, self.proxies, self.minAge, self.maxAge, self.gender, self.order = websocket_url, proxies.split(\"\\r\\n\"), minAge if minAge else \"1970\", maxAge if maxAge else \"1980\", gender if gender else \"male\", order if order else \"day\"\r\n        self.generated, self.failed, self.current_failed, self.accounts_mins = 0, 0, 0, []\r\n        self.spotify_path = str(str(os.getenv('APPDATA')) + \"\\\\Spotify\\\\\")\r\n        with tempfile.NamedTemporaryFile(suffix='.txt', prefix=os.path.basename(__file__)) as tf:\r\n            temp_txt = tf.name\r\n        self.temp_txt, self.alternative, self.waiting = temp_txt, alternative, 0\r\n        #Checking and Modifying Installations\r\n        if not General.check_installations(self): return\r\n        General.set_spotify(self)\r\n\r\n    def generator(self, amount, names, passwords, threads, output_path, webhook_url):\r\n        #Logging to server\r\n        try: requests.post(f\"{server}/generator/desktop\", json={\"amount\": amount}, proxies=urllib.request.getproxies())\r\n        except: pass\r\n        #Setting Variable if not set (Maybe Temp)\r\n        output_path = output_path.replace('\"', \"\")\r\n        names = requests.get(\"https://raw.githubusercontent.com/jeanphorn/wordlist/master/usernames.txt\").text.splitlines() if not names else names.split(\"\\r\\n\")\r\n        passwords = requests.get(\"https://raw.githubusercontent.com/berzerk0/Probable-Wordlists/master/Real-Passwords/WPA-Length/Top4800-WPA-probable-v2.txt\").text.splitlines() if not passwords else passwords.split(\"\\r\\n\")\r\n        output_path = \"output.txt\" if not output_path else output_path\r\n        #Local Values\r\n        threads, amount, count = int(threads), int(amount), 0\r\n        if any(self.proxies): threading.Thread(target=General.proxy_pool, args=(self,)).start() #Spawning ProxyPool on Port 8899\r\n        else: log(self.websocket_url, \"[PROXY] No proxy server will be used\")\r\n        if webhook_url: threading.Thread(target=self.threaded_webhook, args=(webhook_url, threads, self.temp_txt,)).start()\r\n        while count < amount:\r\n            self.current_failed, self.waiting = 0, 0\r\n            log(self.websocket_url, \"[SPOTIFY] Killing all instances\")\r\n            # General.kill_spotify(self)\r\n            time.sleep(2)\r\n            ports = []\r\n            self.threadz = range(int(amount - count) if int(amount - count) <= threads else threads)\r\n            for i in self.threadz:\r\n                while True:\r\n                    r_port = random.randint(19000, 19900)\r\n                    if r_port not in ports: ports.append(r_port); break\r\n                # Starting Spotify in Sandbox\r\n                boks, SbieIni, Start  = f\"Mjolnir{random.randint(0,9999999999)}\", \"C:\\Program Files\\Sandboxie\\SbieIni.exe\", \"C:\\Program Files\\Sandboxie\\Start.exe\"\r\n                better_lines = []\r\n                for line in open(\"C:\\Windows\\Sandboxie.ini\", \"r\").read().splitlines(): better_lines.append(''.join(ch for ch in line if ch.isalnum()))\r\n                if any(boks in better_line for better_line in better_lines):\r\n                    try: subprocess.call(f'{Start} /box:{boks} delete_sandbox', False); subprocess.call(f\"{SbieIni} set {boks} Enabled n\", False); subprocess.call(f\"{SbieIni} set {boks} Enabled y\", False)\r\n                    except: log(self.websocket_url, \"[ERROR] You have to run the .py with Admin Permissions\"); return False\r\n                else:\r\n                    try: subprocess.call(f\"{SbieIni} set {boks} Enabled y\", False)\r\n                    except: log(self.websocket_url, \"[ERROR] You have to run the .py with Admin Permissions\"); return False\r\n                subprocess.call('\"C:\\Program Files\\Sandboxie\\Start.exe\"  /reload', False)\r\n                if any(self.proxies): subprocess.call(f'\"C:\\Program Files\\Sandboxie\\Start.exe\" /box:{boks} \"{self.spotify_path}Spotify.exe\" --mute-audio --remote-debugging-port={r_port} --proxy-server=\"localhost:8899\"', False)\r\n                else: subprocess.call(f'\"C:\\Program Files\\Sandboxie\\Start.exe\" /box:{boks} \"{self.spotify_path}Spotify.exe\" --mute-audio --remote-debugging-port={r_port}', False)\r\n            log(self.websocket_url, \"[SPOTIFY] Spawned all instances\")\r\n            for i in range(len(ports)):\r\n                if i == range(len(ports))[-1]: self.threaded_gen(random.choice(names), str(random.choice(passwords) + random.choice(passwords) + \"&/$!\"), ports[i], output_path)\r\n                else: threading.Thread(target=self.thread, args=([random.choice(names), str(random.choice(passwords) + random.choice(passwords) + \"&/$!\"), ports[i], output_path],)).start()\r\n                count += 1\r\n            amount += self.current_failed\r\n        # General.kill_spotify(self)\r\n        self.generating = False\r\n        log(self.websocket_url, \"[DONE] Done generating all accounts\")\r\n        if webhook_url: self.webhook(webhook_url, threads, int(int(time.time() - self.start_time)/60), self.temp_txt, 'Mjolnir is done Generating!')\r\n\r\n    def type_month(self, ws):\r\n        if self.alternative:\r\n            if self.waiting == self.threadz[-1]:\r\n                for app in pywinauto.Desktop().windows():\r\n                    if \"Spotify\" in str(app) and \"#\" in str(app) and \"Chrome_WidgetWin_0\" in str(app):\r\n                        app.set_focus()\r\n                        time.sleep(0.4)\r\n                        app.type_keys(\"{ENTER}\")\r\n                        time.sleep(0.4)\r\n                        app.type_keys(\"{DOWN}\")\r\n                        time.sleep(0.4)\r\n                        app.type_keys(\"{ENTER}\")\r\n\r\n            self.waiting += 1\r\n        else:\r\n            payload = {\"id\":1,\"method\":\"Input.dispatchKeyEvent\",\"params\": {\"type\":\"keyDown\",\"modifiers\":0,\"code\":\"Enter\",\"key\":\"Enter\",\"windowsVirtualKeyCode\":13,\"nativeVirtualKeyCode\":13,\"autoRepeat\":False,\"isKeypad\":False,\"isSystem\":False}}\r\n            ws.send(json.dumps(payload))\r\n            payload = {\"id\":1,\"method\":\"Input.dispatchKeyEvent\",\"params\": {\"type\":\"char\",\"modifiers\":0,\"code\":\"Enter\",\"key\":\"Enter\",\"windowsVirtualKeyCode\":13,\"nativeVirtualKeyCode\":13,\"autoRepeat\":False,\"isKeypad\":False,\"isSystem\":False, \"text\": \"\\r\", \"unmodifiedText\": \"\\r\"}}\r\n            ws.send(json.dumps(payload))\r\n            payload = {\"id\": 162, \"method\": \"Input.dispatchKeyEvent\", \"params\": {\"type\": \"keyDown\", \"modifiers\": 0, \"code\": \"ArrowDown\", \"key\":\"ArrowDown\", \"windowsVirtualKeyCode\": 40, \"nativeVirtualKeyCode\": 40, \"autoRepeat\": False, \"isKeypad\": False, \"isSystemKey\": False}}\r\n            ws.send(json.dumps(payload))\r\n            payload = {\"id\":1,\"method\":\"Input.dispatchKeyEvent\",\"params\": {\"type\":\"keyDown\",\"modifiers\":0,\"code\":\"Enter\",\"key\":\"Enter\",\"windowsVirtualKeyCode\":13,\"nativeVirtualKeyCode\":13,\"autoRepeat\":False,\"isKeypad\":False,\"isSystem\":False}}\r\n            ws.send(json.dumps(payload))\r\n            payload = {\"id\":1,\"method\":\"Input.dispatchKeyEvent\",\"params\": {\"type\":\"char\",\"modifiers\":0,\"code\":\"Enter\",\"key\":\"Enter\",\"windowsVirtualKeyCode\":13,\"nativeVirtualKeyCode\":13,\"autoRepeat\":False,\"isKeypad\":False,\"isSystem\":False, \"text\": \"\\r\", \"unmodifiedText\": \"\\r\"}}\r\n            ws.send(json.dumps(payload))\r\n\r\n    def threaded_gen(self, name, password, port, output_path):\r\n        rand = ''.join(random.choices(string.ascii_uppercase + string.digits, k=16))\r\n        email = f\"{rand}@gmail.com\"\r\n        time.sleep(5)\r\n        # Connect with Websocket to DebugUrl to Inject Javascript\r\n        try:\r\n            wsUrl = requests.get(f\"http://localhost:{port}/json\").json()[0][\"webSocketDebuggerUrl\"]\r\n        except:\r\n            for i in range(10):\r\n                try: wsUrl = requests.get(f\"http://localhost:{port}/json\").json()[0][\"webSocketDebuggerUrl\"]; break\r\n                except: time.sleep(2)\r\n            else: log(self.websocket_url, \"[ERROR] Couldn´t connect to Spotify!\"); General.close_spotify(ws); return\r\n        ws = websocket.create_connection(wsUrl)\r\n        # Clicking Register Button\r\n        self.inject_js(ws, \"signup-link\", 0)\r\n        time.sleep(4)\r\n        # Typing Email, Password and Username\r\n        self.inject_js(ws, email, 1)\r\n        time.sleep(2)\r\n        payload = {\"id\": 162, \"method\": \"Input.dispatchKeyEvent\", \"params\": {\"type\": \"keyDown\", \"modifiers\": 0, \"code\": \"Tab\", \"key\":\"Tab\", \"windowsVirtualKeyCode\": 9, \"nativeVirtualKeyCode\": 9, \"autoRepeat\": False, \"isKeypad\": False, \"isSystemKey\": False}}\r\n        ws.send(json.dumps(payload))\r\n        self.inject_js(ws, password, 1)\r\n        time.sleep(2)\r\n        payload = {\"id\": 162, \"method\": \"Input.dispatchKeyEvent\", \"params\": {\"type\": \"keyDown\", \"modifiers\": 0, \"code\": \"Tab\", \"key\":\"Tab\", \"windowsVirtualKeyCode\": 9, \"nativeVirtualKeyCode\": 9, \"autoRepeat\": False, \"isKeypad\": False, \"isSystemKey\": False}}\r\n        ws.send(json.dumps(payload))\r\n        self.inject_js(ws, name, 1)\r\n        time.sleep(2)\r\n        #Clicking Submit Button\r\n        self.inject_js(ws, \"signup-button\", 0)\r\n        time.sleep(4)\r\n        if self.order == \"day\":\r\n            # Typing Birthday\r\n            self.inject_js(ws, \"day-field\", 2)\r\n            self.inject_js(ws, str(random.randint(1, 28)), 1)\r\n            #Selecting Random Month\r\n            time.sleep(1)\r\n            payload = {\"id\": 162, \"method\": \"Input.dispatchKeyEvent\", \"params\": {\"type\": \"keyDown\", \"modifiers\": 0, \"code\": \"Tab\", \"key\":\"Tab\", \"windowsVirtualKeyCode\": 9, \"nativeVirtualKeyCode\": 9, \"autoRepeat\": False, \"isKeypad\": False, \"isSystemKey\": False}}\r\n            ws.send(json.dumps(payload))\r\n            self.type_month(ws)\r\n        else:\r\n            #Selecting Random Month\r\n            self.type_month(ws)\r\n            # Typing Birthday\r\n            time.sleep(1)\r\n            self.inject_js(ws, \"day-field\", 2)\r\n            self.inject_js(ws, str(random.randint(1, 28)), 1)\r\n        #Typing Birthyear\r\n        time.sleep(1)\r\n        self.inject_js(ws, \"year-field\", 2)\r\n        time.sleep(0.5)\r\n        self.inject_js(ws, str(random.randint(int(self.minAge), int(self.maxAge))), 1)\r\n        # Selecting a Gender\r\n        time.sleep(1)\r\n        ea = {\"female\": 0, \"male\": 1, \"none\": 2}\r\n        try: payload = {\"id\": 1337, \"method\": \"Runtime.evaluate\", \"params\": {\"expression\": f\"document.getElementsByClassName('FormRadioSelect__label')[{ea[self.gender.lower()]}].click()\"}}\r\n        except: payload = {\"id\": 1337, \"method\": \"Runtime.evaluate\", \"params\": {\"expression\": \"document.getElementsByClassName('FormRadioSelect__label')[1].click()\"}}\r\n        ws.send(json.dumps(payload))\r\n        # Clicking Tos, Privacy and Submit Buttons\r\n        self.inject_js(ws, \"agree-tos-2-field\", 0)\r\n        self.inject_js(ws, \"agree-privacy-2-field\", 0)\r\n        self.inject_js(ws, \"signup-button\", 0)\r\n        time.sleep(6)\r\n        #\"title\": \"Spotify - Login\"\r\n        title = requests.get(f\"http://localhost:{port}/json\").json()[0][\"title\"]\r\n        if title == \"Spotify - Login\":\r\n            log(self.websocket_url, \"[ERROR] Bad Proxy (Use ISP/Residential)\")\r\n            self.failed += 1\r\n            self.current_failed += 1\r\n            General.close_spotify(ws)\r\n            return\r\n        log(self.websocket_url, f\"[SUCCESS] Successfully created: {email}:{password}\")\r\n        with open(output_path,'a') as output_file:\r\n            write_string = ''\r\n            for i in [email, password, name]: write_string += str(i + ':')\r\n            output_file.write(str(write_string[:-1] + '\\n'))\r\n        with open(self.temp_txt, 'a') as output_file:\r\n            write_string = ''\r\n            for i in [email, password, name,]: write_string += str(i + ':')\r\n            output_file.write(str(write_string[:-1] + '\\n'))\r\n        self.generated += 1\r\n        General.close_spotify(ws)\r\n\r\n    def inject_js(self, ws, text, i):\r\n        if i == 0:\r\n            payload = {\"id\": 1337, \"method\": \"Runtime.evaluate\", \"params\": {\"expression\": f\"document.getElementById('{text}').click()\"}}\r\n            ws.send(json.dumps(payload))\r\n        elif i == 1:\r\n            payload = {\"id\": 1337, \"method\": \"Input.insertText\", \"params\": {\"text\": text}}\r\n            ws.send(json.dumps(payload))\r\n        else:\r\n            payload = {\"id\": 1337, \"method\": \"Runtime.evaluate\", \"params\": {\"expression\": f\"document.getElementById('{text}').focus()\"}}\r\n            ws.send(json.dumps(payload))\r\n\r\n    def webhook(self, url, threads, runtime, accounts_path, title):\r\n        webhook = DiscordWebhook(username='Mjolnir AiO Tool', url=url, avatar_url=\"https://www.freepnglogos.com/uploads/spotify-logo-png/spotify-icon-marilyn-scott-0.png\")\r\n        # create embed object for webhook\r\n        embed = DiscordEmbed(title=title, description=f'Total Generated Accounts: {self.generated}', color='1DB954')\r\n        # set image\r\n        runtime = 1 if runtime == 0  else runtime\r\n        Minutes = list(range(int(runtime)+1))\r\n        Accounts = self.accounts_mins\r\n        Accounts[-1] = self.generated\r\n        if len(Minutes) != len(Accounts):\r\n            Minutes = list(range(len(Accounts)))\r\n\r\n        fig = plt.figure()\r\n        fig.patch.set_facecolor('#2F3136')\r\n        ax = plt.axes()\r\n        ax.set_facecolor('#23272A')\r\n        plt.plot(Minutes, Accounts, color=\"#99AAB5\")\r\n        plt.title('Your Mjolnir Desktop-Generator Stats', color=\"#99AAB5\")\r\n        plt.xlabel('Minutes', color=\"#99AAB5\")\r\n        plt.ylabel('Accounts', color=\"#99AAB5\")\r\n        with tempfile.NamedTemporaryFile(suffix='.png', prefix=os.path.basename(__file__), delete=False) as tf:\r\n            plt.savefig(tf.name)\r\n            files = {'image': ('graph.png', open(tf.name, 'rb'))}\r\n            r = requests.post(\"https://api.imgbb.com/1/upload?key=5b4141e2323a62c75b4fe2c5e5d58cec\", files=files).json()\r\n            url = r[\"data\"][\"display_url\"].replace(\"\\/\", \"/\")\r\n        embed.set_image(url=url)\r\n        # add fields to embed\r\n        embed.add_embed_field(name=':computer: Computer Name :computer:', value=socket.gethostname(), inline=False)\r\n        embed.add_embed_field(name=':gear: CPU Usage :gear:', value=f\"{str(100 - int(psutil.cpu_times_percent(interval=0.4, percpu=False).idle))} %\", inline=False)\r\n        embed.add_embed_field(name=':bar_chart: RAM Usage :bar_chart:', value=f\"{psutil.virtual_memory().percent} %\", inline=False)\r\n        embed.add_embed_field(name=\":file_cabinet: Threads :file_cabinet:\", value=str(threads), inline=False)\r\n        embed.add_embed_field(name=\":stopwatch: Runtime :stopwatch:\", value=f\"{int(runtime)} Minutes\", inline=False)\r\n        embed.add_embed_field(name=\":chart_with_upwards_trend: Accounts Generated :chart_with_upwards_trend:\", value=str(self.generated), inline=False)\r\n        embed.add_embed_field(name=\":x: Failed Generations :x:\", value=str(self.failed), inline=False)\r\n        # add embed object to webhook\r\n        webhook.add_embed(embed)\r\n        webhook.execute()\r\n        with open(accounts_path, \"rb\") as f:\r\n            webhook.add_file(file=f.read(), filename='accounts.txt')\r\n        webhook.remove_embeds()\r\n        webhook.execute(remove_embeds=True)\r\n\r\n    def update_minutes(self):\r\n        while self.generating:\r\n            self.accounts_mins.append(self.generated)\r\n            time.sleep(60)\r\n\r\n    def threaded_webhook(self, url, threads, accounts_path):\r\n        threading.Thread(target=self.update_minutes).start()\r\n        runtimed = 1\r\n        while self.generating:\r\n            time.sleep(600)\r\n            if self.generating:\r\n                self.webhook(url, threads, int(runtimed * 10), accounts_path, 'Your Mjolnir Desktop-Generator Stats')\r\n                runtimed += 1\r\n\r\n    def thread(self, args):\r\n        threading.Thread(target=self.threaded_gen, args=(tuple(args))).start()\r\n\r\nclass WebGenerator:\r\n    def __init__(self, amount, threads, captcha_key, names, passwords, output_path, websocket_url, proxies, minAge, maxAge, gender):\r\n        #Global ClassValues\r\n        self.websocket_url, self.proxies, self.minAge, self.maxAge, self.gender = websocket_url, proxies.split(\"\\r\\n\") if proxies else \"\", minAge if minAge else \"1970\", maxAge if maxAge else \"1980\", gender if gender else \"male\"\r\n        self.output_path, self.threads, self.amount, self.count, self.captcha_key, self.pngs = \"output.txt\" if not output_path else output_path, int(threads) if threads else 10, int(amount) if amount else 1, 0, captcha_key, []\r\n        self.names = requests.get(\"https://raw.githubusercontent.com/jeanphorn/wordlist/master/usernames.txt\").text.splitlines() if not names else names.split(\"\\r\\n\")\r\n        self.passwords = requests.get(\"https://raw.githubusercontent.com/berzerk0/Probable-Wordlists/master/Real-Passwords/WPA-Length/Top4800-WPA-probable-v2.txt\").text.splitlines() if not passwords else passwords.split(\"\\r\\n\")\r\n        #Checking and Modifying Installations\r\n        if any(self.proxies): threading.Thread(target=General.proxy_pool, args=(self,)).start() #Spawning ProxyPool on Port 8899\r\n        else: log(self.websocket_url, \"[PROXY] No proxy server will be used\")\r\n\r\n    def generator(self):\r\n        #Logging to server\r\n        try: requests.post(f\"{server}/generator/web\", json={\"amount\": self.amount}, proxies=urllib.request.getproxies())\r\n        except: pass\r\n        #Local Values\r\n        while self.count < self.amount:\r\n            self.current_failed, self.waiting = 0, 0\r\n            self.threadz = range(int(self.amount - self.count) if int(self.amount - self.count) <= self.threads else self.threads)\r\n            try:\r\n                solver = twocaptcha.TwoCaptcha(self.captcha_key)\r\n                balance = solver.balance()\r\n                if balance < 0.01:log(self.websocket_url, \"[ERROR] Your 2Captcha Balance is to low\"); return\r\n                else: log(self.websocket_url, f\"[INFO] Your 2Captcha Balance is: {balance}\")\r\n            except Exception as e: log(self.websocket_url, f\"[ERROR] The key {self.captcha_key} is not a 2Captcha Key (ErrorMsg: {str(e)})\"); return\r\n            for i in self.threadz:\r\n                if i == range(len(self.threadz))[-1]: self.threaded_gen()\r\n                else: threading.Thread(target=self.threaded_gen).start()\r\n                self.count += 1\r\n            self.delete_captcha_images()\r\n            self.amount += self.current_failed\r\n        log(self.websocket_url, \"[DONE] Done generating all accounts\")\r\n        try:\r\n            for path in self.pngs: os.remove(f'{path}.png'); os.remove(f'{path}.jpg')\r\n        except: log(self.websocket_url, \"[WARNIN] Couldnt delete all Captcha Images\")\r\n\r\n    def delete_captcha_images(self):\r\n        onlyfiles = [str(os.path.dirname(__file__) + \"\\\\\" + f) for f in os.listdir(os.path.dirname(__file__)) if os.path.isfile(os.path.join(os.path.dirname(__file__), f))]\r\n        for file in onlyfiles:\r\n            if \"temp\" in file and (\".png\" in file or \".jpg\" in file):\r\n                os.remove(file)\r\n\r\n    def captcha(self, path):\r\n        solver = twocaptcha.TwoCaptcha(self.captcha_key, defaultTimeout=60, pollingInterval=5)\r\n        result = solver.coordinates(f'{path}.jpg')\r\n        return result\r\n\r\n    def screenalize(self, page):\r\n        while True:\r\n            path = \"temp\" + ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(8))\r\n            page.screenshot(path=f\"{path}.png\")\r\n            im = cv2.imread(f'{path}.png')\r\n            try:\r\n                Y, X = np.where(np.all(im==[232, 115, 26], axis=2))\r\n                im = Image.open(open(f\"{path}.png\", 'rb'))\r\n                im = im.crop((X[0], Y[0], X[-1], Y[-1]))\r\n            except: return False\r\n            else:\r\n                rgb_im = im.convert('RGB')\r\n                rgb_im.save(f'{path}.jpg')\r\n                try:\r\n                    captcha = self.captcha(path)\r\n                except: return False\r\n                code = captcha[\"code\"].replace(\"coordinates:\", \"\")\r\n                for i in code.split(\";\"):\r\n                    x, y = i.split(\",\")[0].replace(\"x=\", \"\"), i.split(\",\")[1].replace(\"y=\", \"\")\r\n                    page.mouse.click(int(int(x)+X[0]), int(int(y)+Y[0]), delay=10)\r\n                    time.sleep(1)\r\n\r\n    def threaded_gen(self):\r\n        rand = ''.join(random.choices(string.ascii_uppercase + string.digits, k=16))\r\n        email, password, name = f\"{rand}@gmail.com\", str(random.choice(self.passwords) + random.choice(self.passwords) + \"&/$!\"), random.choice(self.names)\r\n        from playwright.sync_api import sync_playwright\r\n        with sync_playwright() as p:\r\n            browser = p.chromium.launch(headless=False, proxy={\"server\": \"http://localhost:8899\"} if any(self.proxies) else None)\r\n            page = browser.new_page()\r\n            try: page.goto(\"https://www.spotify.com/signup\")\r\n            except: log(self.websocket_url, \"[ERROR] Proxy Server timed out\"); return\r\n            time.sleep(2)\r\n            try: page.click(\"id=onetrust-accept-btn-handler\", timeout=10)\r\n            except:\r\n                try: page.evaluate('document.getElementById(\"onetrust-close-btn-container\").firstElementChild.click()')\r\n                except: log(self.websocket_url, \"[WARNING] Coulnt click cookie-banner\")\r\n            try:\r\n                page.evaluate('document.getElementById(\"onetrust-consent-sdk\").style.visibility = \"visible\"')\r\n                page.evaluate('document.getElementById(\"onetrust-consent-sdk\").style.display = \"none\"')\r\n            except: log(self.websocket_url, \"[WARNING] Coulnt hide cookie-banner\")\r\n            page.set_viewport_size({\"width\": int(screeninfo.get_monitors()[0].width) - 100, \"height\": int(screeninfo.get_monitors()[0].height) - 200})\r\n            page.evaluate('document.getElementsByTagName(\"iframe\")[0].setAttribute(\"src\", document.getElementsByTagName(\"iframe\")[0].getAttribute(\"src\").split(\"hl=\")[0] + \"hl=en&\" + document.getElementsByTagName(\"iframe\")[0].getAttribute(\"src\").split(\"hl=\")[1].split(\"&\")[1])')\r\n            typings = {\"id=email\": email, \"id=confirm\": email, \"id=password\": password, \"id=displayname\": name, \"id=day\": str(random.randint(1, 27)), \"id=year\": str(random.randint(int(self.minAge), int(self.maxAge)))}\r\n            for types in typings.items():\r\n                page.type(types[0], types[1], delay=10)\r\n                time.sleep(0.4)\r\n            # page.select_option('role=select[name=\"month\"]', str(random.randint(1, 12)))\r\n            page.locator('[name=\"month\"]').select_option(f\"0{str(random.randint(2, 9))}\")\r\n            # page.evaluate(f'document.getElementById(\"month\").value = \"0{str(random.randint(1, 9))}\"')\r\n            time.sleep(1)\r\n            genders = {\"male\": \"male\", \"female\": \"female\", \"none\": \"nonbinary\"}\r\n            page.evaluate(f'document.getElementById(\"gender_option_{genders[self.gender]}\").click()')\r\n            time.sleep(1)\r\n            try: page.click(\"id=terms-conditions-checkbox\", timeout=10)\r\n            except:\r\n                try: page.evaluate('document.getElementById(\"terms-conditions-checkbox\").click()')\r\n                except: log(self.websocket_url, \"[WARNING] Coulnt click Terms Checkbox\")\r\n            # page.evaluate('document.getElementById(\"terms-conditions-checkbox\").click()')\r\n            time.sleep(1)\r\n            page.frame_locator(\"iframe[role='presentation']\").first.locator('#recaptcha-anchor').click()\r\n            # page.evaluate('document.querySelector(\"[role=presentation]\").click()')\r\n            time.sleep(2)\r\n            ye, prev_coords = 0, []\r\n            for i in range(3): page.mouse.wheel(delta_y=screeninfo.get_monitors()[0].height, delta_x=0)\r\n            while True:\r\n                if ye % 2:\r\n                    x, y = prev_coords[-1]\r\n                    page.mouse.click(int(x)-10, int(y)-10, delay=10)\r\n                else:\r\n                    path = \"temp\" + ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(8))\r\n                    page.screenshot(path=f\"{path}.png\")\r\n                    im = cv2.imread(f'{path}.png')\r\n                    try:\r\n                        Y, X = np.where(np.all(im==[232, 115, 26], axis=2))\r\n                        prev_coords.append([X[-1], Y[-1]])\r\n                        im = Image.open(open(f\"{path}.png\", 'rb'))\r\n                        im = im.crop((X[0], Y[0], X[-1], Y[-1]))\r\n                    except: break\r\n                    else:\r\n                        rgb_im = im.convert('RGB')\r\n                        rgb_im.save(f'{path}.jpg')\r\n                        im.close()\r\n                        try: rgb_im.close()\r\n                        except: pass\r\n                        try: captcha = self.captcha(path)\r\n                        except: log(self.websocket_url, \"[ERROR] Couldnt solve captcha\"); self.current_failed += 1; browser.close(); return\r\n                        code = captcha[\"code\"].replace(\"coordinates:\", \"\")\r\n                        for i in code.split(\";\"):\r\n                            try: x, y = i.split(\",\")[0].replace(\"x=\", \"\"), i.split(\",\")[1].replace(\"y=\", \"\")\r\n                            except: log(self.websocket_url, f\"[WARNING] Couldnt retreive Coordinates from 2Captcha-Answer: {i}\"); continue\r\n                            page.mouse.click(int(int(x)+X[0]), int(int(y)+Y[0]), delay=10)\r\n                            time.sleep(1)\r\n                ye += 1\r\n            page.evaluate('document.querySelector(\"[type=submit]\").click()')\r\n            for i in range(10):\r\n                if not \"Sign up\" in page.title():\r\n                    log(self.websocket_url, f\"[SUCCESS] Successfully created: {email}:{password}\")\r\n                    with open(self.output_path, 'a') as output_file:\r\n                        write_string = ''\r\n                        for i in [email, password, name]: write_string += str(i + ':')\r\n                        output_file.write(str(write_string[:-1] + '\\n'))\r\n                    break\r\n                time.sleep(2)\r\n            else:\r\n                self.current_failed += 1\r\n                log(self.websocket_url, f\"[ERROR] There was an uncaught Error, retrying!\")\r\n            browser.close()\r\n            self.pngs.append(path)\r\n\r\nclass RequestGenerator:\r\n    def __init__(self, path, proxies):\r\n        self.websocket_url, self.proxies = path, proxies.split(\"\\r\\n\")\r\n\r\n    def generator(self, amount, threads, names, passwords, output_path):\r\n        #Logging to server\r\n        try: requests.post(f\"{server}/generator/request\", json={\"amount\": amount}, proxies=urllib.request.getproxies())\r\n        except: pass\r\n        names = requests.get(\"https://raw.githubusercontent.com/jeanphorn/wordlist/master/usernames.txt\").text.splitlines() if not names else names.split(\"\\r\\n\")\r\n        passwords = requests.get(\"https://raw.githubusercontent.com/berzerk0/Probable-Wordlists/master/Real-Passwords/WPA-Length/Top4800-WPA-probable-v2.txt\").text.splitlines() if not passwords else passwords.split(\"\\r\\n\")\r\n        threads = 10 if not threads else int(threads)\r\n        self.count, amount = 0, int(amount)\r\n        output_path = \"output.txt\" if not output_path else output_path.replace('\"', \"\")\r\n        while self.count < amount:\r\n            for i in range(int(amount - self.count) if int(amount - self.count) <= threads else threads):\r\n                name, password, proxy = random.choice(names), random.choice(passwords), random.choice(self.proxies)\r\n                threading.Thread(target=self.threaded_gen, args=(name, str(random.choice(passwords) + random.choice(passwords) + \"&/$!\"), proxy, output_path)).start()\r\n            time.sleep(2)\r\n        log(self.websocket_url, \"[DONE] Done generating all accounts\")\r\n\r\n    def threaded_gen(self, name, password, proxy, output_path):\r\n        email = \"\".join(random.choice(string.ascii_lowercase+string.digits) for i in range(8)) + \"@\" + \"\".join(random.choice(string.ascii_lowercase) for i in range(5)) + \".com\"\r\n        try:\r\n            headers={\"Accept-Encoding\": \"gzip\",\r\n                     \"Accept-Language\": \"en-US\",\r\n                     \"App-Platform\": \"Android\",\r\n                     \"Connection\": \"Keep-Alive\",\r\n                     \"Content-Type\": \"application/x-www-form-urlencoded\",\r\n                     \"Host\": \"spclient.wg.spotify.com\",\r\n                     \"User-Agent\": \"Spotify/8.6.72 Android/29 (SM-N976N)\",\r\n                     \"Spotify-App-Version\": \"8.6.72\",\r\n                     \"X-Client-Id\": \"\".join(random.choice(string.ascii_lowercase+string.digits) for i in range(32))}\r\n\r\n            payload = {\"creation_point\": \"client_mobile\",\r\n                    \"gender\": \"male\" if random.randint(0, 1) else \"female\",\r\n                    \"birth_year\": random.randint(1990, 2000),\r\n                    \"displayname\": name,\r\n                    \"iagree\": \"true\",\r\n                    \"birth_month\": random.randint(1, 11),\r\n                    \"password_repeat\": password,\r\n                    \"password\": password,\r\n                    \"key\": \"142b583129b2df829de3656f9eb484e6\",\r\n                    \"platform\": \"Android-ARM\",\r\n                    \"email\": email,\r\n                    \"birth_day\": random.randint(1, 20)}\r\n            r = requests.post('https://spclient.wg.spotify.com/signup/public/v1/account/', headers=headers, data=payload, proxies={'http': f'http://{proxy}', 'https': f'http://{proxy}'} if proxy else None, timeout=15) #, proxies={'http': str('http://' + proxy)}\r\n            if r.status_code==200:\r\n                if r.json()['status']==1:\r\n                    with open(output_path,'a') as output_file:\r\n                        write_string = ''\r\n                        for i in [email, password, name]: write_string += str(i + ':')\r\n                        output_file.write(str(write_string[:-1] + '\\n'))\r\n                    self.count += 1\r\n                    log(self.websocket_url, f\"[SUCCESS] Successfully created: {email}:{password}\")\r\n                else:\r\n                    log(self.websocket_url, f\"[ERROR] An error occurred: {str(r.json())}\")\r\n                    # acc_queue.put([f'Error{random.randint(1, 99999)}', \"Could not create the account, some errors occurred\", \"If you dont know what the following means, feel free to create a ticket!\", str(r.json())])\r\n            else: log(self.websocket_url, f\"[ERROR] Couldnt load the URL. Status Code: {str(r.status_code)}\")\r\n                # acc_queue.put([f'Error{random.randint(1, 99999)}', \"If you dont know what the error means, feel free to create a ticket!\", \"Could not load the page. Response code: \", str(r.status_code)])\r\n        except Exception as e: log(self.websocket_url, f\"[ERROR] An error occurred: {str(e)}\")\r\n            # acc_queue.put([f'Error{random.randint(1, 99999)}', \"There was an error while generating the code\", \"If you dont know what the error means, feel free to create a ticket!\", str(e)])\r\n\r\nclass Liker:\r\n    def __init__(self, link, threads, timeout, proxies, proxy_type, path, url):\r\n        self.link, self.threads, self.timeout, self.combo_path, self.websocket_url, self.count = link, int(threads) if threads else 10, int(timeout) if timeout else 5, path, url, 0\r\n        self.proxy_type, self.proxies, self.driver_exe = proxy_type, proxies.split(\"\\r\\n\"), ChromeDriverManager().install()\r\n        os.environ['WDM_LOG'] = '0'\r\n\r\n    def liker(self):\r\n        combos = open(self.combo_path, \"r\").read().splitlines()\r\n        #Logging to server\r\n        try: requests.post(f\"{server}/liker\", json={\"amount\": len(combos)}, proxies=urllib.request.getproxies())\r\n        except: pass\r\n        if any(self.proxies): threading.Thread(target=General.proxy_pool, args=(self,)).start() #Spawning ProxyPool on Port 8899\r\n        while self.count < len(combos):\r\n            for i in range(int(len(combos) - self.count) if int(len(combos) - self.count) <= self.threads else self.threads):\r\n                combo = combos[i]\r\n                if i == range(int(len(combos) - self.count) if int(len(combos) - self.count) <= self.threads else self.threads)[-1]:\r\n                    self.threaded_liker(combo)\r\n                else: threading.Thread(target=self.threaded_liker, args=(combo,))\r\n        log(self.websocket_url, \"[DONE] Done liking with all accounts\")\r\n\r\n    def threaded_liker(self, combo):\r\n        username, password = General.combo_split(combo)\r\n        if not username: log(self.websocket_url, f\"[ERROR] There was an error with the Combo: {combo}\"); return\r\n        options = Options()\r\n        for item in [\"--headless\", \"--no-sandbox\", \"--disable-dev-shm-usage\", '--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36', '--no-sandbox', '--log-level=3', '--lang=en', \"--window-size=1920,1080\", \"--mute-audio\"]:\r\n            options.add_argument(item)\r\n        if any(self.proxies): options.add_argument('--proxy-server=\"localhost:8899\"')\r\n        options.ignore_protected_mode_settings = True\r\n        driver = wd.Chrome(service=Service(self.driver_exe), options=options)\r\n        driver.get(\"https://accounts.spotify.com/login\")\r\n        for _ in range(5):\r\n            try: driver.find_element(By.ID, \"login-username\").send_keys(user); break\r\n            except: log(self.websocket_url, f\"[REDO] Site didnt load: {combo} ({_ + 1})\"); time.sleep(5)\r\n        else: log(self.websocket_url, f\"[ERROR] Site didnt load: {combo}\"); driver.close(); return\r\n        driver.find_element(By.ID, \"login-password\").send_keys(pw)\r\n        driver.find_element(By.ID, \"login-button\").click()\r\n        if not \"status\" in driver.current_url:\r\n            for _ in range(5):\r\n                log(self.websocket_url, f\"[REDO] Retrying to login: {combo} ({_ + 1})\")\r\n                try: driver.find_element(By.ID, \"login-button\").click()\r\n                except: pass\r\n                time.sleep(6)\r\n                if \"status\" in driver.current_url: break\r\n            else: log(self.websocket_url, f\"[ERROR] Couldnt login: {combo}\"); driver.close(); return\r\n        driver.get(self.link)\r\n        time.sleep(5)\r\n        try: driver.find_element(By.ID, \"onetrust-accept-btn-handler\").click()\r\n        except: pass\r\n        for _, button in enumerate(driver.find_elements(By.XPATH, \"//button[@data-testid='add-button']\")):\r\n            if _ == 0:\r\n                try: button.click()\r\n                except ElementClickInterceptedException: pass\r\n        log(self.websocket_url, f\"[SUCCESS] Successfully liked: {combo}\")\r\n        self.count += 1\r\n        driver.quit()\r\n\r\nclass Checker:\r\n    def __init__(self, threads, proxies, proxy_type, max, combo_path, path):\r\n        self.threads, self.max, self.combo_path, self.websocket_url = int(threads) if threads else 10, int(max) if max else 5, combo_path, path\r\n        self.proxy_type, self.proxies = proxy_type, proxies.split(\"\\r\\n\")\r\n        self.count, self.valid = 0, 0\r\n        os.environ['WDM_LOG'] = '0'\r\n        self.driver_exe = ChromeDriverManager().install()\r\n\r\n    def checker(self):\r\n        combos = open(self.combo_path, \"r\").read().splitlines()\r\n        #Logging to server\r\n        try: requests.post(f\"{server}/checker\", json={\"amount\": len(combos)}, proxies=urllib.request.getproxies())\r\n        except: pass\r\n        if any(self.proxies): threading.Thread(target=General.proxy_pool, args=(self,)).start() #Spawning ProxyPool on Port 8899\r\n        while self.count < len(combos):\r\n            threadz = range(int(len(combos) - self.count) if int(len(combos) - self.count) <= self.threads else self.threads)\r\n            for i in threadz:\r\n                combo = combos[i]\r\n                if i == threadz[-1]:\r\n                    self.threaded_checker(combo)\r\n                else: threading.Thread(target=self.threaded_checker, args=(combo,)).start()\r\n        log(self.websocket_url, f\"[VALID] {self.valid} / [INVALID] {self.count - self.valid}\")\r\n        log(self.websocket_url, \"[DONE] Done checking with all accounts\")\r\n\r\n    def threaded_checker(self, combo):\r\n        username, password = General.combo_split(combo)\r\n        if not username: log(self.websocket_url, f\"[ERROR] There was an error with the Combo: {combo}\"); return\r\n        options = Options()\r\n        l = ['--log-level=3', '--lang=en', \"--window-size=1920,1080\", \"--mute-audio\", \"--log-level=3\", \"disable-logging\"]\r\n        if any(self.proxies): l.append('--proxy-server=\"localhost:8899\"')\r\n        for item in l:\r\n            options.add_argument(item)\r\n        options.ignore_protected_mode_settings = True\r\n        driver = wd.Chrome(service=Service(self.driver_exe), options=options)\r\n        driver.get(\"https://accounts.spotify.com/en/login\")\r\n        driver.find_element(By.ID, \"login-username\").send_keys(username)\r\n        driver.find_element(By.ID, \"login-password\").send_keys(password)\r\n        driver.find_element(By.ID, \"login-button\").click()\r\n        for _ in range(self.max):\r\n            time.sleep(1)\r\n            if driver.current_url == \"https://accounts.spotify.com/en/status\":\r\n                log(self.websocket_url, f\"[VALID] {combo}\")\r\n                self.valid += 1\r\n                break\r\n        else: log(self.websocket_url, f\"[INVALID] {combo}\")\r\n        self.count += 1\r\n        driver.quit()\r\n\r\nclass MailChecker:\r\n    def __init__(self, threads, proxies, max, combo_path, path):\r\n        self.threads, self.max, self.combo_path, self.websocket_url = int(threads) if threads else 10, int(max) if max else 5, combo_path, path\r\n        self.proxies = proxies.split(\"\\r\\n\")\r\n        self.count, self.valid = 0, 0\r\n\r\n    def checker(self):\r\n        combos = open(self.combo_path, \"r\").read().splitlines()\r\n        #Logging to server\r\n        try: requests.post(f\"{server}/mailchecker\", json={\"amount\": len(combos)}, proxies=urllib.request.getproxies())\r\n        except: pass\r\n        while self.count < len(combos):\r\n            threadz = range(int(len(combos) - self.count) if int(len(combos) - self.count) <= self.threads else self.threads)\r\n            for i in threadz:\r\n                combo = combos[i]\r\n                if i == threadz[-1]:\r\n                    self.threaded_checker(combo)\r\n                else: threading.Thread(target=self.threaded_checker, args=(combo,)).start()\r\n        log(self.websocket_url, f\"[VALID] {self.valid} / [INVALID] {self.count - self.valid}\")\r\n        log(self.websocket_url, \"[DONE] Done checking with all accounts\")\r\n\r\n    def threaded_checker(self, combo):\r\n        username, password = General.combo_split(combo)\r\n        if not username: log(self.websocket_url, f\"[ERROR] There was an error with the Combo: {combo}\"); return\r\n\r\n        prox = random.choice(self.proxies)\r\n        proxy = {\"https\": f\"http://{prox}\", \"http\": f\"http://{prox}\"} if any(self.proxies) else {}\r\n        if requests.post(\"https://spclient.wg.spotify.com/signup/public/v1/account\", params={'validate': '1', 'email': username}, proxies=proxy).json()[\"status\"] == 20:\r\n            log(self.websocket_url, f\"[VALID] {combo}\")\r\n            self.valid += 1\r\n        else: log(self.websocket_url, f\"[INVALID] {combo}\")\r\n        self.count += 1\r\n\r\nclass DesktopStreamer:\r\n    def __init__(self, combo_path, threads, proxies, link, max, like, follow, mute, pos, webhook, path):\r\n        pos = 0 if not pos else pos\r\n        self.threads, self.start_time, self.running = int(threads) if threads else 10, time.time(), 0\r\n        self.combo_path, self.max, self.like, self.follow, self.mute, self.pos = combo_path.replace('\"', \"\"), int(max) if max else 5, int(like) if like else 0, int(follow) if follow else 0, mute if mute else True, int(int(pos) if int(pos) else 1) + 1\r\n        self.proxies, self.webhook_url, self.websocket_url = proxies.split(\"\\r\\n\"), webhook, path\r\n        self.spotify_path = str(str(os.getenv('APPDATA')) + \"\\\\Spotify\\\\\")\r\n        link = link.replace('\"', \"\").replace(\" \", \"\")\r\n        if os.path.exists(link): self.links = open(link).read().splitlines()\r\n        else: self.links = link.split(\",\")\r\n        self.streamed, self.stream_failed, self.stream_current_failed, self.streaming, self.likes, self.current_streaming = 0, 0, 0, 0, 0, False\r\n        self.streams_mins, self.streaming_mins, self.like_mins = [], [], []\r\n        #Checking and Modifying Installations\r\n        if not General.check_installations(self): return\r\n        General.set_spotify(self)\r\n\r\n    def streamer(self):\r\n        #Local Values\r\n        combo, count, self.current_streaming = open(self.combo_path, \"r\").read().splitlines(), 0, True\r\n        combo_len = len(combo)\r\n        #Logging to server\r\n        try: requests.post(f\"{server}/streamer/desktop\", json={\"amount\": len(combo)}, proxies=urllib.request.getproxies())\r\n        except: pass\r\n        combo = [x for x in combo if x]\r\n        if any(self.proxies): threading.Thread(target=General.proxy_pool, args=(self,)).start() #Spawning ProxyPool on Port 8899\r\n        else: log(self.websocket_url, \"[PROXY] No proxy server will be used\")\r\n        if self.webhook_url: threading.Thread(target=self.threaded_webhook).start()\r\n\r\n\r\n        while count < combo_len:\r\n            while self.running != 0:\r\n                time.sleep(5)\r\n            self.current_failed, self.waiting = 0, 0\r\n            log(self.websocket_url, \"[SPOTIFY] Killing all instances\")\r\n            # General.kill_spotify(self)\r\n            time.sleep(2)\r\n            ports = []\r\n            self.threadz = range(int(combo_len - count) if int(combo_len - count) <= self.threads else self.threads)\r\n            self.running = int(combo_len - count) if int(combo_len - count) <= self.threads else self.threads\r\n            for i in self.threadz:\r\n                while True:\r\n                    r_port = random.randint(19000, 19900)\r\n                    if r_port not in ports: ports.append(r_port); break\r\n                # Starting Spotify in Sandbox\r\n                boks, SbieIni, Start  = f\"Mjolnir{random.randint(0,9999999999)}\", \"C:\\Program Files\\Sandboxie\\SbieIni.exe\", \"C:\\Program Files\\Sandboxie\\Start.exe\"\r\n                better_lines = []\r\n                for line in open(\"C:\\Windows\\Sandboxie.ini\", \"r\").read().splitlines(): better_lines.append(''.join(ch for ch in line if ch.isalnum()))\r\n                if any(boks in better_line for better_line in better_lines):\r\n                    try: subprocess.call(f'{Start} /box:{boks} delete_sandbox', False); subprocess.call(f\"{SbieIni} set {boks} Enabled n\", False); subprocess.call(f\"{SbieIni} set {boks} Enabled y\", False)\r\n                    except: log(self.websocket_url, \"[ERROR] You have to run the .py with Admin Permissions\"); return False\r\n                else:\r\n                    try: subprocess.call(f\"{SbieIni} set {boks} Enabled y\", False)\r\n                    except: log(self.websocket_url, \"[ERROR] You have to run the .py with Admin Permissions\"); return False\r\n                subprocess.call('\"C:\\Program Files\\Sandboxie\\Start.exe\"  /reload', False)\r\n                if any(self.proxies): subprocess.call(f'\"C:\\Program Files\\Sandboxie\\Start.exe\" /box:{boks} \"{self.spotify_path}Spotify.exe\" --mute-audio --remote-debugging-port={r_port} --proxy-server=\"localhost:8899\"', False)\r\n                else: subprocess.call(f'\"C:\\Program Files\\Sandboxie\\Start.exe\" /box:{boks} \"{self.spotify_path}Spotify.exe\" --mute-audio --remote-debugging-port={r_port}', False)\r\n            log(self.websocket_url, \"[SPOTIFY] Spawned all instances\")\r\n            current_combo = []\r\n            for i in range(len(ports)):\r\n                if i == range(len(ports))[-1]:\r\n                    self.threaded_streamer(combo[i], ports[i], self.like, self.max)\r\n                else: threading.Thread(target=self.thread, args=([combo[i], ports[i], self.like, self.max],)).start()\r\n                current_combo.append(combo[i])\r\n                count += 1\r\n            for comb in current_combo: combo.remove(comb)\r\n        # General.kill_spotify(self)\r\n        self.current_streaming = False\r\n        log(self.websocket_url, \"[DONE] Done streaming with all accounts\")\r\n        if self.webhook_url: self.webhook(int(int(time.time() - self.start_time)/60), 'Mjolnir is done Streaming!')\r\n\r\n    def inject_js(self, ws, text, i):\r\n        if i == 0:\r\n            payload = {\"id\": 1337, \"method\": \"Runtime.evaluate\", \"params\": {\"expression\": f\"document.getElementById('{text}').click()\"}}\r\n            ws.send(json.dumps(payload))\r\n        elif i == 1:\r\n            payload = {\"id\": 1337, \"method\": \"Input.insertText\", \"params\": {\"text\": text}}\r\n            ws.send(json.dumps(payload))\r\n        else:\r\n            payload = {\"id\": 1337, \"method\": \"Runtime.evaluate\", \"params\": {\"expression\": f\"document.getElementById('{text}').focus()\"}}\r\n            ws.send(json.dumps(payload))\r\n\r\n    def threaded_streamer(self, combo, port, like, wait):\r\n        username, password = General.combo_split(combo)\r\n        if not username: log(self.websocket_url, f\"[ERROR] There was an error with the Combo: {combo}\"); return\r\n        try:\r\n            wsUrl = requests.get(f\"http://localhost:{port}/json\").json()[0][\"webSocketDebuggerUrl\"]\r\n        except:\r\n            for i in range(10):\r\n                try: wsUrl = requests.get(f\"http://localhost:{port}/json\").json()[0][\"webSocketDebuggerUrl\"]; break\r\n                except: time.sleep(2)\r\n            else: log(self.websocket_url, \"[ERROR] Couldn´t connect to Spotify!\"); General.close_spotify(ws); return\r\n        ws = websocket.create_connection(wsUrl)\r\n        try: self.inject_js(ws, \"login-button\", 0)\r\n        except: pass\r\n        time.sleep(2)\r\n        self.inject_js(ws, \"GlueTextInput-1\", 0)\r\n        for i in range(10):\r\n            payload = {\"id\": 162, \"method\": \"Input.dispatchKeyEvent\", \"params\": {\"type\": \"keyDown\", \"modifiers\": 2, \"code\": \"Back\", \"key\":\"Back\", \"windowsVirtualKeyCode\": 8, \"nativeVirtualKeyCode\": 8, \"autoRepeat\": False, \"isKeypad\": False, \"isSystemKey\": False}}\r\n            ws.send(json.dumps(payload))\r\n        self.inject_js(ws, username, 1)\r\n        payload = {\"id\": 162, \"method\": \"Input.dispatchKeyEvent\", \"params\": {\"type\": \"keyDown\", \"modifiers\": 0, \"code\": \"Tab\", \"key\":\"Tab\", \"windowsVirtualKeyCode\": 9, \"nativeVirtualKeyCode\": 9, \"autoRepeat\": False, \"isKeypad\": False, \"isSystemKey\": False}}\r\n        ws.send(json.dumps(payload))\r\n        self.inject_js(ws, password, 1)\r\n        self.inject_js(ws, \"login-button\", 0)\r\n        time.sleep(4)\r\n        title = requests.get(f\"http://localhost:{port}/json\").json()[0][\"title\"]\r\n        if title == \"Spotify - Login\":\r\n            log(self.websocket_url, f\"[ERROR] Couldnt login: {combo}\")\r\n            self.stream_failed += 1\r\n            self.stream_current_failed += 1\r\n            General.close_spotify(ws)\r\n            return\r\n        if self.mute:\r\n            time.sleep(2)\r\n            payload = {\"id\":1337, \"method\":\"Runtime.evaluate\", \"params\":{\"expression\": 'document.querySelectorAll(\"[aria-describedby=volume-icon]\")[0].click()'}}\r\n            ws.send(json.dumps(payload))\r\n            time.sleep(2)\r\n        for url in random.sample(self.links, k=len(self.links)):\r\n            ea = '\"/search\"'\r\n            payload = {\"id\":1337, \"method\":\"Runtime.evaluate\", \"params\":{\"expression\": f\"document.querySelectorAll('[href={ea}]')[0].click()\"}}\r\n            ws.send(json.dumps(payload))\r\n            time.sleep(2)\r\n            self.inject_js(ws, url, 1)\r\n            payload = {\"id\":1,\"method\":\"Input.dispatchKeyEvent\",\"params\": {\"type\":\"keyDown\",\"modifiers\":0,\"code\":\"Enter\",\"key\":\"Enter\",\"windowsVirtualKeyCode\":13,\"nativeVirtualKeyCode\":13,\"autoRepeat\":False,\"isKeypad\":False,\"isSystem\":False}}\r\n            ws.send(json.dumps(payload))\r\n            payload = {\"id\":1,\"method\":\"Input.dispatchKeyEvent\",\"params\": {\"type\":\"char\",\"modifiers\":0,\"code\":\"Enter\",\"key\":\"Enter\",\"windowsVirtualKeyCode\":13,\"nativeVirtualKeyCode\":13,\"autoRepeat\":False,\"isKeypad\":False,\"isSystem\":False, \"text\": \"\\r\", \"unmodifiedText\": \"\\r\"}}\r\n            ws.send(json.dumps(payload))\r\n            time.sleep(2)\r\n            for i in range(-(-self.pos//2)+1):\r\n                payload = {\"id\":1337, \"method\":\"Input.emulateTouchFromMouseEvent\", \"params\":{\"button\": \"none\", \"clickCount\": 0, \"deltaX\": 0, \"deltaY\": -153.24323918368367, \"modifiers\": 0, \"type\": \"mouseWheel\", \"x\": 493, \"y\": 190}}\r\n                ws.send(json.dumps(payload))\r\n            if \"show\" in url:\r\n                log(f\"[ERROR] Cant stream Shows: {url}\")\r\n                continue\r\n            if int(requests.get(url).text.split(\" songs\")[0].split()[-1]) < self.pos - 1 or \"episode\" in url or \"track\" in url:\r\n                ea = '\"action-bar-row\"'\r\n                payload = {\"id\":1337, \"method\":\"Runtime.evaluate\", \"params\":{\"expression\": f\"document.querySelectorAll('[data-testid={ea}]')[0].children[0].click()\"}}\r\n                ws.send(json.dumps(payload))\r\n            else:\r\n                ea = f\"'{self.pos}'\"\r\n                payload = {\"id\":1337, \"method\":\"Runtime.evaluate\", \"params\":{\"expression\": f'document.querySelector(\"[aria-rowindex={ea}]\").children[0].children[0].children[0].children[1].click()'}}\r\n                ws.send(json.dumps(payload))\r\n            log(self.websocket_url, f\"[SUCCESS] Account successfully streaming: {combo}\")\r\n            self.streaming += 1\r\n            if any(random.choices([1,0], [self.like/100, int(100-self.like)/100])):\r\n                time.sleep(2)\r\n                ea = '\"action-bar-row\"'\r\n                payload = {\"id\":1337, \"method\":\"Runtime.evaluate\", \"params\":{\"expression\": f\"document.querySelectorAll('[data-testid={ea}]')[0].children[1].click()\"}}\r\n                ws.send(json.dumps(payload))\r\n                self.likes += 1\r\n                log(self.websocket_url, f\"[SUCCESS] Account successfully liked: {combo}\")\r\n            # if random.choices([1,0], [self.follow/100, int(100-self.follow)/100]):\r\n            #     time.sleep(2)\r\n            #     payload = {\"id\":1337, \"method\":\"Runtime.evaluate\", \"params\":{\"expression\": f\"document.querySelectorAll('[data-testid={ea}]')[0].children[1].click()\"}}\r\n            #     ws.send(json.dumps(payload))\r\n            #     self.follows += 1\r\n            #     log(self.websocket_url, f\"[SUCCESS] Account successfully followed: {combo}\")\r\n            time.sleep(wait*60)\r\n        log(self.websocket_url, f\"[DONE] Account done streaming: {combo}\")\r\n        self.streamed += 1\r\n        self.streaming -= 1\r\n        self.running -= 1\r\n        General.close_spotify(ws)\r\n        return\r\n\r\n    def webhook(self, runtime, title):\r\n        webhook = DiscordWebhook(username='Mjolnir AiO Tool', url=self.webhook_url, avatar_url=\"https://www.freepnglogos.com/uploads/spotify-logo-png/spotify-icon-marilyn-scott-0.png\")\r\n        # create embed object for webhook\r\n        embed = DiscordEmbed(title=title, description=f'Total Streaming Accounts: {self.streaming}', color='1DB954')\r\n        # set image\r\n        runtime = 1 if runtime == 0  else runtime\r\n        Minutes = list(range(int(runtime)+1))\r\n        self.streams_mins[-1] = self.streamed\r\n        self.streaming_mins[-1] = self.streaming\r\n        self.like_mins[-1] = self.likes\r\n        if len(Minutes) != len(self.streams_mins): Minutes = list(range(len(self.streams_mins)))\r\n        Seconds = [round(x* 0.20,2) for x in range(len(self.streaming_mins))]\r\n\r\n        gs = gridspec.GridSpec(2, 2)\r\n        fig= plt.figure()\r\n        fig.subplots_adjust(left=None, bottom=None, right=None, top=None, wspace=None, hspace=0.4)\r\n        fig.patch.set_facecolor('#2F3136')\r\n        fig.suptitle('Your Mjolnir Desktop-Streamer Stats', color=\"#99AAB5\")\r\n\r\n        ax = plt.subplot(gs[1, 0]) # row 0, col 0\r\n        ax.set_facecolor('#23272A')\r\n        ax.set_title('Streamed')\r\n        plt.plot(Minutes, self.streams_mins, color=\"#99AAB5\")\r\n        ax = plt.subplot(gs[1, 1]) # row 0, col 0\r\n        ax.set_facecolor('#23272A')\r\n        ax.set_title('Likes')\r\n        plt.plot(Minutes, self.like_mins, color=\"#99AAB5\")\r\n\r\n        ax = plt.subplot(gs[0, :]) # row 0, col 0\r\n        ax.set_facecolor('#23272A')\r\n        ax.set_title('Streaming')\r\n        plt.plot(Seconds, self.streaming_mins, color=\"#99AAB5\")\r\n        with tempfile.NamedTemporaryFile(suffix='.png', prefix=os.path.basename(__file__), delete=False) as tf:\r\n            plt.savefig(tf.name)\r\n            files = {'image': ('graph.png', open(tf.name, 'rb'))}\r\n            r = requests.post(\"https://api.imgbb.com/1/upload?key=5b4141e2323a62c75b4fe2c5e5d58cec\", files=files).json()\r\n            url = r[\"data\"][\"display_url\"].replace(\"\\/\", \"/\")\r\n        embed.set_image(url=url)\r\n        # add fields to embed\r\n        embed.add_embed_field(name=':computer: Computer Name :computer:', value=socket.gethostname(), inline=False)\r\n        embed.add_embed_field(name=':gear: CPU Usage :gear:', value=f\"{str(100 - int(psutil.cpu_times_percent(interval=0.4, percpu=False).idle))} %\", inline=False)\r\n        embed.add_embed_field(name=':bar_chart: RAM Usage :bar_chart:', value=f\"{psutil.virtual_memory().percent} %\", inline=False)\r\n        embed.add_embed_field(name=\":file_cabinet: Threads :file_cabinet:\", value=str(self.threads), inline=False)\r\n        embed.add_embed_field(name=\":stopwatch: Runtime :stopwatch:\", value=f\"{int(runtime)} Minutes\", inline=False)\r\n        embed.add_embed_field(name=\":stopwatch: Maximal Runtime :stopwatch:\", value=f\"{int(self.max)} Minutes\", inline=False)\r\n        embed.add_embed_field(name=\":stopwatch: Likes :stopwatch:\", value=str(self.likes), inline=False)\r\n        embed.add_embed_field(name=\":white_check_mark: Accounts Streamed :white_check_mark:\", value=str(self.streamed), inline=False)\r\n        embed.add_embed_field(name=\":chart_with_upwards_trend: Accounts Currently Streaming :chart_with_upwards_trend:\", value=str(self.streaming), inline=False)\r\n        embed.add_embed_field(name=\":x: Failed Streams :x:\", value=str(self.stream_failed), inline=False)\r\n        # add embed object to webhook\r\n        webhook.add_embed(embed)\r\n        webhook.execute()\r\n\r\n    def update_minutes(self):\r\n        while self.current_streaming:\r\n            self.streams_mins.append(self.streamed)\r\n            self.like_mins.append(self.likes)\r\n            time.sleep(60)\r\n\r\n    def update_seconds(self):\r\n        while self.current_streaming:\r\n            self.streaming_mins.append(self.streaming)\r\n            time.sleep(20)\r\n\r\n    def threaded_webhook(self):\r\n        threading.Thread(target=self.update_minutes).start()\r\n        threading.Thread(target=self.update_seconds).start()\r\n        runtimed = 1\r\n        while self.current_streaming:\r\n            time.sleep(600)\r\n            if self.current_streaming:\r\n                self.webhook(int(runtimed * 10), 'Your Mjolnir Desktop-Streamer Stats')\r\n                runtimed += 1\r\n\r\n    def thread(self, args):\r\n        threading.Thread(target=self.threaded_streamer, args=(tuple(args))).start()\r\n\r\nclass WebStreamer:\r\n    def __init__(self, combo_path, threads, proxies, link, max, like, pos, webhook, path):\r\n        self.threads, self.count = int(threads) if threads else 10, 0\r\n        self.combo_path, self.max, self.like, self.pos = combo_path.replace('\"', \"\"), int(max) if max else 5, int(like) if like else 0, int(pos) if pos else 0\r\n        self.proxies, self.webhook_url, self.websocket_url = proxies.split(\"\\r\\n\"), webhook, path\r\n        link = link.replace('\"', \"\").replace(\" \", \"\")\r\n        if os.path.exists(link): self.links = open(link).read().splitlines()\r\n        else: self.links = link.split(\",\")\r\n        os.environ['WDM_LOG'], self.driver_exe = '0', ChromeDriverManager().install()\r\n\r\n    def streamer(self):\r\n        combos = open(self.combo_path, \"r\").read().splitlines()\r\n        #Logging to server\r\n        try: requests.post(f\"{server}/streamer/web\", json={\"amount\": len(combos)}, proxies=urllib.request.getproxies())\r\n        except: pass\r\n        if any(self.proxies): threading.Thread(target=General.proxy_pool, args=(self,)).start() #Spawning ProxyPool on Port 8899\r\n        for combo in combos:\r\n            threadz = int(len(combos) - self.count) if int(len(combos) - self.count) <= self.threads else self.threads\r\n            if not int(combos.index(combo) + 1) % threadz:\r\n                self.threaded_streamer(combo)\r\n            else:\r\n                threading.Thread(target=self.threaded_streamer, args=(combo,)).start()\r\n        log(self.websocket_url, \"[DONE] Done streaming with all accounts\")\r\n\r\n    def threaded_streamer(self, combo):\r\n        username, password = General.combo_split(combo)\r\n        if not username: log(self.websocket_url, f\"[ERROR] There was an error with the Combo: {combo}\"); return\r\n        options = Options()\r\n        l = ['--log-level=3', '--lang=en', \"--window-size=1920,1080\", \"--mute-audio\", \"--log-level=3\", \"disable-logging\"]\r\n        if any(self.proxies): l.append('--proxy-server=\"localhost:8899\"')\r\n        for item in l: options.add_argument(item)\r\n        options.ignore_protected_mode_settings = True\r\n        driver = wd.Chrome(service=Service(self.driver_exe), options=options)\r\n        driver.get(\"https://accounts.spotify.com/login\")\r\n        time.sleep(3)\r\n        driver.find_element(By.ID, \"login-username\").send_keys(username)\r\n        time.sleep(1)\r\n        driver.find_element(By.ID, \"login-password\").send_keys(password)\r\n        time.sleep(1)\r\n        driver.find_element(By.ID, \"login-button\").click()\r\n        i=0\r\n        while not \"status\" in driver.current_url and i < 15:\r\n            try: driver.find_element(By.ID, \"login-button\").click()\r\n            except: pass\r\n            time.sleep(2)\r\n            if \"status\" in driver.current_url: break\r\n            i+=1\r\n        else:\r\n            if i == 15: log(self.websocket_url, f\"[ERROR] Couldnt login: {combo}\"); driver.quit(); return\r\n        time.sleep(5)\r\n        try: driver.find_element(By.ID, \"onetrust-accept-btn-handler\").click()\r\n        except: pass\r\n        for url in random.sample(self.links, k=len(self.links)):\r\n            driver.get(url)\r\n            for _ in range(15):\r\n                try: driver.execute_script('document.querySelector(\"[data-testid=play-button]\").click()'); break\r\n                except: time.sleep(2)\r\n            else: log(self.websocket_url, f\"[ERROR] Couldnt stream with account: {combo}\"); driver.quit(); return\r\n\r\n            if any(random.choices([1,0], [self.like/100, int(100-self.like)/100])):\r\n                play_buttons = driver.find_elements(By.XPATH, \"//button[@data-testid='add-button']\")\r\n                for _, button in enumerate(play_buttons):\r\n                    if _ == 0:\r\n                        try: button.click()\r\n                        except ElementClickInterceptedException: pass\r\n                log(self.websocket_url, f\"[SUCCESS] Account successfully liked: {combo}\")\r\n            time.sleep(5)\r\n            driver.minimize_window()\r\n            log(self.websocket_url, f\"[SUCCESS] Account successfully streaming: {combo}\")\r\n            if self.max > 1: time.sleep(random.randint(int(self.max - 1), self.max)*60)\r\n            else: time.sleep(self.max*60)\r\n        log(self.websocket_url, f\"[DONE] Account done streaming: {combo}\")\r\n\r\n@app.route(\"/dgen\", methods=[\"POST\"])\r\ndef dgen():\r\n    amount, threads, names, passwords, proxies, webhook, gender, order, minAge, maxAge, alternative, output_path = request.json.get(\"amount\"), request.json.get(\"threads\"), request.json.get(\"names\"), request.json.get(\"passwords\"), request.json.get(\"proxies\"), request.json.get(\"webhook\"), request.json.get(\"gender\"), request.json.get(\"order\"), request.json.get(\"minAge\"), request.json.get(\"maxAge\"), request.json.get(\"alternative\"), request.json.get(\"path\")\r\n    path = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(10))\r\n    paths[path] = [\"[INFO] Started Generator\"]\r\n    paths[path].append(\"[INFO] Coded by Vinyzu (https://github.com/Vinyzu/MjolnirAiO)\")\r\n    generator = DesktopGenerator(path, proxies, minAge, maxAge, gender, order, alternative)\r\n    threading.Thread(target=generator.generator, args=(amount, names, passwords, threads, output_path, webhook)).start()\r\n    return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n\r\n@app.route(\"/wgen\", methods=[\"POST\"])\r\ndef wgen():\r\n    amount, threads, key, names, passwords, proxies, gender, minAge, maxAge, output_path = request.json.get(\"amount\"), request.json.get(\"threads\"), request.json.get(\"key\"), request.json.get(\"names\"), request.json.get(\"passwords\"), request.json.get(\"proxies\"), request.json.get(\"gender\"), request.json.get(\"minAge\"), request.json.get(\"maxAge\"), request.json.get(\"path\")\r\n    path = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(10))\r\n    paths[path] = [\"[INFO] Started Generator\"]\r\n    paths[path].append(\"[INFO] Coded by Vinyzu (https://github.com/Vinyzu/MjolnirAiO)\")\r\n    generator = WebGenerator(amount, threads, key, names, passwords, output_path, path, proxies, minAge, maxAge, gender)\r\n    threading.Thread(target=generator.generator).start()\r\n    return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n\r\n@app.route(\"/rgen\", methods=[\"POST\"])\r\ndef rgen():\r\n    amount, threads, names, passwords, proxies, output_path = request.json.get(\"amount\"), request.json.get(\"threads\"), request.json.get(\"names\"), request.json.get(\"passwords\"), request.json.get(\"proxies\"), request.json.get(\"path\")\r\n    path = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(10))\r\n    if not output_path: paths[path] = [\"[INFO] Invalid Output Path\"]; return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n    paths[path] = [\"[INFO] Started Generator\"]\r\n    paths[path].append(\"[INFO] Coded by Vinyzu (https://github.com/Vinyzu/MjolnirAiO)\")\r\n    generator = RequestGenerator(path, proxies)\r\n    threading.Thread(target=generator.generator, args=(amount, threads, names, passwords, output_path)).start()\r\n    return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n\r\n@app.route(\"/dstream\", methods=[\"POST\"])\r\ndef dstream():\r\n    link, threads, max, like, follow, mute, pos, proxies, webhook, combo_path = request.json.get(\"link\"), request.json.get(\"threads\"), request.json.get(\"max\"), request.json.get(\"like\"), request.json.get(\"follow\"), request.json.get(\"mute\"), request.json.get(\"pos\"), request.json.get(\"proxies\"), request.json.get(\"webhook\"), request.json.get(\"path\")\r\n    path = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(10))\r\n    if not link or \"https://\" not in link or \"spotify\" not in link: paths[path] = [\"[INFO] Invalid Spotify URL\"]; return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n    if not combo_path: paths[path] = [\"[INFO] Invalid Combo Path\"]; return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n    paths[path] = [\"[INFO] Started Streamer\"]\r\n    paths[path].append(\"[INFO] Coded by Vinyzu (https://github.com/Vinyzu/MjolnirAiO)\")\r\n    streamer = DesktopStreamer(combo_path, threads, proxies, link, max, like, follow, mute, pos, webhook, path)\r\n    threading.Thread(target=streamer.streamer).start()\r\n    return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n\r\n@app.route(\"/wstream\", methods=[\"POST\"])\r\ndef wstream():\r\n    link, threads, max, like, pos, proxies, webhook, combo_path = request.json.get(\"link\"), request.json.get(\"threads\"), request.json.get(\"max\"), request.json.get(\"like\"), request.json.get(\"pos\"), request.json.get(\"proxies\"), request.json.get(\"webhook\"), request.json.get(\"path\")\r\n    path = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(10))\r\n    if not link or \"https://\" not in link or \"spotify\" not in link: paths[path] = [\"[INFO] Invalid Spotify URL\"]; return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n    if not combo_path: paths[path] = [\"[INFO] Invalid Combo Path\"]; return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n    paths[path] = [\"[INFO] Started Streamer\"]\r\n    paths[path].append(\"[INFO] Coded by Vinyzu (https://github.com/Vinyzu/MjolnirAiO)\")\r\n    streamer = WebStreamer(combo_path, threads, proxies, link, max, like, pos, webhook, path)\r\n    threading.Thread(target=streamer.streamer).start()\r\n    return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n\r\n@app.route(\"/liker\", methods=[\"POST\"])\r\ndef liker():\r\n    link, threads, timeout, proxies, proxy_type, combo_path = request.json.get(\"link\"), request.json.get(\"threads\"), request.json.get(\"timeout\"), request.json.get(\"proxies\"), request.json.get(\"proxy_type\"), request.json.get(\"path\").replace('\"', \"\")\r\n    path = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(10))\r\n    if not link or \"https://\" not in link or \"spotify\" not in link: paths[path] = [\"[INFO] Invalid Spotify URL\"]; return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n    if not combo_path: paths[path] = [\"[INFO] Invalid Combo Path\"]; return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n    paths[path] = [\"[INFO] Started Liker\"]\r\n    paths[path].append(\"[INFO] Coded by Vinyzu (https://github.com/Vinyzu/MjolnirAiO)\")\r\n    if not timeout: paths[path].append(\"[INFO] Invalid Timeout, using 10\")\r\n    liker = Liker(link, threads, timeout, proxies, proxy_type, combo_path, path)\r\n    threading.Thread(target=liker.liker).start()\r\n    return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n\r\n@app.route(\"/checker\", methods=[\"POST\"])\r\ndef checker():\r\n    threads, proxies, proxy_type, max, combo_path = request.json.get(\"threads\"), request.json.get(\"proxies\"), request.json.get(\"proxy_type\"), request.json.get(\"max\"), request.json.get(\"path\").replace('\"',  \"\")\r\n    path = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(10))\r\n    if not combo_path: paths[path] = [\"[INFO] Invalid Combo Path\"]; return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n    paths[path] = [\"[INFO] Started Checker\"]\r\n    paths[path].append(\"[INFO] Coded by Vinyzu (https://github.com/Vinyzu/MjolnirAiO)\")\r\n    if not max: paths[path].append(\"[INFO] Invalid Maximum, using 5\")\r\n    checker = Checker(threads, proxies, proxy_type, max, combo_path, path)\r\n    threading.Thread(target=checker.checker).start()\r\n    return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n\r\n@app.route(\"/mchecker\", methods=[\"POST\"])\r\ndef mchecker():\r\n    threads, proxies, max, combo_path = request.json.get(\"threads\"), request.json.get(\"proxies\"), request.json.get(\"max\"), request.json.get(\"path\").replace('\"',  \"\")\r\n    path = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(10))\r\n    if not combo_path: paths[path] = [\"[INFO] Invalid Combo Path\"]; return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n    paths[path] = [\"[INFO] Started Checker\"]\r\n    paths[path].append(\"[INFO] Coded by Vinyzu (https://github.com/Vinyzu/MjolnirAiO)\")\r\n    if not max: paths[path].append(\"[INFO] Invalid Maximum, using 5\")\r\n    checker = MailChecker(threads, proxies, max, combo_path, path)\r\n    threading.Thread(target=checker.checker).start()\r\n    return f\"ws://mjolnir.tool/websockets?ws={path}\"\r\n\r\n@app.route(\"/\")\r\ndef main():\r\n    return redirect(\"http://mjolnir.tool/generator\", code=302)\r\n\r\n@app.route(\"/<ea>\")\r\ndef run_general(ea):\r\n    try: return render_template(f\"{ea}.html\")\r\n    except: return redirect(\"http://mjolnir.tool/generator\", code=302)\r\n\r\nif __name__ == '__main__':\r\n    #Check Version from Server and open Download Url if not newest\r\n    myversion = \"1.0.7\"\r\n    version = requests.get(\"https://raw.githubusercontent.com/Vinyzu/MjolnirAiO/main/README.md\").text.split(\"Mjolnir-v\")[1].split(\"-\")[0]\r\n    if myversion != version: PySimpleGUI.Popup('There is a newer version of Mjolnir!', background_color='#111', button_color=\"#818181\",  no_titlebar=True, font=('Monaco Monospace', 11)); webbrowser.open(\"https://github.com/Vinyzu/MjolnirAiO\")\r\n    multiprocessing.freeze_support()\r\n    try: hostsman.Host().add(\"mjolnir.tool\")\r\n    except: PySimpleGUI.Popup('You have to run Mjolnir as Administrator!', background_color='#111', button_color=\"#818181\",  no_titlebar=True, font=('Monaco Monospace', 11)); exit()\r\n    webbrowser.open(\"http://mjolnir.tool\")\r\n    app.run(\"mjolnir.tool\", 80, debug=True, use_reloader=False)\r\n"
  },
  {
    "path": "requirements.txt",
    "content": "PySimpleGUI\nhostsman\nscreeninfo\n2captcha-python\nopencv-python\npywinauto\nrequests\nwebsocket-client\nproxy.py\npsutil\nflask-sock\nmatplotlib\nselenium\nnumpy\nwebdriver-manager\ndiscord-webhook\nflask\npillow\n"
  },
  {
    "path": "static/style.css",
    "content": "body {\r\n  background-color: #111;\r\n}\r\n\r\n.footer {\r\n  position: fixed;\r\n  left: 0;\r\n  bottom: 0;\r\n  width: 100%;\r\n  background-color: #818181;\r\n  color: white;\r\n  text-align: center;\r\n}\r\n\r\n.sidenav {\r\n  height: 100%;\r\n  width: 250px;\r\n  position: fixed;\r\n  z-index: 1;\r\n  top: 0;\r\n  left: 0;\r\n  background-color: #111;\r\n  overflow-x: hidden;\r\n  padding-top: 20px;\r\n}\r\n\r\na {\r\n  font-family: \"Monaco\", monospace;\r\n  padding: 8px 8px 8px 32px;\r\n  text-decoration: none;\r\n  font-size: 25px;\r\n  color: #818181;\r\n  display: block;\r\n}\r\n\r\n.sidenav a:hover {\r\n  color: #f1f1f1;\r\n}\r\n\r\n.title {\r\n  font-family: \"Monaco\", monospace;\r\n  color: #818181;\r\n  flex-direction: column;\r\n  justify-content: center;\r\n  text-align: center;\r\n}\r\n\r\n.title h1:hover{\r\n  color: #f1f1f1;\r\n}\r\n\r\ntextarea {\r\n  width: 40%;\r\n  height: 150px;\r\n  padding: 12px 20px;\r\n  box-sizing: border-box;\r\n  border: none;\r\n  font-size: 16px;\r\n  font-family: \"Monaco\", monospace;\r\n  background-color: #818181;\r\n  color: #f1f1f1;\r\n  flex-direction: column;\r\n  justify-content: center;\r\n  text-align: center;\r\n}\r\n\r\n.selection {\r\n  font-size: 20px;\r\n  font-family: \"Monaco\", monospace;\r\n  color: #818181;\r\n  flex-direction: column;\r\n  justify-content: center;\r\n  text-align: center;\r\n}\r\n\r\n.selection input {\r\n  border-radius: 25px;\r\n  background: #818181;\r\n  padding: 10px;\r\n  border:none;\r\n  width: 170px;\r\n}\r\n\r\n.content {\r\n  font-size: 20px;\r\n  font-family: \"Monaco\", monospace;\r\n  color: #818181;\r\n  flex-direction: column;\r\n  justify-content: center;\r\n  text-align: center;\r\n}\r\n\r\n.content input {\r\n  border-radius: 25px;\r\n  background: #818181;\r\n  padding: 10px;\r\n  border:none;\r\n  width: 80px;\r\n}\r\n\r\n\r\n.switch {\r\n  position: relative;\r\n  display: inline-block;\r\n  width: 60px;\r\n  height: 34px;\r\n}\r\n\r\n.switch input {\r\n  opacity: 0;\r\n  width: 0;\r\n  height: 0;\r\n}\r\n\r\n.slider {\r\n  position: absolute;\r\n  cursor: pointer;\r\n  top: -5px;\r\n  left: 20px;\r\n  right: -20px;\r\n  bottom: 5px;\r\n  background-color: #818181;\r\n  -webkit-transition: .4s;\r\n  transition: .4s;\r\n}\r\n\r\n.slider:before {\r\n  position: absolute;\r\n  content: \"\";\r\n  height: 26px;\r\n  width: 26px;\r\n  left: 4px;\r\n  bottom: 4px;\r\n  background-color: white;\r\n  -webkit-transition: .4s;\r\n  transition: .4s;\r\n}\r\n\r\ninput:checked + .slider {\r\n  background-color: #ccc;\r\n}\r\n\r\ninput:focus + .slider {\r\n  box-shadow: 0 0 1px #f1f1f1;\r\n}\r\n\r\ninput:checked + .slider:before {\r\n  -webkit-transform: translateX(26px);\r\n  -ms-transform: translateX(26px);\r\n  transform: translateX(26px);\r\n}\r\n\r\n/* Rounded sliders */\r\n.slider.round {\r\n  border-radius: 34px;\r\n}\r\n\r\n.slider.round:before {\r\n  border-radius: 50%;\r\n}\r\n\r\nselect {\r\n  font-family: \"Monaco\", monospace;\r\n  color: #f1f1f1;\r\n  border-radius: 20px;\r\n  /* margin: 50px; */\r\n  width: 150px;\r\n  padding: 5px 35px 5px 5px;\r\n  font-size: 16px;\r\n  border: 1px solid #CCC;\r\n  height: 34px;\r\n  -webkit-appearance: none;\r\n  -moz-appearance: none;\r\n  appearance: none;\r\n  background-color: #818181;\r\n  border: none;\r\n}\r\n\r\nselect::-ms-expand {display: none;}\r\n\r\n@media screen and (min-width:0\\0) {select {background: none\\9; padding: 5px\\9;}}\r\n\r\ninput {\r\n  font-size: 15px;\r\n  font-family: \"Monaco\", monospace;\r\n  color: #f1f1f1;\r\n}\r\n"
  },
  {
    "path": "usages.md",
    "content": "## Recommended Usage\n\n#### Generator\n\n```\n  http://mjolnir.tool/generator\n```\n\n Type     | Recommended Usage              |\n :------- | :------------------------- |\n| `Desktop Generator` | Stable Generator For Free |\n| `Desktop Generator` | (A bit) unstable Generator with Captcha Requirement  |\n| `Request Generator` | Fast Generator For Liking (Streams dont count) |\n\n\n#### Streamer\n\n```\n  http://mjolnir.tool/streamer\n```\n\n Type     | Recommended Usage              |\n :------- | :------------------------- |\n| `Desktop Streamer` | (Workload heavy) Streamer with Webhook |\n| `Web Streamer` | Basic Streamer you can find elsewhere  |\n\n#### Liker\n\n```\n  http://mjolnir.tool/liker\n```\n\n Type     | Recommended Usage              |\n :------- | :------------------------- |\n| `Liker` | Fast Like-Botting, works best with Request Generator |\n\n#### Checker\n\n```\n  http://mjolnir.tool/checker\n```\n\n Type     | Recommended Usage              |\n :------- | :------------------------- |\n| `Checker` | Slower Web-based Checker checking email:pass |\n| `Mail Checker` | Fast Request-based Checker only checking email |\n"
  }
]