AutoHotkey Community

It is currently May 27th, 2012, 2:12 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: February 2nd, 2010, 2:15 am 
Offline

Joined: April 30th, 2006, 6:23 pm
Posts: 358
Location: Shigle Springs
SEEEEEEEE !!! I am NOT CRAZY!!!!!!!!!!!!!!!!!!!
:wink: www.computerrepaircomputerservice.com/1.wmv
Quality is not that great but I proved it was a clean system, then showed you the code with the DLL call edited out, then ran it, proved it works, then took out the ; on the DllCall and saved, then ran it again, and it did not work. :evil:

I know Chris said that UrlDownloadtoFile basically calls a few APIs and his code is solid, but man, this is killing my business.. Where could the problem lie?

_________________
CPULOCK.com
virusSWAT.com
Computer Repair Computer Service.com
911PCFIX.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2010, 8:39 am 
Offline

Joined: April 30th, 2006, 6:23 pm
Posts: 358
Location: Shigle Springs
bump............................. Anyone have ANY idea?

_________________
CPULOCK.com
virusSWAT.com
Computer Repair Computer Service.com
911PCFIX.com


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 2nd, 2010, 12:31 pm 
DeWild1 wrote:
SEEEEEEEE !!! I am NOT CRAZY!!!!!!!!!!!!!!!!!!!
:wink: www.computerrepaircomputerservice.com/1.wmv
Quality is not that great but I proved it was a clean system,

Tell us about it. I'll not downwload a ~2mg file to look. :evil:
DeWild1 wrote:
then showed you the code with the DLL call edited out, then ran it, proved it works, then took out the ; on the DllCall and saved, then ran it again, and it did not work. :evil:
WTF are you talking about? Some previious post?

DeWild1 wrote:
I know Chris said that UrlDownloadtoFile basically calls a few APIs and his code is solid, but man, this is killing my business.. Where could the problem lie?
I have not the slightest idea, based on this post!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2010, 4:45 pm 
Offline

Joined: April 30th, 2006, 6:23 pm
Posts: 358
Location: Shigle Springs
The problems I am talking about , on the first page, and here,
http://www.autohotkey.com/forum/viewtopic.php?t=45812 is that urldownloadtofile does not work on about 25% of my clients.
I have clients running XP to Win7.
About 90% are XP, 7% Vista 32, 2% Win7 and 1% Vista 64.

Chris wrote:
Thanks for the report. However, even if the problem could be reproduced on other systems, I'm not sure there's any way to fix it. This is because UrlDownloadtoFile basically amounts to just a few API calls (and the program has no control of their internal workings).

However, there may be alternate downloading methods added in the future to provide more features. Such methods might not suffer from as many system-specific issues.


If people want a better video, I can make one, or you can just trust me. I need to hurry and give my client back his PC

_________________
CPULOCK.com
virusSWAT.com
Computer Repair Computer Service.com
911PCFIX.com


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 2nd, 2010, 4:48 pm 
Offline

Joined: April 30th, 2006, 6:23 pm
Posts: 358
Location: Shigle Springs
Anonymous wrote:
WTF are you talking about? Some previious post?


From the first page.

This works,


Code:

;DllCall("Wow64DisableWow64FsRedirection", "uint*", OldValue)



srt333:
If ConnectedToInternet333()
goto, udt333
else
sleep, 30000
goto, srt333
Return

ConnectedToInternet333(flag=0x40) {
Return DllCall("Wininet.dll\InternetGetConnectedState", "Str", flag,"Int",0)
}

udt333:
loop,
{
UrlDownloadToFile, http://www.virusswat.com/login/functions333/chkconn.txt, c:\temp\a748785215e1123e8f13335947712.tmp
sleep, 100
FileReadLine, status_return, c:\temp\a748785215e1123e8f13335947712.tmp, 1
sleep, 100
FileDelete, c:\temp\a748785215e1123e8f13335947712.tmp
sleep, 100

ifnotequal, status_return, 000
{

runwait, ipconfig /flushdns,,Hide
runwait, netsh winsock reset catalog, , hide
sleep, 30000
}
sleep, 1000
ifequal, status_return, 000
break


}

msgbox, %status_return%




This does not....


Code:

DllCall("Wow64DisableWow64FsRedirection", "uint*", OldValue)



srt333:
If ConnectedToInternet333()
goto, udt333
else
sleep, 30000
goto, srt333
Return

ConnectedToInternet333(flag=0x40) {
Return DllCall("Wininet.dll\InternetGetConnectedState", "Str", flag,"Int",0)
}

