ports/80161: Maintainer Update: dns/dnshijacker patch

David Thiel lx at redundancy.redundancy.org
Wed Apr 20 17:30:28 UTC 2005


>Number:         80161
>Category:       ports
>Synopsis:       Maintainer Update: dns/dnshijacker patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 20 17:30:26 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     David Thiel
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD redundancy.redundancy.org 5.3-STABLE FreeBSD 5.3-STABLE #0: Sun Jan 9 21:41:16 PST 2005 root at redundancy.redundancy.org:/usr/obj/usr/src/sys/REDUNDANCY i386


>Description:

Spoofed packets were being sent with incorrect checksums. The included
patch fixes.

>How-To-Repeat:
>Fix:

diff -ruN dnshijacker.old/files/dnshijacker.c.patch dnshijacker/files/dnshijacker.c.patch
--- dnshijacker.old/files/dnshijacker.c.patch	Wed Dec 31 16:00:00 1969
+++ dnshijacker/files/dnshijacker.c.patch	Fri Apr 15 18:35:25 2005
@@ -0,0 +1,11 @@
+--- dnshijacker.c.orig	Thu Mar 31 15:00:10 2005
++++ dnshijacker.c	Thu Mar 31 15:01:43 2005
+@@ -733,7 +733,7 @@ void spoof_dns (int socket)   {
+      *  source and destination are swapped here because we are spoofing a reply
+      */
+ 
+-    libnet_build_ip(LIBNET_UDP_H + LIBNET_DNS_H,
++    libnet_build_ip(packet_size - LIBNET_IP_H,
+             0,                                   /* ip tos              */
+             0,                                   /* ip id               */
+             0,                                   /* fragmentation bits  */
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list