Hi, I would like to give internetprogramms networkability.
But I dont knoe where to start.
When I have to replace the target host with my proxy-server, how the proxy-server knows what it has to do with it ?

Please help.

:stupid:

Freindly greets FF !
Posted on 2003-04-09 13:30:12 by Forginforcer
Stop posting the same question in different threads! Read some documentation about the socks protocol, I don't think anyone has a ready to use example..

Thomas
Posted on 2003-04-09 14:21:55 by Thomas
I don know where to get these documenations ???
Could you give a doc, so I can reach my quest.

Bye !
Posted on 2003-04-09 14:58:29 by Forginforcer
Come on, do some searches.. A google search on 'socks protocol' gives the protocol as the first hit and a complete website about everything related to socks as the second. Not exactly hard to find :rolleyes:.

Thomas
Posted on 2003-04-09 15:01:48 by Thomas
I'm very sad, I cant find anything.

I just want to mail thruogh a proxy. For me its hard, but you are so good. Please help me .

Thanks + greets Forginforcer
Posted on 2003-04-13 06:57:22 by Forginforcer

I'm very sad, I cant find anything.

I just want to mail thruogh a proxy. For me its hard, but you are so good. Please help me .

Thanks + greets Forginforcer


You know how to type into the google search textbox?

http://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&q=send+email+through+proxy+source+code&btnG=Google+Search
Posted on 2003-04-13 07:32:12 by bazik
I'm still seeking for source in masm.
in the documentation isnt anything usefwul.
I woukld like to know how I have to use a command and commonicate with the proxy. But perhabs I will find something.
If you have something useful, could you mail me under BISONElec@WEB.de,
But now mailbomba, please ! :grin:

Greetz F?rginf?rcer !
Posted on 2003-04-13 09:11:07 by Forginforcer

I'm still seeking for source in masm.
in the documentation isnt anything usefwul.
I woukld like to know how I have to use a command and commonicate with the proxy. But perhabs I will find something.
If you have something useful, could you mail me under BISONElec@WEB.de,
But now mailbomba, please ! :grin:

Greetz F?rginf?rcer !


If you cant programm in assembler, you should either learn it or use another language, but not ask people to write the code for you.
Posted on 2003-04-13 11:25:33 by bazik
Hello bazik-boy !
Thats not my intention !
I just want to have a document or so, a code is good as well.
I can programm a little bit in Assembler, but i cant invent thinks.
the quest I have is sure pretty easy, but I dont know how to realize that. If I see code I learn faster. I never use commands, because when I write the code than its is in my brain for ever !
But in can fantasize thinks on my own, only creaty a total of parts !

Im not getting angry from your words. - I think you see me in a wrong in your eyes ! - your have helped me a lot, but if you stop to teacht, I cant learn !


greets Forginforcer !
Posted on 2003-04-13 11:55:04 by Forginforcer
>>Hello bazik-boy !

This is not kindergarden here. Its "bazik", nothing else.

>>your have helped me a lot, but if you stop to teacht, I cant learn !

Teaching does not help when you refuse to do something yourself for learning.
Posted on 2003-04-13 12:18:30 by bazik
forginforcer: read 16 bits AoA (Art of Assembly Language) on Randall Hyde's website. Also try to find an introductory c/c++ course because you mostly need to translate from c/c++ to asm.
Posted on 2003-04-13 12:21:41 by Hiroshimator
I havn't thought, that we were at the kindergarten !
I just a happy guy !
I have seek in the internet a for about 2 days - nothing found !
And I dont want to angrer you !
When you dont like me, we can go different ways ! - Im not intent do bother someone !

Your ForginforceR !
Posted on 2003-04-13 12:25:15 by Forginforcer
forginforcer for network related things the documentation is written in the form of an RFC (Request For Comment)

This file contains everything you need to operate the protocol but will NOT show you how to program it, doing this is the task of the programmer who is supposed to have mastered socket programming.

You can find good examples at various sites such as http://planetsourcecode.com which you can translate to asm.
Posted on 2003-04-13 12:34:14 by Hiroshimator
thanks ! - I will do my best !

May I ask, when some thinks are obscurely ?

bye
Posted on 2003-04-13 13:02:30 by Forginforcer
yes of course :)

the problem with network stuff is that protocols are just described as "expecting this and then you need to send that" so there's no talk about implementing it in reality.

That's why it's good to know c or vb so you can translate already made examples that make it easier to program your app.
Posted on 2003-04-13 13:05:59 by Hiroshimator
Hi, can you give me some more resources ?
Tonight I want to read everything about this proxy and smtpstuff.

Thanks !
Posted on 2003-04-13 13:28:42 by Forginforcer
Yeah I have some socks proxy example code, but honestly you shouldn't need it
All you should need is a rough winsock example, and the socks rfc.

If you are having trouble reading the rfc (don't they waffle on?), here's a basic idea of what is going on...

#1- connect to socksproxy server (port 1080?), and send your "connect" packet, which includes the ip and port you REALLY want to connect to..
#2-proxyserver replies with a definite YES or NO packet

If you get a positive response, that means that the socks server has connected to the remote host , and the "tunnel" is open ... you are still connected to the proxy on the same port you originally connected to, but you can imagine you are connected to the remote host you requested, because that's who you are talking to THROUGH the proxy server.
If the proxy says NO, it could be for a number of reasons.
Maybe the proxy can't connect to the remote host (maybe host is down).
Maybe it doesn't allow just anyone to connect through it, maybe it only likes certain ip ranges...
Maybe its a socks v5 server and requires a username / pass just to use the proxy to connect remotely...

That last one is a good reason to start with socks version 4, its so simple that it has no authentication at all, and the world is full of these babies.

Does this clarify things at all? I was tempted to talk about how to chain multiple proxies, but I'd just be muddying the waters further.

Take a look at the formatting for the CONNECT packet, and the reply packets ...
They're only a handful of bytes long.
Posted on 2003-04-23 08:54:01 by Homer
Hey thanks EvilHomer2k, the socks rtf i havn't read yet.
I will try ! * Perhaps I can return to your in case of some problems.

Bye !
Posted on 2003-04-23 14:36:35 by Forginforcer