|
新手问题,请问使用delphi如何编写拦截所有连接本机电脑的IP
我看过了,也测试了下,感觉还行,但是经常无法启动.不知道那里问题, 我也找到相关api了,想用delphi实现,但是怎么弄都是有问题,希望 晓得的朋友帮忙下,上面的代码是C的,我看不懂, const localIp : array[0..3] of BYTE = (192,168,0,2); FILTER_TCPUDP_PORT_ANY : WORD = $0000; FD_FLAGS_NOSYN = $1; var hInterface : INTERFACE_HANDLE; fHandle : FILTER_HANDLE; inFilter : PF_FILTER_DESCRIPTOR; FILTER_PROTO_TCP : DWORD; dwSrcMask : DWORD; begin FILTER_PROTO_TCP := MAKELONG(MAKEWORD(($06),$00),$00000); dwSrcMask := $FFFFFFFF; PfCreateInterface(0, PF_ACTION_DROP,//PF_ACTION_FORWARD, 要么是全部拦截 要么就是全部放行,到底应该怎么设置呢? PF_ACTION_DROP,//PF_ACTION_FORWARD, FALSE, TRUE, hInterface); PfBindInterfaceToIPAddress(hInterface, PF_IPV4, @localIp); inFilter.dwFilterFlags := FD_FLAGS_NOSYN; inFilter.dwRule := 0; inFilter.pfatType := PF_IPV4; inFilter.SrcAddr := @localIp; inFilter.SrcMask := @dwSrcMask; inFilter.wSrcPort := FILTER_TCPUDP_PORT_ANY; inFilter.wSrcPortHighRange := FILTER_TCPUDP_PORT_ANY; inFilter.DstAddr := nil; inFilter.DstMask := nil; inFilter.wDstPort := 80; inFilter.wDstPortHighRange := 80; inFilter.dwProtocol := FILTER_PROTO_TCP; PfAddFiltersToInterface(hInterface, 1, @inFilter, 0, nil, @fHandle); PfRemoveFilterHandles(hInterface, 1, @fHandle); PfUnBindInterface(hInterface); PfDeleteInterface(hInterface); |
|
新手问题,请问使用delphi如何编写拦截所有连接本机电脑的IP
我想用 delphi实现这样的功能 ,所有连接或先触发我的软件,我软件过滤后才能连接,这样的 |
|
高手帮忙分析下,这远程马是如何显示自身启动 逃过360的
而且360还不会提示 |
|
高手帮忙分析下,这远程马是如何显示自身启动 逃过360的
问题是,他是如何实现开机自动上线的呢? |
|
想学破解没条件了, 悲哀.。。。。
呵呵。好难学呀 |
|
[求助]请问 ,我要检测某程序是否在运行应该怎么判断?
恩,好的,谢谢各位帮忙,~ |
|
|
|
|
|
|
|
[求助]请问 ,我要检测某程序是否在运行应该怎么判断?
我看内存地址可能难以判断是否是固定地址. 到可以判断静态的存盘问题, 那请问各位老师, 静态的存盘文件他主要都有那些特征的?那些是唯一性的呢? 比如说判断 头文 或是其他唯一不变,其他程序也不一样的呢? |
|
[求助]请问 ,我要检测某程序是否在运行应该怎么判断?
恩,要是可以知道内存中那端数据是不会边的就好了~ |
|
[求助]请问 ,我要检测某程序是否在运行应该怎么判断?
这样行是行,就是不知道应该读取那段数据,因为内存数据会变动,我对内存也不了解,也不知道哪个区域的数据不会变~ |
|
[求助]请问 ,我要检测某程序是否在运行应该怎么判断?
我知道,但是你光查类名会查不一大堆的,想准确找出来只能 类名 + 标题 |
|
[求助]请问 ,我要检测某程序是否在运行应该怎么判断?
窗口类的名称基本是不变.这个我知道 ,但是90%的在电脑的软件类名都是一样的,这样没办法判断,因为标题会变,有时候都没标题~ |
|
[求助]请问 ,我要检测某程序是否在运行应该怎么判断?
原先我也是这样写的,但是不知道应该解决那段内存数据,因为会变化,所以我就放弃了~ |
|
[求助]请问 ,我要检测某程序是否在运行应该怎么判断?
类名查找我试过,但是标题会变,有时候都没标题,难以下手啊~ 我现在是用循环读取进程模块检测运行的DLL 但是如果是绿色程序,没附带DLL我就没办法了 |
|
[求助]请问 ,我要检测某程序是否在运行应该怎么判断?
程序不是自己写的,是外部程序~ |
|
|
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值