Mit httpry kann man z. B. u. A. auch HTTP-traffic loggen:
/var/tmp/flash/mod # httpry -q -i dsl
2009-12-25 15:51:58 192.168.xxx.xxx 67.51.165.5 > GET dumpsterventures.com /jason/httpry/ HTTP/1.1 - -
2009-12-25 15:51:59 192.168.xxx.xxx 67.51.165.5 > GET dumpsterventures.com /jason/main.js HTTP/1.1 - -
2009-12-25 15:51:59 192.168.xxx.xxx 67.51.165.5 > GET dumpsterventures.com /jason/sub2.css HTTP/1.1 - -
2009-12-25 15:52:53 192.168.xxx.xxx 85.214.115.219 > GET www.ip-phone-forum.de /forumdisplay.php?f=361 HTTP/1.1 - -
2009-12-25 15:53:19 192.168.xxx.xxx 204.9.163.163 > GET mystatus.skype.com /smallicon/colonia1411 HTTP/1.1 - -
2009-12-25 15:55:29 192.168.xxx.xxx 85.214.115.219 > GET www.ip-phone-forum.de /images/gradients_mns/image_background.gif HTTP/1.1 - -
2009-12-25 15:55:29 192.168.xxx.xxx 85.214.115.219 > GET www.ip-phone-forum.de /images/gradients_mns/gradient_bg.gif HTTP/1.1 - -
2009-12-25 15:55:29 192.168.xxx.xxx 85.214.115.219 > GET www.ip-phone-forum.de /images/misc_mns/mns7_logo.gif HTTP/1.1 - -
2009-12-25 15:55:29 192.168.xxx.xxx 85.214.115.219 > GET www.ip-phone-forum.de /images/misc_mns/navbits_start.gif HTTP/1.1 - -
2009-12-25 15:55:33 192.168.xxx.xxx 85.214.115.219 > GET www.ip-phone-forum.de /newthread.php?do=newthread&f=525 HTTP/1.1 - -
2009-12-25 15:55:40 192.168.xxx.xxx 85.214.115.219 > POST www.ip-phone-forum.de /login.php?do=login HTTP/1.1 - -
2009-12-25 15:55:42 192.168.xxx.xxx 85.214.115.219 > GET www.ip-phone-forum.de /newthread.php?do=newthread&f=525& HTTP/1.1 - -
2009-12-25 15:55:42 192.168.xxx.xxx 85.214.115.219 > GET www.ip-phone-forum.de /clientscript/vbulletin_editor.css HTTP/1.1 - -
2009-12-25 15:55:43 192.168.xxx.xxx 85.214.115.219 > GET www.ip-phone-forum.de /images/editor/menupop.gif HTTP/1.1 - -
2009-12-25 15:55:43 192.168.xxx.xxx 85.214.115.219 > GET www.ip-phone-forum.de /images/editor/color.gif HTTP/1.1 - -
2009-12-25 15:55:43 192.168.xxx.xxx 85.214.115.219 > GET www.ip-phone-forum.de /images/editor/smilie.gif HTTP/1.1Code:/var/tmp/flash/mod # ldd /usr/bin/httpry libpcap.so.1.0 => /usr/lib/libpcap.so.1.0 (0x2aabe000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2aafa000) libc.so.0 => /lib/libc.so.0 (0x2ab18000) ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)httpry kann vielfältig konfiguriert werden, als daemon in ein file loggen, als nichtdaemon nach syslog. Mit den Dateien im Anhang, kann httpry für die FritzBox kompiliert und installiert werden.Code:/var/tmp/flash/mod # httpry -h httpry version 0.1.5 -- HTTP logging and information retrieval tool Copyright (c) 2005-2009 Jason Bittel <jason.bittel@gmail.com> Usage: httpry [ -dhpq ] [-b file ] [ -f format ] [ -i device ] [ -m methods ] [ -n count ] [ -r file ] [ -o file ] [ -u user ] [ 'expression' ] -b file write HTTP packets to a binary dump file -d run as daemon -f format specify output format string -h print this help information -i device listen on this interface -m methods specify request methods to parse -n count set number of HTTP packets to parse -o file write output to a file -p disable promiscuous mode -q suppress non-critical output -r file read packets from input file -u user set process owner expression specify a bpf-style capture filter Additional information can be found at: http://dumpsterventures.com/jason/httpry
EDIT:
Als daemon in ein file loggen:
Geloggte Einträge mit "tail -f" und Konsole, in Echtzeit anschauen:Code:/var/tmp/flash/mod # httpry -d -q -i dsl -o /var/media/ftp/uStor01/httpry.log
EDIT 2:Code:/var/tmp/flash/mod # tail -f /var/media/ftp/uStor01/httpry.log # httpry version 0.1.5 # Fields: timestamp,source-ip,dest-ip,direction,method,host,request-uri,http-version,status-code,reason-phrase 2009-12-25 16:18:51 192.168.yyy.yyy 85.214.115.219 > GET www.ip-phone-forum.de /clientscript/vbulletin_global.js?v=368 HTTP/1.1 - - 2009-12-25 16:18:51 192.168.yyy.yyy 85.214.115.219 > GET www.ip-phone-forum.de /images/misc_mns/navbits_finallink_ltr.gif HTTP/1.1 - - 2009-12-25 16:18:51 192.168.yyy.yyy 85.214.115.219 > GET www.ip-phone-forum.de /images/buttons_mns/quote.gif HTTP/1.1 - - 2009-12-25 16:19:45 192.168.yyy.yyy 85.214.115.219 > GET www.ip-phone-forum.de /clientscript/vbulletin_global.js?v=368 HTTP/1.1 - - 2009-12-25 16:19:45 192.168.yyy.yyy 85.214.115.219 > GET www.ip-phone-forum.de /clientscript/vbulletin_menu.js?v=368 HTTP/1.1 - -
Betr. GUI für httpry siehe hier: klick
EDIT 3:
httpry für stable: klick


Zitieren


