Changeset 621
- Timestamp:
- 07/12/07 15:40:52 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/branches/exp/jpuchalski-active_content/bin/FlashTest.pl
r614 r621 29 29 print "\t$_\n"; 30 30 } 31 32 use Data::Dumper; 33 $Data::Dumper::Terse = 0; 34 $Data::Dumper::Indent = 1; 35 print Dumper(\%urls) . "\n"; honeyclient/branches/exp/jpuchalski-active_content/lib/HoneyClient/Agent/Driver/ActiveContent/Flash.pm
r611 r621 90 90 use HoneyClient::Util::Config qw(getVar); 91 91 use Log::Log4perl qw(:easy); 92 use Filesys::CygwinPaths qw(:all);93 92 94 93 # Include the Global Configuration Processing Library … … 196 195 sub extract { 197 196 my %args = @_; 198 my $filename ;197 my $filename = $args{'file'}->filename; 199 198 200 199 # Chop any trailing slash off the base URL … … 202 201 $base_url =~ s/\/$//; 203 202 204 # Call flasm in OS-dependent way and capture the output in an array.205 if ($^O =~ m/linux/i) {206 $filename = $args{'file'}->filename;207 }208 203 # Must encode all backslashes with double backslashes, since 209 204 # backtick commands don't like single backslashes. 210 elsif ($^O =~ m/win/i || $ENV{'OS'} =~ m/win/i) { 211 my $filename = (fullwin32path($args{'file'}->filename) =~ s/\\/\\\\/g); 205 if ($^O =~ m/win/i || $ENV{'OS'} =~ m/win/i) { 206 require Filesys::CygwinPaths; 207 $filename = Filesys::CygwinPaths::fullwin32path($filename); 208 $filename =~ s/\\/\\\\/g; 212 209 } 213 210 … … 298 295 $instr =~ s/^\s+//; 299 296 ($var, $val) = split(/, /, $instr); 297 $val =~ s/\s+$//; 300 298 $LOG->debug("Value of the URL is $val"); 301 299 $val =~ s/'//g;
