1. URL 문법
- www.google.com/search?variable1=value&variable2=value
- www.google.com/search?q="i hack stuff" = www.google.com/search?q="i%20hack%20stuff"
- URL Encoding
- %20 : 공백
- %22 : "
- %27 : '
2. WebSearch Query Parameter Definitions
변수 |
값 |
설명 |
사용 예 |
c2coff |
1=Disabled 2=Enabled |
중국어 검색을 포함? |
q=google&c2coff=1 |
cr |
country국가 |
특정국가에서 발행한 문서 |
q=Frodo&cr=countryNZ |
filter |
1=Disabled 0=Enabled |
중복가능 페이지를 표시 |
q=google&filter=0 |
hl |
국가코드 |
사용자 인터페이스 언어 |
q=vin&ad=w5&hl=fr |
hq |
검색 단어 |
AND와 같은 의미? |
q=pizza&hq=cheese |
lr |
lang_국가코드 |
특정언어로 작성된 결과 |
q=Frodo&lr=lang_en |
num |
0 ~ 100 |
페이지당 결과 출력 개수 |
q=google&num=100 |
q |
검색어 |
검색할 단어 |
q=vacation&as_oq=london+paris |
restrict |
국가제한코드 |
결과를 특정 국가 페이지로 제한 |
restrict=countryKR |
safe |
off medium high |
세이프 스크린 모드 설정 |
q=adult&safe=high |
start |
0 ~ 결과개수 |
검색결과 출력 위치 첫번째 결과는0부터~시작 |
start=10 |
(Google's Advanced Search page)
3. Advanced Search Query Parameters
변수 |
값 |
설명 |
사용 예 |
as_sitesearch |
도메인 |
도메인을 지정하고 as_dt를 이용하여 검색결과에서 표시하거나 제외 |
q=vacation& as_sitesearch=www.google.com |
as_dt |
i = 도메인을 포함 e = 도메인을 제외 |
as_sitesearch에서 지정한 도메인을 포함 하거나 제외 |
as_dt=i,as_dt=e |
as_epq |
검색 단어 |
검색에 포함 할 단어 AND? |
as_epq=abraham+lincoln |
as_eq |
검색 단어 |
검색 제외 용어 |
q=bass&as_eq=music. |
as_lq |
URL |
특정 URL에 대한 링크가 있는 페이지를 검색함 |
as_lq=www.google.com |
as_nlo |
low 값 |
as_nlo와 as_nhi같이 사용 검색범위의 시작 값 지정 |
as_nlo=5&as_nhi=10 |
as_nhi |
high 값 |
as_nlo와 asnhi같이 사용 검색범위의 마지막 값 지정 |
as_nlo=5&as_nhi=10 |
as_oq |
검색 단어 |
검색 결과 중 적어도 하나만 포함 해도 출력 (결과 내 추가 검색) |
q=vacation& as_oq=London+Paris |
as_q |
검색 단어 |
검색 결과 중 모두 포함 하는 것만 출력 (결과 내 추가 검색) |
q=president& as_q=John+Adams |
as_qdr |
ALL = 모든결과 D5 = 5일 W2 = 2주 M3 = 3달 Y = 작년 |
지정된 기간의 검색 결과를 반환 |
This example requests results from the past year: |
as_rq |
URL |
특정 URL과 관련된 페이지 검색 |
as_rq=www.google.com |
4.Special Query Terms
키워드 |
설명 |
사용 예 |
link: |
특정 값을 링크로 가지고 있는 문서를 검색 |
link:google |
-filetype: |
특정 확장자 파일 제외 |
-flietype:pdf |
filetype: |
특정 확장자의 파일을 검색 |
filetype:pdf, (filetype:doc I filetype:pdf) |
allinlinks: |
여러 값을 링크로 가지고 있는 문서를 검색 |
allinlinks:google naver |
related: |
특정 URL과 유사한 웹페이지 세트 검색 |
related:chosun.co.kr |
allintext: | 페이지 본문에서 문자열 검색 | allintext:Google search |
intitle: |
제목에 특정 단어가 포함 문서 검색 |
User input:intitle:Google search Query term:q=intitle%3AGoogle+search |
allintitle: |
제목에 여러 단어가 포함된 문서 검색 |
allintitle:"index.of" "root" |
inurl: |
URL에 특정 단어가 포함 된 문서를 검색 |
inurl:Google |
allinurl: | URL에 여러 단어가 포함된 문서 검색 | allinurl: Google search |
info: |
특정페이지 요약 |
site:google.com |
site: | 특정 사이트에서 검색 | site:naver.com |
Reference : https://developers.google.com/custom-search/docs/xml_results
'Information Security > Web Application' 카테고리의 다른 글
Diretory Guessing (0) | 2015.07.13 |
---|---|
Web management pages Guessing (0) | 2015.04.14 |
구글 해킹 (0) | 2014.10.28 |