Jump to content
Sign in to follow this  
Epulone

block Alt+Ctrl+del for 20 seconds

Recommended Posts

I have created a small macro script . To avoid the user could block the progress of the automate sequence (about 20 seconds) I would like to block  Alt+Ctrl+del just the time the script end in about  20 seconds.

How can I do it?

Thanks

 

Share this post


Link to post
Share on other sites

Hello,

BlockInput()

 

might help you?

 

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites
3 minutes ago, Epulone said:

unfortunately BlockInput() doesn't block Alt+Ctrl+del

this is for security reasons, to avoid scripts wich trying hijacking a system.

Share this post


Link to post
Share on other sites

In my case I mus block the user (student) to use them otherwise they will do (for sure).

Maybe I could disable by the register at the beginning and re-enable at the end. Could it work?

Share this post


Link to post
Share on other sites

I can do it, but the forum is sensitive about scripts that look like keyloggers.


Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Share this post


Link to post
Share on other sites

No, here there is a  misunderstand.

Mine is a genuine request. The script I am speaking about open a free legal software (Toolwiz Time Freeze) insert the admin password and activate it only when a student logon using the local student account of a university testing LAB. This to preserve the PC for any unwanted user change. The activation of the software require about 20 seconds where the student can use Alt+Ctrl+del to terminate the script and then mess all around ....

I hope you can see that here there isn't any  key-loggers scope .... I believe it is exactly the contrary .....avoid  any action from students  that could prevent the activation of the program by the script before they use the PC.

 

Edited by Epulone

Share this post


Link to post
Share on other sites

i believe what they are intimating is that a keylogger is the only way to do it, and we cant help you down that path.

As well, there are new built in defenses to Windows that warn the user when something is preventing the security screen from displaying when ctrl+alt+del is pressed.

google 'autoit ctrl+alt+del'.  There is no magic to be had, it's just thread after thread of futile efforts.

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

@Epulone you could set the group policy: "Prevent Task Run or End", would that work for you?

Also maybe you could just disable the del or one of the other keys entirely using scancode.

Edited by careca

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Share this post


Link to post
Share on other sites
7 hours ago, careca said:

Also maybe you could just disable the del or one of the other keys entirely using scancode.

I believe that could work, but you will require to rummage into the registry. 

You could use #requireadmin along with regwrite function to do it for you.

But remember, you will need to reboot the computer in order to activate the change.

It is still possible to complete the script after reboot, but it will require some more scripting...

Share this post


Link to post
Share on other sites

that program, "Toolwiz Time Freeze", is rather poorly designed and extremely poorly documented. i installed it on a VM just to see if there was a help file available (there wasn't), and the "Help" section in the program UI sums up to this:

To active the Time Freeze mode with command line, you can try this way:
c:\xxx\ToolwizTimeFreeze.exe /freeze 
If you have set a password to protect the program, you can try this way:
c:\xxx\ToolwizTimeFreeze.exe /freeze /usepass=mypassword

To deactive the Time Freeze mode with command line, you can try this way:
c:\xxx\ToolwizTimeFreeze.exe /unfreeze 
If you have set a password to protect the program, you can try this way:
c:\xxx\ToolwizTimeFreeze.exe /unfreeze /usepass=mypassword
This operation will reboot your system automatically

To set the Time Freeze mode to be auto on with command line, you can try this way:
c:\xxx\ToolwizTimeFreeze.exe /freezealways 
If you have set a password to protect the program, you can try this way:
c:\xxx\ToolwizTimeFreeze.exe /freezealways /usepass=mypassword

---------------------------------------------------------
To install the Time freeze to your pc with command line, you can try this way:
c:\xxx\ToolwizSetup.exe /install /alwaysprotect=1 /reboot=1 /setpass=xxx /showtoolbar=1 /safemodequit=1 /cachesize=2000
then restart your computer to make the engine work.

To uninstall the Time freeze from your pc with command line, you can try this way:
c:\xxx\ToolwizSetup.exe /uninstall /reboot=1
then restart your computer to make the uninstall complete.

--------------------------------------------------
To get the protect state with command line, you can try this way:
c:\xxx\\ToolwizTimeFreeze.exe /check /usepass=mypassword

you can read the flag in the Registry.
HKEY_CURRENT_USER\Software\Toolwiz\TimefreezeNew
CURRENT_PROTECT_MODE = 1 means Time Freeze is ON.
NEXT_BOOT_PROTECT = 1 means next reboot, Time Freeze will be ON.

now, although minimalist, that description provides pretty much all you need - in the first two paragraphs.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Epulone
      I have created a small autoit script (compiled) that at logon of a specific local user (student) start a program, insert the password and active the freezing of the  C: driver.
      To avoid the user could block the progress of the automate sequence (about 20 seconds) I added blockinput. It seems blockinput needs admin credential to work.
      I added:
      1) #RequireAdmin => but popup the UAC windows to confirm
      2) Runas ( RunAs($USERNAME, @ComputerName, $PASSWORD)) => but it didn't work 
      How can I solve it out.
      Thanks
       
×
×
  • Create New...