Skip to content

Commit

Permalink
v1.0.4 - Facebook Dev API Integrated
Browse files Browse the repository at this point in the history
  • Loading branch information
thewhiteh4t committed Apr 16, 2020
1 parent 252d4b4 commit a15de37
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
7 changes: 7 additions & 0 deletions conf/keys.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"api_keys": [
{
"facebook": null
}
]
}
2 changes: 1 addition & 1 deletion finalrecon.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

import argparse

version = '1.0.3'
version = '1.0.4'

parser = argparse.ArgumentParser(description='FinalRecon - OSINT Tool for All-In-One Web Recon | v{}'.format(version))
parser.add_argument('url', help='Target URL')
Expand Down
30 changes: 29 additions & 1 deletion modules/subdom.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,41 @@ async def thminer(hostname, tout):
except Exception as e:
print(R + '[-]' + C + ' ThreatMiner Exception : ' + W + str(e))

async def fb_cert(hostname, tout):
global found
with open('conf/keys.json', 'r') as keyfile:
json_read = keyfile.read()

json_load = json.loads(json_read)
fb_key = json_load['api_keys'][0]['facebook']

if fb_key != None:
print(Y + '[!]' + C + ' Requesting ' + G + 'Facebook' + W)
url = 'https://graph.facebook.com/certificates'
data = {
'query': hostname,
'fields': 'domains',
'access_token': fb_key
}

r = requests.get(url, params=data)
json_data = r.text
json_read = json.loads(json_data)
domains = json_read['data']

for i in range (0, len(domains)):
found.extend(json_read['data'][i]['domains'])
else:
pass

async def query(hostname, tout):
await asyncio.gather(
buffover(hostname, tout),
thcrowd(hostname, tout),
crtsh(hostname),
anubisdb(hostname, tout),
thminer(hostname, tout)
thminer(hostname, tout),
fb_cert(hostname, tout)
)

def subdomains(hostname, tout, output, data):
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.3
1.0.4

0 comments on commit a15de37

Please sign in to comment.