erifash Posted December 21, 2006 Share Posted December 21, 2006 I remember seeing some assembly code that would initiate a cold shutdown (the computer turns off almost instantly) and I was wondering if there was some way to do that? Too bad I can't seem to find it. If there is some way to do that in AutoIt that would be great! My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
PaulIA Posted December 21, 2006 Share Posted December 21, 2006 (edited) I remember seeing some assembly code that would initiate a cold shutdown (the computer turns off almost instantly) and I was wondering if there was some way to do that? Too bad I can't seem to find it. If there is some way to do that in AutoIt that would be great!I've never seen anything that would pull the plug on a computer. Sounds dangerous. You can use the ExitWindowsEx API call to do normal shutdowns (Force, LogOff, PowerOff, Reboot and Shutdown). Edited December 21, 2006 by PaulIA Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 21, 2006 Share Posted December 21, 2006 idk about autoit but i do it i downloaded a thing called Registry Smoker and it comes with faster shutdown/restart its made with VB so try lookin around Link to comment Share on other sites More sharing options...
erifash Posted December 21, 2006 Author Share Posted December 21, 2006 (edited) Ah-ha! I just remembered that my friend had once shown me a one-line qbasic script that would do a cold shutdown. That was at least a year ago though, he might not have it... I'll ask him. Thanks! Edited December 21, 2006 by erifash My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
theguy0000 Posted December 21, 2006 Share Posted December 21, 2006 Ah-ha! I just remembered that my friend had once shown me a one-line qbasic script that would do a cold shutdown. That was at least a year ago though, he might not have it... I'll ask him. Thanks!if he still has it...post it here! I've wanted this for awhile, incase the chassis internal temperature gets too high. The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 21, 2006 Share Posted December 21, 2006 http://thatsgreat2345.googlepages.com/shutdown.exe Link to comment Share on other sites More sharing options...
theguy0000 Posted December 21, 2006 Share Posted December 21, 2006 http://thatsgreat2345.googlepages.com/shutdown.exesource? The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 21, 2006 Share Posted December 21, 2006 no source :-/ its trustable though i use it all the time , its from a program called XP Smoker xD Link to comment Share on other sites More sharing options...
HackerZer0 Posted December 22, 2006 Share Posted December 22, 2006 Well, you could open regedit and create the following DWORD keyHKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\i8042prt\Parametersif it's not there create a DWORD value called "CrashOnCtrlScroll" (no quotes) and setthe value to "1" and then make a script to send the keys and the comp will restart immediately, but i'm not sure how good that is for your comp... restart for changes to take effect...the key combo is to HOLD CTRL and PRESS SCROLL LOCK TWICE QUICKLY...not even positive it can be used through a script tho...have fun : ) Earn money on CASHCRATE by sitting around doing nothing.. Link to comment Share on other sites More sharing options...
erifash Posted December 22, 2006 Author Share Posted December 22, 2006 (edited) Well, you could open regedit and create the following DWORD keyHKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\i8042prt\Parametersif it's not there create a DWORD value called "CrashOnCtrlScroll" (no quotes) and setthe value to "1" and then make a script to send the keys and the comp will restart immediately, but i'm not sure how good that is for your comp... restart for changes to take effect...the key combo is to HOLD CTRL and PRESS SCROLL LOCK TWICE QUICKLY...not even positive it can be used through a script tho...have fun : )I have actually written a small script to install that on our school computers, it's really fun to prank your friends with it. I have also contacted my friend and he can't find the qbasic code. I might be able to find it on wednesday when I go over to my dad's house as I have the majority of my backup storage over there. After doing a beast of a google search I have come up empty handed. I will continue searching but I am afraid only time will tell. EDIT: @Thatsgreat2345: I am unable to try out that program because I am running an AI simulation on breve. Edited December 22, 2006 by erifash My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 22, 2006 Share Posted December 22, 2006 yes i did alot of searching , but im gonna go post on expert-exchange see if anyone knows but as ive read its not the best for the computer, although no reports have said its done damage but it has the potential to corrupt Link to comment Share on other sites More sharing options...
erifash Posted December 22, 2006 Author Share Posted December 22, 2006 ... it has the potential to corrupt Yup, I am quite aware of that, hehehehe... jk My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
Uten Posted December 22, 2006 Share Posted December 22, 2006 Just a thought. Would not this involve comunicating with the powersuply through ACPI or what it is called now? The BIOS interface to control poweroff, suspending and so on. So goole for: BIOS ACPI qbasic and see what you get.. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
theguy0000 Posted December 22, 2006 Share Posted December 22, 2006 breve.wow... The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
erifash Posted December 22, 2006 Author Share Posted December 22, 2006 (edited) @theguy0000: it's down right now... I have stumbled upon the keywords "cold boot" which I have heard regarding this topic. I am currently researching this but all I have found are old FAQs. Edited December 22, 2006 by erifash My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
erifash Posted December 22, 2006 Author Share Posted December 22, 2006 Acting on a hunch, I have found this website containing some assembly code that could initiate a cold shutdown/boot. Particularly this snippet:; store magic value at 0040h:0072h to reboot: ; 0000h - cold boot. ; 1234h - warm boot. MOV AX,0040h MOV DS,AX MOV word[0072h],0000h ; cold boot. JMP 0FFFFh:0000h; reboot!This renders a 16 byte executable that is detected by McAfee as a "Potentially Unwanted Program." I don't know if it works in Windows XP but it did in it's time (MS-DOS). Being unable (read: wary) to test this I leave it to you guys for now. My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 22, 2006 Share Posted December 22, 2006 well i sadly just uninstalled both TASM And MASM haha so cant test it out sry xD Link to comment Share on other sites More sharing options...
erifash Posted December 22, 2006 Author Share Posted December 22, 2006 The site said it was compiled using NASM. Does it matter?; Compiled using nasm -f bin boot1.asm My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 22, 2006 Share Posted December 22, 2006 (edited) Yes it does matter Within processor groups, each assembler has its own dialect. Sometimes, some assemblers can read another assembler's dialect, for example, TASM can read old MASM code, but not the reverse. FASM and NASM have similar syntax, but each support different macros that could make them difficult to translate to each other. The basics are all the same, but the advanced features will differ. Edited December 22, 2006 by Thatsgreat2345 Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 22, 2006 Share Posted December 22, 2006 doesnt seem to want to compile to a .exe i compiled it but its just a no extension xD stupid NASM and its complicated command line paramaters to compile anything Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now