60aside Posted December 20, 2009 Posted December 20, 2009 I use BlockInput(1) on my scripts so users will not interfere with things... but the first thing users do is press ctrl-alt-delete, then of course they can end processes and take control of the system. Is there any way to truly lock down a computer until a script has run? I'm interested because a script I have written migrates profile and computer data to a server, and can take a long time to run. I don't want anyone to have access until it has completed. Thanks....
MiserableLife Posted December 20, 2009 Posted December 20, 2009 haha.... i thought of this problem before..... the answer is "no, you cannot block ctrl-alt-delete" well.. to lock down a computer, just WIN + L and set power button to do nothing or if you don't want to WIN + L.... - monitor off - make a full screen ,top most,boderless GUI - _MouseTrap - disable task manager - enable welcome screen - blockinput - repeat the list every 20sec haha..... The problem is how do you unlock every thing after you did this....(by usb maybe...)
60aside Posted December 20, 2009 Author Posted December 20, 2009 I have a screen which shows the progess of copying, I want the users to see this at all times, but not be able to stop it in any way. I have already disabled screen savers etc.. So this can't be done in anyway using autoit? There is always a way .. somehow
MiserableLife Posted December 20, 2009 Posted December 20, 2009 are you worring that if the program stops you have to start the copying process again...right? what about making it resumable...
60aside Posted December 20, 2009 Author Posted December 20, 2009 It's ok I found how to do it. Before running my script a take a chisel and hammer and remove those keys from the keyboard. Job done, users cannot press ctrl-alt-delete.
MiserableLife Posted December 20, 2009 Posted December 20, 2009 = =" you could still press the button without the plastic cover.....
60aside Posted December 20, 2009 Author Posted December 20, 2009 = =" you could still press the button without the plastic cover.....not the way I use a hammer
MyDream Posted December 20, 2009 Posted December 20, 2009 not the way I use a hammer The other possible solution is just run a lockscreen program before you initiate your process of uploading and after uploading is finish, just unlock the screen. The main problem of doing that is the user wont be able to do anything on computer until its finished.A lockscreen program is basicly a utility that just block the keyboard and mouse until a correct password is input(you to create a password before you lock it).And the screen is basically semi transparent whereby you can see whats going on the computer monitor.Now the main problem is how to a made a lockscreen program? Especially one that can accept commandlines(that way I can use it too. )
Mison Posted December 21, 2009 Posted December 21, 2009 No. Use label, display something like "Uploading, do not press any key!". If they're smart enough to press Ctrl + Alt + Del, they are smart enough to understand the words. Hi ;)
insignia96 Posted December 21, 2009 Posted December 21, 2009 Put this at the top of your script: #include "Misc.au3" BlockInput(1) _MouseTrap( 0, 0, 1, 1 ) And this in the main loop. If ProcessExists( "taskmgr.exe" ) Then ProcessClose( "taskmgr.exe" ) WinActivate( $hwnd ) BlockInput(1) _MouseTrap( 0, 0, 1, 1 ) EndIf I have had good luck with this little chunk of code. It pretty much disables everything. Very hard to get out of. Visit my website to see all my finished releases!Releases here:UDFs:GUI ResizingColor List (Web Colors)GUIFade_NearestPower
ManneMoses Posted May 20, 2015 Posted May 20, 2015 (edited) <snip> Edited May 20, 2015 by Melba23 Link removed
BrewManNH Posted May 20, 2015 Posted May 20, 2015 This thread is 5 1/2 years old, pretty sure the original poster wouldn't need this by now, if they were ever to return here. The OP hasn't been here in 4 years. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
SadBunny Posted May 20, 2015 Posted May 20, 2015 (edited) This is security circumvention and is not a permitted discussion topic. (See forum rules.)Apart from that: this should never be done in this way by well-intended programmers anyway. If you are a corporate sysadmin, use domain policies to prevent non-administrator users from doing things you don't want them to. If you write your script for users over whose computer you should not have that kind of control, you are in fact writing malware. You don't want that./edit: BrewManNH good point Hadn't noticed. Point would have been exactly the same 5 years ago though Edited May 20, 2015 by SadBunny Roses are FF0000, violets are 0000FF... All my base are belong to you.
Moderators Melba23 Posted May 20, 2015 Moderators Posted May 20, 2015 ManneMoses,You appear not to have read the Forum rules since your arrival. Please read them now - particularly the bit about not discussing bypassing security measures - before you post again.All,Rather than admonish the poster yourselves, please just report the post and let the Mods deal with it.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts