-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyrasite-shell getting permission denied in debugged process #71
Comments
same problem |
I fix it by letting the user of program needed to be injected run pyrasite-shell By: sudo vi /etc/sysctl.d/10-ptrace.conf ; set the value from 1 to 0; sudo sysctl -p; |
I fix it by letting everyone to read the temp file used to store the injected commands: (in file def create_payload(self):
"""Write out a reverse python connection payload with a custom port"""
(fd, filename) = tempfile.mkstemp()
+ os.chmod(filename, 0o644)
tmp = os.fdopen(fd, 'w')
path = dirname(abspath(pyrasite.__file__))
payload = open(join(path, 'reverse.py')) |
user202729
added a commit
to user202729/pyrasite-ng
that referenced
this issue
Mar 3, 2021
…n#71 Not tested on Windows.
user202729
added a commit
to user202729/pyrasite-ng
that referenced
this issue
Mar 3, 2021
…n#71 Not tested on Windows.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello:
I'm seeing the following in the ouput of the debugged process when trying to run pyrasite-shell on it:
And that file does not exist. My usage is just:
Normal pyrasite seems to work, at least this does:
Any thoughts?
The text was updated successfully, but these errors were encountered: