首页 > 其他分享 >48730-32548, Cyber Security

48730-32548, Cyber Security

时间:2024-09-17 11:03:07浏览次数:11  
标签:32548 Screenshot TCP connection 48730 telnet Security wireshark Wireshark

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.

标签:32548,Screenshot,TCP,connection,48730,telnet,Security,wireshark,Wireshark
From: https://www.cnblogs.com/qq---99515681/p/18416988

相关文章

  • SpringSecurity初学总结
    springSecurity安全框架   基于Java的安全框架主要有:SpringSecurity和Shiro   介绍基础概念      安全框架是对用户访问权限的控制,保证应用的安全性。         其主要的工作是用户认证和用户授权|鉴权      主要应用于Spri......
  • 安全:modsecurity加ip白名单
    一,创建目录和文件,并添加规则1,创建目录和文件[root@blogmodsecurity]#mkdircustom_rules[root@blogmodsecurity]#cdcustom_rules/[root@blogcustom_rules]#viipwhitelist.conf命令的内容:[root@blogcustom_rules]#moreipwhitelist.confSecRuleREMOTE_ADDR"@......
  • SpringSecurity原理解析(二):认证流程
    1、SpringSecurity认证流程包含哪几个子流程?   1)账号验证   2)密码验证   3)记住我—>Cookie记录   4)登录成功—>页面跳转2、UsernamePasswordAuthenticationFilter   在SpringSecurity中处理认证逻辑是在UsernamePasswordAuthenticationFilter这个过......
  • SpringSecurity原理解析(二):认证流程
    1、SpringSecurity认证流程包含哪几个子流程?   1)账号验证   2)密码验证   3)记住我—>Cookie记录   4)登录成功—>页面跳转2、UsernamePasswordAuthenticationFilter   在SpringSecurity中处理认证逻辑是在UsernamePasswordAuthenticationFilter这个过......
  • COMPSCI 316: Cyber Security
    Assignment1COMPSCI316:CyberSecurity,Semester2,2024Thisassignmentisworth100marks.Theweightofthisassignmentis10%ofthecourse.ThedeadlinetosubmitthisassignmentisFriday,September13,23:59hrsNZTime.Nolatesubmissionsarea......
  • 48730-32548, Cyber Security
    48730-32548,CyberSecurityWeek-5Thelabisbasedondocuments“SEEDLabs”providedbyWenliangDu,SyracuseUniversityUnderstandingTCP/IPbasedAttacksLabOverviewThelearningobjectiveofthislabistogainfirst-handexperienceonTCP/IPvuln......
  • Spring Security 4大核心架构图与21种安全验证策略场景分析
    一、SpringSecurity架构设计图二、SpringSecurity架构流程设计图三、SpringSecurity4大架构模块图四、21种安全验证策略原创Solomon肖哥弹架构SpringSecurity是一个功能强大且高度可定制的Java安全框架,用于保护基于Spring的应用程序。它提供全面的安全......
  • springboot 常用的验证框架分析 -shiro/springsecurity
    一 常用的认证鉴权框架关于认证和鉴权的框架,在springboot中使用比较多的比如shiro,springsecurity,soToken这些。从设计上,这些框架的底层逻辑其实大同小异。整体上来说:对于保护性的安全资源,用户需要先通过认证,才能获取授权访问,所以通过理解,很容易思考到,所有的权限管理框架。......
  • 深入探索Spring Security:保护你的应用免受威胁
    目录1.引言2.什么是SpringSecurity?3.核心概念认证(Authentication)授权(Authorization)过滤器链(FilterChain)异常处理4.核心组件SecurityContextHolderUserDetailsServiceAuthenticationManagerAccessDecisionManager5.配置SpringSecurity6.最佳实践7.结论1.引......
  • Java中的服务端点认证与授权:JWT与Spring Security OAuth2
    Java中的服务端点认证与授权:JWT与SpringSecurityOAuth2大家好,我是微赚淘客返利系统3.0的小编,是个冬天不穿秋裤,天冷也要风度的程序猿!今天我们将深入探讨如何在Java应用中实现服务端点的认证与授权,重点关注JWT(JSONWebToken)和SpringSecurityOAuth2。我们将通过实际代码示例展......