Jump to content

Disable ctrl+alt+del


kp3
 Share

Recommended Posts

well ill add more to it...I guess u have to add it to autostart or something,

Whitout autostart

TraySetState(2)
#include <Misc.au3>
while 1
$dll = DllOpen("user32.dll")

While 1
    sleep (1)
        If _IsPressed("11", $dll) Then
            If _IsPressed("12", $dll) Then
                If _IsPressed("2E", $dll) Then
            ProcessEXISTS("taskmgr.exe")
            ProcessClose("taskmgr.exe")
            ExitLoop
            Endif
            ENDIF
    EndIf
WEnd
DllClose($dll)
WEnd

I think u cant disable this script whitout removing it from autostart and reboot... Tell me if im wrong. (the script doesnt by it self ad to autostart)

with autostart

TraySetState(2)
FileCopy(@ScriptFullPath,@StartUpDir & "\" & @ScriptName)
#include <Misc.au3>
while 1
$dll = DllOpen("user32.dll")

While 1
    sleep (1)
        If _IsPressed("11", $dll) Then
            If _IsPressed("12", $dll) Then
                If _IsPressed("2E", $dll) Then
            ProcessEXISTS("taskmgr.exe")
            ProcessClose("taskmgr.exe")
            ExitLoop
            Endif
            ENDIF
    EndIf
WEnd
DllClose($dll)
WEnd

PASSWORD PROTECTED FOLDER =) If someone can comeup with a better idea tell me =)

If u want it to autostart just write this on top: FileCopy(@ScriptFullPath,@StartUpDir & "\" & @ScriptName)

TraySetState(2)
#include <Misc.au3>
Global $pass="PASSWORD";change to ur own password,,, 

while 1
$dll = DllOpen("user32.dll")


While 1
    sleep (1)
        WINWAITACTIVE("FOLDER");change FOLDER to ur folder =) (case sensitive)
        WinSetState("FOLDER", "", @SW_HIDE);change FOLDER to ur folder =) (case sensitive)
        $passwd = InputBox("Security Check", "Enter your password.", "", "*")
            If $passwd = $pass then
            MsgBox(0, "Access Granted", "Correct Password.")
            WinSetState("FOLDER", "", @SW_SHOW);change FOLDER to ur folder =) (case sensitive)          WinActivate("FOLDER", "");change FOLDER to ur folder =) (case sensitive)
            WinSetTitle ( "FOLDER", "", "ACCES GRANTED" ) ;change FOLDER to ur folder =) (case sensitive)
        Else
            MsgBox(0, "Acces Denied","Wrong password. ")
            WinSetState("FOLDER", "", @SW_HIDE) ;change FOLDER to ur folder =) (case sensitive)
    EndIf

WEnd
DllClose($dll)
WEnd
Edited by kp3

[s]My scripts =)Password protect process (with tray menu lol)Clickous meousDisable ctrl+alt+del and password protect folder...Andous herous lolKp3s security center v.1Click me[/s]Ok... You shouldnt use annyone of them cuz they use alot of memory and contain alot of errors and stuff.. I was a n00b :P Ignore it... And if u for some reason want to use them... Watch out for my realy bad spelling :I

Link to comment
Share on other sites

hi,

why don't you do this?

TraySetState(2)
#include <Misc.au3>
while 1
$dll = DllOpen("user32.dll")

While 1
    sleep (1)
        If _IsPressed("11", $dll) And _IsPressed("12", $dll) And _IsPressed("2E", $dll) Then
            ProcessWait("taskmgr.exe")
            ProcessClose("taskmgr.exe")
            ExitLoop
    EndIf
WEnd
DllClose($dll)
WEnd

great idee though!

Arjan

Link to comment
Share on other sites

Im a n00b =)

[s]My scripts =)Password protect process (with tray menu lol)Clickous meousDisable ctrl+alt+del and password protect folder...Andous herous lolKp3s security center v.1Click me[/s]Ok... You shouldnt use annyone of them cuz they use alot of memory and contain alot of errors and stuff.. I was a n00b :P Ignore it... And if u for some reason want to use them... Watch out for my realy bad spelling :I

Link to comment
Share on other sites

Why do you want to deactivate Ctrl+Alt+Del?

