티스토리 뷰

필요사항

  • 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 를 해도 있다고 할 때) : 

  1. pip uninstall Crypto
  2. pip uninstall pycrypto
  3. python 최신으로 업데이트(https://www.python.org/downloads/)
  4. pip install pycrypto (SMI~~ 같은 이상한 오류가 날 때, 해결한 상태)

Twisted(https://twistedmatrix.com/trac/wiki/Downloads)

- 사용 방법 : import twisted

- 설치 방법 : pip install Twisted[windows_platform]


댓글
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31