-
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.
Re-implement sh_string to use embedded literals, add lots of tests (#717
) * Re-implement sh_string to use embedded literals, add lots of tests * Add docs for sh_string so that unit tests get picked up * Mark the docstrings as raw * Rewrite doctests to not "print" since this breaks with invisible characters (issue with doctest itself) * Add test which uses 16KB of random non-NUL data
- Loading branch information
1 parent
8f06c1f
commit 25d340b
Showing
8 changed files
with
526 additions
and
172 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.. testsetup:: * | ||
|
||
from pwn import * | ||
test = pwnlib.util.sh_string.test | ||
|
||
:mod:`pwnlib.util.sh_string` --- Shell Expansion is Hard | ||
=============================================================== | ||
|
||
.. automodule:: pwnlib.util.sh_string | ||
:members: |
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 |
---|---|---|
|
@@ -15,4 +15,5 @@ | |
from . import packing | ||
from . import proc | ||
from . import safeeval | ||
from . import sh_string | ||
from . import web |
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
Oops, something went wrong.