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]
Tread lightly.
If BogdanOntanu (http://www.masm32.com/board/index.php?action=profile;u=139) 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:
Greetings,
Do a Google for RtlCopyMemory or use memcpy via msvcrt.
Hope this helps,
Tim
mov esi,to
lea esi,[esi].sockaddr_in.sin_addr.s_addr
lea edi,buf[4]
movsd
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.
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?
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.
When I try to open it it says off limits. :(
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.