Really are there websites that use user agent protection?
This commit is contained in:
parent
4307938092
commit
5f74afc080
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue