GithubHelp home page GithubHelp logo

pyscanner's Introduction

Pyscanner简单用法解析

Pyscanner是一个基于python 2.7的简易端口扫描工具

目录

背景

算是工作中的第一次编程吧,设计一个多线程、适合大范围的IP扫描的python程序。 其中考虑到实际应用中会存在断点问题,设计了中断处理,并且能够从中断处恢复扫描状态。

安装

运行环境是python 2.7

git clone https://github.com/ev3rN1ght/pyscanner.git

使用说明

扫描单个IP

python scanner.py ip addr port

ip 为固定指令,进入单个IP扫描子解析器
addr为具体IP地址,例:8.8.8.8
port为端口号或者端口范围,端口号例:2280 端口范围示例:1-10000

从文件中读取IP列表进行扫描

python scanner.py file iplist.txt

file为固定指令,进入读取文件的子解析器
iplist.txt是IP地址列表文件
文件中规定格式为每行列出一个地址
其中IP地址在前,端口号在后
IP地址和端口号用空格分隔 端口号支持端口范围

从中断日志中读取并继续扫描

python scanner.py continue interrupt.txt

continue为固定指令,进入恢复扫描的子解析器
iplist.txt是之前中断的日志文件

pyscanner's People

Contributors

ev3r-sec avatar

Stargazers

 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.