Skip to content

Commit 72f6a61

Browse files
committed
Don't deprecate all commandline tools
1 parent ab16ddc commit 72f6a61

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

setup.py

+25-1
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,38 @@
3131
else:
3232
flag = False
3333

34+
DEPRECATED_SCRIPTS= [
35+
'asm',
36+
# 'checksec',
37+
# 'constgrep',
38+
'cyclic',
39+
'debug',
40+
'disablenx',
41+
'disasm',
42+
'elfdiff',
43+
'elfpatch',
44+
'errno',
45+
'hex',
46+
# 'libcdb',
47+
# 'phd',
48+
# 'pwnstrip',
49+
'scramble',
50+
# 'shellcraft',
51+
'template',
52+
'unhex',
53+
]
54+
3455
for filename in glob.glob('pwnlib/commandline/*'):
3556
filename = os.path.basename(filename)
3657
filename, ext = os.path.splitext(filename)
3758

3859
if ext != '.py' or filename in ('__init__', 'common', 'main', 'update', 'version'):
3960
continue
4061

41-
script = '%s=pwnlib.commandline.common:deprecated_main' % filename
62+
if filename in DEPRECATED_SCRIPTS:
63+
script = '%s=pwnlib.commandline.common:deprecated_main' % filename
64+
else:
65+
script = '%s=pwnlib.commandline.common:main' % filename
4266
if not flag:
4367
console_scripts.append(script)
4468

0 commit comments

Comments
 (0)