91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4.31MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-01
  • 語言: C/C++
  • 標簽: vc++??

資源簡介

vc++ 底層抓包源碼

資源截圖

代碼片段和文件信息

//?BinDataDlg.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“PackInter.h“
#include?“BinDataDlg.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CBinDataDlg?dialog


CBinDataDlg::CBinDataDlg(CWnd*?pParent?/*=NULL*/)
:?CDialog(CBinDataDlg::IDD?pParent)
{
//{{AFX_DATA_INIT(CBinDataDlg)
//}}AFX_DATA_INIT
m_hBkBrush?=?CreateSolidBrush(RGB(255255255));

m_bIsScrolling?=?false;
}


void?CBinDataDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CBinDataDlg)
DDX_Control(pDX?IDC_LINENUM?m_lineNumCtrl);
DDX_Control(pDX?IDC_HEXDATA?m_hexDataCtrl);
DDX_Control(pDX?IDC_CHARDATA?m_charDataCtrl);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CBinDataDlg?CDialog)
//{{AFX_MSG_MAP(CBinDataDlg)
ON_WM_CLOSE()
ON_WM_DESTROY()
ON_EN_VSCROLL(IDC_CHARDATA?OnVscrollChardata)
ON_WM_SIZE()
ON_WM_CTLCOLOR()
ON_EN_VSCROLL(IDC_LINENUM?OnVscrollLinenum)
ON_EN_VSCROLL(IDC_HEXDATA?OnVscrollHexdata)
??ON_MESSAGE(WM_SAVETOFILE?SaveToFile)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CBinDataDlg?message?handlers

void?CBinDataDlg::OnOK()?
{
//?TODO:?Add?extra?validation?here

// CDialog::OnOK();
}

void?CBinDataDlg::OnCancel()?
{
//?TODO:?Add?extra?cleanup?here

// CDialog::OnCancel();
}

void?CBinDataDlg::OnClose()?
{
//?TODO:?Add?your?message?handler?code?here?and/or?call?default

// CDialog::OnClose();
}

void?CBinDataDlg::OnDestroy()?
{
CDialog::OnDestroy();

//?TODO:?Add?your?message?handler?code?here
if(m_hBkBrush)
Deleteobject(m_hBkBrush);
}

void?CBinDataDlg::PutData(char?*pData?int?len)
{
int?i;
CString?str0?=?““;
CString?str1?=?““;
CString?tmp;
int?wd????=?8;
int?width?=?wd*2;
int?lines?=?len/width;

for(i=0;?i {
tmp.Format(“%6.6X“?i);
if(i+width tmp+=“\r\n“;
str0+=tmp;
}
m_lineNumCtrl.SetWindowText(str0);

str0.Empty();
bool?flag=false;
if(lines%width!=0)
lines++;
for(int?row=0;?row {
int?col;
for(col=0;?col {
i?=?row*width+col;
if(i>=len)
{
flag?=?true;
break;
}
tmp.Format(“%2.2X?“?(unsigned?char)pData[i]);

if(col==wd-1)
tmp?+=?“?“;
str0?+=?tmp;

if(pData[i]>=32?&&?pData[i]<255)
{//
tmp.Format(“%c“?(unsigned?char)pData[i]);
}
else
{
tmp.Format(“.“);
}
str1?+=?tmp;
}
if(row {
str0?+=?“\r\n“;
str1?+=?“\r\n“;
}
if(flag)
break;
}

m_hexDataCtrl.SetWindowText(str0);
m_charDataCtrl.SetWindowText(str1);
}

void?CBinDataDlg::OnVscrollChardata()?
{
//?TODO:?Add?your?control?notification?handler?code?here
if(m_bIsScrolling)
return;
m_bIsScrolling?=?t

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-05-10?08:51??封包截取源代碼VC\
?????文件????????6826??2017-05-10?08:50??封包截取源代碼VC\BinDataDlg.cpp
?????文件????????2031??2017-05-10?08:50??封包截取源代碼VC\BinDataDlg.h
?????目錄???????????0??2017-05-10?08:51??封包截取源代碼VC\Debug\
?????文件???????31765??2017-05-10?08:50??封包截取源代碼VC\Debug\BinDataDlg.obj
?????文件?????3228672??2017-05-10?08:51??封包截取源代碼VC\Debug\PackInter.bsc
?????文件??????139375??2017-05-10?08:50??封包截取源代碼VC\Debug\PackInter.exe
?????文件??????341880??2017-05-10?08:50??封包截取源代碼VC\Debug\PackInter.ilk
?????文件???????21906??2017-05-10?08:50??封包截取源代碼VC\Debug\PackInter.obj
?????文件?????6941776??2017-05-10?08:51??封包截取源代碼VC\Debug\PackInter.pch
?????文件??????500736??2017-05-10?08:50??封包截取源代碼VC\Debug\PackInter.pdb
?????文件????????5896??2017-05-10?08:50??封包截取源代碼VC\Debug\PackInter.res
?????文件???????76129??2017-05-10?08:50??封包截取源代碼VC\Debug\PackInterDlg.obj
?????文件???????20957??2017-05-10?08:50??封包截取源代碼VC\Debug\SockHelper.obj
?????文件????????9747??2017-05-10?08:50??封包截取源代碼VC\Debug\SockSupport.obj
?????文件??????106073??2017-05-10?08:50??封包截取源代碼VC\Debug\StdAfx.obj
?????文件?????1376426??2017-05-10?08:51??封包截取源代碼VC\Debug\StdAfx.sbr
?????文件??????222208??2017-05-10?08:51??封包截取源代碼VC\Debug\vc60.idb
?????文件??????380928??2017-05-10?08:51??封包截取源代碼VC\Debug\vc60.pdb
?????文件???????25296??2017-05-10?08:50??封包截取源代碼VC\PackInter.aps
?????文件????????2141??2017-05-10?08:50??封包截取源代碼VC\PackInter.clw
?????文件????????1932??2017-05-10?08:50??封包截取源代碼VC\PackInter.cpp
?????文件????????4674??2017-05-10?08:50??封包截取源代碼VC\PackInter.dsp
?????文件?????????541??2017-05-10?08:50??封包截取源代碼VC\PackInter.dsw
?????文件??????139322??2017-05-10?08:50??封包截取源代碼VC\PackInter.exe
?????文件????????1357??2017-05-10?08:50??封包截取源代碼VC\PackInter.h
?????文件??????107520??2017-05-10?08:50??封包截取源代碼VC\PackInter.ncb
?????文件???????52736??2017-05-10?08:50??封包截取源代碼VC\PackInter.opt
?????文件????????2498??2017-05-10?08:50??封包截取源代碼VC\PackInter.plg
?????文件????????7515??2017-05-10?08:50??封包截取源代碼VC\PackInter.rc
?????文件???????15729??2017-05-10?08:50??封包截取源代碼VC\PackInterDlg.cpp
............此處省略14個文件信息

評論

共有 條評論