Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Windows sockets

Name: Anonymous 2008-10-21 7:20

Sup /prog/

I want to know if this is possible under Windows. Basically, there's an application which opens a TCP connection to a server. From a separate application, I want to be able to somehow grab a handle of that socket, then use it for normal read/write operations without disrupting the connection.

Name: Anonymous 2008-10-21 7:20

Is it possible?

Name: Anonymous 2008-10-21 8:15

Enjoy your UNDEFINED STATE.

Name: Anonymous 2008-10-21 19:28

Windows doesn't support passing of sockets back and forth between processes. Unix does.

You're out of luck unless you switch to an Unix-like target.

Name: Anonymous 2008-10-22 14:52

Inject the 2nd program into the 1st one and patch that shit so that you can do your thing reliably

Name: Anonymous 2008-10-22 17:27

Of course it's possible, a lot of malware (like the one you're trying to write) does it.

Name: Anonymous 2008-10-23 3:21

OP here. I was hoping Windows provided some standard functionality to do that, but I guess it doesn't.
dll injection is a pain in the ass, but it can't be helped.

Name: Anonymous 2008-10-23 3:38

use winpcap and send out raw packets.

Name: Anonymous 2008-10-23 4:02

>>4

A faggy nigger appears.

WSADuplicateSocket()

I am liks some kind of god to you idiots.

Name: Anonymous 2008-10-23 4:09

>>9
I'm not sure you understand the OP's situation. He wants to use an existing socket created from a different application, from his own program. There's no Windows functionality to do that.

Name: Anonymous 2008-10-23 4:29

>>8
Not practical. There could be a delay between when wpcap gets the tcp frame, and when the frame was received. Using incorrect values in any of the tcp fields will kill the connection, which for all intents and purposes is not desirable.

Name: Anonymous 2008-10-23 4:32

Name: Anonymous 2008-10-23 5:23

>>11
it's no more difficult than any other method suggested in this thread, assuming you don't have the source code of the application you want to steal the socket from.

Name: he 2008-10-26 12:13

hello

Name: Anonymous 2009-03-06 11:22


Reliably respond to unusual events because you   take more time   thinking than typing.

Name: Anonymous 2010-12-06 9:33

Back to /b/, ``GNAA Faggot''

Don't change these.
Name: Email:
Entire Thread Thread List