Git Product home page Git Product logo

telnet-scanner's Introduction

telnet-scanner

telnet服务密码撞库
本模块主要用于扫描在公网上开启telnet服务的设备(主要是物联网设备)
并尝试进行密码对登录,将能登录IP和密码对,存入数据库中

安装方法
安装mysql、python2.7
Python依赖库: pexpect, MySQLdb, 17monip, scapy
将mysql数据库表mysql.sql导入数据库中

使用方法
将网卡设置为混杂模式:
Linux下命令: ifconfig eth0 promisc
在ip.xml中配置要扫描的IP段 在scanner.py中的auth_table中配置登录密码对,如:
("user","password",10) user是用户名,password是密码,10是优先级

扫描结果
运行时截图:
image
数据库截图:
image

启动方式
python scanner.py 20 #20为开的线程数

用python 来爬取ip地址段

ipaddress.py是爬取网上的ip地址,并且将爬取的结果放到新创建的xml文件之中 在Python 自带的编辑器IDLE下编写 使用的库 程序用到的Python库有urlliburllib2

在构造正则表达式的时候用到了rejson 模块

使用的xml.dom.minidom来创建xml文件

运行的结果

在命令行下运行显示:

image

结果保存在xml 文件中的截图:

image

爬虫用的网址

爬虫爬取的网址


注:目前已在Centos6.5和Ubuntu14.04测试通过

telnet-scanner's People

Contributors

hbyscx001 avatar newbee119 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

telnet-scanner's Issues

ImportError: No module named pexpect

hu@hu-VirtualBox:/home/newdisk/telnet-scanner$ python scanner.py
Traceback (most recent call last):
File "scanner.py", line 15, in
from new_module import *
File "/home/newdisk/telnet-scanner/new_module.py", line 4, in
import pexpect
ImportError: No module named pexpect

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.