GithubHelp home page GithubHelp logo

anquanzhu / masscan_to_nmap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 7dog7/masscan_to_nmap

0.0 1.0 0.0 49 KB

基于masscan和nmap的快速端口扫描和指纹识别工具,优化版本(获取标题,页面长度,过滤防火墙)

Python 100.00%

masscan_to_nmap's Introduction

简介

基于masscan和nmap的快速端口扫描和指纹识别工具
整个项目都是抄袭来的
抄袭https://github.com/hellogoldsnakeman/masnmapscan-V1.0
能抄袭就抄袭,因为菜

由于使用的时候遇到一些问题,比较蜜汁就自己拼凑了一下
增加ip处理,多线程处理,过滤防火墙ip,获取http请求标题

有问题和需求请Issues

安装使用

安装(建议把masscan编译在这个masscan_to_nmap目录下,这样就不用修改代码了)

  1. Centos 安装 Masscan (版本GIT version: 1.0.5-86-ga025970,版本低会导致-oJ masscan.json格式出现偏差导致报错)

    yum install git gcc make libpcap-devel
    yum install nmap(如果没安装请安装)
    git clone https://github.com/7dog7/masscan_to_nmap.git
    git clone https://github.com/robertdavidgraham/masscan
    cd masscan
    make

  2. python依赖

    pip install -r requirements.txt

使用说明

  1. ip.txt文件

    127.0 (自动填充)
    127.0.1 (自动填充)
    127.0.0.1-254
    127.0.0.1/24

  2. scan_ip.txt (生成IP文件,方便导出)

  3. scan_url_port.txt (扫描结果,追加写入)

  4. 扫描启动

    python scan.py

2019.8.8 更新如下:结果排序、状态、与返回包大小:

2019.9.9 更新如下:表格

文件:scan_url_port.txt

+------------------------------+-------------------------------------------------+------------------------------------------+------+------------+
|             URL              |                       标题                      |                   服务                   | 状态 | 返回包长度 |
+------------------------------+-------------------------------------------------+------------------------------------------+------+------------+
|    http://127.0.0.1:80    |                                                 |                   http                   | 200  |    131     |
|   http://127.0.0.1:8083   |                                                 |                  us-srv                  | 200  |     87     |
|   https://127.0.0.1:443    |                                                 |                Loading...                | 200  |    2709    |
|   https://127.0.0.1:443    |                                                 |                Loading...                | 200  |    2709    |
|    http://127.0.0.1:80     |                                                 |                   http                   | 200  |    6867    |

masscan_to_nmap's People

Contributors

7dog7 avatar

Watchers

James Cloos 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.