forked from TheRook/subbrute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows_setup.py
26 lines (22 loc) · 797 Bytes
/
windows_setup.py
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
from cx_Freeze import setup, Executable
import shutil
import os
# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = dict(packages = ["dns"], excludes = [], include_files = ['resolvers.txt', 'names.txt', 'LICENSE'])
executables = [
Executable('subbrute.py', 'Console')
]
setup(name='SubBrute',
version = '2.0',
description = 'A fast and accurate subdomain enumeration tool.',
options = dict(build_exe = buildOptions),
executables = executables)
#copy from the build directory to ./windows/
src = "build\\exe.win32-3.4\\"
dest = "windows"
src_files = os.listdir(src)
for file_name in src_files:
full_file_name = os.path.join(src, file_name)
if (os.path.isfile(full_file_name)):
shutil.copy(full_file_name, dest)