flat assembler
Message board for the users of flat assembler.

Index > Heap > how to access PROXY

Author
Thread Post new topic Reply to topic
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle
how to access proxy and send tcp request for something...
how to format data to get positive result.
Should I use different protocol than tcp for it ?

_________________
Microsoft: brings power of yesterday to computers of today.
Post 26 Apr 2005, 11:51
View user's profile Send private message Reply with quote
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle
My Intranet has a very hard security policy and most usable ports,protocols and servers are blocked through the Proxy
So I decide to do own tunnel with coded connection to server in my home.
Only ports 25,80 and 443 are usable for it.
Only on 443 port the Proxy Server do not watch what is transferred.
I coded simple client but I had no idea how to get proxy to connect outside.

I answer for myself;)

There are a few protocols to get or connect outside resource through the proxy server.
The most common is HTTP proxy with FTP support
The others are called SOCK v5,SOCK v4 and SOCK v4a
The are many and many another protocols but not so popular and rather exotic;)

The main idea is to connect to proxy on specified address:port and send request for remote resource.
Then Proxy Server analize the message and if it's all right, connect to remote resource. Smile
sounds nice and it's real piece of cake.


->HTTP Proxy : if you can get local proxy to make connection with remote proxy server with opened 443 port
you can do everything you want.
No restricted ports, protocols, just freedom Wink
All you need to know is:


1: connect to proxy_addres, proxy_port by standard TCP
2: send request
3: receive proxy answer
4: if ok then Yahoo Wink

Code:
. . .
.data
proxy_string db 'CONNECT sfh.pl:443 HTTP/1.0',CR,LF,\
                'HOST sfh.pl:443',            CR,LF,\
                                              CR,LF
dl_proxy = $ - proxy_string
. . .
. . .
.code
. . .
. . .
invoke send,[s],proxy_string,dl_proxy ,0
. . .
    

Of course sfh.pl is ssh server and you need an account to login and ssh protocol to "handshake" connection Wink
its was only an example but you can code server yourself with own protocol or just use putty.exe

T.B.C.

_________________
Microsoft: brings power of yesterday to computers of today.
Post 29 Apr 2005, 09:59
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
Hello HarryTuttle,
could you recommend me some software for debugging the internet connection of my whole machine?

i don't even have an idea of what should i search for.
Post 30 Apr 2005, 16:51
View user's profile Send private message Visit poster's website Reply with quote
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle
if you want to know what exe file open or listen on a specified port get this
TCP-VIEWER



I think it's better than netstat because of more information and nice gui interface:)

_________________
Microsoft: brings power of yesterday to computers of today.
Post 30 Apr 2005, 19:36
View user's profile Send private message Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Matrix
Thank you,
but this can be done with "my" Kerio firewall,
could you suggest a program that monitors each byte/packet not just connections that my computer is recieving and sending to network? you know, something like soft - ice debugger, but i'd like to debug only network, not the exe files, let's say a java applet can make internet coneections too, and is not an exe file.
Post 01 May 2005, 08:20
View user's profile Send private message Visit poster's website Reply with quote
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle
I do not know any program without sniffer like.
but winpcap can help you to capture every outgoing packets.

_________________
Microsoft: brings power of yesterday to computers of today.
Post 02 May 2005, 04:27
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.