1
0

patch-webspy_c 719 B

1234567891011121314151617181920
  1. --- dsniff-2.4.orig/webspy.c 2001-03-15 09:33:05.000000000 +0100
  2. +++ dsniff-2.4/webspy.c 2009-12-11 13:06:30.000000000 +0100
  3. @@ -126,7 +126,7 @@ process_http_request(struct tuple4 *addr
  4. if (auth == NULL)
  5. auth = "";
  6. if (vhost == NULL)
  7. - vhost = libnet_host_lookup(addr->daddr, 0);
  8. + vhost = libnet_addr2name4(addr->daddr, 0);
  9. snprintf(cmd, sizeof(cmd), "openURL(http://%s%s%s%s)",
  10. auth, *auth ? "@" : "", vhost, uri);
  11. @@ -202,7 +202,7 @@ main(int argc, char *argv[])
  12. cmdtab[0] = cmd;
  13. cmdtab[1] = NULL;
  14. - if ((host = libnet_name_resolve(argv[0], 1)) == -1)
  15. + if ((host = libnet_name2addr4(NULL, argv[0], 1)) == -1)
  16. errx(1, "unknown host");
  17. if ((dpy = XOpenDisplay(NULL)) == NULL)