48730-32548, Cyber Security

news/2024/9/19 11:38:00/文章来源:https://www.cnblogs.com/qq---99515681/p/18416988

48730-32548, Cyber Security Week-6

Lab designed by Ashish Nanda, based on documents “SEED Labs” provided by Wenliang Du, Syracuse University1

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 relatedto TCP/IP based attacks.

Netwox/Netwag

We need tools to send out network packets of different types and with different contents. We can useNetwag 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 isthe underlying command invoked by Netwag.Netwox consists of a suite of tools, each having a specific number. You can run the command as followingthe parameters depend on which tool you are using). For some of the tools, you have to run it with theroot 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 thegraphic interface, Netwag actually invokes a corresponding Netwox command, and it displays the parametersettings. 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, youwill 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 toolsare 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 canalso conduct the same attack on the other operating system and compare the observations after labclasses. 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 areon the same physical network as the victims (Think of where such attacks may happen?). Therefore, youcan use sniffer tools to get that information. The following is the list of attacks that need to beimplemented and 代 写48730-32548, Cyber Security 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 Universit2Before 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 University3

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, ifthere is an established telnet connection (TCP) between two users A and B, attackers can spoof a RSTpacket from A to B, breaking this existing connection. To succeed in this attack, attackers need to correctlyconstruct 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)

  1. Go to Attacker VM, run Netwag using the terminal. (sudo netwag)
  2. Select Tool 78: Reset every TCP packet.
  3. Select the interface and the “spoofip: IP spoof initialization type”. (Screenshot

required)

  1. Click “Run It”.
  2. Go to Server, generate some data by typing something in terminal where a telnetconnection with Client is established. (Screenshot Required)For performing the same attack on SSH connection, establish an SSH connection with Clientfrom the Server by entering “ssh username@IPaddress” instead of a telnet connection. Similarscreenshots 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 anICMP error message that indicates a “hard error” to either of the two endpoints of a TCP connection. Theconnection can be immediately torn down as RFC 1122 states that a host should abort the correspondingconnection when receiving such an ICMP error message. RFC 1122 defines “hard errors” as ICMP errormessages 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 University4

Steps:

  1. Open Wireshark on Client VM by entering “sudo wireshark” in the terminal. Set icmp as

filter.

  1. Ping Server from the Client.
  2. Check the Wireshark capture. (Screenshot Required)
  3. Go to Attacker VM, run Netwag using the terminal.
  4. Select Tool 82: Sniff and send ICMP4/ICMP6 destination unreachable.
  5. Select the interface and “spoofip: IP spoof initialization type”, input the ICMP code (2)

and source IP address. (Screenshot Required)

  1. Click “Run It”.
  2. 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 TCPstate.

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 asfilter.
  1. Ping Server from the Client.
  2. Check the Wireshark capture. (Screenshot Required)
  3. Go to Attacker VM, run Netwag using the terminal.
  4. Select Tool 85: Sniff and send ICMP4 source quench.
  5. Select the interface and “spoofip: IP spoof initialization type”, and input the source IP

address. (Screenshot Required)

  1. Click “Run It”.
  2. 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) betweentwo 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 sameLAN. 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 University5Note: If you use Wireshark to observe the network traffic, you should be aware that when Wireshark displaysthe 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 apacket, you need to right click the TCP section of the Wireshark output, and select "Protocol Preference". Inthe 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 asfilter.
  1. 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)
  1. Generate some data by typing something in terminal where a telnet connection withClient is established.
  1. Go to Wireshark on Client, look for last telnet packet sent from Server to the Client.(Screenshot required)
  1. Ensure that “Relative sequence numbers” is disabled. (Check the Protocol Preferences)
  2. Look into the details of TCP and telnet for last telnet packet sent from Server to theClient. (Screenshot Required)
  1. Convert ‘mkdir hello’ + return key to hexadecimal.https://www.browserling.com/tools/text-to-hex)
  1. Go to Attacker VM, run Netwag using the terminal.
  2. Select Tool 36: Spoof EthernetIp4Tcp packet. 48730-32548, Cyber Security Week-6Lab designed by Ashish Nanda, based on documents “SEED Labs” provided by Wenliang Du, Syracuse University6
  1. 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)

  1. Click “Run It”.
  2. Go back to Wireshark on Client, look for the last telnet packet sent from Server to Clientbefore TCP Retransmission. (Screenshot Required)
  1. Look into the details of Telnet for that packet. (Screenshot Required)
  2. Check the home directory of Client.

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/798546.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Oliver编译安装(Windows10+VisualStudio2022)

