Zitat
Die Start-Sequenznummer ist eine beliebige Zahl
Wem genau soll ich nun glauben?
Zitat
Die Sequenznummer muss immer zufällig vor einem Verbindungsausbau ausgewählt werden.
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »dready« (10. März 2010, 20:12)

Zitat
IP-SPOOFING:
Dies kann von Eindringlingen dazu genutzt werden, Sicherheitsmaßnahmen wie z. B. IP-adressbasierte Authentifizierung im Netzwerk auszutricksen.
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »iNk_« (10. März 2010, 21:44)

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »@night@« (21. März 2010, 00:07)
Kennt ihr den Unterschied zwischen den früher verwendeten HUBs zu den heute gebräuchlichen SWITCH?Ich empfehe für dieses Tutorial in den Optionen das „Capture packets in promiscuous mode“ zu deaktivieren. Der promiscuous mode erlaubt das Anzeigen von Paketen, die nicht direkt an uns geschickt werden, aber Trotzdem bei unserer Netzwerkkarte gelandet sind.

:|
|
AutoIt-QuellCode
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
#include <Array.au3> #include <Winpcap.au3> $port = 4013 $nosip = "79.110.84.77" $filter = "tcp port " & $port $winpcap = _PcapSetup() ; initialize winpcap If ($winpcap = -1) Then MsgBox(16, "Pcap error !", "WinPcap not found !") Exit EndIf $pcap_devices = _PcapGetDeviceList() ; get devices list If ($pcap_devices = -1) Then MsgBox(16, "Pcap error !", _PcapGetLastError()) Exit EndIf $int = $pcap_devices[2][0] $pcap = _PcapStartCapture($int, $filter, 0);start capture If ($pcap = -1) Then MsgBox(16, "Pcap error !", _PcapGetLastError()) EndIf Local $counterabc = 1 While 1 If IsPtr($pcap) Then $time0 = TimerInit() While (TimerDiff($time0) < 500) ; Retrieve packets from queue for maximum 500ms before returning to main loop, not to "hang" the window for user $packet = _PcapGetPacket($pcap) If IsInt($packet) Then ExitLoop If $counterabc <> 5 Then $sniff = sniff($packet[3]) ToolTip ($counterabc & @CRLF & $sniff,0,0) If $sniff <> False Then ConsoleWrite($sniff & @CRLF) $counterabc += 1 EndIf Else $in = InputBox("", "") senden ($in) EndIf WEnd EndIf WEnd _PcapFree() ; close winpcap Func sniff($data) Local $ipheaderlen = BitAND(_PcapBinaryGetVal($data, 15, 1), 0xF) * 4 Local $tcpoffset = $ipheaderlen + 14 Local $tcplen = _PcapBinaryGetVal($data, 17, 2) - $ipheaderlen ; ip total len - ip header len Local $tcpheaderlen = BitShift(_PcapBinaryGetVal($data, $tcpoffset + 13, 1), 4) * 4 Local $tcpsrcport = _PcapBinaryGetVal($data, $tcpoffset + 1, 2) Local $tcpdstport = _PcapBinaryGetVal($data, $tcpoffset + 3, 2) Local $tcpsequence = _PcapBinaryGetVal($data, $tcpoffset + 5, 4) Local $tcpflags = _PcapBinaryGetVal($data, $tcpoffset + 14, 1) Local $httpoffset = $tcpoffset + $tcpheaderlen + 1 Local $httplen = $tcplen - $tcpheaderlen $sniff_packet = BinaryMid($data, $httpoffset) If $httplen = 0 Then Return False ; empty tcp packet If $tcpsrcport = $port Then ;Return ">IN:" & $sniff_packet ; server ==> client EndIf If $tcpdstport = $port Then Return "-OUT:" & $sniff_packet ; client ==> server EndIf EndFunc ;==>sniff Func senden($data) $totlength = "00" & Hex(4 + 20 + 4 + BinaryLen($data) / 2, 2) $winpcap = _PcapSetup() ; initialize winpcap $pcap_devices = _PcapGetDeviceList() ; get devices list $pcap = _PcapStartCapture($pcap_devices[2][0]) ; my interface ;Ethernet header $broadcastmac = "0003c9b4d768" ; MAC from GW $mymac = StringReplace($pcap_devices[2][6], ":", "") ; my mac address in hex $ethertype = "0800" ; IP $ethernetheader = $broadcastmac & $mymac & $ethertype ; stick together to a binary string ! ;IP header $version = "4" $headerlength = "5" $tos = "00" $ident = "1234" $ffo = "4000" $ttl = "80" $prot = "01" $sourceaddress = IPtoHex($pcap_devices[2][7]) $destaddress = IPtoHex($nosip) ;$totlength = "003c" $crc = Hex(_PcapIpCheckSum("0x" & $ethernetheader & $version & $headerlength & $tos & $totlength & $ident & $ffo & $ttl & $prot & "0000" & $sourceaddress & $destaddress), 4) $ippacket = $ethernetheader & $version & $headerlength & $tos & $totlength & $ident & $ffo & $ttl & $prot & $crc & $sourceaddress & $destaddress ;ICMP $type = "08" $code = "00" $identifier = "0001" $seq = "0001" $checksum = Hex(_PcapIcmpCheckSum("0x" & $ippacket & $type & $code & "0000" & $identifier & $seq & $data), 4) $ICMP = $type & $code & $checksum & $identifier & $seq & $data $mypacket = "0x" & $ippacket & $type & $code & $checksum & $identifier & $seq & $data $sendback = _PcapSendPacket($pcap, $mypacket) ; sends a valid packet MsgBox (0,"Senden",$sendback) EndFunc ;==>senden Func IPtoHex($ip) Dim $iphex[5] $ip = StringSplit($ip, ".") For $i = 1 To 4 Step 1 $iphex &= Hex($ip[$i], 2) Next Return $iphex EndFunc ;==>IPtoHex |
Hits heute: 3 896 | Hits Tagesrekord: 19 503 | Hits gesamt: 874 061 | Hits pro Tag: 2 039,16

