Tag Info

New answers tagged

1

Scripted wget attack looking for common vulnerabilities. Keep your server software up to date and most of them won't work unless they're zero-day. You will find these are a dime a dozen on web servers, your only defense is to never allow your server to run in an unpatched state. Read up on Centos security patching and spend more time running ...


0

I tested wget using the list available at https://en.wikipedia.org/wiki/Comparison_of_programming_languages_%28syntax%29#Inline_comments I discovered that wget does not support a comment character. However, the following generate quick "Invalid URL" errors: : Test comment 1 list: Invalid URL : Test comment 1: Scheme missing :: Test comment 2 list: ...


0

This should do it. curl -s http://somepage/somefile.cgi | sh EDIT: removed -O: Not needed as it's piping to the bash, as @gravity's comment mentions.


0

I want to say that Finally,I successed download it from wget despite of Access-Control-Allow-Origin header. #!/bin/bash link="http://api.video.mail.ru/videos/mail/carpath1a/_myvideo/289.json" name="BlaBlaBla" mr480=$(printf "%s\n" "tmpvar=\$(wget -qO- --save-cookies=cookies \"\$link\" | perl -ne 's:.*\"key\"\:\"(.*?)\".*\"(http.*?)\".*:\$1\t\$2: && ...


1

This looks like an integer overflow problem. My guess (without having looked at the code) is that on your particular platform, wget internally represents the download progress and possibly the file size as a (signed) 32-bit count of bytes downloaded. A signed 32-bit variable will wrap around at about +2.15 billion, at which point it starts counting up from ...


0

you could start wget with -o dl.log option i.e. to define a log file which you can periodically check to see if you'll see (using regular expression) this line. 12:59:48 (126.32 MB/s) - `/path/to/downloaded/file/some_file.zip' saved [95235097/95235097] actually, you can use "tail dl.log" to get only the last few lines instead of reading the whole thing.


1

I want download to my server via ssh all the content of /folder2 including all the sub folders and files using wget. I suppose you want to download via wget and SSH is not the issue here. Solution by Attilio: wget --mirror --page-requisites --adjust-extension --no-parent --convert-links \ --directory-prefix=folder2 ...


1

You need to login to the service and the session information is probably held in a cookie. When you use wget you are not supplying (or gaining and using) the cookie required to have the session information. Something along of lines of the answer on stackoverflow may help.


0

Try this bash script (only works for .jpg). I know it's probably not the most elegant solution, but it should do the trick! Change list.txt to the name of your list file: #!/bin/bash count=1 while read p; do wget -O "img${count}.jpg" $p count=$((count+1)) done <list.txt How do I use this? Create a new file where you want to download your images ...



Top 50 recent answers are included