diff --git a/theHarvester/__main__.py b/theHarvester/__main__.py index af6df831..a34e5674 100644 --- a/theHarvester/__main__.py +++ b/theHarvester/__main__.py @@ -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() diff --git a/theHarvester/discovery/constants.py b/theHarvester/discovery/constants.py index 69510ad2..5f4c55dd 100644 --- a/theHarvester/discovery/constants.py +++ b/theHarvester/discovery/constants.py @@ -26,6 +26,7 @@ def splitter(links): name_check.append(joined_name) return unique_list + def filter(lst): """ Method that filters list diff --git a/theHarvester/discovery/linkedinsearch.py b/theHarvester/discovery/linkedinsearch.py index 7992200d..ef774df3 100644 --- a/theHarvester/discovery/linkedinsearch.py +++ b/theHarvester/discovery/linkedinsearch.py @@ -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.') - - - - - - diff --git a/theHarvester/parsers/myparser.py b/theHarvester/parsers/myparser.py index b7dd7a46..95b3607b 100644 --- a/theHarvester/parsers/myparser.py +++ b/theHarvester/parsers/myparser.py @@ -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 ', '')