patch-filesnarf_c 837 B

12345678910111213141516171819202122
  1. --- dsniff-2.4.orig/filesnarf.c 2001-03-15 09:33:03.000000000 +0100
  2. +++ dsniff-2.4/filesnarf.c 2009-12-11 12:54:55.000000000 +0100
  3. @@ -134,8 +134,8 @@ nfs_save(struct tuple4 *addr, struct myr
  4. int fd;
  5. warnx("%s.%d > %s.%d: %s (%d@%d)",
  6. - libnet_host_lookup(addr->daddr, 0), addr->dest,
  7. - libnet_host_lookup(addr->saddr, 0), addr->source,
  8. + libnet_addr2name4(addr->daddr, LIBNET_DONT_RESOLVE), addr->dest,
  9. + libnet_addr2name4(addr->saddr, LIBNET_DONT_RESOLVE), addr->source,
  10. ma->filename, len, ma->offset);
  11. if ((fd = open(ma->filename, O_WRONLY|O_CREAT, 0644)) >= 0) {
  12. @@ -353,7 +353,7 @@ decode_nfs(struct tuple4 *addr, u_char *
  13. }
  14. static void
  15. -decode_udp_nfs(struct libnet_ip_hdr *ip)
  16. +decode_udp_nfs(struct libnet_ipv4_hdr *ip)
  17. {
  18. static struct tuple4 addr;
  19. struct libnet_udp_hdr *udp;