Google hacking for penetration tester part 4
- 10 trang
- file .pdf
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 31
Google Search Basics • Chapter 1 31
Table 1.4 continued h1 Language Field Values
hl Language Code Language
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
xx-hacker Hacker
iw Hebrew
hi Hindi
hu Hungarian
is Icelandic
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
xx-klingon Klingon
ko Korean
ku Kurdish
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
mk Macedonian
ms Malay
ml Malayalam
mt Maltese
Continued
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 32
32 Chapter 1 • Google Search Basics
Table 1.4 continued h1 Language Field Values
hl Language Code Language
mr Marathi
mo Moldavian
mn Mongolian
ne Nepali
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
ps Pashto
fa Persian
xx-piglatin Pig Latin
pl Polish
pt-BR Portuguese (Brazil)
pt-PT Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
ru Russian
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
Continued
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 33
Google Search Basics • Chapter 1 33
Table 1.4 continued h1 Language Field Values
hl Language Code Language
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Underground Googling…
Sticky Subject
The hl value is sticky! This means that if you change this value in your URL, it sticks for
future searches. The best way to change it back is through Google preferences or by
changing the hl code directly inside the URL.
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 34
34 Chapter 1 • Google Search Basics
The restrict variable is easily confused with the lr variable, since it restricts your search to
a particular language. However, restrict has nothing to do with language.This variable gives
you the ability to restrict your search results to one or more countries, determined by the
top-level domain name (.us, for example) and/or by geographic location of the server’s IP
address. If you think this smells somewhat inexact, you’re right. Although inexact, this vari-
able works amazingly well. Consider a search for people in which we restrict our results to JP
(Japan), as shown in Figure 1.19. Our URL has changed to include the restrict value (shown
in Table 1.5), but notice that the second hit is from www.unu.edu, the location of which is
unknown. As our sidebar reveals, the host does in fact appear to be located in Japan.
Figure 1.19 Using restrict to Narrow Results
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 35
Google Search Basics • Chapter 1 35
Underground Googling…
How Google Owns the Continents
It’s easy to get a relative idea of where a host is located geographically. Here’s
how host and whois can be used to figure out where www.unu.edu is located:
wh00p:~# host www.unu.edu
www.unu.edu has address 202.253.138.42
wh00p:~# whois 202.253.138.42
role: Japan Network Information Center
address: Kokusai-Kougyou-Kanda Bldg 6F, 2-3-4 Uchi-Kanda
address: Chiyoda-ku, Tokyo 101-0047, Japan
country: JP
phone: +81-3-5297-2311
fax-no: +81-3-5297-2312
Table 1.5 restrict Field Values
Country Restrict Code
Andorra countryAD
United Arab Emirates countryAE
Afghanistan countryAF
Antigua and Barbuda countryAG
Anguilla countryAI
Albania countryAL
Armenia countryAM
Netherlands Antilles countryAN
Angola countryAO
Antarctica countryAQ
Argentina countryAR
American Samoa countryAS
Austria countryAT
Continued
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 36
36 Chapter 1 • Google Search Basics
Table 1.5 continued restrict Field Values
Country Restrict Code
Australia countryAU
Aruba countryAW
Azerbaijan countryAZ
Bosnia and Herzegowina countryBA
Barbados countryBB
Bangladesh countryBD
Belgium countryBE
Burkina Faso countryBF
Bulgaria countryBG
Bahrain countryBH
Burundi countryBI
Benin countryBJ
Bermuda countryBM
Brunei Darussalam countryBN
Bolivia countryBO
Brazil countryBR
Bahamas countryBS
Bhutan countryBT
Bouvet Island countryBV
Botswana countryBW
Belarus countryBY
Belize countryBZ
Canada countryCA
Cocos (Keeling) Islands countryCC
Congo, The Democratic Republic of the countryCD
Central African Republic countryCF
Congo countryCG
Burundi countryBI
Benin countryBJ
Bermuda countryBM
Brunei Darussalam countryBN
Bolivia countryBO
Continued
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 37
Google Search Basics • Chapter 1 37
Table 1.5 continued restrict Field Values
Country Restrict Code
Brazil countryBR
Bahamas countryBS
Bhutan countryBT
Bouvet Island countryBV
Botswana countryBW
Belarus countryBY
Belize countryBZ
Canada countryCA
Cocos (Keeling) Islands countryCC
Congo, The Democratic Republic of the countryCD
Central African Republic countryCF
Congo countryCG
Switzerland countryCH
Cote D’ivoire countryCI
Cook Islands countryCK
Chile countryCL
Cameroon countryCM
China countryCN
Colombia countryCO
Costa Rica countryCR
Cuba countryCU
Cape Verde countryCV
Christmas Island countryCX
Cyprus countryCY
Czech Republic countryCZ
Germany countryDE
Djibouti countryDJ
Denmark countryDK
Dominica countryDM
Dominican Republic countryDO
Algeria countryDZ
Ecuador countryEC
Continued
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 38
38 Chapter 1 • Google Search Basics
Table 1.5 continued restrict Field Values
Country Restrict Code
Estonia countryEE
Egypt countryEG
Western Sahara countryEH
Eritrea countryER
Spain countryES
Ethiopia countryET
European Union countryEU
Finland countryFI
Fiji countryFJ
Falkland Islands (Malvinas) countryFK
Micronesia, Federated States of countryFM
Faroe Islands countryFO
France countryFR
France, Metropolitan countryFX
Gabon countryGA
United Kingdom countryUK
Grenada countryGD
Georgia countryGE
French Quiana countryGF
Ghana countryGH
Gibraltar countryGI
Greenland countryGL
Gambia countryGM
Guinea countryGN
Guadeloupe countryGP
Equatorial Guinea countryGQ
Greece countryGR
South Georgia and the South countryGS
Sandwich Islands
Guatemala countryGT
Guam countryGU
Guinea-Bissau countryGW
Continued
Google Search Basics • Chapter 1 31
Table 1.4 continued h1 Language Field Values
hl Language Code Language
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
xx-hacker Hacker
iw Hebrew
hi Hindi
hu Hungarian
is Icelandic
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
xx-klingon Klingon
ko Korean
ku Kurdish
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
mk Macedonian
ms Malay
ml Malayalam
mt Maltese
Continued
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 32
32 Chapter 1 • Google Search Basics
Table 1.4 continued h1 Language Field Values
hl Language Code Language
mr Marathi
mo Moldavian
mn Mongolian
ne Nepali
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
ps Pashto
fa Persian
xx-piglatin Pig Latin
pl Polish
pt-BR Portuguese (Brazil)
pt-PT Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
ru Russian
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
Continued
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 33
Google Search Basics • Chapter 1 33
Table 1.4 continued h1 Language Field Values
hl Language Code Language
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Underground Googling…
Sticky Subject
The hl value is sticky! This means that if you change this value in your URL, it sticks for
future searches. The best way to change it back is through Google preferences or by
changing the hl code directly inside the URL.
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 34
34 Chapter 1 • Google Search Basics
The restrict variable is easily confused with the lr variable, since it restricts your search to
a particular language. However, restrict has nothing to do with language.This variable gives
you the ability to restrict your search results to one or more countries, determined by the
top-level domain name (.us, for example) and/or by geographic location of the server’s IP
address. If you think this smells somewhat inexact, you’re right. Although inexact, this vari-
able works amazingly well. Consider a search for people in which we restrict our results to JP
(Japan), as shown in Figure 1.19. Our URL has changed to include the restrict value (shown
in Table 1.5), but notice that the second hit is from www.unu.edu, the location of which is
unknown. As our sidebar reveals, the host does in fact appear to be located in Japan.
Figure 1.19 Using restrict to Narrow Results
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 35
Google Search Basics • Chapter 1 35
Underground Googling…
How Google Owns the Continents
It’s easy to get a relative idea of where a host is located geographically. Here’s
how host and whois can be used to figure out where www.unu.edu is located:
wh00p:~# host www.unu.edu
www.unu.edu has address 202.253.138.42
wh00p:~# whois 202.253.138.42
role: Japan Network Information Center
address: Kokusai-Kougyou-Kanda Bldg 6F, 2-3-4 Uchi-Kanda
address: Chiyoda-ku, Tokyo 101-0047, Japan
country: JP
phone: +81-3-5297-2311
fax-no: +81-3-5297-2312
Table 1.5 restrict Field Values
Country Restrict Code
Andorra countryAD
United Arab Emirates countryAE
Afghanistan countryAF
Antigua and Barbuda countryAG
Anguilla countryAI
Albania countryAL
Armenia countryAM
Netherlands Antilles countryAN
Angola countryAO
Antarctica countryAQ
Argentina countryAR
American Samoa countryAS
Austria countryAT
Continued
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 36
36 Chapter 1 • Google Search Basics
Table 1.5 continued restrict Field Values
Country Restrict Code
Australia countryAU
Aruba countryAW
Azerbaijan countryAZ
Bosnia and Herzegowina countryBA
Barbados countryBB
Bangladesh countryBD
Belgium countryBE
Burkina Faso countryBF
Bulgaria countryBG
Bahrain countryBH
Burundi countryBI
Benin countryBJ
Bermuda countryBM
Brunei Darussalam countryBN
Bolivia countryBO
Brazil countryBR
Bahamas countryBS
Bhutan countryBT
Bouvet Island countryBV
Botswana countryBW
Belarus countryBY
Belize countryBZ
Canada countryCA
Cocos (Keeling) Islands countryCC
Congo, The Democratic Republic of the countryCD
Central African Republic countryCF
Congo countryCG
Burundi countryBI
Benin countryBJ
Bermuda countryBM
Brunei Darussalam countryBN
Bolivia countryBO
Continued
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 37
Google Search Basics • Chapter 1 37
Table 1.5 continued restrict Field Values
Country Restrict Code
Brazil countryBR
Bahamas countryBS
Bhutan countryBT
Bouvet Island countryBV
Botswana countryBW
Belarus countryBY
Belize countryBZ
Canada countryCA
Cocos (Keeling) Islands countryCC
Congo, The Democratic Republic of the countryCD
Central African Republic countryCF
Congo countryCG
Switzerland countryCH
Cote D’ivoire countryCI
Cook Islands countryCK
Chile countryCL
Cameroon countryCM
China countryCN
Colombia countryCO
Costa Rica countryCR
Cuba countryCU
Cape Verde countryCV
Christmas Island countryCX
Cyprus countryCY
Czech Republic countryCZ
Germany countryDE
Djibouti countryDJ
Denmark countryDK
Dominica countryDM
Dominican Republic countryDO
Algeria countryDZ
Ecuador countryEC
Continued
452_Google_2e_01.qxd 10/5/07 12:12 PM Page 38
38 Chapter 1 • Google Search Basics
Table 1.5 continued restrict Field Values
Country Restrict Code
Estonia countryEE
Egypt countryEG
Western Sahara countryEH
Eritrea countryER
Spain countryES
Ethiopia countryET
European Union countryEU
Finland countryFI
Fiji countryFJ
Falkland Islands (Malvinas) countryFK
Micronesia, Federated States of countryFM
Faroe Islands countryFO
France countryFR
France, Metropolitan countryFX
Gabon countryGA
United Kingdom countryUK
Grenada countryGD
Georgia countryGE
French Quiana countryGF
Ghana countryGH
Gibraltar countryGI
Greenland countryGL
Gambia countryGM
Guinea countryGN
Guadeloupe countryGP
Equatorial Guinea countryGQ
Greece countryGR
South Georgia and the South countryGS
Sandwich Islands
Guatemala countryGT
Guam countryGU
Guinea-Bissau countryGW
Continued