mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-24 22:42:56 +08:00
Added Port scanning, Subdomain takeover, Fixed Shodan, improved Dns bruteforce and added SQLite support to store the results.
24 lines
504 B
Python
24 lines
504 B
Python
#!/usr/bin/env python
|
|
# encoding: utf-8
|
|
"""
|
|
Created by laramies on 2008-08-21.
|
|
"""
|
|
|
|
import sys
|
|
import socket
|
|
|
|
|
|
class Checker():
|
|
|
|
def __init__(self, hosts):
|
|
self.hosts = hosts
|
|
self.realhosts = []
|
|
|
|
def check(self):
|
|
for x in self.hosts:
|
|
try:
|
|
res = socket.gethostbyname(x)
|
|
self.realhosts.append(x + ":" + res)
|
|
except Exception as e:
|
|
self.realhosts.append(x + ":" + "empty")
|
|
return self.realhosts
|