0w0
[primalsecurity] 0x5 – Web Requests 본문
Primalsecurity/Primalsecurity_Python-tutorials
[primalsecurity] 0x5 – Web Requests
0w0 2019. 12. 24. 13:07728x90
반응형
요청/응답에 대한 분석 모듈(httplib, Mechanize, Beautiful Soup, and urllib/urllib2) 사용
Making a Web Request ( 웹 요청 생성 )
요청 전송/응답 확인 Python SimpleHTTPServer
Parsing HTML ( HTML 파싱 )
웹 요청에 대한 응답 페이지 html 코드를 파싱
BeautifulSoup 모듈을 사용해서 HTML 태그를 기반으로 보기 좋게 재정렬
파싱한 html 코드를 태그별로 출력 및 분석 가능
parsed.title - 페이지 title 태그 출력, This is a Title!
parsed.body - 페이지 body 태그 출력
parsed.iframe - 페이지 iframe 태그 출력
parsed - 응답받은 html 코드 (파싱된 html 코드)
Practical Application ( 연습 )
728x90
반응형
'Primalsecurity > Primalsecurity_Python-tutorials' 카테고리의 다른 글
[primalsecurity] 0x7 – Web Scanning and Exploitation (0) | 2019.12.24 |
---|---|
[primalsecurity] 0x6 – Spidering (0) | 2019.12.24 |
[primalsecurity] 0x4 – Python to EXE (0) | 2019.12.23 |
[primalsecurity] 0x3 – Fuzzer (0) | 2019.12.21 |
[primalsecurity] 0x2 – Reverse Shell (0) | 2019.12.19 |
Comments