Jump to content
Sign in to follow this  
ReconX

Downloading Files that constantly have their urls changed.

Recommended Posts

ReconX

It may seem a little far fetched but, is there a way to download a constantly changing url without constantly updating it?

For example. I am trying to download Malwarebytes using InetGet. But each version of Malwarebytes changes its .exe filename. 

mbam-setup-2.0.1.0.exe changed to mbam-setup-2.0.1.1.exe

If I visit this link, http://downloads.malwarebytes.org/file/mbam/, it would auto start the download. Is there a way to automate it if there is no alternative?

Share this post


Link to post
Share on other sites
Palestinian

Share this post


Link to post
Share on other sites
ReconX

Can't seem to get it to work properly with the link I provided. When visiting the link, it auto downloads the file. When I put the link in the script, nothing happens. Also, the one with Avast displays what exe's are there, but how do you download a specific one?

Share this post


Link to post
Share on other sites
Palestinian

#include <InetConstants.au3>
 Local $hDownload = InetGet("http://downloads.malwarebytes.org/file/mbam/", "D:\Setup.exe")

Share this post


Link to post
Share on other sites
ReconX

Thank you sir. You are a scholar and a gentleman. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×