Coder Social home page Coder Social logo

zoomeye-search's Introduction

zoomeye-search

zoomeye-search is a standalone, lightweight python script for fetching IPs from ZoomEye search results.

Prerequisites

  • Python 3.x
  • requests (pip install requests)

Install

git clone https://github.com/MD5HashBrowns/zoomeye-search.git
cd zoomeye-search
./zoomeye.py -h

ZoomEye Credentials

To specify your ZoomEye credentials within zoomeye-search, you can edit zoomeye.py and edit the lines that say "CHANGE THESE". Alternatively, you can provide your email and password with --email and --password arguments.

Usage

$ ./zoomeye.py -h
usage: zoomeye.py [-h] [-q QUERY] [-m] [-p PAGES] [--email EMAIL]
                  [--password PASSWORD] [-s [SAVE]] [-pl PLATFORM] [--port]
                  [--domain]

Simple ZoomEye searcher, outputs IPs to stdout or file

optional arguments:
  -h, --help            show this help message and exit
  -q QUERY, --query QUERY
                        Your ZoomEye Search
  -m, --multi           enable multithreading
  -p PAGES, --pages PAGES
                        Number of pages to search (Default: 5)
  --email EMAIL         Your ZoomEye email
  --password PASSWORD   Your ZoomEye password
  -s [SAVE], --save [SAVE]
                        Save output to <file>, default file name: results.txt
  -pl PLATFORM, --platform PLATFORM
                        Platforms to search, accepts "host" and "web"
                        (Default: host)
  --port                Include the port number in the results (e.g.,
                        127.0.0.1:1337) (Only for host platform)
  --domain              Output the site address rather than the IP. (Only for
                        web platform)

Output

-s / --save option

Default: results.txt

$ ./zoomeye.py -p 1 -pl "web" -q app:wordpress -s

Or:

$ ./zoomeye.py -p 1 -pl "web" -q app:wordpress -s file.txt
[*] You have enabled save. All IPs will be saved to results.txt
[*] Logging in as [email protected]
[+] Successfuly logged in
[+] 100 IPs saved to results.txt

--port option

You can also tell zoomeye-search to include port numbers in the results.

$ ./zoomeye.py -p 1 -q "IIS"  --port
203.160.176.142:9030
203.81.110.91:9030
203.99.232.61:9030
203.115.31.75:9030
203.112.212.126:9030
203.154.236.12:9030
203.239.190.23:9030
203.142.136.52:9030
203.236.215.250:9030
203.44.6.229:9030
111.93.9.77:100
111.93.139.140:100
111.93.11.106:100
111.93.27.203:100
111.93.20.249:100
111.93.14.243:100
111.93.0.146:100
111.68.51.133:100
192.198.241.150:32400
12.18.174.234:7479

--multi / -m option

You can enable multithreading for faster parsing, file output required.

$ ./zoomeye.py -p 1 -q app:wordpress --multi -s

zoomeye-search's People

Contributors

adcar avatar p4r71cl3 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

Watchers

 avatar  avatar  avatar  avatar

zoomeye-search's Issues

--domain option

Hi!

Thanks for adding the domain option so quickly :) I tried it with the following syntax:

python3 zoomeye.py -p 10 --email my@email --password my-password -s --domain "wordpress"

all the results i got was only IPs, no domains

Thank you for your time

error msg while searching

Hi!

I'm getting this error msg since only today. In the last few days everything was working fine.

sirius@blackb0x:~/ZoomEye/zoomeye-search$ python zoomeye.py -p 1000 --email [email protected] --password my-pass -s "'app:weblogic' +port:7001"
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:334: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecurePlatformWarning
Traceback (most recent call last):
File "zoomeye.py", line 33, in
AUTH_REQUEST = requests.post(API_URL + '/user/login', data=USER_DATA)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 110, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 56, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 497, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: hostname 'api.zoomeye.org' doesn't match 'api.zoomeye.org.cn'

Any help would be very appreciated.

Thanks.

Not working anymore

Hello, I'm trying to use the script but it is not working anymore. could you take a look and see if you can fix it?

Empty files

There's an issue, I'm experiencing with the script.
Sometimes it works fine and I get the search results properly saved in a file, but, many times, the file is empty, despite the message, that X ip's are saved to the file.

Error when launching zoomeye-search script

sirius@blackb0x:~/ZoomEye/test/zoomeye-search$ python3 zoomeye.py -p 10 --email [email protected] --password my_pass -q "'Tomcat' +port:8080" -s tomcat_test.txt
[] You have enabled save. All IPs will be saved to tomcat_test.txt
[
] Logging in as [email protected]
Traceback (most recent call last):
File "zoomeye.py", line 229, in
main()
File "zoomeye.py", line 218, in main
getResult()
File "zoomeye.py", line 164, in getResult
TOKEN = "JWT " + getToken()
File "zoomeye.py", line 81, in getToken
ACCESS_TOKEN = AUTH_REQUEST.json()['access_token']
File "/usr/lib/python3/dist-packages/requests/models.py", line 740, in json
return json.loads(self.content.decode(encoding), **kwargs)
File "/usr/lib/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Error when trying to compile the results into output file 'results.txt'

Hi,

Since only today, I'm getting the following error msg when performing a search:

Traceback (most recent call last): File "zoomeye.py", line 120, in <module> getResult() File "zoomeye.py", line 80, in getResult response = json.loads(SEARCH.text) File "/usr/lib/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/usr/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I've used the same tools the last few days without issue, can you confirm if this is an issue with ZoomEye API and which one exactly would it be? I can contact them with the technical details to fix it.

Thank you for your time !

Save hostname or domain instead of IP

Hi!

I'm a big fan of this tool, I would like to thank you for sharing this with the community :) I was wondering if it would be possible to add an option for saving the 'domains' or 'hostnames' instead of IPs in results.txt ?

Thank you for your time

Stopped working - SyntaxError

Have been running the script for months, with no issues, now getting an error.
Upgraded the script to the latest, but didn't help.
Thanks.

File "zoomeye.py", line 112
print(BLUE + "[*] Parsing page: " + str(page), end='\r')
^
SyntaxError: invalid syntax

Feature request "port"

Thanks for your work, this is the only properly working zoomeye script, I could find on github.
Small feature request, is to add the port string to the results, so, if possible, the result for the search will look like:
ip:port
xx.xxx.xx.x:xx

Thanks again!

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.