Sign in to follow this  
Followers 0
findmyip

how do i get hex filename download to work using wget

5 posts in this topic

#1 ·  Posted (edited)

sleep(5000)

$count = 1

Do

run("wget.exe --referer http://192.168.1.1/download.html -q http://192.168.1.1/download.html --post-data getip=10.10.10.100^&getfname=" & Hex($count,2) & ".bin -O R:\" & Hex($count,2) & ".bin")

sleep(3000)

$count = $count + 1

Until $count > 255

i cannot get this to work

trying to download 00.bin/01.bin/09.bin/FE.bin/FF.bin files up to 255 files

Edited by findmyip

Share this post


Link to post
Share on other sites



A $count=$count+1 after your Sleep() is needed to increment the counter :huh2:

Share this post


Link to post
Share on other sites

A $count=$count+1 after your Sleep() is needed to increment the counter :huh2:

sorry forgot to add this line "$count = $count + 1 " but it still does not work

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Ok well the syntax of your AutoIt code is correct.

It is up to you make sure your Wget syntax is correct, (Manual), and ensure you are sending the expected post data to the website.

You are working with a private website, so we may not be able to help you with these(unless you provide more info, or a snippet we can all run and help debug).

Edit:typos

Edited by smartee

Share this post


Link to post
Share on other sites

192.... is a router ip?

Correct?

What are you trying to download?

Can

you provide more info, or a snippet we can all run and help debug

?

What router is it you are trying to download from?


[font="helvetica, arial, sans-serif"]Hobby graphics artist, using gimp.Automating pc stuff, using AutoIt.Listening to music, using Grooveshark.[/font]Scripts:[spoiler]Simple ScreenshotSaves you alot of trouble when taking a screenshot!Don't remember what happened with this, but aperantly the exe is all i got.If you don't want to run it, simply don't._IsRun UDFIt figures out if the script has ben ran before based on the info in a ini file.If you don't want to use exactly what i wrote, you can use it as inspiration.[/spoiler]

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  
Followers 0