References -Info Gathering

Python module : google, shodan

https://www.defcon.org/images/defcon-18/dc-18-presentations/Schearer/DEFCON-18-Schearer-SHODAN.pdf

http://www.mrjoeyjohnson.com/Google.Hacking.Filters.pdf

from Pastebin import PastebinAPI
x = PastebinAPI()
url = x.paste('1f2bcfc951d60cfc9c650f807173a207' ,'Snippet of code to paste goes here',paste_name = 'title of paste2',api_user_key = '4f95b64d1969e3f177f9492e3a5efc49', paste_format = 'python',
paste_private = 'unlisted',paste_expire_date = '10M')
print (url)
from google import search

for url in search('lgdisplay', stop=20):
    print(url)
import shodan

SHODAN_API_KEY="aZqb9lOL6QTLRlzrVBozDv9C0noTl85i"

api = shodan.Shodan(SHODAN_API_KEY)

try:
    results = api.search('net:183.98.81.0/24')
   # results = api.host('183.98.81.202')
    print(results)
    print ('Results found: %s' % results['total'])
    for result in results['matches']:
        print ('IP:%s' % result['ip_str'])
        print (result['data'])
        print ('')

except shodan.APIError(e):
        print ('Error:%s' % e)
Advertisements

Author: SK,Seo

Me! Name: SK Seo

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s