Sign in to follow this  
Followers 0
Emiel Wieldraaijer

Detect if program is directly run from download

8 posts in this topic

Hi All,

It's possible to run a program directly from a download without saving the file to a folder.

Is there a way to detect this ? because i don't want allow a program to be run directly.

Thnx


Best regards,Emiel Wieldraaijer

Share this post


Link to post
Share on other sites



I think what he is referring to is if you click on an exe and a few other types of links you usually get the option to "save file to drive" or "run/open"... he wants to disable the option to "run/open" it from the download request I'm guessing...

Don't know how to do it but just clarifying the request hopefully.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

As to why ... it makes absolutely no sense. What's the difference between scripting something to run after download and double clicking it yourself when it does? Other than the manual step?

Also ... I believe you can disable the "open/run" via security policy options.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Hi,

Thanks all

Like valik would say "I'm not a noob" muttley i know the program isn't run from memory.

I don't want to disable the open/run option from internet explorer or other browers..

i think i'm going to block running the program from temporarily internet folder

Probally would fix my problem


Best regards,Emiel Wieldraaijer

Share this post


Link to post
Share on other sites

Most commonly when a program setup is ran it extracts most commonly to the @tempdir (%% windows/temp) folder. As far as downloading it that depends on where the browser places the downloaded file (by default) ultimately if you would really like to stop a program from running you could do an ocopiouse amount of things to stop it.

My suggestion: Stop it from running using a antivirus or make a script to continually search for the programs exe name.

Share this post


Link to post
Share on other sites

What I used to do was have an auto-it script running in the background to automatically cancel any download window that popped up in IE and FF.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Thnx all

I'm using the following

$internettempfolder = RegRead(HKey_Current_UserSoftwareMicrosoftWindowsCurrentVersionExplorerUser Shell Folders", "Cache")
$internettempfolder =StringReplace($internettempfolder, "%USERPROFILE%", @UserProfileDir)
$result = StringInStr(@WorkingDir, $internettempfolder)
If $result >0 then
Msgbox (16, "Info", "Run directly from download or manually for Temporary Internet Files location")
Exit
EndIf

Best regards,Emiel Wieldraaijer

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