--- iisemul8.pl Tue Jul 23 00:56:27 2002 +++ ../iisemulator-0.95.org/iisemul8.pl Thu Oct 31 18:31:59 2002 @@ -46,6 +46,7 @@ $C{'dnVersion'} = 'Microsoft .NET Framework Version:1.0.3705.209; ASP.NET Version:1.0.3705.0'; $C{'fakeroot'} = 'C:\Inetpub\WWWRoot'; $C{'dnerrorpages'} = './iis_data/'; # templates for the .NET error messages +$logfile = '/var/log/honeyd/web.log'; #### END CONFIG VALUES ############################################## @@ -54,6 +55,8 @@ init(); +open LOG, ">> $logfile"; + do { # here's the main logic loop parse_request(); @@ -62,6 +65,8 @@ } while( $V{'state'}==1 ); +close LOG; + exit; @@ -177,6 +182,7 @@ $V{'raw'}=''; do { my $l=; + print LOG $l; $V{'raw'}.=$l; $l=~s/[\r]{0,1}\n$//; if($l eq ''){ $run=0; @@ -314,6 +320,8 @@ sub send_response { make_banner(); print STDOUT $V{'outqueue'},"\r\n"; + print LOG $V{'outqueue'}; + print LOG $V{'outdata'}; if(!defined $V{'skip_body'}){ print STDOUT $V{'outdata'} if(defined $V{'outdata'});