Jump to content

Highest Reputation Content

#22864 Bypass Win8.1 UAC source + documentation

Posted by romero on 02 January 2015 - 12:17 AM

Bypass Win8.1 UAC source + documentation (translated from chinese)

[code=auto:0] The source code modifications to POC (GUI version without the direct use of the code, we can implement your own, there is not released) foreigners initially reported
This document contains a detailed description of the POC:
Initially released foreigner win7 UAC bypass URL is as follows:


win8.1 Dll hijack that has been repaired, we now come to hijack another exe, windows exe can be hijacked several ...

BypassUac_Inject.cpp source code is more crucial to a file, in addition to some other file interprocess memory copy code is GUI-related code.

The POC program includes:

- GUI code (most of the code are UI-related code, you can write a command-line version)

- Error handling / reporting code (easy after the program error diagnostics)

- Cleanup code (after bypass UAC, clean up legacy in the system directory Dll)

- We can choose a different target process to inject (a process Explorer.exe is more appropriate, in addition Calc.exe, Notepad.exe, MSPaint.exe also can)

In fact, the code is not that complicated, really.

* Note *

- For 64-bit operating system compiled into 64 programs for 32-bit operating system compiled into 32 programs ...

- If you do not accidentally injected DLL 32 to 64 in the process went, into the process of the program may be Ben collapse, and vice versa ... so 32 pairs 32 operating system, 64 pairs of 64-bit operating system .. .

- You choose the target process may need to open ASLR (address randomization), if you turn off the EXE ASLR, then the target process will also require close ASLR. Essentially, Kernel32.dll loading process to address both the same, so the two processes handle on the address randomization consistently. System processes that can be used basically opened the ASLR, so the compiler option default. If you inject found during the collapse of the target process, and this time you can check the state of the process of Explorer ASLR.

- The code multi-process / multi-thread is unsafe (because black DLL may also be used, so you may need to add a mutex to prevent spurious DLL is detected deleted)

** Details use: **

The code use two vulnerabilities of the system. The first flaw comparative vulnerability, but also more difficult to repair. The second vulnerability DLL hijacking relatively easy to fix, it does not, win8.1 Microsoft will fix the dll that classic sysprep.exe hijacking.

Exploit 1 (general permission to copy files to the system directory without triggering pop interception):

1.1) we choose a Microsoft digital signature program, such as: Explorer.exe.
1.2) target remote thread injection process. (There is no god horse restrictions? We just need to choose the process with our main program in the same (Session) session, Explorer.exe is a good target process.)
1.3) was injected code to create a COM object IFileOperation. (If it is win7,8,8.1 default UAC option, and the target process is to have Microsoft copyright and digital signature program, it will not trigger the UAC prompt.)
1.4) was injected code IFileOperation interface using our black Dll files copied to the specified system
1.5) was injected code will start with a shield and is UAC whitelist program
1.6) was injected code with shields and is waiting to start UAC whitelist program is completed.
1.7) was injected code using IFileOperation interface delete black Dll.

Exploit 2 (System Dll hijacking):

BypassUacDll.dll is a very simple dynamic link library files, in the form of resource files to the main program BypassUac embedded inside.

We are looking for can Dll hijack the system program.

Note: We move / rename / replace the file under System32. You will find that if you were an ordinary privileges move / rename / replace, etc., it will pop prompt with administrator privileges to operate. So we need IFileOperation object mentioned above to help us to complete these operations.

How to find it can Dll hijack procedures, monitoring System32 process, you will find C: \ Windows \ sysprep.exe will System32 \ sysprep directory called cryptbase.dll default load a dynamic link library.

And this cryptbase.dll is located in the System32 directory below, currently there is no good way to replace it, but we can take advantage of a loophole to replicate a fake Dll to go sysprep directory, sysprep.exe default will load in the current directory cryptbase.dll, if you can not find it, only to find the System32 directory cryptbase.dll.

By injecting win8.1 sysprep.exe hijacking has expired, we use another program to C: \ Windows \ System32 \ migwiz \ migwiz.exe. [/ CODE]



Source (vs2010 works directly compiled to)

Packed all together here : http://www68.zippysh...58619/file.html


  • 6

#21400 Microsoft .NET Native

Posted by kao on 08 April 2014 - 10:09 AM

Ooook.. After spending several hours yesterday installing all that horrid crap on that equally horrid OS, I finally managed to build something into .NETNative. That's an experience I don't want to repeat. Ever.

tl;dr - .NET-style metadata are gone. You get native exe+dll+mrt100_app.dll

