News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

socks5 help

Started by mikc, March 22, 2007, 10:33:42 PM

Previous topic - Next topic

mikc

ok basically im trying to port a implementation of a socks 5 client i found off of online in c++
im on the part where the client now to send the server the destination address
im kinda of confused right now how i could possibly port this line :)
memcpy ( buf+4, &to->sin_addr.s_addr, sizeof(DWORD) ); // char buf[255]

Tripper

Tread lightly.

If BogdanOntanu hears you talking of socks and 5, he'll put it together somehow that you are trying to hack NASA through a server in Cuba and lock this thread.  :naughty:

Timbo

Greetings,

Do a Google for RtlCopyMemory or use memcpy via msvcrt.

Hope this helps,

Tim

drizz

mov esi,to
lea esi,[esi].sockaddr_in.sin_addr.s_addr
lea edi,buf[4]
movsd
The truth cannot be learned ... it can only be recognized.

ecube

I implemented socks4 here http://www.masm32.com/board/index.php?topic=4056.0 you can add socks5 support pretty easy, just take a look at the protocol.

Azu

Quote from: E^cube on March 24, 2007, 06:46:55 PM
I implemented socks4 here http://www.masm32.com/board/index.php?topic=4056.0 you can add socks5 support pretty easy, just take a look at the protocol.
Why is it off limits?

hutch--

Azu,

Its not, its an old post that no-one took any notice of, winsock style programming is valid stuff. Just stay away from things that can be used for hacking. Cube was just making some humour.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Azu

When I try to open it it says off limits.  :(

hutch--

It has probably been removed a long time ago. If you have a question in a specific area, ask it making sure the question makes sense and someone may be able to help you with it.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php