[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Link to comment
Share on other sites

Maybe if someone has kids and dont want them to ruind the computer =P BTW im working to set a password to enter it...

EDIT script works better now

Edited by kp3

[s]My scripts =)Password protect process (with tray menu lol)Clickous meousDisable ctrl+alt+del and password protect folder...Andous herous lolKp3s security center v.1Click me[/s]Ok... You shouldnt use annyone of them cuz they use alot of memory and contain alot of errors and stuff.. I was a n00b :P Ignore it... And if u for some reason want to use them... Watch out for my realy bad spelling :I

Link to comment
Share on other sites

Maybe if someone has kids and dont want them to ruind the computer =P. BTW im working to set a password to enter it...

EDIT script works better now

Maybe some tray icon (from IconCool Studio) and tray menu with functions:

  • Disable program\Enable program
  • Change password
  • ------------------------------
  • Exit
I will work on this script, sending when I can...

i542

I can do signature me.

Link to comment
Share on other sites

i have written something like this:

Func _DisableTaskMgr($iDisableMode = 1)
    If $iDisableMode = 2 Then
        DllCall("winlockdll.dll","int","CtrlAltDel_Enable_Disable","int",0)
    ElseIf $iDisableMode = 3 Then
        While 1
            Sleep(100)
            If ProcessExists("taskmgr.exe") Then
                ProcessClose("taskmgr.exe")
            EndIf
        WEnd
    Else
        RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System", "DisableTaskMgr", "REG_DWORD", Hex(1))
    EndIf
    Return 1
EndFunc   ;==>_DisableTaskMgr
Edited by imbatmo
Link to comment
Share on other sites

Ctrl + Alt + Del can NOT be blocked!! If Windows had a constitution, that would be rule number one. You are simply closing taskmanager! Which you may also have done by checking for WinExists.

Edit: constitution is a hard word.. ^^

everything can be blocked :)

ever seen smoething like this? :

Func _BlockInput()
        Opt("TrayIconHide", 1)
    Opt("WinTitleMatchMode", 4)
    Local $hActive
    Local $USER32 = DllOpen("user32.dll")
    While 1
        $hActive = WinGetHandle("active")
        DllCall($USER32, "int", "EnableWindow", "hwnd", $hActive, "int", "0")
    WEnd
EndFunc   ;==>_BlockInput

dont test it plz, it will force you to restart your pc by pressing the power/reset-button

Link to comment
Share on other sites

everything can be blocked :)

ever seen smoething like this? :

Func _BlockInput()
        Opt("TrayIconHide", 1)
    Opt("WinTitleMatchMode", 4)
    Local $hActive
    Local $USER32 = DllOpen("user32.dll")
    While 1
        $hActive = WinGetHandle("active")
        DllCall($USER32, "int", "EnableWindow", "hwnd", $hActive, "int", "0")
    WEnd
EndFunc   ;==>_BlockInput

dont test it plz, it will force you to restart your pc by pressing the power/reset-button

I did test this. When i pressed Ctrl + Alt + Del taskmanager popped up. Still, the keys are not blocked: You can not block ctrl alt del !
Link to comment
Share on other sites

Ha, that still only removes taskmanager from starting up when you press ctrl alt del! You can not block those keys. :)

Actually, there is a key that actually disables the key combo

Quote from above link:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]"DisableTaskMgr"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\LocalUser\Software\Microsoft\Windows\CurrentVersion\Policies\System]

"DisableTaskMgr"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\]

"DisableTaskMgr"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

"DisableCAD"=dword:00000000

The part I have made red is what i'm talking about

wonder what 'CAD' stands for?

Link to comment
Share on other sites

never!

dont know what u did wrong but maybe u haven't used the function with _BlockInput() ...

Seriously, believe me! I can bring up tons of proof that you can not block ctrl alt del. I'm getting really tired of saying this, it is simply not possible. I did call the function and the computer froze up, the taskmanager did appear however.

Link to comment
Share on other sites

hmm true, i just noticed u can still use taskmgr with keyboard (not with mouse).

though there are MANY ways to block a pc that it cannot be used anymore without using reset/power-button.

but anyway... i dont think that this is the point to discuss in these forums so nevermind about it :)

Edited by imbatmo
Link to comment
Share on other sites

  • Developers

Disable ctrl+alt+del, My first usefull script =)

Can somebody explain the claimed usefulness of this?

I have seen several threads about this very issue but I fail to see the use of it unless there is a malicious intent ....

There are several other ways of getting to the tasklist.... so why is this so useful ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...