Page 1 of 1

Windows 8.1 UAC Bypass

PostPosted:Sun Aug 24, 2014 2:06 pm
by TurlaBoy
Hey kernelmode,

I've successfully bypassed UAC restrictions with a technique found by this guy:

http://www.pretentiousname.com/misc/W7E ... tails.html

But when I try to make the same thing on windows 8.1(not with sysprep.exe of course), my.dll is successfully mmaped in .exe autoelevated, but then process returns 0xc000007b error, this guy managed to do it in windows 8.1:

http://blog.cobaltstrike.com/2014/03/20 ... ould-know/

So my question is, are autoelevated processes doing some kind of extracheck for whitelisted dlls or something?

Re: Windows 8.1 UAC Bypass

PostPosted:Sun Aug 24, 2014 2:58 pm
by EP_X0FF
And why do you need this?

Re: Windows 8.1 UAC Bypass

PostPosted:Sun Aug 24, 2014 3:14 pm
by TurlaBoy
EP_X0FF wrote:And why do you need this?
Because my reversing skills are quite limited, I do not understand why the autoelevated.exe exits with 0xc000007b error, because my.dll is successfully mmaped in memory, but it looks like dllentrypoint is not called

Re: Windows 8.1 UAC Bypass

PostPosted:Sun Aug 24, 2014 3:20 pm
by EP_X0FF
TurlaBoy wrote:
EP_X0FF wrote:And why do you need this?
Because my reversing skills are quite limited, I do not understand why the autoelevated.exe exits with 0xc000007b error, because my.dll is successfully mmaped in memory, but it looks like dllentrypoint is not called
http://msdn.microsoft.com/en-us/library/cc704588.aspx

0xC000007B
STATUS_INVALID_IMAGE_FORMAT
{Bad Image} %hs is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support.

UAC bypassing only needed for malware purposes. This what I was asking.

Re: Windows 8.1 UAC Bypass

PostPosted:Sun Aug 24, 2014 4:18 pm
by TurlaBoy
EP_X0FF wrote:
TurlaBoy wrote:
EP_X0FF wrote:And why do you need this?
Because my reversing skills are quite limited, I do not understand why the autoelevated.exe exits with 0xc000007b error, because my.dll is successfully mmaped in memory, but it looks like dllentrypoint is not called
http://msdn.microsoft.com/en-us/library/cc704588.aspx

0xC000007B
STATUS_INVALID_IMAGE_FORMAT
{Bad Image} %hs is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support.

UAC bypassing only needed for malware purposes. This what I was asking.
It's for pentesting, but I do not have money to pay $2500 for a license, well, I'm gonna try to reverse it, thanks

Re: Windows 8.1 UAC Bypass

PostPosted:Mon Aug 25, 2014 4:07 am
by EP_X0FF
If you want to bypass UAC window then hook/overwrite RtlQueryElevationFlags and return 0 in flags.

Re: Windows 8.1 UAC Bypass

PostPosted:Mon Aug 25, 2014 10:49 pm
by TurlaBoy
EP_X0FF wrote:If you want to bypass UAC window then hook/overwrite RtlQueryElevationFlags and return 0 in flags.
I believe if i do this the process is not elevated, I've just found out the solution for my problem, win8.1 PE loader workd a lil bit different, i've changed a couple of things in my dll and it worked :geek:

If you guys got any paper about the internals of UAC and consent.exe i'd appreciate to read

thanks

Re: Windows 8.1 UAC Bypass

PostPosted:Tue Aug 26, 2014 2:47 am
by EP_X0FF
TurlaBoy wrote:
EP_X0FF wrote:If you want to bypass UAC window then hook/overwrite RtlQueryElevationFlags and return 0 in flags.
I believe if i do this the process is not elevated, I've just found out the solution for my problem, win8.1 PE loader workd a lil bit different, i've changed a couple of things in my dll and it worked :geek:

If you guys got any paper about the internals of UAC and consent.exe i'd appreciate to read

thanks
Yes, I told you this patch only to disable uac window, not bypass uac itself.

Re: Windows 8.1 UAC Bypass

PostPosted:Thu Aug 28, 2014 1:51 pm
by EP_X0FF
Offense removed, thread cleanup.

Marqo09 - permanent ban. Second account simple deleted. Any others will be deleted too.

For a butthurting cretins from the twitter: you are not welcome here. Sell your shi.. oh I mean super software somewhere else.

Closed.