Skip to main content

Analyzer for files and urls

Project description

xanalyzer

静态分析文件和url,python3下运行。

  1. 文件
    • md5
    • 文件类型
    • 文件大小
    • 字符串扫描
    • PE文件
      • PE大小
      • 编译时间
      • pdb路径
      • 版本信息
      • 证书验证
      • 节区名称
      • 查壳
      • 资源段扫描
    • ELF文件
      • 查壳
    • 建议使用的工具
  2. url(website)
    • 域名解析ip
    • 获取robots.txt文件
    • 站内链接扫描
    • 站内子域名扫描

安装

方法1 - 使用pipx安装:

pipx install xanalyzer

pipx: https://pypa.github.io/pipx/

方法2 - 从源码安装:

git clone https://github.com/qux-bbb/xanalyzer
cd xanalyzer
python setup.py install

如果系统是 Debian/Ubuntu,需要安装依赖:

sudo apt-get install libmagic1

使用帮助

usage: xanalyzer [-h] (-f FILE [FILE ...] | -u URL | --version) [-s]

Process some files and urls.

optional arguments:
  -h, --help            show this help message and exit
  -f FILE [FILE ...], --file FILE [FILE ...]
                        analyze one or more files, can be a folder path
  -u URL, --url URL     analyze the url
  --version             print version info
  -s, --save            save log and data

使用示例

xanalyzer -f hello.exe
xanalyzer -u "https://www.baidu.com/s?wd=hello"

开发

git clone https://github.com/qux-bbb/xanalyzer
cd xanalyzer
virtualenv venv
pip install -r requirements.txt
python setup.py develop

这样之后就可以用pycharm或vscode开发调试了

打包发布

该步骤仅本人使用

pip install -r requirements.my.txt
python setup.py sdist bdist_wheel

在github创建Release

  1. 标题为xanalyzer <version>,如: xanalyzer v0.2.0
  2. 内容基于CHANGELOG.md做一些修改
  3. 将dist文件夹下所有文件传到Release页面
    然后发布即可

将文件传到pypi(需要账号密码)

python -m twine upload --repository pypi dist/*

其它

这个项目的有些功能可能会用到:
https://github.com/mitre/multiscanner

参考链接:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xanalyzer-0.2.2.tar.gz (106.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xanalyzer-0.2.2-py3-none-any.whl (112.2 kB view details)

Uploaded Python 3

File details

Details for the file xanalyzer-0.2.2.tar.gz.

File metadata

  • Download URL: xanalyzer-0.2.2.tar.gz
  • Upload date:
  • Size: 106.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.2.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for xanalyzer-0.2.2.tar.gz
Algorithm Hash digest
SHA256 b869d0e07494bd1ae029be2d1aeae58c628c157173d8b91429e12f82c2b1438f
MD5 0db56af1ec1beb740daefa42f50f3ec4
BLAKE2b-256 94c1c2d8b52fb3b6d533f386cfc47a023a3aa8ab8a0b70e679e55ca637c6723f

See more details on using hashes here.

File details

Details for the file xanalyzer-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: xanalyzer-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 112.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.2.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for xanalyzer-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3c5403a74750e1cf20fd07b8ea5b0825fc58de8564196e72e6cb4faa70dfe53f
MD5 6fe29f46b33cca46f92586563017fa52
BLAKE2b-256 c84b7a1f2669aa0d49faee5267d1957fbecb9d85b37dbabffb88ae89475a10a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page