AutoHotkey Community

It is currently May 27th, 2012, 12:20 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 

This script helped you ?
Yes
No
You may select 1 option

View results
Author Message
 Post subject: Exe Hack® 1.3 (Updated)
PostPosted: November 8th, 2008, 7:21 pm 
Offline

Joined: November 29th, 2007, 2:36 pm
Posts: 43
Location: Romania
Exe Hack® 1.3

Image

Updated !!!
:roll:

this script allow you to prohibit access to programs,games,virusses

Exe Hack® 1.3.ahk

Code:
#SingleInstance Force
#NoEnv
#Persistent
SendMode Input
SetWorkingDir %A_ScriptDir%
;#NoTrayIcon

Name = Exe Hack®
Version = 1.3
Author = Created By Cristi Hacker™


Winx := (a_screenwidth)-240
Winy := (a_screenheight)-180

Menu, Tray, Tip, %Name% v %Version%
Menu, Tray, Add, About..., About
Menu, Tray, Add, &Show/Hide, Show
Menu, Tray, Default, &Show/Hide
Menu, Tray, Add, Exit, GuiCLose
Menu, Tray, NoStandard


Win:
Gui  1:+AlwaysOnTop +ToolWindow -Caption
Gui, 1:Color, 400000, 400000
Gui, 1:Font, s8 cYellow, bold, Calibri
Gui, 1:Add, Text, vstatus x16 y119 w330 h20 , Enter a filename to disable
Gui, 1:Add, Text, x16 y12 w330 h40 GMove , Exe Hack®     %Version%
Gui, 1:Add, Edit, vExeName x16 y52 w120 h20 +Center, yourfile
Gui, Add, ComboBox, x146 y52 w50 vExt, Exe||Com|Bat|Scr
Gui, 1:Add, Button, gDisable x15 y90 w70 h19 , &Disable
Gui, 1:Add, Button, gEnable x92 y90 w70 h19 , &Enable
Gui, 1:Add, Button, gAbout x170 y90 w25 h19 , ?
Gui, 1:Show, x%Winx% y%WinY% h140 w220, %Name% %Version%
Return


Move:
PostMessage, 0xA1, 2,,, A
Return


MButton::
Show:
IfWinNotExist Exe Hack® %Version%
WinShow, %Name% %Version%
else
WinHide, %Name% %Version%
return

GuiEscape:
GuiClose:
ExitApp
return


Disable:
Gui Submit, NoHide
RegRead, SKey, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\%ExeName%.%Ext%, Debugger
If SKey contains ntsd -d
{
Gui, Font, cRed  ; If desired, use a line like this to set a new default font for the window.
GuiControl, Font, status
GuiControl,, status, %ExeName%.%Ext% is already disabled
GuiControl,, ExeName
}
else
{
Regwrite, REG_SZ, HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\%ExeName%.%Ext%, Debugger, ntsd -d
Gui, Font, cGreen  ; If desired, use a line like this to set a new default font for the window.
GuiControl, Font, status
GuiControl,, status, %ExeName%.%Ext% was disabled
GuiControl,, ExeName
}
return

Enable:
Gui Submit, NoHide
RegRead, SKey2, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\%ExeName%.%Ext%, Debugger
If SKey2 not contains ntsd -d
{
Gui, Font, cRed  ; If desired, use a line like this to set a new default font for the window.
GuiControl, Font, status
GuiControl,, status, %ExeName%.%Ext% is not disabled
GuiControl,, ExeName
}
else
{
RegDelete, HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\%ExeName%.%Ext%
Gui, Font, cGreen  ; If desired, use a line like this to set a new default font for the window.
GuiControl, Font, status
GuiControl,, status, %ExeName%.%Ext% was enabled
GuiControl,, ExeName
}
return

About:

MsgBox, 8192, Exe Hack 1.3, This program helps you to prevent opening of unwanted programs`nWorks for .bat/.com/.scr/.exe
return


Disabled Programs

Image

Code:
#SingleInstance Force
#NoEnv
#Persistent
#NoTrayIcon
SendMode Input
SetWorkingDir %A_ScriptDir%

Keys = Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options

Start:
Gui, Destroy
Gui, +LastFound -Caption
Gui, color, 400000, 400000
WinSet, Transparent, 200, Disabled Programs
Gui, Font, s8 cYellow, bold, Calibri
Gui, Add, Text, y5 x9 bold GMove, Disabled Programs 1.0 part of Exe Hack®
Gui, Add, ListBox, x9 y25 w252 h400 vBox gEvent cWhite ,
Gui, Add, Button, x9 y430 w70 h20 gStart, Refresh list
Gui, Add, Button, x90 y430 w70 h20 gGuiClose, Close list
Gui, Show, w252 Center hAutoSize, Disabled Programs


Loop, HKLM, %Keys%, 2

{
RegRead, Name, HKLM, %Keys%\%A_LoopRegName%, Debugger
 If Name =
  continue
GUIControl,, Box, %A_LoopRegName%|
}
return


Event:
Gui, Submit, NoHide
if A_GuiEvent = DoubleClick
{
MsgBox,4, Disabled Programs, Do you want to enable %BOX%, 6
IfMsgBox Yes
{
RegDelete, HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\%BOX%
Gui, Destroy
GoSub, Start
}
else IfMsgBox No
MsgBox, %BOX% still disabled
}
return


Move:
PostMessage, 0xA1, 2,,, A
Return

GuiClose:
GuiEscape:
ExitApp


_________________
Image


Last edited by Cristi® on June 7th, 2009, 1:39 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thankyou
PostPosted: February 21st, 2009, 4:42 am 
Thankyou for the script.


Report this post
Top
  
Reply with quote  
 Post subject: Nice!!!
PostPosted: February 24th, 2009, 10:20 pm 
Nice script man!

Thank you very much!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 24th, 2009, 10:33 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
No error when regWrite fails?
Nothing like a false sense of security after seeing ''Status: filename.exe was disabled.''

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher, Yahoo [Bot] and 6 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