Git Product home page Git Product logo

watermark_disabler's Introduction

watermark_disabler

Disabling "Activate Windows" watermark made simple, the code in this repository is a PoC, and has not been tested above Windows 10 1803.

how does this work?

The function responsible for drawing whole desktop including the watermark is xxxDesktopPaintCallback located in win32kfull.sys. Both of the approaches used by this project were found while analyzing functions further down in the callstack.

approach #1

As you can see from the snippets below, forcing gpsi->unk874h to be zero the checks will fail and the watermark won't be drawn.

// global tagSERVERINFO* gpsi;
// global _THREADINFO* gptiCurrent;
if ( gpsi->unk874h != 0 )
{
	/* gptiCurrent + 0x1c0 = tagDESKTOP** */
	const auto desktop = gptiCurrent->desktops[1]; /* type: tagDESKTOP**, this is checked if it's grpdeskLogon, which is a global pointer to the lock screen */
	
	HWND desktop_window = nullptr;
	
	/* tagDESKTOP + 0xa8 = tagWnd* */
	if ( desktop )
		desktop_window = desktop->wnd; /* type: tagWnd*, I believe this is a pointer to the lock window? */
	
	should_draw_watermark = ( desktop_window == nullptr );
}

if ( should_draw_watermark )
	PaintWatermark(device_context, &desktop_rect);

approach #2

PaintWatermark calls GreExtTextOutWInternal (which is the internal function for ExtTextOutW/NtGdiExtTextOutW in wingdi.h).

The argument passed for size (c) is a global called "gSafeModeStrLen", by setting the size (c) to 0, the string won't be rendered. The pattern for the aforementioned global inside win32kfull is 44 8B C8 44 89 0D + 7

watermark_disabler's People

Stargazers

tzf-omkey avatar Riddles avatar Zephyr Lykos avatar Chrizz avatar

Watchers

 avatar morelli avatar  avatar

Forkers

hzmslx

watermark_disabler's Issues

FN ERROR

undefined FN

if ( !FN( MmIsAddressValid )( const_cast< uint8_t* >( data ) ) )

  • +load it with OSR doesn't work, getting integrity checks fail(even with this disabled with bcedit)
  • +I made if work with manual mapping but it gives me BSOD when attempt to attach to csrss,

impl::unique_attachment csrss_attach(csrss_process);//bsod here

  • +is it working for which version of windows?
    My discord: Cesar#3165 if u can msg me there

Unable to start Service

The project seems to be just what I am looking for to disable Test Mode watermark on the desktop without disabling Test signing or driver enforcement. I have no issues when trying to compile the driver file but when it comes to starting the service I am getting this message:

[SC] StartService FAILED 577:
Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source.

I have compiled it as Release X64 and created the service with SC as can been seen by the error message above.

sc create "watermark_disabler" binPath="Path_to_sys" type=kernel

To recap on this issue I have debug set to on, no integrity checks set to on and also Test signing set to enabled by using CMD bcdedit command.

I am running windows 10 pro x64 with the correct SDK and WDK frameworks installed.
Any insight as to why I am getting this error would be greatly and truly apricated.

I have also tried this on a clean install with all options needed to run unsigned drivers but still get the same error.

Thank you for posting this and the research it took to make it possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.