Changeset 217
- Timestamp:
- 03/07/07 16:11:01 (2 years ago)
- Files:
-
- honeyclient/branches/exp/jpuchalski-active_content/lib/HoneyClient/Agent/Driver/ActiveContent.pm (modified) (1 diff)
- honeyclient/branches/exp/jpuchalski-active_content/lib/HoneyClient/Agent/Driver/ActiveContent/Flash.pm (modified) (1 diff)
- honeyclient/branches/exp/jpuchalski-active_content/lib/HoneyClient/Agent/Driver/Browser.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/branches/exp/jpuchalski-active_content/lib/HoneyClient/Agent/Driver/ActiveContent.pm
r215 r217 108 108 # Sanity check: make sure the URL points to a resource we understand 109 109 if ($args{'file'} =~ /\.swf$/) { 110 my $urls = HoneyClient::Agent::Driver::ActiveContent::Flash::extract(%args);111 return $urls;110 my %urls = HoneyClient::Agent::Driver::ActiveContent::Flash::extract(%args); 111 return %urls; 112 112 } else { 113 113 Carp::croak "Error: URL does not contain a known resource!\n"; honeyclient/branches/exp/jpuchalski-active_content/lib/HoneyClient/Agent/Driver/ActiveContent/Flash.pm
r214 r217 151 151 152 152 # TODO: Eventually, return something useful. 153 return { 'http://www.google.com' => 1, }; 153 my %urls = ( 154 'http://www.google.com' => 1, 155 ); 156 return %urls; 154 157 } 155 158 honeyclient/branches/exp/jpuchalski-active_content/lib/HoneyClient/Agent/Driver/Browser.pm
r216 r217 1006 1006 # TODO: Save content to a temp file on disk. 1007 1007 1008 \%scored_links = HoneyClient::Agent::Driver::ActiveContent::process(1008 %scored_links = HoneyClient::Agent::Driver::ActiveContent::process( 1009 1009 file => "t/test_flash/welcome.swf", 1010 1010 base_url => $base, 1011 );1011 ); 1012 1012 1013 1013 # Assume that all other content types are HTML-based.
