GithubHelp home page GithubHelp logo

portscan's Introduction

端口扫描-PortScan

Port Scan By Nmap
一 功能:
<1>使用NMAP扫描端口,扫描结果保存入库(MYSQL)
<2>新增端口邮件报警
二 依赖
<1>Python 模块:libnamp,ConfigParser
<2>建表:data_portscan data_newport
CREATE TABLE data_portscan ( id int(11) NOT NULL AUTO_INCREMENT, hostname varchar(256) DEFAULT NULL, ip varchar(32) DEFAULT NULL, port varchar(11) DEFAULT NULL, service varchar(128) DEFAULT NULL, date datetime(6) DEFAULT NULL, last_date datetime(6) DEFAULT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB AUTO_INCREMENT=113 DEFAULT CHARSET=utf8

CREATE TABLE data_newport ( id int(11) NOT NULL AUTO_INCREMENT, ip varchar(32) DEFAULT NULL, port varchar(11) DEFAULT NULL, service varchar(128) DEFAULT NULL, date datetime(6) DEFAULT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8
三 代码说明
<1>conf/conf.ini 配置nmap扫描参数、报警接收人、数据库信息
<2>conf/ip.ini 需要扫描的IP列表
运行:
python portscan.py

portscan's People

Contributors

skskevin avatar

Watchers

赵成才 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.