Changeset 662
- Timestamp:
- 07/18/07 17:05:27 (1 year ago)
- Files:
-
- honeyclient/branches/exp/jpuchalski-active_content/bin/StartManager.pl (modified) (1 diff)
- honeyclient/branches/exp/jpuchalski-active_content/etc/honeyclient.xml (modified) (1 diff)
- honeyclient/branches/exp/jpuchalski-active_content/lib/HoneyClient/Agent/Driver/ActiveContent/Flash.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/branches/exp/jpuchalski-active_content/bin/StartManager.pl
r658 r662 67 67 # Enable this line, if you want to only go to the 68 68 # first 5 links for each domain. 69 #max_relative_links_to_visit => $maxrel,69 max_relative_links_to_visit => $maxrel, 70 70 links_to_visit => \%remaining_urls, 71 71 }, honeyclient/branches/exp/jpuchalski-active_content/etc/honeyclient.xml
r641 r662 75 75 </timeout> 76 76 <ActiveContent> 77 <enable description="Enables active content parsing. 1 enables, 0 disables." default="1"> 78 1 79 </enable> 77 80 <Flash> 78 81 <flasm_exec description="Path to the flasm executable." default="thirdparty/flasm/flasm.exe"> honeyclient/branches/exp/jpuchalski-active_content/lib/HoneyClient/Agent/Driver/ActiveContent/Flash.pm
r661 r662 148 148 149 149 sub _addURL { 150 my $url = shift; 151 152 # URL appears to be absolute, or a different protocol 153 if ($url =~ /^mailto/ or 154 $url =~ /^javascript/ or 155 $url =~ /^http/ 156 ) 157 { 158 $urls{"$url"} = 1; 159 } 160 # URL appears to be relative, so add the base 161 else { 162 $url = url($url, $base_url)->abs; 163 $urls{$url} = 1; 164 } 150 my $url = shift; 151 152 # URL appears to be absolute, or a different protocol 153 if ($url =~ /^mailto/ or 154 $url =~ /^javascript/ or 155 $url =~ /^http/) { 156 $urls{$url} = 1; 157 } 158 # URL appears to be relative, so add the base 159 else { 160 # XXX: Delete this. 161 print "url = " . $url . "\n"; 162 print "base = " . $base_url . "\n"; 163 $url = url($url, $base_url)->abs; 164 print "full_url = " . $url . "\n"; 165 $urls{$url} = 1; 166 } 165 167 } 166 168
