[Tutor] WINSOCK stdin question

ALAN GAULD alan.gauld at btinternet.com
Sat Feb 7 15:14:41 CET 2009


CCing the list...
Please use ReplyAll when replying to tutor mail.



________________________________
From: Tom Green <xchimeras at gmail.com>
To: Alan Gauld <alan.gauld at btinternet.com>
Sent: Saturday, 7 February, 2009 11:42:23 AM
Subject: Re: [Tutor] WINSOCK stdin question

Yes, this is exactly what I am looking to accomplish.  On one host I have an application that is sending cmd.exe to a second host.  I want to do like you said, but I can't figure it out.  Here is an example of Netcat.

http://www.plenz.com/reverseshell

Thank you.




On Sat, Feb 7, 2009 at 4:27 AM, Alan Gauld <alan.gauld at btinternet.com> wrote:


"Tom Green" <xchimeras at gmail.com> wrote


I am trying to reproduce what Netcat does.


> sends out a reverse shell (CMD prompt).  I have a listening > Python socket
> and I would like to know how I can redirect the CMD prompt to > stdin, so I
> can interact with the host that is sending the shell.  Basically > this is


OK, I think what you want is a python program that will capture the output
from your application over a socket and display it as a prompt on the
remote host. It will then take input from the user (or maybe just from
processing data?) and push it back to your application as input. Is that it?
So the python user thinks he has a CMD shell on his local machine but
it is really running on the other machine? Almost like ssh but without the
encryption and other safety/security features??

Is that what you want?


Alan G 

_______________________________________________
Tutor maillist  -  Tutor at python.org
http://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090207/edce602b/attachment-0001.htm>


More information about the Tutor mailing list