와이어샤크 밑에 ssh 누르고 연결 설정

Untitled

Untitled

Untitled

Untitled

위에 패킷 검색창에 icmp 입력해놓고

EC2 실행시켜서 구글에 핑 보내보자

Untitled

Untitled

Untitled

SCAPY 들어오기

**root@ip-172-31-9-129:~# scapy
>>> packet = IP(dst='google.co.kr')/ICMP()
>>> send(packet)
.
Sent 1 packets.

>>> p = sr1(packet)
Begin emission:
Finished sending 1 packets.
............................................................*
Received 61 packets, got 1 answers, remaining 0 packets
>>> p
<IP  version=4 ihl=5 tos=0x0 len=28 id=0 flags= frag=0 ttl=46 proto=icmp chksum=0x80e3 src=142.250.199.99 dst=172.31.9.129 |<ICMP  type=echo-reply code=0 chksum=0xffff id=0x0 seq=0x0 |>>

>>> p.show()
###[ IP ]###
  version   = 4
  ihl       = 5
  tos       = 0x0
  len       = 28
  id        = 0
  flags     =
  frag      = 0
  ttl       = 46
  proto     = icmp
  chksum    = 0x80e3
  src       = 142.250.199.99
  dst       = 172.31.9.129
  \\options   \\
###[ ICMP ]###
     type      = echo-reply
     code      = 0
     chksum    = 0xffff
     id        = 0x0
     seq       = 0x0
     unused    = ''**