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

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

Posted by CodeExplorer on 12 December 2014 - 08:17 PM

I don't care about it!

I've changed my mind. He get VIP promotion on URET forum probable due to that name.

So it is a problem.

  • 6

#24735 Pwn2Own 2016: Windows, OS X, Chrome, Edge, Safari all hacked

Posted by whoknows on 21 March 2016 - 06:00 AM


*bonus* - Bypassing Antivirus With Ten Lines of Code


*bonus* - How to hack a sex toy


  • 5

#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

#23135 Wireless networking tutorial

Posted by CodeExplorer on 09 March 2015 - 06:39 PM

A Wireless networking tutorial,
in the end is shown how to create
a Peer-to-Peer Network using an UTP cable.
This is NOT a reverse engineering tutorial.

Attached Files

  • 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

#24322 Alternate.DLL Analyzer

Posted by whoknows on 07 January 2016 - 05:28 PM

A simple application to extract the available function names




  • 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

#23010 CoreCLR is open-source!

Posted by yck1509 on 04 February 2015 - 07:11 AM

See https://github.com/dotnet/coreclr

It seems very similar to desktop version of .NET


Also, FYI, https://github.com/d...c/corjit.h#L398

// Note: Obfuscators that are hacking the JIT depend on this method having __stdcall calling convention.

Which explains 0xd4d's observation at https://github.com/0...crypter.cs#L125 :P


EDIT: From their wiki: https://github.com/d...ki/Contributing



Equally important is to understand that both CoreCLR and Desktop CLR (part of the .NET Framework) are built from the same source code and this repository contains a subset of that source code - targeted to build CoreCLR.

It seems pretty sure most of the code is identical to desktop CLR.

  • 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

#21442 Brain Food for Hackers [ A must read blog ]

Posted by Kurapica on 10 April 2014 - 08:11 PM

Don't waste your weekends on mental plagues like Facebook or WhatsApp !


have fun reading those topics.


I packed the latest topics in 3 MHTML files. use FireFox to open this kind of files, you will need a small addin, or simply browse the BLOG online !


you can open them in IE but I don't talk to people who use IE :D


All credits to the Author of this blog : Gustavo Duarte



Attached Files

  • 4

#16057 Save the nature

Posted by CodeExplorer on 03 December 2011 - 06:30 AM

As you may noticed I am retired from SnD. I have a lot of things to sort in my life. I will do less reversing from now.

Lately I am ready to die for the ecology!
My message will be: save the nature.
  • 4

#26734 A Walk-Through Tutorial, with Code, on Statically Unpacking the FinSpy VM: Pa...

Posted by whoknows on 23 January 2018 - 08:22 PM


  • 3

#26417 how to dump .net 64bit assembly

Posted by CodeExplorer on 07 October 2017 - 07:07 PM

or attached here!
Give it a try!

Attached Files

  • 3

#25026 HTTPS certificate expired

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

Solved ...

  • 3

#24281 Safe Native Code

Posted by whoknows on 20 December 2015 - 03:27 PM




btw donate @:





  • 3

#21355 Microsoft .NET Native

Posted by kao on 03 April 2014 - 10:52 PM

What happens when .NET code is statically compiled to machine code (versus runtime compiled via JIT) by the VC++ back end compiler? You get highly optimized binaries that load and run faster than .NET code ever has before. Yes, my friends, .NET has gone native! :)

Currently it's limited to Windows Store apps for ARM and x64, but judging from their presentation, they are going to extend it to all .NET Framework eventually.. :)

Main topic: http://msdn.microsof...io/dotnetnative (download link inside, might require registration).
Presentation video: http://channel9.msdn...side-NET-Native
  • 3

#27159 Oracle to charge for Java from Jan 2019

Posted by Kurapica on 10 August 2018 - 08:19 AM

Anything that speed up the burial of Java is good

  • 3