Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Top Posters

Who's Online (2)

Powered by Vanilla. Made with Bootstrap.
pyScope 0.1 Server Footprinting Tool
  • Xin
    Posts: 3,251
    Been learning python and im loving it! Just a very simple program, making use of a premade API but its quite useful, feel free to add to it and help as im still in development. You need your own API key for it it work.

    ## pyScope 0.1
    ## Xinapse's Shodan, Exploit_DB, Metasploit Search Tool
    from shodan import WebAPI

    SHODAN_API_KEY = \"yourapikeyhere\"

    api = WebAPI(SHODAN_API_KEY)
    print 'pyScope by Xinapse'
    print '1) Host Scan (Scan just one Server)'
    print '2) Service Scan (Search for all servers running a service'
    print '3) Search ExploitDB for a particular version'

    choice = int(raw_input('What Scan would you like? '))
    ## Choice which scan

    if choice == 1: ## Host Scan
    print '1'
    target = raw_input('Enter the target: ')
    host = api.host(target)

    print \"\"\"
    IP: %s
    Country: %s
    City: %s
    \"\"\" % (host['ip'], host.get('country', None), host.get('city', None))

    # Print all banners
    for item in host['data']:
    print \"\"\"
    Port: %s
    Banner: %s

    \"\"\" % (item['port'], item['banner'])


    elif choice == 2: ## Service Scan
    keyword = raw_input('Enter keyword: ')
    try:
    print (\"Searching...\")
    results = api.search(keyword)

    print results[\"total\"]
    for result in results[\"matches\"]:
    print result[\"ip\"]
    print result[\"data\"]
    print ''
    except Exception, e:
    print 'Error: %s' % e







    elif choice == 3:
    print '3'

    else:
    print 'Invalid Option'
    Xin
  • Sh3llc0d3
    Posts: 1,910
    Nice little tool, was thinking about making something like this in perl based on your footprinting tutorial a while back... not had time though lol
  • Xin
    Posts: 3,251
    Yeah Im going through a phase of making little scripts to help my footprinting, il post some more ive made, but there all pretty basic, i still want to get round to learning ruby so i can add to metasploit.
    Xin