Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
nsearch — 帮助在NSE数据库中查找脚本的极简脚本 | Kitploit
工具/GitHubGitHub/jtibaquira/nsearch
漏洞分析信息收集实用工具与框架
GitHubjtibaquira/nsearch

nsearch

帮助在NSE数据库中查找脚本的极简脚本

查看仓库网站
1303728年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
root@kitploit:~
  ================================================
    _   _  _____  _____                     _
   | \ | |/  ___||  ___|                   | |
   |  \| |\ `--. | |__    __ _  _ __   ___ | |__
   | . ` | `--. \|  __|  / _` || '__| / __|| '_  |
   | |\  |/\__/ /| |___ | (_| || |   | (__ | | | |
   \_| \_/\____/ \____/  \__,_||_|    \___||_| |_|
  ================================================
   版本 0.4b http://goo.gl/8mFHE5  @jjtibaquira
   邮箱: [email protected]  |   www.dragonjar.org
  ================================================

Nmap脚本引擎搜索

描述

Nsearch,是一个帮助你查找nmap(nse)所用脚本的工具,你可以使用不同的关键词(如名称、类别和作者)进行搜索,甚至可以单次查询中使用所有关键词,同时还可以查看找到的脚本的文档。

版本

0.4b

依赖

root@kitploit:~
$ pip install pyyaml python-i18n

Debian(Ubuntu)

root@kitploit:~
# apt-get install unzip libreadline-gplv2-dev build-essential checkinstall unzip sqlite3 libsqlite3-dev -y

REDHAT(CentOS)

root@kitploit:~
# yum -y install bzip2 groupinstall "Development Tools"

安装

安装应用程序需要以root用户运行安装脚本(install.sh),目前该脚本仅适用于基于Debian和Red Hat(CentOS)的操作系统。对于MacOSX或其他UNIX系统,建议手动安装每个依赖项。

自动安装

root@kitploit:~
# sh install.sh
文件配置
找到script.db的路径,使用以下命令
root@kitploit:~
$ find /usr -type f -name "script.db" 2>/dev/null | awk 'gsub("script.db","")'
然后在脚本主目录下创建config.yaml文件
root@kitploit:~
config:
  scriptsPath: '/usr/local/share/nmap/scripts/'
  filePath: '/usr/local/share/nmap/scripts/script.db'
  fileBackup: 'scriptbk.db'
  scriptdb: 'nmap_scripts.sqlite3'
  categories: {"auth","broadcast","brute","default","discovery","dos","exploit","external","fuzzer","intrusive","malware","safe","version","vuln"}

使用方法:

root@kitploit:~
  $ python nsearch.py

主菜单

初始设置

root@kitploit:~
 ================================================
    _   _  _____  _____                     _
   | \ | |/  ___||  ___|                   | |
   |  \| |\ `--. | |__    __ _  _ __   ___ | |__
   | . ` | `--. \|  __|  / _` || '__| / __|| '_  |
   | |\  |/\__/ /| |___ | (_| || |   | (__ | | | |
   \_| \_/\____/ \____/  \__,_||_|    \___||_| |_|
  ================================================
   版本 0.4b http://goo.gl/8mFHE5  @jjtibaquira
   邮箱: [email protected]  |   www.dragonjar.org
  ================================================

  创建数据库 :nmap_scripts.sqlite3
  创建脚本表 ...
  创建类别表 ...
  创建每个类别对应的脚本表 ...
  将类别上传到类别表 ...

主控制台

root@kitploit:~
  ================================================
    _   _  _____  _____                     _
   | \ | |/  ___||  ___|                   | |
   |  \| |\ `--. | |__    __ _  _ __   ___ | |__
   | . ` | `--. \|  __|  / _` || '__| / __|| '_  |
   | |\  |/\__/ /| |___ | (_| || |   | (__ | | | |
   \_| \_/\____/ \____/  \__,_||_|    \___||_| |_|
  ================================================
   版本 0.4b http://goo.gl/8mFHE5  @jjtibaquira
   邮箱: [email protected]  |   www.dragonjar.org
  ================================================

  检查数据库 ... nmap_scripts.sqlite3
  数据库是最新的 nmap_scripts.sqlite3

  nsearch>

基本命令

root@kitploit:~
  ================================================
    _   _  _____  _____                     _
   | \ | |/  ___||  ___|                   | |
   |  \| |\ `--. | |__    __ _  _ __   ___ | |__
   | . ` | `--. \|  __|  / _` || '__| / __|| '_  |
   | |\  |/\__/ /| |___ | (_| || |   | (__ | | | |
   \_| \_/\____/ \____/  \__,_||_|    \___||_| |_|
  ================================================
   版本 0.4b http://goo.gl/8mFHE5  @jjtibaquira
   邮箱: [email protected]  |   www.dragonjar.org
  ================================================

  nsearch> help

  Nsearch 命令
  ================
  addfav  clear  delfav  doc  exit  help  history  last  modfav  search showfav

  nsearch>
root@kitploit:~
  ================================================
    _   _  _____  _____                     _
   | \ | |/  ___||  ___|                   | |
   |  \| |\ `--. | |__    __ _  _ __   ___ | |__
   | . ` | `--. \|  __|  / _` || '__| / __|| '_  |
   | |\  |/\__/ /| |___ | (_| || |   | (__ | | | |
   \_| \_/\____/ \____/  \__,_||_|    \___||_| |_|
  ================================================
   版本 0.4b http://goo.gl/8mFHE5  @jjtibaquira
   邮箱: [email protected]  |   www.dragonjar.org
  ================================================

  nsearch> help search

    name     : 按脚本名称搜索
    category : 按类别搜索
    author   : 按作者搜索
    用法:
      search name:http
      search category:exploit
      search author:fyodor
      search name:http category:exploit author:fyodor

  nsearch>
root@kitploit:~
  ================================================
    _   _  _____  _____                     _
   | \ | |/  ___||  ___|                   | |
   |  \| |\ `--. | |__    __ _  _ __   ___ | |__
   | . ` | `--. \|  __|  / _` || '__| / __|| '_  |
   | |\  |/\__/ /| |___ | (_| || |   | (__ | | | |
   \_| \_/\____/ \____/  \__,_||_|    \___||_| |_|
  ================================================
   版本 0.4b http://goo.gl/8mFHE5  @jjtibaquira
   邮箱: [email protected]  |   www.dragonjar.org
  ================================================

  nsearch> search name:http author:calderon category:vuln
  *** 名称                                     作者
  [+] http-vuln-cve2012-1823.nse               Paulino Calderon, Paul AMAR
  [+] http-phpself-xss.nse                     Paulino Calderon
  [+] http-wordpress-enum.nse                  Paulino Calderon
  [+] http-adobe-coldfusion-apsa1301.nse       Paulino Calderon
  [+] http-vuln-cve2013-0156.nse               Paulino Calderon
  [+] http-awstatstotals-exec.nse              Paulino Calderon
  [+] http-axis2-dir-traversal.nse             Paulino Calderon
  [+] http-huawei-hg5xx-vuln.nse               Paulino Calderon
  [+] http-tplink-dir-traversal.nse            Paulino Calderon
  [+] http-trace.nse                           Paulino Calderon
  [+] http-litespeed-sourcecode-download.nse   Paulino Calderon
  [+] http-majordomo2-dir-traversal.nse        Paulino Calderon
  [+] http-method-tamper.nse                   Paulino Calderon
root@kitploit:~
  ================================================
    _   _  _____  _____                     _
   | \ | |/  ___||  ___|                   | |
   |  \| |\ `--. | |__    __ _  _ __   ___ | |__
   | . ` | `--. \|  __|  / _` || '__| / __|| '_  |
   | |\  |/\__/ /| |___ | (_| || |   | (__ | | | |
   \_| \_/\____/ \____/  \__,_||_|    \___||_| |_|
  ================================================
   版本 0.4b http://goo.gl/8mFHE5  @jjtibaquira
   邮箱: [email protected]  |   www.dragonjar.org
  ================================================

  nsearch> doc ssh <TAB>
  ssh-hostkey.nse      ssh2-enum-algos.nse  sshv1.nse
  nsearch> doc sshv1.nse
  local nmap = require "nmap"
  local shortport = require "shortport"
  local string = require "string"

  description = [[
    检查SSH服务器是否支持过时且不安全的SSH协议版本1。
  ]]
  author = "Brandon Enright"
  nsearch>

收藏夹功能

root@kitploit:~
  ================================================
    _   _  _____  _____                     _
   | \ | |/  ___||  ___|                   | |
   |  \| |\ `--. | |__    __ _  _ __   ___ | |__
   | . ` | `--. \|  __|  / _` || '__| / __|| '_  |
   | |\  |/\__/ /| |___ | (_| || |   | (__ | | | |
   \_| \_/\____/ \____/  \__,_||_|    \___||_| |_|
  ================================================
   版本 0.4b http://goo.gl/8mFHE5  @jjtibaquira
   邮箱: [email protected]  |   www.dragonjar.org
  ================================================

  nsearch> addfav name:http-vuln-cve2012-1823.nse ranking:great
  [+] http-vuln-cve2012-1823.nse 脚本已成功添加
  nsearch>
root@kitploit:~
  ================================================
    _   _  _____  _____                     _
   | \ | |/  ___||  ___|                   | |
   |  \| |\ `--. | |__    __ _  _ __   ___ | |__
   | . ` | `--. \|  __|  / _` || '__| / __|| '_  |
   | |\  |/\__/ /| |___ | (_| || |   | (__ | | | |
   \_| \_/\____/ \____/  \__,_||_|    \___||_| |_|
  ================================================
   版本 0.4b http://goo.gl/8mFHE5  @jjtibaquira
   邮箱: [email protected]  |   www.dragonjar.org
  ================================================

  nsearch> showfav
  *** 名称                                     排名
  [+] sslv2.nse                                normal
  [+] http-vuln-cve2012-1823.nse               great
  nsearch>
root@kitploit:~
  ================================================
    _   _  _____  _____                     _
   | \ | |/  ___||  ___|                   | |
   |  \| |\ `--. | |__    __ _  _ __   ___ | |__
   | . ` | `--. \|  __|  / _` || '__| / __|| '_  |
   | |\  |/\__/ /| |___ | (_| || |   | (__ | | | |
   \_| \_/\____/ \____/  \__,_||_|    \___||_| |_|
  ================================================
   版本 0.4b http://goo.gl/8mFHE5  @jjtibaquira
   邮箱: [email protected]  |   www.dragonjar.org
  ================================================

  nsearch> showfav
  *** 名称                                     排名
  [+] sslv2.nse                                normal
  [+] http-vuln-cve2012-1823.nse               great

  nsearch> modfav name:sslv2.nse newranking:great
  [+] sslv2.nse 脚本已成功更新

  nsearch> showfav
  *** 名称                                     排名
  [+] sslv2.nse                                great
  [+] http-vuln-cve2012-1823.nse               great
  nsearch>
root@kitploit:~
  ================================================
    _   _  _____  _____                     _
   | \ | |/  ___||  ___|                   | |
   |  \| |\ `--. | |__    __ _  _ __   ___ | |__
   | . ` | `--. \|  __|  / _` || '__| / __|| '_  |
   | |\  |/\__/ /| |___ | (_| || |   | (__ | | | |
   \_| \_/\____/ \____/  \__,_||_|    \___||_| |_|
  ================================================
   版本 0.4b http://goo.gl/8mFHE5  @jjtibaquira
   邮箱: [email protected]  |   www.dragonjar.org
  ================================================

  nsearch> showfav
  *** 名称                                     排名
  [+] sslv2.nse                                great
  [+] http-vuln-cve2012-1823.nse               great

  nsearch> delfav name:sslv2.nse
  [+] sslv2.nse 脚本已成功删除

  nsearch> showfav
  *** 名称                                     排名
  [+] http-vuln-cve2012-1823.nse               great

  nsearch>

TODO

  • GUI
  • Fast-Track
  • 创建脚本执行序列
  • 创建文件输出
  • Windows版本

反馈

欢迎随意fork本项目,提交任何意见、问题或贡献。

  • Twitter: @jjtibaquira
  • 邮箱: [email protected]
  • 博客: https://www.dragonjar.org
  • 论坛: http://comunidad.dragonjar.org
  • YouTube: https://www.dragonjar.tv
  • 学术: https://www.dragonjar.education
下载工具