Sign in to follow this  
Followers 0
xwinterx

WinKill Beta

6 posts in this topic

#1 ·  Posted (edited)

Hi folks! I have been working on, not vigorously though, a pop-up blocker. I know there are a number of them out there, but there are always windows that get through. I have been toying with this idea for a while. It all started when my daughter clicked on a pop-up that looked like a kids game and whammo! Spyware all over the place. So after a hardrive wipe and re-installation, I decided to work on this project:

Name: WinKill

Version: 0.1.4

Updated: 1-17-09

This little program sits in the windows tray. It has the following tray menu options:

Settings: Does nothing really right now, havent implemented anything, but you can clear the log from the menu on the settings window.

Learning Mode: Default is ON (or checked). This puts WinKill into "learning mode".

Pause WinKill: Pauses/Unpauses WinKill.

About: Does nothing but will show a little pop-up about window.

Exit: Terminates WinKill

Learning Mode

When in Learning Mode, WinKill will detect ANY new windows and alert you. It will ask you if you want it added to your safelist. If you choose "yes", WinKill will allow the window to remain open, and subsequently re-opened in the future by adding it to a safelist text file. If you choose "no", then it will close the window. When you turn Learning Mode off, it will close any "visible" windows that pop-up.

Bug: If a window title changes and you are NOT in learning mode, it will kill the window. Example, if you are working in ScITE and make a change to an au3 script, ScITE puts a little asterick (*) in the window so you know a change has been made but not saved. This will trigger WinKill.

Bug: Detects tooltips as windows and triggers WinKill (if non-"tooltips_class32" class tooltips)

Performance: sluggish at times

Sorry for the sloppy code, I will clean it up a bit and take out stuff that I was going to try implementing but never got around to it. The method I chose was to just get a list of window titles (not handles or classes) and compare the current visible active windows to the safelist. If the title is not found, it triggers WinKill. It can also be a bit sluggish to. I have not worked to streamline it, I am sure such can be done. But for now, I can work with the hodge-podge code and slowly tweak it down.

Flame on folks! Thanks!!

post-10606-1232258157_thumb.gif

icon_default.ico

WK_0.1.4.au3

Edited by xwinterx

Share this post


Link to post
Share on other sites



very nice idea ^^ keep it up im sure you can get this going quite well. maybe just an idea.. have the user select the browsers they have on their computer because each browser has something specific to it in its title bar for mozilla its: "Page Title" - Mozilla Firefox and since most popups will come from web pages it would have that little bit on the end so that you can get around it closing everything


A great place to start Autoit 1-2-3

Share this post


Link to post
Share on other sites

:) Your script has same name as a script of my project... Can you change a little it ?

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

SWEET!!! Very nice script! Thank you for sharing it... I really like the learning mode. 4 stars from me!

Share this post


Link to post
Share on other sites

what I am planning on doing and now partially have implemented is to allow a user to add a window class to the exceptions list. The problem I was running into is that a program I am running uses non-win32 classes, or something, so I kept getting the tooltips on that one program tripping WK. So I added their generic class to a little function. Then added CHM window classes and so on that way it wouldn't keep wanting to close the windows for my SciTE and Help file. lol!

as far as web pages are concerned, I was thinking more of checking say the first 30 or so characters of the window title, since pop-up ads usually come from something like "www.adserver.com/ad.php?123123131231231231231billion!" or maybe domains or something. I'll work it out and keep posting it. This has actually been my real first workable project after I stopped working on my installer and then after the "official" obfuscator defunct the one I posted here. lol!

Share this post


Link to post
Share on other sites

Good idea on the generic class names. On the webpages too. If looking at the titles it is pretty much pointless from there for most users it defaults to the browser name of who provided it.

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