Skip to main content

PwnWiki 命令行搜索工具

Project description

PWSearch

PwnWiki 数据库搜索命令行工具。该工具有点像 searchsploit 命令,只是搜索的不是 Exploit Database 而是 PwnWiki 条目。

安装

您可以直接用 pip 命令从 PyPI 安装 PWSearch:

pip3 install -U pwsearch

您也可以 clone 该仓库并直接从源码启动:

git clone https://github.com/k4yt3x/pwsearch.git
pip3 install -U -r pwsearch/pwsearch/requirements.txt

命令行使用方法

screenshot

# 搜寻关键词
pwsearch search CVE-2019-0708

# 在浏览器中打开详细页面
pwsearch open -p 2051

# 直接从源码启动的话需要把 pwsearch 当模组:
cd pwsearch
python -m pwsearch search CVE

您可以使用 -t 开关来将输出结果打印成更容易阅读的表格。注意 -tsearch 命令的参数,所以要打在 search 之后。

table

您也可以使用 -q 开关来隐藏日志信息。注意 -q 是全局参数,所以要打在 searchopen 之前。

quiet

Python 接口调用方法

from pwsearch import Pwsearch

# 创建 Pwsearch 实例
pwsearch = Pwsearch()

# 搜索关键词,最多返回 20 个结果
# results 内容为包含搜索结果标题的 list
results = pwsearch.search(["关键词1", "关键词2"], max_results=20)

# 并发获取页面详细信息
# pages 内容为 list(dict())
# 可以自己试试看比较好理解
pages = pwsearch.pages(results)

# 也可不用异步仅获取一个页面
page = pwsearch.page(results[0])

软件许可

由于管理问题,目前本软件改为使用专有协议,请在使用前仔细阅读。使用该软件表明您已阅读并同意 EULA 中的内容。如有需要修改该源码,请联系作者取得授权。

© 2021 K4YT3X All rights reserved.

友情链接

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

pwsearch-1.4.3.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

pwsearch-1.4.3-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file pwsearch-1.4.3.tar.gz.

File metadata

  • Download URL: pwsearch-1.4.3.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for pwsearch-1.4.3.tar.gz
Algorithm Hash digest
SHA256 fc1d08cfec135b1dda4365adf7b54f00ec3a77bda1ac3a66d920e6c2ca62fba9
MD5 e9aab4659017262fe37c95f64ab2a299
BLAKE2b-256 74fcfec5dea8dc78759b99496c70456c414f48c2585c46ae628e65717ca8e1ab

See more details on using hashes here.

File details

Details for the file pwsearch-1.4.3-py3-none-any.whl.

File metadata

  • Download URL: pwsearch-1.4.3-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for pwsearch-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bc070bffad01b27be16bb1e44ec02fef822e5ef36216361b21ffce3047f0a6be
MD5 0027f910a10f9cb1b89d7a111393823c
BLAKE2b-256 dcd8e1f6be8cf4d2848669982d11515563dc534846b03c0758fc65ccef6cb38c

See more details on using hashes here.

Supported by

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