Help - Search - Members - Calendar
Full Version: WindowsGate 1.1
The CD Forum > Bart's PE Builder > Plugins
Pages: 1, 2
Ectomorph
Hi.

Here is my new small tool WindowsGate for accessing any local users accounts without password knowing.
It is designates for work with Windows Live CDs.

Version 1.1 features:
  • target OS can be installed on any paths
  • two gates available now:
    • msv1_0.dll patch
    • utilman.exe replacement (WinKey+U shortcut) - run any process with system privileges from WindowsGate




The plugin can be downloaded here:
http://www.virtualexile.com/wg/windowsgate.cab (290kB)



Version 1.0 features:
  • Unlock/Lock functions (enabling/disabling logon password validation)
  • existing passwords remains untouched (without password reset or overwrite operations)
  • windows registry remains untouched
  • without password (hash) cracking
  • SFC/WRP remains active
  • support for all NT version: 2000/XP/2003/Vista/2008




The plugin can be downloaded here:
http://www.virtualexile.com/wg/windowsgate1-0.cab (283kB)

Best regards
jaclaz
Nice! smile.gif

Am I correct in presuming you are the same Damian that made Dreampack? unsure.gif

Whether you're him or not, welcome to the forums. smile.gif

jaclaz
Ectomorph
QUOTE (jaclaz @ Mar 1 2008, 06:32 PM) *
Am I correct in presuming you are the same Damian that made Dreampack? unsure.gif


happy62.gif

Still the same Damian smile.gif
ireneuszp
QUOTE (Ectomorph @ Mar 1 2008, 09:23 PM) *
QUOTE (jaclaz @ Mar 1 2008, 06:32 PM) *
Am I correct in presuming you are the same Damian that made Dreampack? unsure.gif


happy62.gif

Still the same Damian smile.gif


Damianie Bąkowski chce ci powiedzieć ze wykonałeś zajebisty programik thumbsup.gif
hilander999
QUOTE (Ectomorph @ Mar 1 2008, 03:23 PM) *
QUOTE (jaclaz @ Mar 1 2008, 06:32 PM) *
Am I correct in presuming you are the same Damian that made Dreampack? unsure.gif


happy62.gif

Still the same Damian smile.gif
Do you have to re-enable password checking from within PE?

Like when my kids forget thier password, I can boot to PE and disable password checking and access the account, and after I recover/change the password, can I re-enable password checking from windows? Or do I have to boot back into PE?


Another Question:
Does this effect EWF encrypted files?

Either way this looks really nice!
nls
Sweet! happy71.gif
Thanks for sharing.
Ectomorph
QUOTE (ireneuszp @ Mar 1 2008, 09:31 PM) *
Damianie Bąkowski chce ci powiedzieć ze wykonałeś zajebisty programik thumbsup.gif


Dzięki, miło to słyszeć smile.gif

QUOTE (hilander999 @ Mar 2 2008, 01:22 AM) *
Do you have to re-enable password checking from within PE?


Yes, with usage of button "Lock".
However, in Vista/2008, You can try enter at command prompt (run in the admin security context) this:

sfc /scanfile=c:\windows\system32\msv1_0.dll

QUOTE (hilander999 @ Mar 2 2008, 01:22 AM) *
Does this effect EWF encrypted files?

EWF?
maybe EFS encrypted files?

While you explore Windows with the disabled password check, any EFS encrypted file will be unreadable unless you enter right password while logon.
To decrypt files you need private key assigned with you encrytpion certificate.
All private keys and other secure content is stored in protected place. This place is secured with use of your account password.
If you normally change the password, Windows will decrypt the secured objects (private keys) and encrypt again it with your new password.
When you set new user password (not change password, where you must enter old password) or reset it offline with use of any third-party tools, then all informations stored in user protected store will be inaccessible. You will be not able to export you certificate with private key any more.
But the unaccessible private keys should remain in protected store.
So when someone change/reset password to the original one, private key will be again available and all encrypted files.
jaclaz
For the record, Nuno already made a .script for winbuilder:
http://www.boot-land.net/forums/index.php?...ic=4070&hl=

