Skip to content

Commit

Permalink
fixed issue as variable scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuya-Miyoshi committed Oct 4, 2019
1 parent 4192949 commit ab12839
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion exploit/components.pl
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@
$xm=$row;
$xm=~ s/com_//g;

my $comversion;

$response=$ua->get("$target/components/$row/$xm.xml");
my $headers = $response->headers();
$sourcer=$response->decoded_content;
if ($response->status_line =~ /200/g ) {
$sourcer =~ /type=\"component\" version=\"(.*?)\"/;
my $comversion = $1;
$comversion = $1;
$tmp.="Installed version : $comversion\n";

}
Expand Down

0 comments on commit ab12839

Please sign in to comment.