티스토리 뷰
필요사항
- python 설치(2.7로만 해봤음)
- pip 설치
construct
- 사용 방법 : import construct
- 설치 방법 : pip install construct
- 페이로드용 템플릿 생성에 유용함(https://www.exploit-db.com/exploits/41993/)
flask(https://pypi.org/project/Flask/)
- 사용 방법 : from flask import Flask
- 설치 방법 : pip install -U Flask
- HTTPS 사용 : https://blog.miguelgrinberg.com/post/running-your-flask-application-over-https
- pip install pyopenssl 필요
- openssl로 인증서랑 키 생성 후, app.run의 ssl_context 키워드에 인증서와 키의 경로를 tuple로 전달해주면 자동으로 https로 됨
- 참고 : http://flask.pocoo.org/docs/1.0/installation/#dependencies
netifaces
- 사용 방법 : import netifaces
- 설치 방법 : pip install netifaces
- 자신의 호스트 네트워크 인터페이스로부터 정보(MAC, IP)를 가져오는데 사용할 수 있음
pycrypto(https://securityblog.gr/3282/how-to-install-pycrypto-on-windows/)
- 사용 방법 : import Crypto
- 설치 방법 : pip install pycrypto
- 사전 설치 필요 : Microsoft Visual C++ Compiler for Python 2.7(https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266)
- 참고 : https://luiscberrocal.wordpress.com/2012/07/18/installing-and-using-pycrypto-on-windows-7/
- 오류(import Crypto를 해도 안 되고, pip install pycrypto --upgrade 를 해도 있다고 할 때) :
- pip uninstall Crypto
- pip uninstall pycrypto
- python 최신으로 업데이트(https://www.python.org/downloads/)
- pip install pycrypto (SMI~~ 같은 이상한 오류가 날 때, 해결한 상태)
Twisted(https://twistedmatrix.com/trac/wiki/Downloads)
- 사용 방법 : import twisted
- 설치 방법 : pip install Twisted[windows_platform]
'Programming > Python' 카테고리의 다른 글
Python hexdump 구현 (0) | 2017.10.17 |
---|---|
Python Network Fuzzer 기본 코드 (0) | 2017.10.17 |
Windows Python 환경 변수 등록 및 pip 설치 (0) | 2017.10.01 |
BeautifulSoup 안 쓰고 만드는 Python 크롤러 (2) | 2017.03.31 |
Python 모듈별 정리본 (0) | 2016.09.12 |