48730-32548, Cyber Security Week-6
Understanding TCP/IP based Attacks Continued
Lab Environment Setup
You need to follow the Lab-4 (Week 5) virtual environment setup to perform the remaining tasks related
to TCP/IP based attacks.
Netwox/Netwag
We need tools to send out network packets of different types and with different contents. We can use
Netwag to do that. However, the GUI interface of Netwag makes it difficult for us to automate our process.
Therefore, we strongly suggest that you use its command-line version, the Netwox command, which is
the underlying command invoked by Netwag.
Netwox consists of a suite of tools, each having a specific number. You can run the command as following
(the parameters depend on which tool you are using). For some of the tools, you have to run it with the
root privilege:
➢ netwox <number> [parameters ...]
If you are not sure how to set the parameters, you can look at the manual by issuing "netwox <number> --
help". You can also learn the parameter settings by running Netwag for each command you execute from the
graphic interface, Netwag actually invokes a corresponding Netwox command, and it displays the parameter
settings. Therefore, you can simply copy and paste the displayed command.
Wireshark Tool.
You also need a good network-traffic sniffer tool for this lab. Although Netwox comes with a sniffer, you
will find that another tool called Wireshark is a much better sniffer tool.
Both Netwox and Wireshark can be downloaded. If you are using our pre-built virtual machine, both tools
are already installed. To sniff all the network traffic, both tools need to be run with root privilege.
Lab Tasks
In this lab, you need to conduct attacks on the TCP/IP protocols. You can use the Netwag, Wireshark,
Tshark tools in the attacks. All the attacks are performed on Linux operating systems. However, you can
also conduct the same attack on the other operating system and compare the observations after lab
classes. You are supposed to use all the above three different tolls for the experiments.
To simplify the “guess” of TCP sequence numbers and source port numbers, we assume that attacks are
on the same physical network as the victims (Think of where such attacks may happen?). Therefore, you
can use sniffer tools to get that information. The following is the list of attacks that need to be
implemented and studied in this lab.
48730-32548, Cyber Security Week-6
Lab designed by Ashish Nanda, based on documents “SEED Labs” provided by Wenliang Du, Syracuse University
2
Before starting the task, disconnect the internet from the Server VM.
48730-32548, Cyber Security Week-6
Lab designed by Ashish Nanda, based on documents “SEED Labs” provided by Wenliang Du, Syracuse University
Task 4: TCP RST Attacks on Telnet and SSH Connections
The TCP RST Attack can terminate an established TCP connection between two victims. For example, if
there is an established telnet connection (TCP) between two users A and B, attackers can spoof a RST
packet from A to B, breaking this existing connection. To succeed in this attack, attackers need to correctly
construct the TCP RST packet.
In this task, you need to launch a TCP RST attack to break an existing telnet connection between A and B.
After that, try the same attack on an SSH connection.
In this task, we use Netwag Tool 78 to conduct the attack, and wireshark tool to capture the packets.
Steps:
1. Open Wireshark on Client VM by entering “sudo wireshark” in the terminal.
2. Establish a telnet connection with Client from the Server. Enter “telnet <IP address>”
and fill the username and password of the Client to establish a telnet connection.
(Screenshot required)
3. Go to Attacker VM, run Netwag using the terminal. (sudo netwag)
4. Select Tool 78: Reset every TCP packet.
5. Select the interface and the “spoofip: IP spoof initialization type”. (Screenshot
required)
6. Click “Run It”.
7. Go to Server, generate some data by typing something in terminal where a telnet
connection with Client is established. (Screenshot Required)
For performing the same attack on SSH connection, establish an SSH connection with Client
from the Server by entering “ssh username@IPaddress” instead of a telnet connection. Similar
screenshots are required for TCP RST attack on SSH connection.
Task 5: ICMP Blind Connection-Reset and Source-Quench Attacks
(i) ICMP Blind Connection-Reset
ICMP messages can also be used achieve the connection-resetting attack. To do this, attackers send an
ICMP error message that indicates a “hard error” to either of the two endpoints of a TCP connection. The
connection can be immediately torn down as RFC 1122 states that a host should abort the corresponding
connection when receiving such an ICMP error message. RFC 1122 defines “hard errors” as ICMP error
messages of type 3 (Destination Unreachable) with code 2 (protocol unreachable), 3 (port unreachable),
or 4 (fragmentation needed and DF bit set).
Use the Netwag Tool 82 to conduct the attack, and then use wireshark tool to capture the packets.
48730-32548, Cyber Security Week-6
Lab designed by Ashish Nanda, based on documents “SEED Labs” provided by Wenliang Du, Syracuse University
Steps:
1. Open Wireshark on Client VM by entering “sudo wireshark” in the terminal. Set icmp as
filter.
2. Ping Server from the Client.
3. Check the Wireshark capture. (Screenshot Required)
4. Go to Attacker VM, run Netwag using the terminal.
5. Select Tool 82: Sniff and send ICMP4/ICMP6 destination unreachable.
6. Select the interface and “spoofip: IP spoof initialization type”, input the ICMP code (2)
and source IP address. (Screenshot Required)
7. Click “Run It”.
8. Check the Wireshark capture. (Screenshot required)
(ii) Source-Quench Attacks
The ICMP source quench message is used by the congested routers to tell the TCP senders to slow down.
Attackers can forge such messages to conduct the denial of services attacks on TCP senders.
In this task, you need to launch the ICMP blind connect-reset attacks and the ICMP source quench attacks.
You need to be noted that some systems may reasonably ignore this type of ICMP errors in certain TCP
state.
Use the Netwag Tool 85 to conduct the attack, and then use wireshark tool to capture the packets.
Steps:
1. Open Wireshark on Client VM by entering “sudo wireshark” in the terminal. Set icmp as
filter.
2. Ping Server from the Client.
3. Check the Wireshark capture. (Screenshot Required)
4. Go to Attacker VM, run Netwag using the terminal.
5. Select Tool 85: Sniff and send ICMP4 source quench.
6. Select the interface and “spoofip: IP spoof initialization type”, and input the source IP
address. (Screenshot Required)
7. Click “Run It”.
8. Check the Wireshark capture. (Screenshot required)
Task 6: TCP Session Hijacking
The objective of the TCP Session Hijacking attack is to hijack an existing TCP connection (session) between
two victims by injecting malicious contents into this session. If this connection is a telnet session, attackers
can inject malicious commands into this session, causing the victims to execute the malicious commands.
You can use telnet in this task. You can also assume that the attackers and the victims are on the same
LAN. Following figure illustrates the attack.
48730-32548, Cyber Security Week-6
Lab designed by Ashish Nanda, based on documents “SEED Labs” provided by Wenliang Du, Syracuse University
Note: If you use Wireshark to observe the network traffic, you should be aware that when Wireshark displays
the TCP sequence number, by default, it displays the relative sequence number, which equals to the actual
sequence number minus the initial sequence number. If you want to see the actual sequence number in a
packet, you need to right click the TCP section of the Wireshark output, and select "Protocol Preference". In
the popup window, uncheck the "Relative Sequence Number and Window Scaling" option.
Use the Netwag Tool 36 to conduct the attack, and then use wireshark tool to capture the packets.
Steps:
1. Open Wireshark on Client VM by entering “sudo wireshark” in the terminal. Set telnet as
filter.
2. Establish a telnet connection with Client from the Server. Enter “telnet <IP address>”
and fill the username and password of the Client to establish a telnet connection.
(Screenshot required)
3. Generate some data by typing something in terminal where a telnet connection with
Client is established.
4. Go to Wireshark on Client, look for last telnet packet sent from Server to the Client.
(Screenshot required)
5. Ensure that “Relative sequence numbers” is disabled. (Check the Protocol Preferences)
6. Look into the details of TCP and telnet for last telnet packet sent from Server to the
Client. (Screenshot Required)
7. Convert ‘mkdir hello’ + return key to hexadecimal.
(https://www.browserling.com/tools/text-to-hex)
8. Go to Attacker VM, run Netwag using the terminal.
9. Select Tool 36: Spoof EthernetIp4Tcp packet.
48730-32548, Cyber Security Week-6
Lab designed by Ashish Nanda, based on documents “SEED Labs” provided by Wenliang Du, Syracuse University
6
10. Provide the following information:
Device Select Eth0
Ethernet Src From the wireshark output
Ethernet Dst From the wireshark output
IP4 ttl 64
IP4 Src 10.0.2.6
IP4 Dst 10.0.2.8
TCP Src From the wireshark output
TCP Dst From the wireshark output
TCP Seqnum From the wireshark output
TCP Acknum From the wireshark output: TCP Acknum
+ size of the data ‘/177’
TCP urg Tick
TCP ack Tick
TCP psh Tick
TCP window From the wireshark output
mixed data Hex for ‘mkdir hello’ + return key : 6d 6b
64 69 72 20 68 65 6c 6c 6f 0a
(Screenshot required)
11. Click “Run It”.
12. Go back to Wireshark on Client, look for the last telnet packet sent from Server to Client
before TCP Retransmission. (Screenshot Required)
13. Look into the details of Telnet for that packet. (Screenshot Required)
14. Check the home directory of Client.
相关推荐
Cartographer全局重定位优化:无初始位姿约束的2万平工厂秒级定位实践
本文深入解析了Cartographer在2万平工业场景中的全局重定位优化实践,通过分支定界优化、子图动态加载和多传感器融合等关键技术,实现了无初始位姿约束下的秒级重定位。特别针对大场景下的快速重定位需求,优化后的系统在RK3588平台上表现出色,定位耗时从47秒降至1.8秒,成功率提升至91%,为工业自动化提供了高效解决方案。
48730-32548 Cyber Security
Lab TasksSteps:Client VM.Questions:5Steps:Required)Questions:
基于单片机的自动喷淋系统设计【毕业设计】
随着人民生活质量提高与生活节奏的加快,城市居民对于花草绿植的家庭培养与装饰需求增加,随之因浇灌植物的需要,智能浇花系统的市场逐渐扩大。现有自动浇花系统大部分只能通过设置固定浇水时间而难以实现适时、适量浇水,或在植物环境土壤含水量低时进行报警而并不能实际补水。为克服局限性而设计以单片机为控制中心的自动浇花系统。通过湿度传感器检测目标植物环境土壤湿度数据,再经ADCO832将其放大转换为数字量,由单片机读取输出向LCD1602 显示屏显示并通过比对键盘向单片机所设置的湿度范围而利用中断服务程序进行补水需求判断。
48730-32548 Cyber Security Week-5SQL
➢➢Steps:Client VM.Steps:Questions:Steps:andQuestions:
XianYuAutoDeliveryX:基于闲鱼API与大模型的智能自动发货系统实践
本文详细介绍了如何利用XianYuAutoDeliveryX系统,结合闲鱼API与大语言模型,构建一个智能自动发货解决方案。该系统能实现买家付款后秒级自动发货,并通过对接ChatGPT等大模型智能回复买家咨询,有效解放卖家时间,提升虚拟商品店铺的运营效率和客户体验。
时序分析-由D触发器结构来理解Tsu、Th
FPGA逻辑单元内的D触发器(D-FF)是一种在时钟的上升沿(或下降沿)将输入信号的变化传送至输出的边沿触发器。 数字电子技术基础-闫石(第五版)边沿D触发器内部结构见下图: 而FPGA原理与结构(日)一书中,内部结构较之上图多了俩反相器: 由传输门和俩个反相器组成一个循环电路(锁存器),再由前后两级锁存器按主从结构链接而成。这里的传输门起开关作用,随着CLK的状态变化切换开关。只看输出的话,前级锁存器的值会随着时钟输入的变化井然有序地传入后级锁存器。为了防止时钟信号变化时输入信号发生冒险,从而使稳定.
Cyber security
Using TCP/IP 任务1:SYN泛滥攻击 SYN flood是一种DoS攻击的形式,攻击者向受害者的TCP端口发送许多SYN请求,但 攻击者并不打算完成三方握手程序。攻击者要么使用欺骗的IP 地址或不继续该程序。通过这种攻击,攻击者可以淹没受害者的队列,该队列用于半开放的连接。 攻击者可以淹没受害者的队列,该队列用于半开放的连接,即已经完成SYN、SYN-ACK的连接,但还没有 得到一个最终的ACK。当这个队列满了,受害者就不能再接受任何连接。下图 说明了这种攻击。 队列的大小有一个全系统...
自抗扰控制(ADRC)理论与工程实践:6.1 离散时间ADRC的推导
本文系统阐述了自抗扰控制(ADRC)的离散化方法,重点对比了前向欧拉法和基于零阶保持器(ZOH)的精确离散化两种方法。前向欧拉法计算简单但精度较低,稳定性受采样周期约束;ZOH法精度高但对大采样周期更鲁棒。文章详细推导了跟踪微分器、扩张状态观测器和控制律的离散形式,分析了采样周期选择的关键因素,为ADRC的数字实现提供了理论指导。
五十三.网络(3)--区块同步getblocks消息
在节点互发了version消息后,就会发送getblocks消息,请求对方的区块以进行同步。
.net core 下的PostgreSQL 异常排查—— Exception while reading from stream (0x80004005)
最近以PostgreSQL为存储介质,实现了分布式缓存的一个组件开发,在经过开发环境的测试后,顺利推送到产品组的手里,经过开发环境的验证后,终于发布到测试环境了,但问题来了,产品组反应频繁出现访问异常,返回的信息大致是:Exception while reading from stream … (0x80004005) ????欢迎点赞 :???? 收藏 ⭐留言 ???? 如有错误敬请指正,赐人玫瑰,手留余香! ????本文作者:由webmote 原创,首发于 【优快云】 ????作者格言: 生活在
JavaScript实现车牌识别系统(附完整源码)
JavaScript实现车牌识别系统(附完整源码)
DPU安全组与ACL性能测试:从规则爆炸到线速卸载的实战指南
本文深入剖析DPU安全组与网络ACL的底层卸载架构,通过两个完整实战测试矩阵,量化评估规则复杂度、有状态连接跟踪(Conntrack)及OVS Offload协同对RoCEv2性能的影响。结合真实故障排查案例与工具输出矩阵,揭示大规模云环境中安全组性能跌落的根因,并给出基于规则聚合与硬件表项优化的最优配置指南。
DSP的CLA调试技巧
本文介绍了基于TMS320F28377D的CLA(Control Law Accelerator)开发实战教程,涵盖基础配置、编程、调试与优化全流程。主要内容包括:CLA核心特性及其作为实时控制协处理器的优势;开发环境搭建与工程配置要点;CLA任务调度、数据交换及编程约束;调试技巧如断点设置和性能分析方法;进阶应用案例(批量除法运算)及优化策略;以及推荐的学习资源和硬件平台。教程强调数据一致性和任务同步问题,为快速上手CLA开发提供实用指导。
AI 芯片片上网络 NoC 深度解析:flit、虚通道与拥塞控制如何决定 GPU/TPU/LPU 的算力利用率
AI芯片算力瓶颈不在FLOPS,而在片上网络(NoC)——数据搬运的能耗与延迟决定MFU上限。物理限制下,长线延迟不随工艺缩小,迫使NoC将全局布线拆为可流水的短链路;能量账显示,一跳传输耗能可达数十次乘加操作。拓扑选择直接影响性能:二维mesh虽布线可行,但均匀流量下每节点可用带宽按1/√N衰减,实测仅达标称值30%。虚通道、双网设计、静态调度(如Groq)等技术旨在突破此瓶颈。从总线到crossbar再到多跳NoC,本质是用延迟换可行性。未来趋势:专用通路(脉动阵列)、晶圆级集成(Cerebras)、跨
pscad IEEE标准系统搭建说明
pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。
Devexpress16.2.6破解工具
Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具
网安产教融合思考:如何补齐高校实战能力评价短板
不少网安专业高校都面临这样现实的难题:网安人才培养持续推进,校内已经搭建完整的教学体系,但高校培养方案可能几年修一次,企业的技术栈和攻击手法却按季度在变,学校难落地最新的技术实战教学,学生难证明实战本领,企业一边喊人才紧缺,一边感慨招不到来了就能干的应届生。网安时代,实战为王。备考平台、7天免费直播培训、免费认证考试,期待更多高校加入 CCP 人才共育生态,组织本校学子参与本轮认证,以认证带动教学,以实战对接就业,共同为行业培养 “用得上、干得好” 的实战型网络安全人才。本次报名、培训、考试全程免费,
锂电池充电器电路设计 里面有电路
锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。
台湾行情数据API接入教程
想用程序获取台股行情,很多人第一步会搜“台股资料 API 推荐”,结果发现选择不少:证交所有免费接口,Yahoo Finance 也能查,券商还有自己的 API。真正写代码时才发现,有的数据只到收盘,有的延迟 20 分钟,有的必须先开户。本文先梳理台湾行情数据的几种获取渠道,再用 Python 从零搭一个可以运行的台股数据脚本:查代码清单、取实时报价和盘口、拉历史K线、做复权、用 WebSocket 接收实时推送,最后结合台积电 ADR 和新台币汇率计算跨市场溢价。
ssm框架搭建
这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载
【基于 WebSocket 的多用户网页五子棋】—— 数据管理模块
但行好事,莫问前程
Qt网络编程实战指南:从底层Socket到现代异步架构的选型与避坑
本文梳理Qt网络编程的核心模块与演进路线,对比QTcpSocket与QNetworkAccessManager的使用边界,结合HTTP请求与TCP长连接的完整示例,说明信号槽、内存管理与事件循环的配合方式。重点记录连接池设计、证书校验、线程亲和性等实际开发中的关键决策点,帮助读者在C/S或跨平台项目中建立稳定的网络层基座。
25.《Pwn 堆利用实战:House of Lore —— 从自出题 my_lore 到 getshell 全流程》
自出题 my_lore 打穿 House of Lore:UAF 泄露 libc,BSS 伪造 chunk 投毒 smallbin,两次 malloc 把 system 写进函数指针,附 gdb 动态验证全过程
从母钟到子钟:NTP 网络时钟系统架构与软件接口
本文从工程角度简要介绍公共场所的时间同步需求、NTP协议的定位,以及典型LED同步时钟的系统架构与硬件设计,以讯鹏科技4寸与5寸同步时钟为例。
正运动16轴脉冲网络型运动控制卡ECI1G38
16轴脉冲运动控制解决方案
DPVS 报文黑匣子与 Crash 自动拉黑:给转发面装上“飞行记录仪“
谁打挂了我(crash dump)、他之前发了什么(慢路径环)、他还会再来(入口拉黑)。设计上我们始终坚持两条原则:记录与决策分离(黑匣子永远只说不做),以及误伤成本优先于漏放成本(三道闸门全部通过才拉黑,expire 到期自动解封)。性能上,全量快路径摘要 + 入口查表的综合开销低于 1.3%,在 FIP 网关的流量水位下不可感知。飞行记录仪的价值不在于飞机正常飞行的时候,而在于它让每一次事故都变成一次改进。对转发面来说,同样如此。
全球实时竞价 RTB 中 IP 定位数据应用:链路完整性与工程实践
全球实时竞价(RTB)中IP定位数据的应用,核心判断是:IP数据是RTB竞价决策的底层输入之一,但它的价值高度依赖于从IP捕获到OpenRTB序列化整条链路的完整性。大量定位误差并非源于IP库本身不准,而是发生在CDN边缘节点捕获了错误的IP、供应链各环节使用了不同版本的库、或者OpenRTB字段缺失导致买方无法判断数据可信度。对于DSP和SSP的工程团队而言,理解IP定位在RTB中的实际作用边界,比选一个更准的库更重要。
HART转Modbus TCP利用月度维护窗口减少中药产线停机时长
中药制药洁净车间原用HART仪表因仅传输4-20mA信号,诊断信息无法上传,导致GMP审计难、运维频繁进出洁净区。项目采用捷米特JM-TCP-HART协议转换网关,将HART数字信号转为ModbusTCP以太网数据,实现仪表状态、标定记录等信息远程采集与追溯。改造不改动原有控制逻辑,无需停机,保障生产连续性,满足洁净区安全与合规要求,验证了协议转换在存量设备升级中的高效可行性。
亚远景-欧盟 NIS2 与 CRA 双法规生效,车载出口企业网络安全与过程合规建设要点
亚远景结合法规要求与车载行业特性,梳理双法规对整车与零部件出口企业的核心影响,说明如何以 ISO/SAE 21434 为核心、以 ASPICE 为过程底座,搭建满足欧盟要求的网络安全与过程合规体系。
23 网络性能与 QoS:带宽、时延、吞吐计算与保障机制
带宽是上限、不是实际速度;时延由传输、传播、处理、排队四段组成。一道题让你算端到端时延和吞吐,关键是先找到瓶颈在哪一跳。QoS 靠分类、标记、队列、调度四步保障,配一张瓶颈定位+容量规划图,再跟 3 道真题。
969



被折叠的 条评论
为什么被折叠?