jaclaz
paraglider
Does your statement:

However, in Vista/2008, You can try enter at command prompt (run in the admin security context) this:

sfc /scanfile=c:\windows\system32\msv1_0.dll


mean that you are patching msv1_0.dll to disable password checking?
Ectomorph
QUOTE (paraglider @ Mar 2 2008, 08:26 PM) *
you are patching msv1_0.dll to disable password checking?

Yes.

msv1_0.dll = Authentication Package
TheHive
QUOTE
for accessing any local users accounts

So we cant access Admin accounts. Or are all accounts accessible.





I would suggest a small how to use the program within the WindowsGate program.

For example having this in there

QUOTE
Features:

Unlock/Lock functions (enabling/disabling logon password validation)
existing passwords remains untouched (without password reset or overwrite operations)
windows registry remains untouched
without password (hash) cracking
SFC/WRP remains active
support for all NT version: 2000/XP/2003/Vista/2008


and maybe this also.

One of the first questions I was going to post. But I see someone beat me to it. sorcerer.gif
QUOTE
QUOTE
Do you have to re-enable password checking from within PE?



QUOTE
Yes, with usage of button "Lock".
However, in Vista/2008, You can try enter at command prompt (run in the admin security context) this:

sfc /scanfile=c:\windows\system32\msv1_0.dll



adding XPE support shortcut to plugin, for those that use Numenu.

Thanks!

Im testing the Script for Winbuilder right now.
http://www.boot-land.net/forums/index.php?...ic=4070&hl=

Finished tests. All are positive.
Nuno Brito
This is a good tool to keep on the admin belt - thank you for sharing! smile.gif
FileCity
Thank you very much for sharing this with us...

Is WindowsGate able to patch 32 and 64 bits systems ?
hilander999
QUOTE (Ectomorph @ Mar 2 2008, 12:39 PM) *
QUOTE (hilander999 @ Mar 2 2008, 01:22 AM) *
Does this effect EWF encrypted files?

EWF?
maybe EFS encrypted files?
EFS .... happy71.gif YES hysterical.gif
The connection between brain and fingers does not always work. stretcher.gif
frodo
QUOTE (hilander999 @ Mar 3 2008, 02:51 PM) *
QUOTE (Ectomorph @ Mar 2 2008, 12:39 PM) *
QUOTE (hilander999 @ Mar 2 2008, 01:22 AM) *
Does this effect EWF encrypted files?

EWF?
maybe EFS encrypted files?
EFS .... happy71.gif YES hysterical.gif
The connection between brain and fingers does not always work. stretcher.gif

Someones having a Senior moment

Ive no reason to be here other than to badger hilander999 in return for what i feel is character assassination in other threads....
hilander999
QUOTE (frodo @ Mar 2 2008, 11:03 PM) *
Ive no reason to be here other than to badger hilander999 in return for what i feel is character assassination in other threads....
I was actually being serious and could probbly get a nice gift-pack of cheese sent out if you want to divulge your location via PM. devil.gif
frodo
QUOTE (hilander999 @ Mar 3 2008, 03:12 PM) *
QUOTE (frodo @ Mar 2 2008, 11:03 PM) *
Ive no reason to be here other than to badger hilander999 in return for what i feel is character assassination in other threads....
I was actually being serious and could probbly get a nice gift-pack of cheese sent out if you want to divulge your location via PM. devil.gif

By now i thought everyone would know that my location is:

The Tower Of Solitude
Darlinghurst.
Sydney. N.S.W. 2010
Australia (Otherwise known as the coalition of the gullible, country number: 2)

Just look for the sign: The National Institute For The Shaping of Young Minds

