This commit is contained in:
csparks
2019-09-06 04:00:05 +00:00
parent 6740f051fc
commit 06dbea58d0
4 changed files with 2 additions and 12 deletions
-3
View File
@@ -34,16 +34,13 @@ def start():
parser.add_argument('-c', '--dns-brute', help='perform a DNS brute force on the domain', default=False, action='store_true')
parser.add_argument('-f', '--filename', help='save the results to an HTML and/or XML file', default='', type=str)
parser.add_argument('-b', '--source', help='''baidu, bing, bingapi, censys, crtsh, dnsdumpster,
dogpile, duckduckgo, github-code, google,
hunter, intelx,
linkedin,linkedin_links, netcraft, securityTrails, threatcrowd,
trello, twitter, vhost, virustotal, yahoo, all''')
parser.add_argument('-x', '--exclude', help='exclude options when using all sources', type=str)
args = parser.parse_args()
try:
db = stash.stash_manager()
db.do_init()
+1
View File
@@ -26,6 +26,7 @@ def splitter(links):
name_check.append(joined_name)
return unique_list
def filter(lst):
"""
Method that filters list
+1 -7
View File
@@ -4,6 +4,7 @@ from theHarvester.parsers import myparser
import requests
import time
class SearchLinkedin:
def __init__(self, word, limit):
@@ -37,16 +38,9 @@ class SearchLinkedin:
links = myparser.Parser(self.totalresults, self.word)
return splitter(links.links_linkedin())
def process(self):
while self.counter < self.limit:
self.do_search()
time.sleep(getDelay())
self.counter += 100
print(f'\tSearching {self.counter} results.')
-2
View File
@@ -90,8 +90,6 @@ class Parser:
reg_people = re.compile(r'">[a-zA-Z0-9._ -]* \| LinkedIn')
self.temp = reg_people.findall(self.results)
resul = []
for x in (self.temp):
y = x.replace(' | LinkedIn', '')
y = y.replace(' profiles ', '')