linkedin plugin added

linkedin plugin added
This commit is contained in:
maldevel 2016-04-23 09:23:29 +03:00
parent e84fed4313
commit 44e2e96d0f
4 changed files with 68 additions and 3 deletions

View file

@ -28,7 +28,7 @@ __author__ = "maldevel"
__copyright__ = "Copyright (c) 2016 @maldevel"
__credits__ = ["maldevel", "PaulSec", "cclauss", "Christian Martorella"]
__license__ = "GPLv3"
__version__ = "1.2.7"
__version__ = "1.2.9"
__maintainer__ = "maldevel"
################################

View file

@ -46,7 +46,7 @@ usage: EmailHarvester.py [-h] [-d DOMAIN] [-s FILE] [-e ENGINE] [-l LIMIT]
\____/|_| |_| |_| \__,_||_||_| \_| |_/ \__,_||_| \_/ \___||___/ \__|\___||_|
A tool to retrieve Domain email addresses from Search Engines | @maldevel
Version: 1.2.7
Version: 1.2.9
optional arguments:
-h, --help show this help message and exit

View file

@ -27,7 +27,7 @@ app_emailharvester = None
def search(domain, limit):
app_emailharvester.show_message("\n[+] Searching in Google..\n")
url = 'http://www.google.com/search?num=100&start={counter}&hl=en&q="%40{word}"'
url = 'http://www.google.com/search?num=100&start={counter}&hl=en&q=%40"{word}"'
app_emailharvester.init_search(url, domain, limit, 0, 100)
app_emailharvester.process()
return app_emailharvester.get_emails()

65
plugins/linkedin.py Normal file
View file

@ -0,0 +1,65 @@
"""
This file is part of EmailHarvester
Copyright (C) 2016 @maldevel
https://github.com/maldevel/EmailHarvester
EmailHarvester - A tool to retrieve Domain email addresses from Search Engines.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
For more see the file 'LICENSE' for copying permission.
"""
#config = None
app_emailharvester = None
def search(domain, limit):
all_emails = []
app_emailharvester.show_message("\n[+] Searching in Linkedin..\n")
app_emailharvester.show_message("\n[+] Searching in ASK + Linkedin..\n")
askUrl = "http://www.ask.com/web?q=site%3Alinkedin.com+%40{word}"
app_emailharvester.init_search(askUrl, domain, limit, 0, 100)
app_emailharvester.process()
all_emails += app_emailharvester.get_emails()
app_emailharvester.show_message("\n[+] Searching in Yahoo + Linkedin..\n")
yahooUrl = "http://search.yahoo.com/search?p=%40{word}&n=100&ei=UTF-8&va_vt=any&vo_vt=any&ve_vt=any&vp_vt=any&vd=all&vst=0&vf=all&vm=p&fl=0&fr=yfp-t-152&xargs=0&pstart=1&b={counter}"
app_emailharvester.init_search(yahooUrl, domain, limit, 1, 100)
app_emailharvester.process()
all_emails += app_emailharvester.get_emails()
app_emailharvester.show_message("\n[+] Searching in Bing + Linkedin..\n")
bingUrl = "http://www.bing.com/search?q=site%3Alinkedin.com+%40{word}&count=50&first={counter}"
app_emailharvester.init_search(bingUrl, domain, limit, 0, 50)
app_emailharvester.process()
all_emails += app_emailharvester.get_emails()
app_emailharvester.show_message("\n[+] Searching in Google + Linkedin..\n")
googleUrl = 'http://www.google.com/search?num=100&start={counter}&hl=en&q=site%3Alinkedin.com+%40"{word}"'
app_emailharvester.init_search(googleUrl, domain, limit, 0, 100)
app_emailharvester.process()
all_emails += app_emailharvester.get_emails()
return all_emails
class Plugin:
def __init__(self, app):#, conf
global app_emailharvester, config
#config = conf
app.register_plugin('linkedin', {'search': search})
app_emailharvester = app