|
[求助]求大神给修改下下
这个问题很好解决 你大概一直用cmd控制台输入命令打开程序,所以程序终止了,cmd进程还在 解决方案 1.直接双击执行exe程序,按热键就直接退出了,不存在你说的问题 2.如果真想cmd输入运行也退出,加一句话 PostMessage(hWnd,WM_CLOSE,0,0); //发消息关闭控制台窗口具体位置见 3楼代码 |
|
[求助]求大神给修改下下
大神没有,虾米一个,不废话,看代码 #include "windows.h" int main(int argc, char* argv[]) { int x = 49,y = 50; //键盘代码 //-----------开始显示托盘----------------------------------- HWND hWnd; char strTitle[255]; NOTIFYICONDATA nid; //托盘结构 GetConsoleTitle(strTitle, 255); //控制台标题 hWnd=FindWindow("ConsoleWindowClass",strTitle); //取hWnd=控制台句柄 //设置托盘参数 nid.cbSize=sizeof(NOTIFYICONDATA); nid.hIcon=LoadIcon(NULL,IDI_APPLICATION); //设置托盘图标 nid.hWnd=hWnd; nid.uCallbackMessage=NULL; //回调函数 nid.uFlags=NIF_TIP|NIF_ICON; nid.uID=NULL; strcpy(nid.szTip,"模拟鼠标"); //托盘浮动文字 Shell_NotifyIcon(NIM_ADD,&nid); //添加托盘 ShowWindow(hWnd,SW_HIDE); //隐藏控制台 //-------------显示托盘代码结束---------------------------- while(1) { if(GetAsyncKeyState(x)) { mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0); Sleep(200); mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0); } if(GetAsyncKeyState(y)) { mouse_event(MOUSEEVENTF_RIGHTDOWN,0,0,0,0); Sleep(200); mouse_event(MOUSEEVENTF_RIGHTUP,0,0,0,0); } if(GetAsyncKeyState(VK_MENU) && GetAsyncKeyState(VK_END)) //同时按下ALT+END建 break;//退出循环 Sleep(200); } //删除托盘 Shell_NotifyIcon(NIM_DELETE,&nid); //退出程序(双击运行时这句可有可无,cmd控制台输入名字运行,就需要下边这句了,总之加上下边这句就全OK了) PostMessage(hWnd,WM_CLOSE,0,0); //发消息关闭控制台窗口 return 0; } |
|
|
|
[求助]win2k3 ddk driverstduio3.2
到DriverStudio 安装目录下面的 runbuild.bat 第 62 行: “if EXIST %BASEDIR%\bin\Win64\x86\build.exe goto 2003DDK” 下面加入新语句: “if EXIST %BASEDIR%\bin\amd64mk.inc goto 2003DDK” -------------------------------------------------- < 以下是从网上找到的另外一个方法 > 1、安装好DS之后,需要用VS本身的编译器对库文件进行编译,否则库文件不对 2、编译驱动时候(如DS自带的例子代码),需要使用工具->DS->build工具来编译,否则 出错 3、出现“CPU i386 is not supported by D:\W2K3DDK DDK with DDK_TARGET_OS=WinNET ”错误 (win2003下)时候,采用如下方法解决: 到DriverStudio 安装目录下面的 runbuild.bat 将里面的. 从这里开始.. rem ################# rem #### XP DDK ##### rem ################# ....... ------>一直到这里全部删了..再保存就可以了.. rem ################### rem #### 2003 DDK ##### rem ################### |
|
OD中内存窗口的各个属性都是什么意思
地址:每个内存区域的起始位置。请注意如何将这些地址总是与“000”结束,因为他们都是对齐页边界(在Windows 0x1000字节)。 大小:该区域的大小。请注意如何将这些也总是与“000”结束,因为每个区域是0x1000字节倍数大小的页面。 物主:该区域的“所有者”的描述,它从何而来。这可以用来确定一个模块(module)。 区段:如果此区域加载的是PE的一个PE节。显示节名 包含:本区域的内容描述。这可以用来确定一个块。 类型: 说明是映射(MAP:主要是一些公用DLL,系统模块等),镜像(IMAGE,程序或DLL等模块自身节段加载),和预分配(priv:主要是堆栈和操作系统所初始化的内存段) 访问:进程运行的代码,在本区域的访问类型的标志。这包括读R,写W和执行E。请注意,页面都没有W和E,这意味着可以执行就不能修改内存,并可以修改就不能执行。这就是所谓的数据执行保护(DEP)。 这是被进程和系统修改后的当前结果。 初始访问:系统在程序加载前,以0初始化虚拟内存页时所规定的内存访问标志,比如准备把PE节段镜像(IMAGE)加载入内存时,会设置为读写执行。 |
|
自重定位代码问题
楼上说的对 @@是一个标号,@F指下一个@@标号,@B指上一个@@标号 这里的pop ebx,是把ebx的值设置成pop ebx的地址(也就是call @F的返回地址) 假设代码如下: varA dword 01234567 call @F @@: pop ebx sub ebx,offset @B mov eax,[ebx+varA] 1.如编译时预定的加载地址为0040c000 00400000 01234567 0040c004 E800000000 call 0040c009 ;这是相对跳了0字节,相当于push eip 0040c009 5B pop ebx ;这里ebx就是动态的eip了 0040c00A 81EB09104000 sub ebx,0040c009 ;这里会固定为0040c009 那么sub ebx,0040c009 ;如果加载地址是0040c000,相对基址 ebx就是0 2.当我们把这段代码加载到目标进程的0080c000(shellcode注入或线程注入的情况)。 00800000 01234567 ;加载地址变了 0080c004 E800000000 call 0080c009;代码没有变化,但是eip值变了 0080c009 5B pop ebx ;这里ebx就动态地变为0080c009 0080c00A 81EB09104000 sub ebx,0040c009 ;注意代码没有变 所以ebx就会变为 0080c009-0040c009=00400000,得到一个相对基址00400000 3.所以1中 mov eax,[ebx+varA] =mov eax,[0+00400000];eax=01234567 2中 mov eax,[ebx+varA] =mov eax,[00400000+00400000];eax=01234567 数据的地址会变化,但是基地址ebx也随着变化,我们总能找到正确的地址 上面就是对ebx作用的一种情况分析,相信你能明白这个基地址的作用,也就理解了这个问题 |
|
求助!关于PHP的DeZend的问题!!
虽然很难,但还是有希望的 架构是这样的 <?php class cmd_authorize extends modelFactory { public function ducedis( ) { } public function fetch_license( ) { define( ); ( ); } public function get_license( $key = 1 ) { } public function get_softkey( } public function is_freesite( ) { } public function uploadcerfile( $key = 1, $var = "ducedis." ) { unlink( ); ( ); } public function authCode( $operation = "DECODE", $key = 0 ) { } } ?> |
|
如何获取其他进程list控件中的文本
你用FindWindow可以获取也一样啊,很多种方法能获取句柄的,比如枚举所有 你既然用到spy++,那么就可以通过spy++获取父窗口 再按我说的步骤做也行,我都做过了这样的程序 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值