▣ CX-Freeze를 이용한 실행파일 변환(.Py → .EXE)
1) https://pypi.python.org/pypi?:action=display&name=cx_Freeze&version=4.3.3 내
자신에게 맞는 CX-Freeze버전 다운로드 후 설치
2) setup.py생성 후 아래와 같은 코드 작성
import sys
from cx_Freeze import setup, Executable
executables = [
Executable("파일명.py")
]
buildOptions = dict(
compressed = True,
includes = ["blind"],
path = sys.path + ["modules"])
# 파일속성 및 설명
setup(
name = "BlindSQLInjection",
version = "1.0",
description = "Blind SQL Injection Tool",
options = dict(build_exe = buildOptions),
executables = executables)
3) 바꾸고자하는 py파일과 setup.py파일을 같은 폴더 내에 저장
4) CMD실행 후 해당 디렉토리로 이동, 아래와 같은 코드 실행
5) 폴더 및 파일 생성 확인
6) exe파일 실행결과(Command 옵션입력)
▣ 향후 발전 및 보완사항
1) 한글데이터 추출 및 출력(Encoding문제)
2) 속도제한기능(timeout)
3) Multi-Thread 지원
4) GUI환경 지원
'Python > Tools' 카테고리의 다른 글
| [Python-Tools] Blind SQL Injection Tool - 6 (구현) (0) | 2014.12.23 |
|---|---|
| [Python-Tools] Blind SQL Injection Tool - 5 (구현) (0) | 2014.12.23 |
| [Python-Tools] Blind SQL Injection Tool - 4 (구현) (0) | 2014.12.23 |
| [Python-Tools] Blind SQL Injection Tool - 3 (구현) (0) | 2014.12.23 |
| [Python-Tools] Blind SQL Injection Tool - 2 (구현) (0) | 2014.12.23 |