1+ """
2+ This file is part of EmailHarvester
3+ Copyright (C) 2016 @maldevel
4+ https://github.com/maldevel/EmailHarvester
5+
6+ EmailHarvester - A tool to retrieve Domain email addresses from Search Engines.
7+
8+ This program is free software: you can redistribute it and/or modify
9+ it under the terms of the GNU General Public License as published by
10+ the Free Software Foundation, either version 3 of the License, or
11+ (at your option) any later version.
12+
13+ This program is distributed in the hope that it will be useful,
14+ but WITHOUT ANY WARRANTY; without even the implied warranty of
15+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+ GNU General Public License for more details.
17+
18+ You should have received a copy of the GNU General Public License
19+ along with this program. If not, see <http://www.gnu.org/licenses/>.
20+
21+ For more see the file 'LICENSE' for copying permission.
22+ """
23+
24+ #config = None
25+ app_emailharvester = None
26+
27+
28+ def search (domain , limit ):
29+ all_emails = []
30+ app_emailharvester .show_message ("\n [+] Searching in Instagram..\n " )
31+
32+ app_emailharvester .show_message ("\n [+] Searching in Yahoo + Instagram..\n " )
33+ yahooUrl = "http://search.yahoo.com/search?p=site%3Ainstagram.com+%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}"
34+ app_emailharvester .init_search (yahooUrl , domain , limit , 1 , 100 )
35+ app_emailharvester .process ()
36+ all_emails += app_emailharvester .get_emails ()
37+
38+ app_emailharvester .show_message ("\n [+] Searching in Bing + Instagram..\n " )
39+ bingUrl = "http://www.bing.com/search?q=site%3Ainstagram.com+%40{word}&count=50&first={counter}"
40+ app_emailharvester .init_search (bingUrl , domain , limit , 0 , 50 )
41+ app_emailharvester .process ()
42+ all_emails += app_emailharvester .get_emails ()
43+
44+ app_emailharvester .show_message ("\n [+] Searching in Google + Instagram..\n " )
45+ googleUrl = 'https://www.google.com/search?num=100&start={counter}&hl=en&q=site%3Ainstagram.com+"%40{word}"'
46+ app_emailharvester .init_search (googleUrl , domain , limit , 0 , 100 )
47+ app_emailharvester .process ()
48+ all_emails += app_emailharvester .get_emails ()
49+
50+ app_emailharvester .show_message ("\n [+] Searching in Baidu + Instagram..\n " )
51+ url = 'http://www.baidu.com/search/s?wd=site%3Ainstagram.com+"%40{word}"&pn={counter}'
52+ app_emailharvester .init_search (url , domain , limit , 0 , 10 )
53+ app_emailharvester .process ()
54+ all_emails += app_emailharvester .get_emails ()
55+
56+ app_emailharvester .show_message ("\n [+] Searching in Exalead + Instagram..\n " )
57+ url = "http://www.exalead.com/search/web/results/?q=site%3Ainstagram.com+%40{word}&elements_per_page=10&start_index={counter}"
58+ app_emailharvester .init_search (url , domain , limit , 0 , 50 )
59+ app_emailharvester .process ()
60+ all_emails += app_emailharvester .get_emails ()
61+
62+ #dogpile seems to not support site:
63+
64+ return all_emails
65+
66+
67+ class Plugin :
68+ def __init__ (self , app , conf ):#
69+ global app_emailharvester , config
70+ #config = conf
71+ app .register_plugin ('instagram' , {'search' : search })
72+ app_emailharvester = app
73+
0 commit comments