【外挂制作基础3】wpe技术
封包的组成
一个封包,包含有如下元素,也就是组成部分吧!
1.需要传输的数据(主要的和最重要的部分就是这个,外挂修改的也是这部分)
2.序列号(每个封包必须有自己的序列号,以便到了接收端后可以按照序列号重新组装)
3.IP地址,一般都有这一部分,通过网络解析才知道封包从那里来,到那里去!
当然封包的内容不止这些,但是,我们了解这些就够了。
注意:在传输中,所有数据都是16位或者32位的,所以截获的封包看起来总是怪怪的!
面给一个封包的基本格式,给大家看看(下面是基本封包格式,如果您可以背下来他们的格式,这对您修改游戏是非常有用的!强烈建议您看一些关于封包格式的文章,您就可以很容易地把封包看清楚,很快知道哪个才是真正的数据):
Source Port (16) | Destination Port (16)
Sequence Number (32)
Acknowledgment Number (32)
Data Offset(4) | Reserved (6)|UGR|ACK|PSH|RST|SYN|FIN|WIndow(16)
Checksum (16) | Urgent PoInter (16)
OptIons (0 or more 32 bIt words + padding)
DATA
...
稍微注意以下,您可以看到,每行的长度都是32字节!
大家看到了吗?data就是数据,那是最关键的部分,我们使用WPE修改的就是那一部分!
关于封包,是网络方面的知识,要写出来,估计可以出一本书了,这里不再详细讲解,如果您要详细学习请您参考相关资料。
it is first to be announced by the fans of the andylau:at see over this son hereafter word by word and sentence by sentence, my heart can''t be calm once in a very long while, shocking!why would like a son that like?!many years in bbs in horizontal network in my life , from thinking any further can''t there is any a son can move me, have never thought to come in sight of such ingenious and incomparable like this an a son today. floor lord, is you let me comprehending the‘someone outside the person profoundly, there is day outside the day'' this words.thank you ! at see over this son hereafter, i did not replies immediately, because i fear me the vulgar replies unbearablely will compromise this net last rare a son.but i replied still, because feel if can''t leave behind at the such fascinating a son own net, that i die too can''t the purpose of name !can leave own net an a matter for is how pride behind at the such fascinating a son!floor lord, beg your pardon my selfish! i know that describe the floor lord you with the how gorgeous words regardless the fascinating degree of a son is all not enough, is all hypocritical, so i think only of to say a:your a son is too good-looking!i would like to the lifetime sees the bottom! this son conceives outline novel, the topic has the mental strategy only, the paragraph is clear, details , fall the rise and fall, the main line is clear, fascinating, mild the extraordinary literature from bottom inside, is witty it may be said, a classic, is a model that my generation should the study. in regard to the angle of the cloak-and-dagger art, this son do not calculate too successful, but it of the experiment is however the far far larger than in meaning the success oneself.positive so-called:" a the horse dashes about, shooting the birds lead the bow, the world is all in my heart!" floor lord really not the is to has boundary new generation to open the mountain strange! i will have disappointed to this community originally, feeling that this community had no the prospect, the in the mind is filled with the woe.but saw your this son, let me producing the hope to the community again.is a fire that you let my in the mind set alight the hope afresh, is you make my heart cold ashes burn again, is you rescued me a stirs the cool stiring the cool heart! i decide originally and can''t return to any a son in the community, but saw your a son, it is what must return that i tell the oneself this son!this is once-in-a-lifetime o.k. stick!heaven contain eye, let me getting the such fascinating and incomparable a son at the excellent the can view in year that living! floor lord, you want to continue diligent!you are the hope of the community!