Title:
1(No Transcript)
2(No Transcript)
31. ???
- sniff?? ????? ??
- ?? ?????? ??? ??? ??? ?? ?
- ??? ??? ?? ? ?? ?? ??.
- ???(Passive) ??
- LAN? ???? ???????(Promiscuous) ???? ??
- ? ??? ??? MAC(Media Access Control) ?? ?? ???
??? ??? ? ??? ?? ?? ???? ??? ??? ????? ?? - ??? ???? ?? ???? ????? ?? ?? (??? ?? ? ?? ??
tool ??) ??????? ??
4?????? ??????? ??? ????
Root ifconfig eth0 promisc
52. ??? ?? ??
1. TCP Dump
- ?? ??? ??? ??
- ???? ??? ?? ??? ?
- Snort?? IDS? ?? ??????? ?
- TCP Dump? ?? ??? ??? ?? ?? ??
6TCP Dump? ???? ??? ???? ?????
TCP Dump? ?? Root ./configure Root make Root
make install
7TCPDUMP Usage
- To print all packets arriving at or departing
from sundown - tcpdump host sundown
- To print traffic between helios and either hot or
ace - tcpdump host helios and \( hot or ace \)
- To print all IP packets between ace and any host
except helios - tcpdump ip host ace and not helios
- To print all traffic between local hosts and
hosts at Berkeley - tcpdump net ucb-ether
- To print all ftp traffic through internet gateway
snup (note that the expression is quoted to
prevent the shell from (mis-)interpreting the
parentheses) - tcpdump 'gateway snup and (port ftp or ftp-data)'
- To print traffic neither sourced from nor
destined for local hosts (if you gateway to one
other net, this stuff should never make it onto
your local net). - tcpdump ip and not net localnet
- To print the start and end packets (the SYN and
FIN packets) of each TCP conversation that
involves a non-local host. - tcpdump 'tcptcpflags (tcp-syntcp-fin) ! 0
and not src and dst net localnet' - To print all IPv4 HTTP packets to and from port
80, i.e. print only packets that contain data,
not, for example, SYN and FIN packets and
ACK-only packets. (IPv6 is left as an exercise
for the reader.) - tcpdump 'tcp port 80 and (((ip22 -
((ip00xf)ltlt2)) - ((tcp120xf0)gtgt2)) ! 0)' - To print IP packets longer than 576 bytes sent
through gateway snup - tcpdump 'gateway snup and ip22 gt 576'
- To print IP broadcast or multicast packets that
were not sent via Ethernet broadcast or
multicast
8Telnet Login ? TCPDump ?? ?? wishfree? ??
9Telnet Login ? TCPDump ?? ???? qwer1234? ??
102. Fragrouter
?? ??? ?????? ?? ???. ???? ??? ??? ????? ? ?????
? ??? ????? ?????? ?? ???? ??? ????. ????? ???
???? ?? ??? ? ?? ??? ??? ?? ???? ??? ?? ??.
Fragrouter ????
Root ./configure Root make
113. DSniff
- DSniff? ???? ?? ??? ??
- ???? ?? ??? ?? ???? ?
- SSL? ?? ???? ?? ??? ????? ????, DSniff? ??? ????
??? ?????? ???? ??? ?? - DSniff? ??? ? ?? ?? ftp, telnet, http, pop,
nntp, imap, snmp, ldap, rlogin, rip, ospf, pptp,
ms-chap, nfs, yp/nis, socks, x11, cvs, IRC, ATM,
ICQ, PostageSQL, Citrix ICA, Symantec pcAnywhere,
M.S. SQL, auth, info
12DSniff ?? ? ???? ?
? ? ?
filesnarf NFS ????? ???? ??? ?? ????? ????.
macof ???? ??? ?? ???? ?? ??? ??? MAC ??? ???? MAC ???? ?????(Overflow)???.
mailsnarf SNMP? POP ? ????? ???? ? ? ?? ???.
msgsnarf ?? ???? ?????.
tcpkill ??? ? ?? TCP ??? ?? ???.
tcpnice ICMP source quench ???? ?? ?? TCP ??? ??? ???. ??? ?? ?????? ???? ?
arpspoof ARP ??? ??? ????.
dnsspoof DNS ??? ??? ????.
urlsnarf CLF(Common Log Format)?? HTTP ???? ????? ??? URL? ????.
13DSniff? ???? ?? ?? ?????
Dsniff? ??
Root ./confiugre Root make Root make install
14Dsniff? ??? ???? ???
Root dsniff
15Tcpkill? ??? ?? ??
R(eset) ??? ?? tcp ??? ??? Root tcpkill
16Tcpnice? ??? ??? ?? ??? ???
??? ??? ?? ??? ??? 8?? ????? ??, ???? ??????? ???
???. Root tcpnice
17URLSNARF? ??? ? ?? ??
??? ???? ??? ??? ?? ?? ??? ? ? ??. Root urlsnarf
18MAILSNARF? ?? ???
sendmail ??? ??? ??? ? ??? ???? ??? ?? ? ??.
Root mailsnarf
19MSGSNARF? ??? ??? ?? ?? ???
MSN ???? ???? ??? ???? ?????. Root msgsnarf
204. Sniffer Pro (Window)
- ?????? ??????? ??? ???? ??
- WinPCAP? ?? ?????? ???? ???? ??
- ??? ???? ??? GUI(Graphic User Interface)? ???
???? ??? ????? ??? ??? ?? ?? ???? ?? ??.
214. ??? ????? ???
- Switch store frames, check the port, and
forward to only destination, while Hub copies
them to all ports. - ???? ???? ???? ??
- ARP Spoofing ? ?? Sniffing
- ICMP redirect ? ??? Sniffing
221. ARP ???, ARP/ICMP ?????
ARP ?????
- ARP ????? ??? 2???? ??
- ??? ??? ARP reply ??? ??? ??
- ??? MAC ??? ????? ??????? ????? ?? ?
- ARP ???? ??? ? ??? ??
- ARP ?????? ?? ?? ??? ? ????? ? ??? ? ???? ??
- ARP ?????? ????? ??? ???? ?? ???? MAC ??? ?? ???
?? ?? ?? ??? ?? ???? ???? ???? ?.
23(No Transcript)
24ICMP ?????
- ?? ??? ????? ???? ?????? ???.
- ??? ???? ???? ???? ??? ? ?? ??
- ???? ?????? ? ? ?? ???? ?????(Load balancing)?
?? - ?? ???? ??? ???? ??? ???? ?? ? ???? ??? ???
ICMP ?????? ??. - ICMP ??? ??? ??? ????? ????? ?? ??
- ???? ????? ???? ? ?? ??? ?? ? ????? ??? ?
- ARP ???? ?? ?? ARP ???? ?? ???? ?? ?????? ????
???, ICMP ?????? ??? ??? ??? ?? ???? ????? ?.
25ICMP ????? ?? ?? 1/2
26ICMP ????? ?? ?? 2/2
1. ??? A? ??? ??? B? ???? ?? ? ??? A?
???(Default) ???? ???? ?? ??? ??? A? ???? ??? ??
??? ??? A? ???. 2. ??? A? ??? B? ??? ??? ????
??? ???? ???? ??? B? ??? B? ?????, ?? ????? ???
A? ?? ??? ??? B? ???. 3. ??? A? ?? ??? A? ??? B?
??? ??? ???? ???? ??? ??? A?? ICMP ????? ??? ??
??? A? ??? B? ??? ??? ??? B? ?? ???? ??. 4. ???
A? ??? ???? ??? B? ?? ?? ????, ??? B? ??? ??? ???
B? ????.
27ICMP ?????? ???? ??? ???
?? ?? ??
28ICMP Redirect ???? ??? Root gcc o icmp_redir
icmp_redir.c
?? ??? ? ?? fragrouter -B1
29ICMP ??? ?? Root ./icmp_redir 192.168.1.1
192.168.1.143 216.239.37.99 192.168.1.142
ICMP ????? ?? ? TCP Dump Root tcpdump -vvv host
192.168.1.143
30ICMP Redirect? ??? ??? ???? ?? Root route -C
315. ??? ??? ???
1. ??? ??
- ??? ??? ????? ??? ?? ??? ??? ?? ??? ???? ?? ????
?? ???. - ???? ???? ?? ????? ????? ????? ???? ??? ??? ???
- ???? ?? ??? ????? ???? ??????? ???? ????? ???
??. - ?? Ping, ARP
32- ? Ping? ??? ??
- ???? ???? ?? TCP/IP?? ???? ??? request? ???
response? ????. - ??? ?? ???? ping? ??? , ????? ???? ?? MAC ???
???? ??. - ?? ICMP Echo reply? ??? ?? ???? ???? ?? ?? ??
- ???? ???? ?? MAC ??? ???? ??? ???? ?? ?? ????
??? ping request? ? ? ?? ?? ??. - ? ARP? ???? ??
- ping? ??? ???? ??? ARP request? ??? ? ARP
response? ?? ??????? ??? ???? ?? ??.
33- ? ??(Decoy)??
- ??? ??? ?? ???? ?? ??? ??? ????? ??
- ?? ???? ??? ???? ????? ?? ??? ????? ????? ??.
- ???? ? ??? ????? ???? ??? ???? ? ??? ???? ????
?????? ???? ??? ? ??. - ? ARP watch
- ??? MAC ??? IP ??? ?? ?? ???? ARP ???? ?????? ??
??? ?? ??? ???? ????? ??? ???? ???.
34???? ????
Sentinel? ???? ???? ????. ./sentinel -e -t
192.168.1.144
35???? ???? ?? ??, tcpdump? ??
???? ???? ?? ?? ??, tcpdump? ??