Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

tcp spy ?

 [1/8] from: patrick:philipot:laposte at: 10-Aug-2003 12:11


Hi List I am looking for a script/an example/a piece of code to spy what is going on between a server and a client. The server, dbtcp.exe, is listening on tcp://3000. The client, DBTCPClientTest.exe, is sending its request on the same port. My goal is to write a Rebol client, but I don't know exactly what the client is sending and what the server is answering. So I wonder it is perhaps possible to write a Rebol program to dump the data. I have tried a few things, but it is too hard for me! Note: the port number can be changed on both the client and the server, and for the moment both programs are on the same machine. Any help will be greatly appreciated... Regards Patrick

 [2/8] from: petr:krenzelok:trz:cz at: 10-Aug-2003 12:31


patrick wrote:
>Hi List >I am looking for a script/an example/a piece of code to spy what is going on between a server and a client.
<<quoted lines omitted: 7>>
>Regards >Patrick
Hi, does it have to be a rebol? If you want to watch your packets, I would suggest you fine tool called Ethereal. It is completly free and powerfull. Otherwise - how would you achieve it? You have to go to Ethernet layer to watch your communication. If you want to use just Rebol + TCP, - you can't do it im technically. The only possible way is to put proxy (you can find one in library) in-between your server and client - that way you will be able to control what is being communicated ... -pekr-

 [3/8] from: carl:rebol at: 11-Aug-2003 12:44


It wasn't entirely clear to me if dbtcp.exe is written in REBOL in your example here. If it is, then you can just insert a PROBE into parts of the program to see what's being sent/received. If not in REBOL, then you can create a proxy in REBOL and send your TCP thru it. I wrote one a couple years ago to spy on my browser's connections, and there are some examples circulating around in the script lib and by folks on this list. But, Petr is right... if all you want is to see the packets for any connection, you can use a tool like tcpdump (or whatever the equiv is on Windows). -Carl

 [4/8] from: patrick:philipot:laposte at: 12-Aug-2003 10:47


Hi Carl, Dbtcp.exe is not written in Robol. This server is capable of executing SQL query on any ODBC database. My goal is to insert a Rebol spy between the server and the client to dump the transferred data without interfering in any way (Starfleet first directive: "do not interfere"). As Petr suggested, I have turned myself towards existing software (tcpviewer and Socket workbench). It works but ... However I am sure that such a "tcp sniffer" could be done with Rebol. But the only example I found is the Proxy.r from the Rebol library which is very specific to the HTTP protocol. Olivier Auverlot book's gives me also some clues, but I am still looking for something more appropriate to my needs. So if any one has some piece of code, even unfinished ... Regards Patrick

 [5/8] from: sqlab:gmx at: 12-Aug-2003 11:45


Hello Patrick Galt Barber wrote an SQL -Proxy for MS-SQL7 a few years ago. Modifying his script I was able to snoop the connections to the Caché DB too. If you are interested I can look if I have the scripts still on my laptop at home. AR
> Hi Carl, > Dbtcp.exe is not written in Robol. This server is capable of executing SQL
<<quoted lines omitted: 69>>
> To unsubscribe from this list, just send an email to > [rebol-request--rebol--com] with unsubscribe as the subject.
-- COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test -------------------------------------------------- 1. GMX TopMail - Platz 1 und Testsieger! 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger! 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post

 [6/8] from: petr:krenzelok:trz:cz at: 12-Aug-2003 12:01


[patrick--philipot--laposte--net] wrote:
>Hi Carl, >Dbtcp.exe is not written in Robol. This server is capable of executing SQL
<<quoted lines omitted: 4>>
>and Socket workbench). It works but ... >However I am sure that such a "tcp sniffer" could be done with Rebol.
But the only example I found is the Proxy.r from the Rebol library which is
>very specific to the HTTP protocol. >
Hmm, it does not necessarily have to be specific to http protocol imo. Maybe you could adapt it to general tcp proxy? Maybe someone did so already and will post the code .... -pekr-

 [7/8] from: Rebolinth:nodep:dds:nl at: 12-Aug-2003 13:19


Hiya, -> >However I am sure that such a "tcp sniffer" could be done with Rebol. -> But the only example I found is the Proxy.r from the Rebol library which is Mine is amost finished.. only sloving some reduce/mold problems here... Ill post it when done... Norman. -> -> >very specific to the HTTP protocol. -> > -> Hmm, it does not necessarily have to be specific to http protocol imo. -> Maybe you could adapt it to general tcp proxy? Maybe someone did so -> already and will post the code .... -> -pekr- -> -> -> -- -> To unsubscribe from this list, just send an email to -> [rebol-request--rebol--com] with unsubscribe as the subject. -> ->

 [8/8] from: patrick:philipot:laposte at: 12-Aug-2003 13:50


Hi AR, Yes please, I'm interested... Regards Patrick

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted