Commit 17ad2f2f authored by Luke Macken's avatar Luke Macken

whitespace

parent 5c5e9199
...@@ -34,17 +34,17 @@ process and ensures it gets printed. ...@@ -34,17 +34,17 @@ process and ensures it gets printed.
.. code-block:: python .. code-block:: python
from pyrasite.inject import CodeInjector from pyrasite.inject import CodeInjector
def test_injection(self): def test_injection(self):
cmd = 'python -c "import time; time.sleep(0.5)"' cmd = 'python -c "import time; time.sleep(0.5)"'
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
ci = CodeInjector(p.pid, 'payloads/helloworld.py') ci = CodeInjector(p.pid, 'payloads/helloworld.py')
ci.inject() ci.inject()
stdout, stderr = p.communicate() stdout, stderr = p.communicate()
assert 'Hello World!' in stdout, "Code injection failed" assert 'Hello World!' in stdout, "Code injection failed"
Payloads Payloads
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment