-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc fixes and working on new module
- Loading branch information
Showing
12 changed files
with
55 additions
and
16 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
__all__ = ['baidusearch', | ||
'bingsearch', | ||
'bufferoverun', | ||
'crtsh', | ||
'certspottersearch', | ||
'dnssearch', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from theHarvester.lib.core import * | ||
import re | ||
|
||
|
||
class SearchBufferover: | ||
|
||
def __init__(self, word): | ||
self.word = word | ||
self.totalhosts = set() | ||
self.totalips = set() | ||
self.proxy = False | ||
|
||
async def do_search(self): | ||
url = f'https://dns.bufferover.run/dns?q={self.word}' | ||
headers = {'User-Agent': Core.get_user_agent()} | ||
client = aiohttp.ClientSession(headers=headers, timeout=aiohttp.ClientTimeout(total=20)) | ||
responses = await AsyncFetcher.fetch(client, url, json=True, proxy=self.proxy) | ||
await client.close() | ||
|
||
dct = responses | ||
self.totalhosts: set = {host for host in dct['FDNS_A']} | ||
# filter out ips that are just called NXDOMAIN | ||
self.totalips: set = {ip['address'] for ip in dct['FDNS_A'] | ||
if re.match(r"^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$", ip['FDNS_A'])} | ||
|
||
async def get_hostnames(self) -> set: | ||
return self.totalhosts | ||
|
||
async def get_ips(self) -> set: | ||
return self.totalips | ||
|
||
async def process(self, proxy=False): | ||
self.proxy = proxy | ||
await self.do_search() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
import plotly.graph_objs as go | ||
|
||
|
||
|
||
class GraphGenerator: | ||
|
||
def __init__(self, domain): | ||
|