Commit 1b56df20 authored by Luke Macken's avatar Luke Macken

Give everyone read permissions on the temporary payloads.

This allows the injected process to read the payload regardless of what user
did the injection.
parent bdc07553
......@@ -20,6 +20,7 @@
"""
import os
import stat
import socket
import struct
import tempfile
......@@ -138,6 +139,8 @@ class PyrasiteIPC(object):
tmp.close()
payload.close()
os.chmod(filename, stat.S_IREAD | stat.S_IRGRP | stat.S_IROTH)
return filename
def inject(self):
......
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