Raw sockets

2718 palavras 11 páginas
Raw Packets

Who Am I?
• Jim O’Gorman
– Jameso@elwood.net – Jogorman@gmail.com – http://www.elwood.net/

What is This?
• What is a “raw” packet?
– Packet Sniffer
• Ethereal (http://www.ethereal.com/) • TCPDump (http://www.tcpdump.org/)

– Protocol Processors
• Ethereal has many • TCPDump has a few (ex DNS)

What Does a Raw Packet Look Like?
• What does a raw (hex) packet look like?
IP 10.10.80.73.49951 > 64.233.167.99.80: . ack 2913739186 win 65535 4500 0028 e9f7 4000 4006 0e39 0a0a 5049 40e9 a763 c31f 0050 befb 759a adac 21b2 5010 ffff a5d0 0000

Why Do I Care?
• Tools do the work for me. Why should I waste my time with this?
– In school, did you learn to do math by hand? Or with a calculator?

What is Hex?
• Base Ten (Decimal) - Fingers and Toes • Binary - 1s and 0s • Hex (Hexadecimal) - 1 through 15
– 0-9 then a for 10, b for 11, etc up to f for 15.

0-F
• • • • • • A = 10 B = 11 C = 12 D = 13 E = 14 F = 15

Powers
• Base Ten is 0-9, so if you need something higher then 9, you use powers:
– 18 is nothing more then 110 plus 8 – 11000011000110011011

• Hex is 0-F, so when you need more than 15, you use powers:
– 18 in hex is 0x12 = 116 plus 2 – 27 in hex is 0x1B = 116 plus 11 – 16553614096125611611

Binary
• Quick (very quick) binary overview
– 0 and 1 – Powers: 112816413211618141211 – 2 decimal is 10 binary (12+01) – 15 decimal is 1111 binary (18+14+12+11) – Hard to work with as small numbers take quite a bit to write out

Its Easy
• Converting hex is very easy
– Let your calculator do it for you

Bit, Nibble, Byte
• • • • Bit - Smallest unit - 0 or 1 Nibble - Four Bits, Half a Byte Byte - Eight Bits, Two Nibbles One hex digit is a nibble, two hex digits is a byte

IP Networking
• Most of us know at least something about IP networking
– At this point we are going to review the encapsulation used by IP

• Packets are broken up into various fields, each serving a different purpose

IP Datagram

TCP

Relacionados

  • Introdução a Redes LAN MAN e WAN
    12511 palavras | 51 páginas
  • Trabalho redes
    357 palavras | 2 páginas
  • Project
    761 palavras | 4 páginas
  • DSPTI Equipamentos
    2341 palavras | 10 páginas
  • chat aps unip
    7907 palavras | 32 páginas
  • Arquitecturas
    3080 palavras | 13 páginas
  • Ibquota instalação
    1741 palavras | 7 páginas
  • Programacao de sockets em c p/ linux
    6875 palavras | 28 páginas
  • Arquitetura em TI
    11017 palavras | 45 páginas
  • deuidhasudhas
    928 palavras | 4 páginas