Or look up three floors for the rifle mounted on the window sill
hilander999
sign06.gif
QUOTE
Or look up three floors for the rifle mounted on the window sill
You just described every third building in my neighborhood.
frodo
QUOTE (hilander999 @ Mar 3 2008, 04:19 PM) *
sign06.gif
QUOTE
Or look up three floors for the rifle mounted on the window sill
You just described every third building in my neighborhood.


Yes but you live in the US dont you, what my idol Hunter S Thompson described as "The Kingdom Of Fear"

Sure, there i expect the sight of guns protruding from windows is de riguer.

The sight of mine however is an uncommon sight, and definitely sends the message that i will not surrender myself or my cheese easily and any attempt to breach the defenses will result in the highest possible price.
Ectomorph
QUOTE (TheHive @ Mar 2 2008, 11:08 PM) *
I would suggest a small how to use the program within the WindowsGate program.

Thanks for your suggestions.

QUOTE (FileCity @ Mar 3 2008, 03:06 AM) *
Is WindowsGate able to patch 32 and 64 bits systems ?

Only x86 target systems.
I have no contact until now with 64 bits system sad.gif
AgentGOD
Good job on your discovery and coding the program! This tool should be very very useful, especially for fixing others' computers. No more needing to NULL their password, just "Unlock" the OS!

By the way, since you are somehow modifying a DLL, isn't it possible that a Windows Update may cripple the patched DLL? Or is it possible that a Windows Update could download a new DLL and your software is trying to patch it and can't find the right bytes, or replacing it with an older file?
jaclaz
QUOTE (AgentGOD @ Mar 4 2008, 09:08 PM) *
By the way, since you are somehow modifying a DLL, isn't it possible that a Windows Update may cripple the patched DLL? Or is it possible that a Windows Update could download a new DLL and your software is trying to patch it and can't find the right bytes, or replacing it with an older file?


Yes it is.

Exactly as it happened to the original SFC/WFP workarounds.

But is also well possible that tomorrow the sky falls on our heads w00t.gif:

http://www.asterix-international.de/asterix/characters.shtml
QUOTE
Abraracourcix, called Vitalstatistix in the English books, the chief of the tribe. Majestic, brave and hot-tempered the old warrior is respected by his men and feared by his enemies. Abraracourcix himself has only one fear; he is afraid the sky may fall on his head tomorrow. But as he always says, 'Tomorrow never comes.'


So why bothering? unsure.gif

jaclaz
AgentGOD
Because I'd say making it a dynamic patch would be more efficient so that you don't need to update the program very often (it should automatically search for proper spot to patch, instead of hard-coding the offset to patch or the modified DLL itself). So the program would work for just about every update.

Just a hint, that's usually how I program my patcher/loader.

#EDIT:
I'm taking back what I said. He already has it efficiently dynamically patching.
Ectomorph
QUOTE (AgentGOD @ Mar 4 2008, 09:08 PM) *
By the way, since you are somehow modifying a DLL, isn't it possible that a Windows Update may cripple the patched DLL?

