设为首页 加入收藏

TOP

VC向网页注入脚本
2014-11-23 21:30:21 】 浏览:544
Tags:网页 注入 脚本


IHTMLDocument2 *pDoc2

......

IHTMLWindow2 *pWindow;
HRESULT hr=pDoc2->get_parentWindow(&pWindow);
VARIANT ret;
ret.vt=VT_EMPTY;
CComBSTR func="alert(document.cookie)";
CComBSTR lang="java script";
hr=pWindow->execScript(func,lang,&ret);

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇C++ 工程实践(5):避免使用虚函数.. 下一篇VC Debug 技巧

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目