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
25 pCtx->CurrentRecord.m_bstrUUID= CComBSTR(pUuid);
26 }
27
28
void SetBinding(char *pBinding)
29 {
30 if (!g_IsCOM) return;
31
32
PTOOL_CALL_CONTEXT pCtx = (PTOOL_CALL_CONTEXT)TlsGetValue(g_dwCOMCallTls);
33
34
pCtx->CurrentRecord.m_bstrBinding = CComBSTR(pBinding);
35 }
36
37
void NextRecord()
38 {
39 if (!g_IsCOM) return;
40 PTOOL_CALL_CONTEXT pCtx = (PTOOL_CALL_CONTEXT)TlsGetValue(g_dwCOMCallTls);
41
42
// Now, we need to save the record. We'll save it in the STL
43 // vector that corresponds to the instantiated COM object.
44 pCtx->pIfaceVector->push_back(pCtx->CurrentRecord);
45 }
46 }
Analysis
All of the preceding routines are named according to the data that is provided by the
RPCDump tool. Because the data is interrelated (the binding, UUID, version, and
Interf ...
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