udt333:
loop,
{
UrlDownloadToFile, http://www.virusswat.com/login/functions333/chkconn.txt, c:\temp\a748785215e1123e8f13335947712.tmp
sleep, 100
FileReadLine, status_return, c:\temp\a748785215e1123e8f13335947712.tmp, 1
sleep, 100
FileDelete, c:\temp\a748785215e1123e8f13335947712.tmp
sleep, 100

ifnotequal, status_return, 000
{
sleep, 30000
runwait, ipconfig /flushdns,,Hide
runwait, netsh winsock reset catalog, , hide
}
sleep, 1000
ifequal, status_return, 000
break


}

msgbox, %status_return%

_________________
CPULOCK.com
virusSWAT.com
Computer Repair Computer Service.com
911PCFIX.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2010, 8:10 pm 
Offline

Joined: April 30th, 2006, 6:23 pm
Posts: 358
Location: Shigle Springs
Thahaha Ya bABY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I figured out how to tell if UrlDownloadToFile is working or not..
Deer Deer Daaaaddeeeeeeerrr!
LOL
So simple.
If the web site is down or the domain is invalid or if it's a bad link... there IS a file.
If it does not work, it does not DL the file.. the file IS NOT there..

IfNotExist, c:\temp\a748785215e1123e8f13335947712.tmp
break
Code:
loop,
{
UrlDownloadToFile, http://www.virusswat.com/login/functions333/chkconn.txt, c:\temp\a748785215e1123e8f13335947712.tmp
sleep, 100
IfNotExist, c:\temp\a748785215e1123e8f13335947712.tmp
break
FileReadLine, status_return, c:\temp\a748785215e1123e8f13335947712.tmp, 1
sleep, 100
FileDelete, c:\temp\a748785215e1123e8f13335947712.tmp
sleep, 100

ifnotequal, status_return, 000
 {
 runwait, ipconfig /flushdns,,Hide
 runwait, netsh winsock reset catalog, , hide
 sleep, 30000
 }
sleep, 1000
ifequal, status_return, 000
break


}

_________________
CPULOCK.com
virusSWAT.com
Computer Repair Computer Service.com
911PCFIX.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 3rd, 2010, 12:21 am 
Offline

Joined: April 30th, 2006, 6:23 pm
Posts: 358
Location: Shigle Springs
dam.. I was wrong...... I spoke toooooooooooooooo soon.. Now I have no clue why urldownloadtofile does not work on a few hundred of my clients.
I thought I narrowed it down but now I have no clue...

You see, I have never used these before a day or two ago and MY LOGS HAVE BEEN SHOWING THIS SELF CAUSED DOS FOR ABOUT A YEAR!!! :oops: :evil:
I will make a new thread for my bug below..

Code:
filecreatedir, c:\temp
run, c:\temp

; these dll calls work

;DllCall("kernel32\Wow64RevertWow64FsRedirection", "UInt", OldValue)

;VarSetCapacity(T,16,0)
;DllCall("RtlFillMemory", UInt,&T,   UInt,1, UChar, 20 SubStr(x,7,2))


;DllCall("kernel32\IsWow64Process", "UInt", hProcess, "UInt *", bIsWOW64)
;DllCall("MessageBox", "int", "0", "str", "Test", "str", "Test", "int", 4)




;do not let script work .. give "class not registered" error

;DllCall("kernel32\Wow64EnableWow64FsRedirection", "UInt", bEnable)

;DllCall("kernel32\Wow64DisableWow64FsRedirection", "UInt *", OldValue)
;DllCall("kernel32\Wow64EnableWow64FsRedirection", "UInt", bEnable)



sleep, 30

URLDownloadToFile, http://www.msn.com, C:\temp\ddd.eee
sleep, 50
run, C:\temp

_________________
CPULOCK.com
virusSWAT.com
Computer Repair Computer Service.com
911PCFIX.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 3rd, 2010, 2:31 am 
Offline

Joined: April 30th, 2006, 6:23 pm
Posts: 358
Location: Shigle Springs
fixed....
Well not the urldownloadtofile calling bunk APIs
but this is...
DeWild1 wrote:
I fixed it.. Sorry to bother you all..
Code:
DllCall("kernel32\Wow64EnableWow64FsRedirection", "UInt", bEnable)

;the stuff I need to do with stupid Vista 64 bit crap screwing it up... exmpl
run, c:\
DllCall("kernel32\Wow64RevertWow64FsRedirection", "UInt", OldValue)

;urldownloadtofile and run work again


_________________
CPULOCK.com
virusSWAT.com
Computer Repair Computer Service.com
911PCFIX.com


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: nimda, poserpro, rbrtryn, sjc1000, Yahoo [Bot] and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group