1
0

patch-urlsnarf_c 697 B

12345678910111213141516171819
  1. --- dsniff-2.4.orig/urlsnarf.c 2001-03-15 10:26:13.000000000 +0100
  2. +++ dsniff-2.4/urlsnarf.c 2009-12-11 13:03:37.000000000 +0100
  3. @@ -145,14 +145,14 @@ process_http_request(struct tuple4 *addr
  4. if (user == NULL)
  5. user = "-";
  6. if (vhost == NULL)
  7. - vhost = libnet_host_lookup(addr->daddr, Opt_dns);
  8. + vhost = libnet_addr2name4(addr->daddr, Opt_dns);
  9. if (referer == NULL)
  10. referer = "-";
  11. if (agent == NULL)
  12. agent = "-";
  13. printf("%s - %s [%s] \"%s http://%s%s\" - - \"%s\" \"%s\"\n",
  14. - libnet_host_lookup(addr->saddr, Opt_dns),
  15. + libnet_addr2name4(addr->saddr, Opt_dns),
  16. user, timestamp(), req, vhost, uri, referer, agent);
  17. }
  18. fflush(stdout);