How to remove 72h limitation ?
#26
Posted 16 June 2011 - 10:15 AM
#27
Posted 16 June 2011 - 10:15 AM
Maybe you could describe the theory before you get a running .Net4 script. (30 days is the trial limitation for non-WinPE)
#28
Posted 16 June 2011 - 11:01 AM
#29
Posted 16 June 2011 - 11:35 AM
#30
Posted 16 June 2011 - 11:45 AM
And it uses Windows components i absolutely don't know.
I've found it here : http://social.msdn.m...ab-4d1eed024baa
One thing is missing :
- using System.Runtime.InteropServices;
#31
Posted 16 June 2011 - 02:15 PM
Second is SystemSetupInProgress=1.
Any file checking any of the two parameters, can easily be patched to look for something else. This however causes default behavior of the file, which is not seldom a desaster in a PE.
So to get a better control over the behavior of several files, the actual code of those files needs to be modified, to keep the desired effects and avoid the non desired ones.
Depending on, how this is done and where you live, this is all kinds of levels of illegal.
#32
Posted 16 June 2011 - 02:19 PM
#33
Posted 16 June 2011 - 03:16 PM
For instance, M$ would love to prohibit reverse engineering, but too bad for them, it is legal in europe. (to a certain degree)
#34
Posted 16 June 2011 - 03:56 PM
#35
Posted 16 June 2011 - 10:08 PM
1. wpeutil.exe can be used. Patching wpeutil.dll for the string "shutdown" will prevent wpeutil from shutting down the system.
2. shutdown.exe can also be used. This one uses the named pipe InitShutdown that wininit.exe set up and winlogon.exe serves. Patching the string "shutdown" in wininit.exe will create misnamed pipes that the system do not know what to do with. In this case shutdown.exe will complain about missing RPC server, and cannot shutdown system.
But since I still never have seen the shutdown after 72 hours, I can't say if any of the above will work. I don't know what triggers what during such a shutdown. I seriously doubt I will have a machine occupied for 3 days just for 1 test... and 6 days for the second test...
Good luck guys.
#36
Posted 16 June 2011 - 10:52 PM
save the code below in a utf-8 file named AutoUnattend_Shutdown.xml
call it from command line or batch like this;
%SystemRoot%\System32\wpeinit.exe /unattend=AutoUnattend_Shutdown.xml
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.micro...nfig/2002/State" xmlns:xsi="http://www.w3.org/20...Schema-instance">
<Restart>Shutdown</Restart>
</component>
</settings>
</unattend>
#37
Posted 17 June 2011 - 05:27 AM
#38
Posted 17 June 2011 - 07:09 AM
Good luck guys, i'm looking to you
#39
Posted 17 June 2011 - 09:51 AM
How often do you reboot normally?I seriously doubt I will have a machine occupied for 3 days just for 1 test... and 6 days for the second test...
I mean, haven't you got a 24/7 running machine on which you can run the PE in a VM?
A random idea (linked to the idea by pscEx).
*Somewhere* there must be a "timer" indicating "time passed since boot" or a "static" "last booted on date/time" timestamp.
If it is the second no easy way to find it, but if it is the first, maybe comparing two separate RAM dumps taken at a (say) 10 minutes interval will show where it is.
Wonko
#40
Posted 17 June 2011 - 11:28 AM
Sure, but being restricted to 1 test each third day, is too slow. Now, since I'm using vmware I just found a vmx parameter I will try;I mean, haven't you got a 24/7 running machine on which you can run the PE in a VM?
timeTracker.apparentHz
Have never tried it before though..
#41
Posted 17 June 2011 - 12:01 PM
Sure, but being restricted to 1 test each third day, is too slow.
I see what you mean , the math related to calculating time needed "bruteforcing" at a rate of 3,858024691358024691358024691358e-6 "passwords/second" is mindboggling and exceeds conventional calculators precision (besides lifetimes).
Wonko
#42
Posted 17 June 2011 - 01:39 PM
You don't need to wait 3 days for preliminary testing.Sure, but being restricted to 1 test each third day, is too slow.
Just kill PEShell or WPEinit and see if you can stop the reboot.
Once that works, i'm sure we can find more than one user, who is willing to have a PE run for 3 days.
#43
Posted 17 June 2011 - 09:51 PM
Killing processes is currently the only way of shutting down my WinPE system. Any other method does not work. So if the 72-hour shutdown is just terminating the shell process, then my patches will not work. However, if it is using any shutdown apis/namedpipes to initialize the shutdown, then I believe it will work.You don't need to wait 3 days for preliminary testing.
Just kill PEShell or WPEinit and see if you can stop the reboot.
The previously mentioned (and partly tested here) methods of using "ShutdownBlockReasonCreate" will likely not work if the shell process is just killed. If that's the case further apis (ntdll.dll) must be disabled as well (not very nice solution). But of course altering the timer would be the best solution. I tried looking at KeSetTimer inside the kernel, which is triggered when the animation is played, but do not know if this is it or even what to do with it.. But I have a feeling that this one is the right one.. If not resetting the timer is possible, then maybe extending the duedate may work (if we could locate where the timer is triggered). Anybody?
#44
Posted 17 June 2011 - 10:01 PM
So eighter it wasn't the right spot, which would be a big coincidence. Or in Win7PE_SE the timeout does not work.
#45
Posted 17 June 2011 - 11:49 PM
There are only two files which contain this value in the whole PE and both can not be used to reboot after 5 minutes.
#46
Posted 18 June 2011 - 11:17 AM
#47
Posted 18 June 2011 - 12:23 PM
#48
Posted 18 June 2011 - 01:25 PM
#49
Posted 18 June 2011 - 01:39 PM
Yes. Winpeshl.exe put under the CmdLine registry key and cmd.exe running as the actual and only visible shell. Don't think putting cmd.exe in the CmdLine registry key will make any difference against the limit.What is a regular WinPE3.0? A WAIK WinPE with CMD as shell?
#50
Posted 21 June 2011 - 07:12 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users