How to install it.
1) You pretty much follow instructions by MS. Install VS2013 on Win8.1, install Visual Studio 2013 Update 2 RC, install .NETNative package kindly provided by JeRRy.
2) Open or create project for Windows Store app.
3) VS2013 will bug you to get Developers licence. Just hit Cancel, you don't need it for testing.
4) Right-click project and select "Enable for .NET Native"
5) Lots of magic will happen in the background, and nice MHT document will open and describe next 2 steps.
6) Select solution, in properties select correct configuration. "AnyCPU" won't do, you need either ARM or X64.
7) Then select project, and in Build properties for this configuration enable "Compile with .NET Native" toolchain.

Build process
1) Once you've set up configurations properly, run Build as usual.
2) If you've enabled .NET Native, in the log window you'll see something like this:
.NET Native Build starting: Several compilation stages will occur. Please be patient as this may take several minutes.

1>------ Rebuild All started: Project: App1, Configuration: Debug x64 ------
1>  App1 -> C:\123\App1\App1\bin\x64\Debug\App1.exe
1>  Loading 63 modules...
1>  Checking assembly C:\123\App1\App1\bin\x64\Debug\App1.exe


1>  Build succeeded.
1>      0 Warning(s)
1>      0 Error(s)
1>  Time Elapsed 00:02:27.26
1>  Compilation successful.
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
Yes, it takes 2.5 minutes to build app that does absolutely nothing.

I tested simple SplashScreenApp from official MS code samples.

.NET EXE size - 35KB. Download link for EXE file: https://www.mediafir...99csgohbvyiegab
.NET Native: EXE size - 4KB, DLL size - 3.6MB, mrt100_app.dll - 300KB. Download link for binaries+PDB file, so that you can explore it a bit: https://www.mediafir...ac3ggddv76chcv4
These are not complete application packages, you will not be able to run them! Just explore them and see how bad is the future...

EDIT 2x: Typos. Lots of them. I can't type today.
  • 6

#23707 Why you shouldn't downgrade to Windows 10

Posted by Kurapica on 01 August 2015 - 12:55 PM

I won't discuss the design beauty or technical details ! I will just quote some parts of their EULA ..



“Microsoft collects information about you, your devices, applications and networks, and your use of those devices, applications and networks. Examples of data we collect include your name, email address, preferences and interests; browsing, search and file history; phone call and SMS data; device configuration and sensor data; and application usage.”



“We may collect information about your device and applications and use it for purposes such as determining or improving compatibility” and “use voice input features like speech-to-text, we may collect voice information and use it for purposes such as improving speech processing.”



“If you open a file, we may collect information about the file, the application used to open the file, and how long it takes any use [of]it for purposes such as improving performance, or [if you]enter text, we may collect typed characters, we may collect typed characters and use them for purposes such as improving auto-complete and spell check features.”

  • 5

#24904 Flash Decompiler

Posted by whoknows on 03 May 2016 - 11:49 AM

JPEXS Free Flash Decompiler
Opensource flash SWF decompiler and editor. Extract resources, convert SWF to FLA, edit ActionScript, replace images, sounds, texts or fonts. Various output formats available. Works with Java on Windows, Linux or MacOS.
You can find more information on homepage at: 

source code @:


  • 4

#23644 Visual Studio 2015 Final

Posted by bprg on 20 July 2015 - 04:16 PM

Visual Studio 2015 Final

Community Edition


Enterprise Edition


Professional Edition

  • 4

#22745 Any problems with the new style ?

Posted by Kurapica on 05 December 2014 - 05:51 PM

Sorry about that ...


we can't disappoint kao and CodeCracker in one day ! ;)


I fixed the code highlighting for both styles and now you can use the old one.


have fun.

  • 4

#25026 HTTPS certificate expired

Posted by Kurapica on 10 June 2016 - 05:38 PM

Solved ...

  • 3

#23657 Visual Studio 2015 Final

Posted by bprg on 21 July 2015 - 11:10 AM

VisualStudio 2015 Professional

VisualStudio 2015 Enterprise

  • 3

#22807 CodeCracker's old nickname stolen.. :)

Posted by kao on 12 December 2014 - 07:36 PM

Nice fans you got there.. :D


  • 3

#19202 Forum updates

Posted by Kurapica on 22 January 2013 - 06:58 PM

I have replaced the old boring skins, I hope you like them, don't go mad at me ! imagine seeing your girlfriend wearing the same clothes for 1 year !!

I know that we should improve the stability and speed not only change skins, so we are

contacing the hosting company to solve these issues.

Sorry for the inconvenience.

  • 3

#17514 Codewall 4 protected program jit dump

Posted by 0xd4d on 25 May 2012 - 02:47 PM

If it's CodeWall this may work:

de4dot filename.dll --strtyp delegate --strtok "(System.Int32,System.Int32,System.Int32)"

  • 3

#25282 PowerShell source

Posted by Xenocode on 21 August 2016 - 04:07 AM




  • 3