The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: mikc on March 22, 2007, 10:33:42 PM

Title: socks5 help
Post by: mikc on March 22, 2007, 10:33:42 PM
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]
Title: Re: socks5 help
Post by: Tripper on March 22, 2007, 11:39:53 PM
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:
Title: Re: socks5 help
Post by: Timbo on March 23, 2007, 07:22:11 AM
Greetings,

Do a Google for RtlCopyMemory or use memcpy via msvcrt.

Hope this helps,

Tim
Title: Re: socks5 help
Post by: drizz on March 23, 2007, 10:26:25 AM
mov esi,to
lea esi,[esi].sockaddr_in.sin_addr.s_addr
lea edi,buf[4]
movsd
Title: Re: socks5 help
Post by: ecube 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.
Title: Re: socks5 help
Post by: Azu on September 22, 2009, 08:47:33 AM
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?
Title: Re: socks5 help
Post by: hutch-- on September 22, 2009, 09:25:28 AM
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.
Title: Re: socks5 help
Post by: Azu on September 22, 2009, 09:27:52 AM
When I try to open it it says off limits.  :(
Title: Re: socks5 help
Post by: hutch-- on September 22, 2009, 09:30:17 AM
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.