Really are there websites that use user agent protection?

This commit is contained in:
qorg11 2020-04-20 16:58:59 +02:00
parent 4307938092
commit 5f74afc080
Signed by: qorg11
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 4 additions and 0 deletions

View File

@ -86,6 +86,10 @@ die "Give a file\n" unless defined $file;
my $url_to_upload = $DEFAULT_SERVER . "/upload.cgi";
my $req;
# Fake user agent
$ua->agent("Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0");
# check if server is running lainsafe
if(!$ua->get($url_to_upload)->is_success)