-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathieHook.h
53 lines (39 loc) · 1.21 KB
/
ieHook.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// ieHook.h: interface for the ieHook class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_IEHOOK_H__D3117041_5000_4688_944F_F329A7C3C89F__INCLUDED_)
#define AFX_IEHOOK_H__D3117041_5000_4688_944F_F329A7C3C89F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <AtlApp.h>
#include <AtlWin.h>
#include <AtlCtrls.h>
#include <list>
#include <atlmisc.h>
#include <map>
#include "BreakPointDlg.h"
#include "Orchestrator.h"
typedef std::map<SOCKET, CString> HeadersMap;
typedef HeadersMap RequestMap;
class CHttpHeaders;
class SettingsStorage;
class ieHook
{
private:
bool m_bHooksInstalled;
SettingsStorage& m_settings;
CBreakPointDlg m_dlgBreakpoint;
COrchestrator m_orchestrator;
void HookSSLFunctions();
ieHook();
public:
~ieHook();
static ieHook& GetHook();
void Cleanup();
bool Initialize();
void OnOutgoing(SOCKET sock, LPCTSTR pszText, int iLen, bool bSSL = false);
void OnIncoming(SOCKET sock, LPCTSTR pszText, DWORD dwLen, bool bSSL = false);
COrchestrator& GetOrchestrator();
};
#endif // !defined(AFX_IEHOOK_H__D3117041_5000_4688_944F_F329A7C3C89F__INCLUDED_)