Yes, Windows Update can install new version of patched DLL.
Also the SFC (or Vista's WRP) can restore original version of DLL - but we have a luck because SFC/WRP doesn't care (by default) about files modified offline unless you force settings to scan all protected files at boot time.

QUOTE (AgentGOD @ Mar 4 2008, 09:08 PM) *
and can't find the right bytes, or replacing it with an older file?

No, a think WindowsGate will work always smile.gif
There is no other way.
If you want to check user's password then you must compare two hash values - byte by byte - and return binary result - are the same or not.
Authorization routines was not changes from Windows 2000. 8 years without changes.
So WindowsGate must work correctly forever smile.gif
But - never say never.

QUOTE (AgentGOD @ Mar 4 2008, 10:14 PM) *
Because I'd say making it a dynamic patch would be more efficient so that you don't need to update the program very often (it should automatically search for proper spot to patch, instead of hard-coding the offset to patch or the modified DLL itself). So the program would work for just about every update.

WindowsGate is a universal patcher. That is way it works on all version of this DLL.
AgentGOD
QUOTE (Ectomorph @ Mar 4 2008, 04:41 PM) *
Yes, Windows Update can install new version of patched DLL.
Also the SFC (or Vista's WRP) can restore original version of DLL - but we have a luck because SFC/WRP doesn't care (by default) about files modified offline unless you force settings to scan all protected files at boot time.

Yeah, we are lucky.

QUOTE (Ectomorph @ Mar 4 2008, 04:41 PM) *
If you want to check user's password then you must compare two hash values - byte by byte - and return binary result - are the same or not.
Authorization routines was not changes from Windows 2000. 8 years without changes.
So WindowsGate must work correctly forever smile.gif
But - never say never.

Thanks for letting us know about your research of how windows checks your password smile.gif

QUOTE (Ectomorph @ Mar 4 2008, 04:41 PM) *
WindowsGate is a universal patcher. That is way it works on all version of this DLL.

Yes, after trying it out myself, I found this out. Thanks, and again, good work.
AgentGOD

It also looks great with the XP Silver theme on my BartPE CD. Keep in mind I took this screenshot on VMWare with XP SP3 installed (it detects SP3 and works perfectly).

Btw, wallpaper is squished because I made it for 1920x1200 on real PC.

#EDIT:
One practical suggestion for improving your program would be making it also work for Windows Installations that don't use the standard "WINNT" or "WINDOWS" folders as well, some "leet g33kz0rs" use other names for their "windows" folder.
drk
Tested Windowsgate on Vista SP1 domain member - did it job like promised.
Will it work on domain controller?
AgentGOD
I highly doubt it would work properly on AD.
Ectomorph
QUOTE (AgentGOD @ Mar 5 2008, 02:20 AM) *
One practical suggestion for improving your program would be making it also work for Windows Installations that don't use the standard "WINNT" or "WINDOWS" folders as well, some "leet g33kz0rs" use other names for their "windows" folder.

I have thinked about it.
But is there a way to define that folder at XP or Vista installation?
Thanks for suggesion.

QUOTE (drk @ Mar 5 2008, 10:28 AM) *
Will it work on domain controller?

Should work for local accounts.
Msv1_0 package is responsible for authorization the local users.
But there is also possibility that users from the network will logon on theirs accounts. See the diagram below:



At the MSDN:
QUOTE
the local instance of MSV1_0 uses the Netlogon service to call the instance of MSV1_0 running on the domain controller. The domain controller's instance of MSV1_0 then checks the SAM database of the domain controller and returns the logon result to the instance of MSV1_0 on the local machine.

If the domain controller will do all the checks of the password hashes, then... maybe?
AgentGOD
QUOTE (Ectomorph @ Mar 5 2008, 04:40 PM) *
I have thinked about it.
But is there a way to define that folder at XP or Vista installation?
Thanks for suggesion.

Yeah, there's a way to define the folder on XP installation at least.

By the way, I suggest that you do it the Paraglider way (efficient): give the user an option to locate the windows directory themselves if necessary (like, a "config" button in the middle, or something, which will allow them to add an undetected windows installation to the list).

#EDIT: I just tested this on Vista SP1. It seems to "work", but I can't lock it back afterwards. I ran WindowsGate on my PE CD, unlocked vista, rebooted, logged into Vista account w/o a password, it worked, I did a reboot, back to PE CD, opened up WindowsGate.... Lock button is greyed out, only Unlock available???

I think it has some Vista issues.

#EDIT2: After another reboot into PE CD, the Lock button is now available, and it locked fine. Strange.
AgentGOD
By the way, do you happen to be Adam Boileau from New Zealand? smile.gif
jaclaz
QUOTE (AgentGOD @ Mar 12 2008, 08:32 PM) *
By the way, do you happen to be Adam Boileau from New Zealand? smile.gif


Unless Poland or Damian has moved recently and also chaged his name, I find it highly improbable: w00t.gif
http://www.911cd.net/forums//index.php?sho...=21204&st=2

jaclaz
AgentGOD
Eh? Because This guy released the source for the exploit:
http://storm.net.nz/static/files/winlockpwn

It looks for byte signatures then patches. The "WinXP SP2 msv1_0.dll technique" seems to be what WindowsGate uses.
jaclaz
You may be unaware that Damian has a long story about "low-level" Windows tricks, do check his "old" projects:
http://www.d--b.webpark.pl/dreampackpl_en.htm
and his was the original idea of patching the WFP SFCFILES.dll:
http://www.911cd.net/forums//index.php?sho...181&st=1111

jaclaz
Rootman
If it makes any difference I do know that a domain controller has NO local accounts and actually must be ON the domain on the right subnet in order to log onto the console. I've found this out the hard way by fat fingering a static IP address on a DC that was sent to a site with a different subnet. BTW: Got around it by using a mini-router set to the WRONG subnet (I knew which subnet I set the DC on) and hooked the WAN side to the real subnet side.

There are NO LOCAL accounts on a machine once it's been promoted to a DC. It uses ONLY domain accounts.
AgentGOD
@jaclaz: Damn, I didn't know.
Ectomorph
QUOTE (FileCity @ Mar 3 2008, 03:06 AM) *
Is WindowsGate able to patch 32 and 64 bits systems ?

QUOTE (Ectomorph @ Mar 4 2008, 12:30 AM) *
Only x86 target systems.

Correction: WindowsGate work also on 64-bit target systems.

QUOTE (AgentGOD @ Mar 12 2008, 08:32 PM) *
By the way, do you happen to be Adam Boileau from New Zealand? smile.gif

smile.gif
No way.
AgentGOD
CODE
        {"name":"WinXP SP2 msv1_0.dll technique",
         "notes":"Patches the call which decides if an account requires password authentication. This will cause all accounts to no longer require a password, which covers logging in, locking, and probably network authentication too! This is the best allround XPSP2 technique.",
         "phase":[{
         "sig":"8BFF558BEC83EC50A1",
         "pageoffset":[0x927],
         "patch":"B001",
         "patchoffset":0xa5}]
        },


By the way, do you happen to patch at the same place as this guy?
jaclaz
For the record, and probably out of topic, I recently learned about a "trick" apparently used by some technicians to open a command prompt at login time:
http://www.msfn.org/board/Access-COMMAND-S...9.html&st=8

Basically some feature of XP allow that pressing keys "windows" + "U" to bring up the file narrator.exe, but apparently there is no check made that it is actually a "real" narrator.exe, and it can be a renamed cmd.exe.

Not having an XP system that I can use to play with handy, I did not test it, but it sounds about right, question is would it be a command prompt open with which proviledges?

Any taker to test and report?

jaclaz
dog
Renaming narrator doesn't work, win-U still brings up the utility manager. I think it must be utility manager that needs to be replaced?

Edit: renaming utilman.exe does not bring up a cmd window either.
d4vr0s
Been experimenting with vmware.
Have fast user switching turned on (not sure if this makes any difference)
I've tried renaming (at different times) the utilman, narrator and maginfy to cmd, none of them work.
The command window never appears.

Edit:
Turned off the welcome screen and also tried renaming osk.exe, no go.
I even tried copying notepad to narrator (just for the heck of it)

The test system is SP2
jaclaz
Maybe it has been "fixed" in SP2. unsure.gif

And then it is possible that some kind of "checksum" is made on the renamed file.

Too bad.....sad.gif

jaclaz
AgentGOD
I think it's due to SFC. It automatically replaces the "new modified" EXE with the one from the DLLCache folder.
Jotnar
One thing that is sure to work (even with domain controllers) is to open the registry of the local machine and navigate to the following location:
CODE
[HKEY_USERS\.DEFAULT\Control Panel\Desktop]


You then change ScreenSaverActive to 1 and change SCRNSAVE.EXE to cmd.exe instead of logon.scr. Then you can do whatever you want. smile.gif
This still works as of Vista SP1.

Cheers
Ectomorph
QUOTE (AgentGOD @ Mar 13 2008, 05:08 AM) *
By the way, do you happen to patch at the same place as this guy?

No. I patch alternative piece of code.

QUOTE (jaclaz @ Mar 13 2008, 11:12 AM) *
Basically some feature of XP allow that pressing keys "windows" + "U"

Really nice trick smile.gif

QUOTE (d4vr0s @ Mar 13 2008, 02:05 PM) *
I've tried renaming (at different times) the utilman, narrator and maginfy to cmd, none of them work.
The command window never appears.

Edit:
Turned off the welcome screen and also tried renaming osk.exe, no go.
I even tried copying notepad to narrator (just for the heck of it)

Read this:
QUOTE (http://blog.didierstevens.com/2006/08/21/playing-with-utilmanexe/)
Winlogon is a service, and as such it doesn’t interact wih the desktop. Services have their own noninteractive window station Service-0×0-3e7$. To interact with the desktop (display dialogs, accepts key strokes & mouse clicks, …), a service must use station WinSta0. Each program that is started inherits its windows station from its parent process.
This explains why utilman.exe replacement programs don’t show up on the desktop. They interact with Winlogon’s window station, which is the noninteractive window station Service-0×0-3e7$. But a program can change its window station.
AgentGOD
QUOTE (Jotnar @ Mar 13 2008, 03:56 PM) *
One thing that is sure to work (even with domain controllers) is to open the registry of the local machine and navigate to the following location:
CODE
[HKEY_USERS\.DEFAULT\Control Panel\Desktop]


You then change ScreenSaverActive to 1 and change SCRNSAVE.EXE to cmd.exe instead of logon.scr. Then you can do whatever you want. smile.gif
This still works as of Vista SP1.

Cheers

LOL. Be sure to change the screen-saver time to like "2 seconds" or something as well wink.gif

Of course, this will only work if you have an admin account or a BartPE CD w/ Remote RegEdit.
Ed_P
QUOTE (dog @ Mar 13 2008, 08:40 AM) *
Renaming narrator doesn't work, win-U still brings up the utility manager. I think it must be utility manager that needs to be replaced?

Edit: renaming utilman.exe does not bring up a cmd window either.

Rather than renaming those files to cmd.exe, how about renaming cmd.exe to those names? hmm.gif
Nuno Brito
QUOTE (AgentGOD @ Mar 13 2008, 08:49 PM) *
...
Of course, this will only work if you have an admin account or a BartPE CD w/ Remote RegEdit.


This can also be done with Peter Nordahl's password reset disk.

The raw hive editing feature to unlock windows accounts can also be used to navigate and change the values on other registry keys.

---

I have a *feeling* that it is possible to change logon.scr even from a guest account under vista if you avoid the Win32 API to handle the registry structure.

smile.gif
AgentGOD
Holy crap, it does work on X64 as well! I just tried it on XP Pro X64 Edition SP2, and it worked just as well as on x86.
d4vr0s
QUOTE
I think it's due to SFC. It automatically replaces the "new modified" EXE with the one from the DLLCache folder.

No, not only did I rename the files outside of the target OS, but after it booted I verified they had not been changed back.
QUOTE
Read this:~

Yes, I figured it was something along those lines even when trying to lauch something from utilman.
But nothing ventured, nothing gained. wink.gif
QUOTE
Rather than renaming those files to cmd.exe, how about renaming cmd.exe to those names?

That's what I've been doing, it's what I understood the idea was.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.