-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor command-line tools to use a single "pwn" entry point. (#701)
Adds an install-time option to disable legacy commands, and only use 'pwn': $ pip install --install-option='--only-use-pwn-command' Documentation is updated to show 'pwn' entry point and sub-commands. Fixes #404 Fixes #660
- Loading branch information
Showing
20 changed files
with
190 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# empty | ||
#!/usr/bin/env python2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
from .common import parser | ||
from . import asm | ||
from . import checksec | ||
from . import common | ||
from . import constgrep | ||
from . import cyclic | ||
from . import disasm | ||
from . import elfdiff | ||
from . import elfpatch | ||
from . import errno | ||
from . import hex | ||
from . import phd | ||
from . import pwnstrip | ||
from . import scramble | ||
from . import shellcraft | ||
from . import unhex | ||
|
||
commands = { | ||
'asm': asm.main, | ||
'checksec': checksec.main, | ||
'constgrep': constgrep.main, | ||
'cyclic': cyclic.main, | ||
'disasm': disasm.main, | ||
'elfdiff': elfdiff.main, | ||
'elfpatch': elfpatch.main, | ||
'errno': errno.main, | ||
'hex': hex.main, | ||
'phd': phd.main, | ||
'pwnstrip': pwnstrip.main, | ||
'scramble': scramble.main, | ||
'shellcraft': shellcraft.main, | ||
'unhex': unhex.main, | ||
} | ||
|
||
def main(): | ||
args = parser.parse_args() | ||
commands[args.command](args) | ||
|
||
if __name__ == '__main__': | ||
main() |
Oops, something went wrong.