-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug fixed ask search, removed ask from linkedin, twitter plugin added
- Loading branch information
Showing
11 changed files
with
193 additions
and
32 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
""" | ||
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): | ||
app_emailharvester.show_message("\n[+] Searching in Google+..\n") | ||
#search google+ only with google search engine | ||
#who is gonna have google+ indexed better than google itself? | ||
url = 'https://www.google.com/search?num=100&start={counter}&hl=en&q=site%3Aplus.google.com+intext:"Works at"+-inurl:photos+-inurl:about+-inurl:posts+-inurl:plusones+%40{word}' | ||
app_emailharvester.init_search(url, domain, limit, 0, 100) | ||
app_emailharvester.process() | ||
return app_emailharvester.get_emails() | ||
|
||
|
||
class Plugin: | ||
def __init__(self, app, conf):# | ||
global app_emailharvester, config | ||
#config = conf | ||
app.register_plugin('googleplus', {'search': search}) | ||
app_emailharvester = app | ||
|
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
""" | ||
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 Twitter..\n") | ||
|
||
app_emailharvester.show_message("\n[+] Searching in Yahoo + Twitter..\n") | ||
yahooUrl = 'http://search.yahoo.com/search?p=site%3Atwitter.com+intitle:"on Twitter"+%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 + Twitter..\n") | ||
bingUrl = 'http://www.bing.com/search?q=site%3Atwitter.com+intitle:"on Twitter"+%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 + Twitter..\n") | ||
googleUrl = 'https://www.google.com/search?num=100&start={counter}&hl=en&q=site%3Atwitter.com+intitle:"on Twitter"+"%40{word}"' | ||
app_emailharvester.init_search(googleUrl, domain, limit, 0, 100) | ||
app_emailharvester.process() | ||
all_emails += app_emailharvester.get_emails() | ||
|
||
app_emailharvester.show_message("\n[+] Searching in Baidu + Twitter..\n") | ||
url = 'http://www.baidu.com/search/s?wd=site%3Atwitter.com+intitle:"on Twitter"+"%40{word}"&pn={counter}' | ||
app_emailharvester.init_search(url, domain, limit, 0, 10) | ||
app_emailharvester.process() | ||
all_emails += app_emailharvester.get_emails() | ||
|
||
app_emailharvester.show_message("\n[+] Searching in Exalead + Twitter..\n") | ||
url = 'http://www.exalead.com/search/web/results/?q=site%3Atwitter.com+intitle:"on Twitter"+%40{word}&elements_per_page=10&start_index={counter}' | ||
app_emailharvester.init_search(url, domain, limit, 0, 50) | ||
app_emailharvester.process() | ||
all_emails += app_emailharvester.get_emails() | ||
|
||
#dogpile seems to not support site: | ||
|
||
return all_emails | ||
|
||
|
||
class Plugin: | ||
def __init__(self, app, conf):# | ||
global app_emailharvester, config | ||
#config = conf | ||
app.register_plugin('twitter', {'search': search}) | ||
app_emailharvester = app | ||
|
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