2016-04-22 21:07:14 +08:00
|
|
|
"""
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2016-04-22 21:38:38 +08:00
|
|
|
def search(domain, limit):
|
2016-04-22 21:07:14 +08:00
|
|
|
app_emailharvester.show_message("\n[+] Searching in Bing..\n")
|
|
|
|
url = "http://www.bing.com/search?q=%40{word}&count=50&first={counter}"
|
2016-04-22 21:38:38 +08:00
|
|
|
app_emailharvester.init_search(url, domain, limit, 0, 50)
|
2016-04-22 21:07:14 +08:00
|
|
|
app_emailharvester.process()
|
|
|
|
return app_emailharvester.get_emails()
|
|
|
|
|
|
|
|
|
|
|
|
class Plugin:
|
2016-04-23 16:17:53 +08:00
|
|
|
def __init__(self, app, conf):#
|
2016-04-22 21:07:14 +08:00
|
|
|
global app_emailharvester, config
|
|
|
|
#config = conf
|
|
|
|
app.register_plugin('bing', {'search': search})
|
|
|
|
app_emailharvester = app
|
|
|
|
|