Skip to Main Content
Sockets, Shellcode, Porting, and Coding: Reverse Engineering Exploits and Tool Coding for Security Professionals
book

Sockets, Shellcode, Porting, and Coding: Reverse Engineering Exploits and Tool Coding for Security Professionals

by James C Foster
April 2005
Intermediate to advanced content levelIntermediate to advanced
700 pages
20h 39m
English
Syngress
Content preview from Sockets, Shellcode, Porting, and Coding: Reverse Engineering Exploits and Tool Coding for Security Professionals
20 vi_progid("HotFixChecker")
21 ]
22 class ATL_NO_VTABLE CHotFixChecker :
23 public IHotFixChecker
24 {
25 public:
26 HRESULT IsHotFixInstalled(BSTR bstrQNumber,
27 VARIANT_BOOL *pbInstalled)
28 {
29 // TODO: Implement Function
30 return S_OK;
31 }
32 };
Twenty-seven lines of code later, we have created a fully functional EXE COM
server, complete with self-registration capability,TypeLib included, and proxy/stub code
ready for compilation.To accomplish the same task without using ATL, the code could
take up to 800 lines. If you look at the file that contains the injected code, it actually
took 318 lines of code to do this with ATL (although the generated file ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

32/64-Bit 80x86 Assembly Language Architecture

32/64-Bit 80x86 Assembly Language Architecture

James Leiterman

Publisher Resources

ISBN: 9781597490054