TCP response




TCP response

Postby Mixony » 17. Apr 2017, 10:19

Working on TCP on episode A07 and when I send TCP SYN I dont get response from netcat
I typed the SYN request from OS and sorted it out

--ETHERNET-------
52 54 00 12 35 02
08 00 27 6A C1 94
08 00
--ETHERNET-------

--IPv4-------------
45
00
00 2C
00 01
40 00
40
06
22 BB
0A 00 02 0F
0A 00 02 02
--IPv4-------------

--TCP---------
04 00
04 D2
BE EF CA FE
00 08 01 00
60 02
FF FF
F0 5E
00 00
02 04 05 B4
--TCP---------

Can someone tell me what is wrong here?
Mixony
 
Posts: 24
Joined: 12. Mar 2017, 08:18

by Advertising » 17. Apr 2017, 10:19

Advertising
 

Re: TCP response

Postby Mixony » 17. Apr 2017, 20:58

In pseudoHeader I've put
mojos::common::uint16_t srcIP;
mojos::common::uint16_t dstIP;
Instead of
mojos::common::uint32_t srcIP;
mojos::common::uint32_t dstIP;
So the checksum was wrong and netcat just droped it.
Mixony
 
Posts: 24
Joined: 12. Mar 2017, 08:18

Re: TCP response

Postby Mixony » 21. Apr 2017, 10:43

Somehow I get RESET BIT in tcp. Did anyone have this problem before
Attachments
MYOS1.png
MYOS1.png (7.57 KiB) Viewed 311 times
Mixony
 
Posts: 24
Joined: 12. Mar 2017, 08:18


Return to Network & Network-Protocols

Who is online

No registered users

cron