├── .gitignore
├── .travis.yml
├── LICENSE
├── README.md
├── composer.json
├── phpunit.xml.dist
├── resources
├── AllGoogleSites.ini
├── Blacklist.ini
├── Errors.ini
├── SitesProxysFree.ini
└── shells.ini
├── src
├── Engines
│ ├── Bing.php
│ ├── DuckDuckGo.php
│ ├── Engine.php
│ ├── EngineInterface.php
│ ├── Google.php
│ ├── Yahoo.php
│ └── Yandex.php
├── SearchHacking.php
└── Utils.php
└── tests
├── Engines
├── BingTest.php
├── DuckDuckGoTest.php
├── GoogleTest.php
├── YahooTest.php
└── YandexTest.php
└── SearchHackingTest.php
/.gitignore:
--------------------------------------------------------------------------------
1 | composer.lock
2 | vendor/
3 |
4 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: php
2 |
3 | sudo: false
4 |
5 | php:
6 | - 5.6
7 | - 7
8 | - hhvm
9 |
10 | matrix:
11 | allow_failures:
12 | - php: hhvm
13 |
14 | before_script:
15 | - composer self-update
16 | - composer install --prefer-source
17 |
18 | notifications:
19 | email: false
20 |
21 | script:
22 | - ./vendor/bin/phpunit
23 |
24 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2016 ASZone
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://travis-ci.org/aszone/search-hacking)
2 | [](https://scrutinizer-ci.com/g/aszone/search-hacking/?branch=master)
3 |
4 | # Search Hacking
5 |
6 | > Search Hacking is a collection of libraries for search results based in dork
7 |
8 | ## Instalation
9 |
10 | The recommended way to install PHP Avenger is through
11 | [Composer](http://getcomposer.org).
12 |
13 | ```bash
14 | # Install Composer
15 | curl -sS https://getcomposer.org/installer | php
16 | ```
17 |
18 | Next, run the Composer command to install the latest beta version of Search Hacking:
19 |
20 | ```bash
21 | php composer.phar require aszone/search-hacking
22 | ```
23 | ## Basic Usage
24 |
25 | > Use command for init process, result will print in monitor and save in txt on folder results.
26 |
27 | ```bash
28 |
29 |
30 | ```
31 |
32 | ## Help and docs
33 | * [Documentation](http://phpavenger.aszone.com.br).
34 | * [Examples](http://phpavenger.aszone.com.br/examples).
35 | * [Videos](http://youtube.com/aszone).
36 | * [Steakoverflow](http://phpavenger.aszone.com.br).
37 |
38 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "aszone/search-hacking",
3 | "type": "library",
4 | "description": "AsZone Component - Search Hacking",
5 | "keywords": ["search","dork","search hacking","hacker","php","hacking","google hacking","ghdb","bing","yandex","yahoo","dukedukego"],
6 | "homepage": "http://www.lenonleite.com.br",
7 | "license": "MIT",
8 | "authors": [
9 | {
10 | "name": "Lenon Leite",
11 | "email": "lenonleite@gmail.com.br",
12 | "homepage": "http://www.lenonleite.com.br"
13 | },
14 | {
15 | "name": "ASZone",
16 | "homepage": "https://www.aszone.com.br"
17 | }
18 |
19 | ],
20 | "require": {
21 | "php": ">=5.6",
22 | "guzzlehttp/guzzle":"~5.3",
23 | "symfony/dom-crawler":"~2.8",
24 | "symfony/css-selector":"2.8",
25 | "aszone/fakeheaders": "~0.1",
26 | "aszone/proxyavenger": "~0.1"
27 | },
28 | "autoload": {
29 | "psr-4": {
30 | "Aszone\\SearchHacking\\": "src/",
31 | "Aszone\\SearchHacking\\Test\\": "tests/"
32 | }
33 | },
34 | "require-dev": {
35 | "phpunit/phpunit": "^5.6"
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
16 | tests/
17 |
18 |
19 |
20 |
21 |
22 | src/
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/resources/AllGoogleSites.ini:
--------------------------------------------------------------------------------
1 | [google]
2 | 1=www.google.com
3 | 2=www.google.ac
4 | 3=www.google.com.om
5 | 4=www.google.ad
6 | 5=www.google.ae
7 | 6=www.google.com.af
8 | 7=www.google.com.ag
9 | 8=www.google.com.ai
10 | 9=www.google.am
11 | 10=www.google.it.ao
12 | 11=www.google.com.ar
13 | 12=www.google.cat
14 | 13=www.google.as
15 | 14=www.google.at
16 | 15=www.google.com.au
17 | 16=www.google.az
18 | 17=www.google.ba
19 | 18=www.google.com.bd
20 | 19=www.google.be
21 | 20=www.google.bf
22 | 21=www.google.bg
23 | 22=www.google.com.bh
24 | 23=www.google.bi
25 | 24=www.google.bj
26 | 25=www.google.com.bn
27 | 26=www.google.com.bo
28 | 27=www.google.com.br
29 | 28=www.google.bs
30 | 29=www.google.co.bw
31 | 30=www.google.com.by
32 | 31=www.google.com.bz
33 | 32=www.google.ca
34 | 33=www.google.com.kh
35 | 34=www.google.cc
36 | 35=www.google.cd
37 | 36=www.google.cf
38 | 37=www.google.cn
39 | 38=www.google.com.co
40 | 39=www.google.co.nz
41 | 40=www.google.cg
42 | 41=www.google.ch
43 | 42=www.google.ci
44 | 43=www.google.co.ck
45 | 44=www.google.cl
46 | 45=www.google.cm
47 | 46=www.google.co.cr
48 | 47=www.google.com.cu
49 | 48=www.google.cv
50 | 49=www.google.cz
51 | 50=www.google.de
52 | 51=www.google.nu
53 | 52=www.google.dj
54 | 53=www.google.dk
55 | 54=www.google.dm
56 | 55=www.google.com.do
57 | 56=www.google.dz
58 | 57=www.google.no
59 | 58=www.google.com.ec
60 | 59=www.google.ee
61 | 60=www.google.com.eg
62 | 61=www.google.es
63 | 62=www.google.com.et
64 | 63=www.google.com.np
65 | 64=www.google.fi
66 | 65=www.google.com.fj
67 | 66=www.google.fm
68 | 67=www.google.fr
69 | 68=www.google.ga
70 | 69=www.google.nl
71 | 70=www.google.ge
72 | 71=www.google.gf
73 | 72=www.google.gg
74 | 73=www.google.com.gh
75 | 74=www.google.com.gi
76 | 75=www.google.nr
77 | 76=www.google.gl
78 | 77=www.google.gm
79 | 78=www.google.gp
80 | 79=www.google.gr
81 | 80=www.google.com.gt
82 | 81=www.google.com.ni
83 | 82=www.google.gy
84 | 83=www.google.com.hk
85 | 84=www.google.hn
86 | 85=www.google.hr
87 | 86=www.google.ht
88 | 87=www.google.com.ng
89 | 88=www.google.hu
90 | 89=www.google.co.id
91 | 90=www.google.iq
92 | 91=www.google.ie
93 | 92=www.google.co.il
94 | 92=www.google.com.nf
95 | 93=www.google.im
96 | 94=www.google.co.in
97 | 95=www.google.io
98 | 96=www.google.is
99 | 97=www.google.it
100 | 98=www.google.ne
101 | 99=www.google.je
102 | 100=www.google.com.jm
103 | 101=www.google.jo
104 | 102=www.google.co.jp
105 | 103=www.google.co.ke
106 | 104=www.google.com.na
107 | 105=www.google.ki
108 | 106=www.google.kg
109 | 107=www.google.co.kr
110 | 108=www.google.com.kw
111 | 109=www.google.kz
112 | 110=www.google.co.mz
113 | 111=www.google.la
114 | 112=www.google.com.lb
115 | 113=www.google.com.lc
116 | 114=www.google.li
117 | 115=www.google.lk
118 | 116=www.google.com.my
119 | 117=www.google.co.ls
120 | 118=www.google.lt
121 | 119=www.google.lu
122 | 120=www.google.lv
123 | 121=www.google.com.ly
124 | 122=www.google.com.mx
125 | 123=www.google.co.ma
126 | 124=www.google.md
127 | 125=www.google.me
128 | 126=www.google.mg
129 | 127=www.google.mk
130 | 128=www.google.mw
131 | 129=www.google.ml
132 | 130=www.google.mn
133 | 131=www.google.ms
134 | 132=www.google.com.mt
135 | 133=www.google.mu
136 | 134=www.google.mv
137 | 135=www.google.com.pa
138 | 136=www.google.com.pe
139 | 137=www.google.com.ph
140 | 138=www.google.com.pk
141 | 139=www.google.pn
142 | 140=www.google.com.pr
143 | 141=www.google.ps
144 | 142=www.google.pt
145 | 143=www.google.com.py
146 | 144=www.google.com.qa
147 | 145=www.google.ro
148 | 146=www.google.rs
149 | 147=www.google.ru
150 | 148=www.google.rw
151 | 149=www.google.com.sa
152 | 150=www.google.com.sb
153 | 151=www.google.sc
154 | 152=www.google.se
155 | 153=www.google.com.sg
156 | 154=www.google.sh
157 | 155=www.google.si
158 | 156=www.google.sk
159 | 157=www.google.com.sl
160 | 158=www.google.sn
161 | 159=www.google.sm
162 | 160=www.google.so
163 | 161=www.google.st
164 | 162=www.google.com.sv
165 | 163=www.google.td
166 | 164=www.google.tg
167 | 165=www.google.co.th
168 | 166=www.google.tk
169 | 167=www.google.tl
170 | 168=www.google.tm
171 | 169=www.google.to
172 | 170=www.google.com.tn
173 | 171=www.google.com.tr
174 | 172=www.google.tt
175 | 173=www.google.com.tw
176 | 174=www.google.co.tz
177 | 175=www.google.com.ua
178 | 176=www.google.co.ug
179 | 177=www.google.co.uk
180 | 178=www.google.us
181 | 179=www.google.com.uy
182 | 180=www.google.co.uz
183 | 181=www.google.com.vc
184 | 182=www.google.co.ve
185 | 183=www.google.vg
186 | 184=www.google.co.vi
187 | 185=www.google.com.vn
188 | 186=www.google.vu
189 | 187=www.google.ws
190 | 188=www.google.co.za
191 | 189=www.google.co.zm
192 | 190=www.google.co.zw
--------------------------------------------------------------------------------
/resources/Blacklist.ini:
--------------------------------------------------------------------------------
1 | [blacklisst]
2 | 153=softwarepublico.gov.br
3 | 154=svn.softwarepublico.gov.br
4 | 155=dev.softwarepublico.gov.br
5 | 156=repositorio.interlegis.gov.br
6 | 157=ftp.bahiatursa.ba.gov.br
7 | 158=versionamento.gov.br
8 | 169=softwarepublico.gov.br
9 |
--------------------------------------------------------------------------------
/resources/Errors.ini:
--------------------------------------------------------------------------------
1 | [mysql]
2 | 1=mysql_
3 | 2=You have an error in your SQL syntax
4 | 3=Warning: mysql_
5 | 4=function.mysql
6 | 5=MySQL result index
7 | 6=syntax
8 | 7=MySQL
9 | 8=mysqli.query
10 | 9=num_rows
11 | 10=mysql error:
12 | 11=Error Executing Database Query
13 | 12=SQL
14 | 13=Fatal error
15 | 14=Warning
16 | 15=Invalid Querystring
17 | 16=Input string was not in a correct format
18 | 17=GetArray()
19 | 18=FetchRow()
20 | 19=MySQL Error
21 | 20=MySQL ODBC
22 | 21=MySQL Driver
23 | 22=supplied argument is not a valid MySQL result resource
24 | 23=on MySQL result index
25 |
26 | [mariadb]
27 | 1=MariaDB server version for the right syntax
28 | 2=You have an error in your SQL syntax
29 | 3=SQL
30 | 4=Fatal error
31 | 5=Warning
32 | 6=Invalid Querystring
33 | 7=Input string was not in a correct format
34 | 8=GetArray()
35 | 9=FetchRow()
36 |
37 | [sql-server]
38 | 1=Microsoft JET Database
39 | 2=ODBC Microsoft Access Driver
40 | 3=500 - Internal server error
41 | 4=Microsoft OLE DB Provider
42 | 5=Unclosed quotes
43 | 6=ADODB.Command
44 | 7=ADODB.Field error
45 | 8=Microsoft VBScript
46 | 9=Microsoft OLE DB Provider for SQL Server
47 | 10=Unclosed quotation mark
48 | 11=SQLServer JDBC Driver
49 | 12=Error Executing Database Query
50 | 13=SQL
51 | 14=Fatal error
52 | 15=Warning
53 | 16=Invalid Querystring
54 | 17=Input string was not in a correct format
55 | 18=GetArray()
56 | 19=FetchRow()
57 | 20=ADODB.Recordset
58 | 21=500 - Internal server error
59 | 22=Microsoft OLE DB Provider
60 | 23=Unclosed quotes
61 | 24=Active Server Pages error
62 | 25=OLE/DB provider returned message
63 | 26=OLE DB Provider for ODBC
64 | 27=error '800a0d5d
65 | 28=error '800a000d
66 | 29=Unclosed quotation mark after the character string
67 | 30=[Microsoft][SQL Server Native Client 11.0][SQL Server]
68 | 31=Warning: odbc_
69 |
70 | [oracle]
71 | 1=Microsoft OLE DB Provider for Oracle
72 | 2=ORA-01756
73 | 3=ORA-
74 | 4=SQL
75 | 5=Fatal error
76 | 6=Warning
77 | 7=Invalid Querystring
78 | 8=Input string was not in a correct format
79 | 9=GetArray()
80 | 10=FetchRow()
81 | 11=Oracle ODBC
82 | 12=Oracle Error
83 | 13=Oracle Driver
84 | 14=Oracle DB2
85 | 15=error ORA-
86 | 16=SQL command not properly ende
87 |
88 | [postgresql]
89 | 1=pg_
90 | 2=Warning: pg_
91 | 3=PostgreSql Error:
92 | 4=function.pg
93 | 5=SQL
94 | 6=Fatal error
95 | 7=Warning
96 | 8=Invalid Querystring
97 | 9=Input string was not in a correct format
98 | 10=GetArray()
99 | 11=FetchRow()
100 |
101 | [php]
102 | 1=Warning: include
103 | 2=Fatal error: include
104 | 3=Warning: require
105 | 4=Fatal error: require
106 | 5=ADODB_Exception
107 |
108 | [asp]
109 | 1=Version Information: Microsoft .NET Framework
110 | 2=Server.Execute Error
111 |
112 | [zend-framework]
113 | 1=mail.transport.username
114 | 2=mail.transport.password
115 | 3=db.params.username
116 | 4=db.params.password
117 | 5=db.params.dbname'
118 |
119 | [wordpress]
120 | 1=define('DB_NAME'
121 | 2=define('DB_USER'
122 | 3=define('DB_PASSWORD'
123 | 4=define('DB_HOST'
--------------------------------------------------------------------------------
/resources/SitesProxysFree.ini:
--------------------------------------------------------------------------------
1 | [proxys]
2 | 1=http://www.freeproxylists.net/
3 | 2=http://www.google-proxy.net/
--------------------------------------------------------------------------------
/resources/shells.ini:
--------------------------------------------------------------------------------
1 | [shell]
2 | 1=c99shell
3 | 2=C99Shell v
4 | 3=