Oliver是一个开源的非线性视频编辑器。主要基于Qt和FFmpeg开发。前置条件 电脑上需要的环境Qt(>=5.15) VisualStudio(2022,其他版也可) vcpkg软件安装安装Qt5.15令人糟糕的是,Qt如今变得不太容易安装。自从Qt5.15以后的版本,就取消了离线安装。所有的Qt后序版本就只能通过…

CVE-2021-24762 复现

CVE-2021-24762 复现一看是个wordpress,看了下版本6.0没洞,直接扔wpscan扫一下 发现了个插件一搜发现perfect-survey在1.5.2之前都有洞,直接搜exp打. 上官网找了个API重扫一遍,直接给出了CVE号!直接找个sqlmap的exp跑一下,注意第二个位置选n来设置cookie sqlmap -u "http…

Java后端对前端的数据进行校验

首先,作为一名后端程序员,大家一定要记住:不要相信前端传来的数据,后端程序员仿佛是国家的边境出入局的工作人员,承担这最后的防线,必须尽可能的防止错误信息的流入导致正确信息的流出。因此,后端程序员必须要对前端传来的数据进行校验。这里呢,发现一个很好的校验工具…

vp介绍

想要更多请到:https://budingcat.xyz 注册了解详情 可以点击工单进行沟通哦~

云计算与大数据概论--金功勋

week4的 week5 Hadoop介绍起源:Hadoop as a solution:Building blocks:Namenodeif other nodes fail:DataNode:Block 1Secondary Namenode:JobTracker:if fails:Topolosy clusterPig:Hive :PIGweek10 week13:

通过vscode 创建uniapp项目

一、创建项目 uniapp官网教程: https://uniapp.dcloud.net.cn/quickstart-cli.html控制台命令: npx degit dcloudio/uni-preset-vue#vite <projectName> npm i二、使用vscode运行项目

Java多线程复习

目录3种创建方式(现阶段推荐 Runnable接口)下载网上的图片(利用了commons-io中的copyUrlToFiles方法)小结买票的例子(Thread的构造方法,获取当前线程的名称,线程休眠)龟兔赛跑的例子实现Callable接口线程停止线程休眠线程礼让Join方法(main线程与Thread子线程)线程状…

大数据技术原理与应用——从入门到文档数据库

大数据技术原理与应用 3次信息化的浪潮研究问题的四个阶段大数据技术的层次大数据的计算模式PaaS物联网的概念云计算、大数据、物联网之间的关系Hadoop应用现状选择Hdoop需要考虑的因素Hadoop的定量评分(满分为5分)总体评价Ubuntu的一些基本知识(之所以不用CentOs,是因为其…

macOS Ventura 13.7 (22H123) 正式版发布,ISO、IPSW、PKG 下载

macOS Ventura 13.7 (22H123) 正式版发布,ISO、IPSW、PKG 下载macOS Ventura 13.7 (22H123) 正式版发布,ISO、IPSW、PKG 下载 2024 年 9 月 17 日凌晨 1 点,Tim Cook 领导的 Apple 今天发布了 macOS 15 Sequoia 正式版,iPhone 镜像、密码应用程序、窗口平铺更新等带来全新体…

C++11 线程同步接口std::condition_variable和std::future的简单使用

std::condition_variable条件变量std::condition_variable有wait和notify接口用于线程间的同步。如下图所示,Thread 2阻塞在wait接口,Thread 1通过notify接口通知Thread 2继续执行。具体参见示例代码:#include<iostream> #include<mutex> #include<thread>…

macOS Sequoia 15.0 (24A335) 正式版发布,ISO、IPSW、PKG 下载

macOS Sequoia 15.0 (24A335) 正式版发布,ISO、IPSW、PKG 下载macOS Sequoia 15.0 (24A335) 正式版发布,ISO、IPSW、PKG 下载 iPhone 镜像、Safari 浏览器重大更新、备受瞩目的游戏和 Apple Intelligence 等众多全新功能令 Mac 使用体验再升级 请访问原文链接:https://sysin…

Go runtime 调度器精讲(十一):总览全局

原创文章,欢迎转载,转载请注明出处,谢谢。0. 前言 前面用了十讲介绍了 Go runtime 调度器,这一讲结合一些图在总览下 Go runtime 调度器。 1. 状态转换图 首先是 Goroutine 的状态转换图:大部分转移路径前面几讲也介绍过,这里就不继续介绍了(下同)。 接着是 P 的状态转移…