R
r3gis
Hi
I am trying to extract all URLs ending with php or cgi or pl from one
website with the following code :
foreach $judge( $res->content=~m#((http://[a-z-\/\.~]+\.(php|cgi|
pl)))#g)
{
print $judge,"\n";
}
But for some reason I get redundant results :
http://www.kanazawa-gu.ac.jp/~hayashiy/cgi-bin/log/env.cgi
cgi
http://www.bsnoop.de/cgi-bin/jenv.cgi
cgi
etc.
Could someone explain to me why the file extension is present in this
result set . What am I doing wrong ?
I am trying to extract all URLs ending with php or cgi or pl from one
website with the following code :
foreach $judge( $res->content=~m#((http://[a-z-\/\.~]+\.(php|cgi|
pl)))#g)
{
print $judge,"\n";
}
But for some reason I get redundant results :
http://www.kanazawa-gu.ac.jp/~hayashiy/cgi-bin/log/env.cgi
cgi
http://www.bsnoop.de/cgi-bin/jenv.cgi
cgi
etc.
Could someone explain to me why the file extension is present in this
result set . What am I doing wrong ?