Giter Site home page Giter Site logo

ne0ke718 / pwsearch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from k4yt3x/pwsearch

0.0 0.0 0.0 8 KB

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

License: Other

Python 100.00%

pwsearch's Introduction

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.

友情链接

pwsearch's People

Contributors

k4yt3x avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.