Code Monkey home page Code Monkey logo

zoomeye's Introduction

How to Install it:

python setup.py install

This is a zoomeye SDK to make you use zoomeye easily. You can use it to search some hosts like this:

from zoomeye import zoomeye

z = zoomeye.Zoomeye("your email", "your password")
z.search("port:23")
while not z.queue.empty():
	print z.queue.get()['ip']

You can use search_type parameter to search hosts or websites, the default is host:

z.search("port:80", search_type = "web")
while not z.queue.empty():
	print z.queue.get()['site']

You can use facets parameter to decide what do you want to return:

z.search("port:23", facets = "os,device,service")
while not z.queue.empty():
	result = z.queue.get()
	print result['ip']
	print result['os']
	print result['device']
	print result['service']

You can use pages parameter to decide how many pages do you want to return, the default is 10:

z.search("port:23", pages = 20)
while not z.queue.empty():
	print z.queue.get()['ip']

You can use port parameter to decide whether the port is bind with ip while searching for hosts, the default is False:

z.search("port:23", pages = 20, port = True)
while not z.queue.empty():
	print z.queue.get()['ip']  # this will return xxx.xxx.xxx.xxx:23

You can use run function to run your functions with the returned data, it's usage is same with search function:

def testFun(zoo):      # need to accept a parameter of Zoomeye type
    while zoo.isReady():    # using isReady function to make sure zoomeye is running
        if not zoo.queue.empty():     # to make sure there are datas in queue
            print "hello: %s" % zoo.queue.get()['ip']

z = zoomeye.Zoomeye("your email", "your password")
z.run(testFun, "port:80")

You can use accountInfo function to get some infomation about your account:

info = z.accountInfo()

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.