![EntropyAnalysis](https://mauricelambert.github.io/info/python/security/EntropyAnalysis.gif "EntropyAnalysis")
# EntropyAnalysis
## Description
This package analyzes file entropy (shannon entropy) for forensic or
malware analysis
## Requirements
This package require:
- python3
- python3 Standard Library
Optional:
- matplotlib (matplotlib is not installed by EntropyAnalysis, if you want GUI charts you should install it.)
## Installation
```bash
python3 -m pip install EntropyAnalysis
# The following line is optional (requirements for GUI charts)
python3 -m pip install matplotlib
```
```bash
git clone "https://github.com/mauricelambert/EntropyAnalysis.git"
cd "EntropyAnalysis"
python3 -m pip install .
```
## Usages
### Command line
```bash
EntropyAnalysis # Using CLI package executable
python3 -m EntropyAnalysis # Using python module
python3 EntropyAnalysis.pyz # Using python executable
EntropyAnalysis.exe # Using python Windows executable
EntropyAnalysis packed.exe
EntropyAnalysis -c packed.exe
EntropyAnalysis --all-characters packed.exe
EntropyAnalysis -f -C packed.exe
EntropyAnalysis -p 1024 packed.exe
EntropyAnalysis -o -k 4096 packed.exe
EntropyAnalysis -k 4096 -p 1024 packed.exe
EntropyAnalysis -u https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.so
```
### Python script
```python
from EntropyAnalysis import *
from urllib.request import urlopen
get_full_file_entropy(open('packed.exe', 'rb'))
charts_chunks_file_entropy(open('packed.exe', 'rb'))
charts_chunks_file_entropy(urlopen('https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.dll'), chunk_size=2048, part_size=512)
for score in get_chunks_file_entropy(open('packed.exe', 'rb')):
print(score)
for score in get_chunks_file_entropy(urlopen('https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.dll'), chunk_size=2048):
print(score)
print_chunks_file_entropy(open('packed.exe', 'rb'))
print_parts_chunks_file_entropy(open('packed.exe', 'rb'))
print_chunks_file_entropy(urlopen('https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.dll'), chunk_size=2048, colors=True)
print_parts_chunks_file_entropy(urlopen('https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.dll'), chunk_size=2048, part_size=512, colors=True)
```
## Links
- [Pypi](https://pypi.org/project/EntropyAnalysis)
- [Github](https://github.com/mauricelambert/EntropyAnalysis)
- [Documentation](https://mauricelambert.github.io/info/python/security/EntropyAnalysis.html)
- [Python executable](https://mauricelambert.github.io/info/python/security/EntropyAnalysis.pyz)
- [Python Windows executable](https://mauricelambert.github.io/info/python/security/EntropyAnalysis.exe)
## License
Licensed under the [GPL, version 3](https://www.gnu.org/licenses/).
Raw data
{
"_id": null,
"home_page": "https://github.com/mauricelambert/EntropyAnalysis",
"name": "EntropyAnalysis",
"maintainer": "Maurice Lambert",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "Maurice Lambert <mauricelambert434@gmail.com>",
"keywords": "entropy,entropy-analysis,malware-analysis,file-analysis,forensic,disk-analysis,security,cybersecurity",
"author": "Maurice Lambert",
"author_email": "Maurice Lambert <mauricelambert434@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/7d/b9/69e707efcde30a86032a8806ac67f191949366874c9677874a3725fa3f60/EntropyAnalysis-1.0.0.tar.gz",
"platform": "Windows",
"description": "![EntropyAnalysis](https://mauricelambert.github.io/info/python/security/EntropyAnalysis.gif \"EntropyAnalysis\")\n\n# EntropyAnalysis\n\n## Description\n\nThis package analyzes file entropy (shannon entropy) for forensic or\nmalware analysis\n\n## Requirements\n\nThis package require:\n - python3\n - python3 Standard Library\n\nOptional:\n - matplotlib (matplotlib is not installed by EntropyAnalysis, if you want GUI charts you should install it.)\n\n## Installation\n\n```bash\npython3 -m pip install EntropyAnalysis\n\n# The following line is optional (requirements for GUI charts)\npython3 -m pip install matplotlib\n```\n\n```bash\ngit clone \"https://github.com/mauricelambert/EntropyAnalysis.git\"\ncd \"EntropyAnalysis\"\npython3 -m pip install .\n```\n\n## Usages\n\n### Command line\n\n```bash\nEntropyAnalysis # Using CLI package executable\npython3 -m EntropyAnalysis # Using python module\npython3 EntropyAnalysis.pyz # Using python executable\nEntropyAnalysis.exe # Using python Windows executable\n\nEntropyAnalysis packed.exe\nEntropyAnalysis -c packed.exe\nEntropyAnalysis --all-characters packed.exe\nEntropyAnalysis -f -C packed.exe\nEntropyAnalysis -p 1024 packed.exe\nEntropyAnalysis -o -k 4096 packed.exe\nEntropyAnalysis -k 4096 -p 1024 packed.exe\nEntropyAnalysis -u https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.so\n```\n\n### Python script\n\n```python\nfrom EntropyAnalysis import *\nfrom urllib.request import urlopen\n\nget_full_file_entropy(open('packed.exe', 'rb'))\n\ncharts_chunks_file_entropy(open('packed.exe', 'rb'))\ncharts_chunks_file_entropy(urlopen('https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.dll'), chunk_size=2048, part_size=512)\n\nfor score in get_chunks_file_entropy(open('packed.exe', 'rb')):\n print(score)\n\nfor score in get_chunks_file_entropy(urlopen('https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.dll'), chunk_size=2048):\n print(score)\n\nprint_chunks_file_entropy(open('packed.exe', 'rb'))\nprint_parts_chunks_file_entropy(open('packed.exe', 'rb'))\n\nprint_chunks_file_entropy(urlopen('https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.dll'), chunk_size=2048, colors=True)\nprint_parts_chunks_file_entropy(urlopen('https://github.com/mauricelambert/FastRC4/releases/download/v0.0.1/librc4.dll'), chunk_size=2048, part_size=512, colors=True)\n```\n\n## Links\n\n - [Pypi](https://pypi.org/project/EntropyAnalysis)\n - [Github](https://github.com/mauricelambert/EntropyAnalysis)\n - [Documentation](https://mauricelambert.github.io/info/python/security/EntropyAnalysis.html)\n - [Python executable](https://mauricelambert.github.io/info/python/security/EntropyAnalysis.pyz)\n - [Python Windows executable](https://mauricelambert.github.io/info/python/security/EntropyAnalysis.exe)\n\n## License\n\nLicensed under the [GPL, version 3](https://www.gnu.org/licenses/).\n",
"bugtrack_url": null,
"license": "GPL-3.0 License",
"summary": "This package analyzes file entropy (shannon entropy) for forensic or malware analysis",
"version": "1.0.0",
"project_urls": {
"Documentation": "https://mauricelambert.github.io/info/python/security/EntropyAnalysis.html",
"Download": "https://mauricelambert.github.io/info/python/security/EntropyAnalysis.pyz",
"Github": "https://github.com/mauricelambert/EntropyAnalysis",
"Homepage": "https://github.com/mauricelambert/EntropyAnalysis",
"Python Executable": "https://mauricelambert.github.io/info/python/security/EntropyAnalysis.pyz",
"Windows Executable": "https://mauricelambert.github.io/info/python/security/EntropyAnalysis.exe"
},
"split_keywords": [
"entropy",
"entropy-analysis",
"malware-analysis",
"file-analysis",
"forensic",
"disk-analysis",
"security",
"cybersecurity"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7db969e707efcde30a86032a8806ac67f191949366874c9677874a3725fa3f60",
"md5": "5e1d1f95ed6668f9156353a82a313b98",
"sha256": "c3cfb4d70484e8657900909f64baaf0dd1c60183001368465c614663871b4057"
},
"downloads": -1,
"filename": "EntropyAnalysis-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "5e1d1f95ed6668f9156353a82a313b98",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 170816,
"upload_time": "2024-03-10T12:51:00",
"upload_time_iso_8601": "2024-03-10T12:51:00.050178Z",
"url": "https://files.pythonhosted.org/packages/7d/b9/69e707efcde30a86032a8806ac67f191949366874c9677874a3725fa3f60/EntropyAnalysis-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-10 12:51:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mauricelambert",
"github_project": "EntropyAnalysis",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "entropyanalysis"
}