Solved

EtcProtocol (download needed)

Posted on 2002-03-15
11
336 Views
Last Modified: 2012-06-27
I know I am not the first who's asked this question. People, who has EtcProtocol MS example for download. It used to be on SoftLib ftp site.
Thanks.
0
Comment
Question by:scuba_driver
  • 6
  • 4
11 Comments
 
LVL 86

Expert Comment

by:jkr
Comment Utility
Are you looking for the one mentioned in http://www.microsoft.com/mind/defaulttop.asp?page=/mind/0199/cutting/cutting0199.htm&nav=/mind/0199/inthisissuecolumns0199.htm ? MS seems to have removed the KB article, but maybe the above article is helpful...

Check also http://codeguru.com/atl/asyncpp.shtml
0
 

Author Comment

by:scuba_driver
Comment Utility
Thanks jkr,

I have everything available from MSDN, Web and Groups. All existing examles are originate from the same source - EtcProtocol sample. I wanted to see what the original looks like.
I was trying to add pluggable protocol to MFC app in order to capture HTTPS headers using RegisterNamespace(). This sh_t is crashing all the time.

 
0
 
LVL 49

Accepted Solution

by:
DanRollins earned 100 total points
Comment Utility
Microsoft removed the etc protocol sample.  I think there are some good reasons:

1) It is a convoluted mess.
2) It is not a very good example.  All it does is turn around and pull an http file (and does not reveal anything useful, IMHO)
2) It cannot be set up dynamically.  It needs to be registered (in a rather complex way, as I recall)
3) I understand that there is a much better, COM-oriented way to do it (IInternetSession, I think)

but the big reason is...

4) You probably don't really need it, you just think you do.  Why?  If you are hosting a webbrowser in your app, you can intercept each request.  If it starts with etc: (or aqualung: or whatever) then you can take whatever action you want,... including pulling the page yourself and examining the headers.

That said...

I dug up my ancient copy of it and posted it here:

http://home.earthlink.net/~danrollins/ee/EtcProt.exe

-- Dan
0
 

Author Comment

by:scuba_driver
Comment Utility
Yep, you right,
The only inconvinience is "redirections" that are not clearly indicated in WebControl.
I would avoid to use it if I could.
For HTTP I wrote proxy, and it works just fine. But when HTTPS goes into play I am getting "connect" request and the only thing I can do is pipelining sockets with no knowledge about what is inside. I have checked "squid" and they do not know what is going through on HTTPS....
So, the "Pluggable" would be the last resort for me.
Thanks everybody,
Alexei
0
 

Author Comment

by:scuba_driver
Comment Utility
Yep, you right,
The only inconvinience is "redirections" that are not clearly indicated in WebControl.
I would avoid to use it if I could.
For HTTP I wrote proxy, and it works just fine. But when HTTPS goes into play I am getting "connect" request and the only thing I can do is pipelining sockets with no knowledge about what is inside. I have checked "squid" and they do not know what is going through on HTTPS....
So, the "Pluggable" would be the last resort for me.
Thanks everybody,
Alexei
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:scuba_driver
Comment Utility
Thanks jkr,

I have everything available from MSDN, Web and Groups. All existing examles are originate from the same source - EtcProtocol sample. I wanted to see what the original looks like.
I was trying to add pluggable protocol to MFC app in order to capture HTTPS headers using RegisterNamespace(). This sh_t is crashing all the time.

 
0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
?

-- Dan
0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
hi scuba_diver.

Do you have any additional questions?  Do any comments need clarification?

-- Dan
0
 

Author Comment

by:scuba_driver
Comment Utility
No
0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
>>People, who has EtcProtocol MS example for download.

I answered your question in the most complete way.  It would be impossible for anyone on earth or elsewhere in the Known Universe to provide a more complete answer than I did.  I even went to the trouble of locating the file and posting it on my own personal web site.

So why did you give me a B?

-- Dan
0
 

Author Comment

by:scuba_driver
Comment Utility
OK,
Take an A.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now