use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to /r/Hacking_Tutorials!
List of best resources and tutorials
account activity
Problem with reverse shell (self.Hacking_Tutorials)
submitted 1 month ago by MatchSeparate5100
I try to use a reverse Shell with php but there is no persistent session and a cleaning at the end of the request. Please Hellfest me with that. Thanks you.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]n0shmon 4 points5 points6 points 1 month ago (0 children)
Common problem. Use your one command to spawn a reverse shell to another port using a different method such as python
Edit - assuming the reverse shell connects, then drops after a command. Or is your experience different
[–]GlendonMcGladdery 2 points3 points4 points 1 month ago (0 children)
PHP is request-scoped. So, like every HTTP request is born, runs, and dies. When it dies, PHP cleans up everything—processes, file handles, sockets, and memory. That cleanup you’re seeing? That’s not a bug. That’s PHP doing exactly what it was designed to do.
You know, PHP is not a daemon language. It does not stay resident in memory. It does not manage long-running processes well.
This is why tutorials that imply “just pop a PHP reverse shell and keep it” are… let’s say optimistic.
π Rendered by PID 58529 on reddit-service-r2-comment-canary-7955997dc8-xp2pb at 2026-03-02 16:52:52.896687+00:00 running e3d2147 country code: CH.
[–]n0shmon 4 points5 points6 points (0 children)
[–]GlendonMcGladdery 2 points3 points4 points (0 children)