当前位置:网站首页>Packetdrill script analysis guide
Packetdrill script analysis guide
2022-07-01 09:40:00 【Smoke0901】
Nearly period of time , Black box testing is more and more ,packetdrill What you use will rise , The amount of scripts is expanding . But , The information on the Internet is still poor , Had to grope forward . Eh, Shhh ! Have to constantly evolve in the face of a wall .
about packetdrill, It's not difficult to write a lot of scripts , What is abhorrent is the understanding of the script . Google treat packetdrill The attitude is no better than that of other children , Besides writing specifications and a bunch of examples , It's hard to find other script Guides . therefore , Had a hard time with the script .
But there is no way. , Unless I'm willing to spend a lot of time deconstructing the code , But I didn't , My purpose is to use packetdrill To achieve my goal , That's it !
But after a lot of trial and error and script analysis , I still felt it packetdrill Some context in script definition and analysis , So I can't wait Google Update , It was intended to be disclosed before it , The reason is nothing more than , Want to make packetdrill Be known and used by more people , since Google Not yet , I'll just add a little bit first .

A correct script , The key point is the writing of injection package and inspection package . Other parts , Convenient to be “ terminal ” Check it out . Only here , After mastering certain logic , You can easily write your own scripts and analyze others' scripts .
According to the diagram , A little bit to deconstruct packetdrill Script .
Or did you take it TCP give an example .
First ,packetdrill When writing a script , Will play C/S A character of , It could be the client , Or the receiving end . After confirming the role , Should learn to stand on this point of view .
For three handshakes ,packetdrill Always from client To server The handshake , There is no need to worry , This is almost the same in the script .
stay TCP established in , Contract operation Is triggered from the character , and “ACK The reply ” Naturally, it is triggered at the opposite end . therefore packetdrill For injection packages , Both ends can be injected , Just pay attention to “ Contract operation ” and “ACK The reply ” The standard of .
and packetdrill For inspection packages , It is slightly different from the injection package .
When inspecting the package ,packetdrill Always only in the role you play Inspection point , Only verify your own end . And because the opposite end is unmanageable ( There are no checkpoints ), So you can't do the opposite end “ Package behavior ” test .
Follow the diagram , If we stand server End .
+0 > . 1:1(0) ack 7001 win 257
It's wrong to write like this . But we always make such mistakes , I don't know .
Last ,packetdrill Four waves are also from client To server, There is nothing to say , Put an end to this .
At the end
packetdrill It is an easy-to-use black box network verification tool , On collocation EBPF Basically, we can get twice the result with half the effort .
It hurts , -- Google about packetdrill The neglect of . But it doesn't matter ,packetdrill Leveraging on open source , There is still a long way to go .
After finish , Discovery is not like a guide , But it seems that I can't think of any suitable title , So let's go .
边栏推荐
- 【pytorch】nn. Crossentropyloss() and nn NLLLoss()
- nacos服务配置和持久化配置
- MapReduce programming basics
- Sd-wan notes
- Flinkv1.13实现金融反诈骗案例
- nacos簡易實現負載均衡
- 【pytorch】nn. AdaptiveMaxPool2d
- BSN长话短说之十:如何保证NFT的安全
- Design and manufacture of simple digital display electronic scale
- Tree structure -- binary tree 2 non recursive traversal
猜你喜欢
随机推荐
【无标题】
队列的实现和应用
Implementation and application of queue
js this丢失问题分析 及 解决方案
Dotnet console uses microsoft Maui. Getting started with graphics and skia
利用闭包实现私有变量
nacos服务配置和持久化配置
122. Thread class thread method summary; Why is the thread start method start () not run ()?
Sd-wan notes
Introduction to expressions and operators in C language
Swift control encapsulation - paging controller
手指点击屏幕就模拟进入F11进入全屏
SQL学习笔记(01)——数据库基本知识
Differences between JS valueof and toString
JS scope chain and closure
Upload labs for file upload - white box audit
Problems caused by delete and delete[]
es6-顶层对象与window的脱钩
Ubuntu系统安装与配置MySQL
樹結構---二叉樹2非遞歸遍曆



![delete和delete[]引发的问题](/img/d9/a1c3e5ce51ef1be366a973aa42d1f0.png)

![[untitled]](/img/1a/e18918cc09db9b072759409a5f39a1.png)


