Giter VIP home page Giter VIP logo

mutante's Introduction

Update 22/1/2024: This project is heavily outdated. While technically changing serials, it will not have any effect on any modern anti-cheat. The only remotely useful part is the SMBIOS parsing, but keep in mind that I wrote this when I was 16 years old and it's not really handling all edge cases well. If you want to save yourself lots of work and hassle, just create those tables from scratch and replace them.

mutante

Windows kernel-mode hardware identifier (HWID) spoofer. It does not use any hooking, so it can be completely unloaded after use. Tested on Windows 10 x64 2004 (19041.264).

Features

  • Disk serials (works on both SATA and NVMe drives)
  • Disable S.M.A.R.T functionality
  • SMBIOS (tables 0-3) modification (not zeroing)

Credits

mutante's People

Contributors

samueltulach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mutante's Issues

utils.cpp | Un-/signed conflict @line29

Hey there,

I have a problem with utils.cpp line 29:
for (auto i = 0; i < moduleList->ulModuleCount; i++)
Always the signed / unsigned conflict.

Changed it a bit to complie this but seems like its not working as intended then.
Btw. I checked my HWID's over CMD with wmic diskdrive get name,size,model,serialnumber and nothing changed.

Well I don't get the failure there at all.

Any ideas?

Unresolved External Errors on both modes

Debug-LNK2019 unresolved external symbol __stdio_common_vswprintf referenced in function _vsnwprintf_l mutante C:\Users\Downloads\mutante-master\mutante-master\mutante\mutante\disks.obj 1

BuildThis-LNK2019 unresolved external symbol __stdio_common_vswprintf referenced in function "long __cdecl RtlStringCbPrintfW(unsigned short *,unsigned __int64,unsigned short const *,...)" (?RtlStringCbPrintfW@@YAJPEAG_KPEBGZZ) mutante C:\Users\Downloads\mutante-master\mutante-master\mutante\mutante\disks.obj 1

please help I just wanna play cod lmao

signed/unsigned

how to fix signed/unsigned in this ??

for (auto i = 0; i < moduleList->ulModuleCount; i++)
{
auto module = moduleList->Modules[i];
if (strstr(module.ImageName, moduleName))
{
address = module.Base;
break;
}
}

Doesn't work on a laptop for whatever reason

Tested it on my pc and it did spoof serials
(i9-9900k, z390 asus)
image
But it didn't work on my laptop
(amd ryzen 4600h, asus laptop)
image

What can be the problem?
I did exact same steps on both devices

P.S.
I added some more logs and this is what change disk serials function return, which is STATUS_NOT_FOUND
[mutante] Change serials finished -1073741275

eac

does this work for rust?

SMBIOs not spoofing in VM - Windows 10 22H2.

Windows 10, 22H2

Build: Debug, x64
Character Set: User Multi-Byte Character Set

Checking SMBIOs data before and after loading with OSR is use: https://github.com/KunYi/DumpSMBIOS/tree/main

DriverEntry

`extern "C" NTSTATUS DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath)
{
DriverObject->DriverUnload = Unload;
DbgPrint("[*]\tDriver ini...");

DbgPrint ("[*]\tRunning SpoofSMBIOSCleaner");
SpoofSMBIOSCleaner();
DbgPrint("[*]\tFinished running SpoofSMBIOSCleaner");
return STATUS_SUCCESS;

}`

RandomText/GetString/RandomizeString

`void RandomText(char* text, const int length)
{

if (!text)
{
	DbgPrint ("[!] RandomText: text is null\n");
	return;
}
	

static const char alphanum[] =
	"0123456789"
	"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	"abcdefghijklmnopqrstuvwxyz";

auto seed = KeQueryTimeIncrement();

for (auto n = 0; n <= length; n++)
{
	auto key = RtlRandomEx(&seed) % static_cast<int>(sizeof(alphanum) - 1);
	text[n] = alphanum[key];
}

}

char* GetString(SMBIOS_HEADER* header, SMBIOS_STRING string)
{
const auto* start = reinterpret_cast<const char*>(header) + header->Length;

if (!string || *start == 0)
{
	DbgPrint ("[!] GetString: string is null\n");
	return nullptr;
}

while (--string)
{
	start += strlen(start) + 1;
}

return const_cast<char*>(start);

}

void RandomizeString(char* string)
{

if (!string) { DbgPrint ("[!] RandomizeString: string is null\n"); return; }

const auto length = static_cast<int>(strlen(string));

auto* buffer = static_cast<char*>(ExAllocatePoolWithTag(NonPagedPool, length, 'ref0'));

if (sizeof(buffer) == 0)
{
	DbgPrint ("[!] RandomizeString: buffer is null\n");
	return;
}

RandomText(buffer, length);
buffer[length] = '\0';

if (sizeof(buffer) == 0)
{
	DbgPrint("[!] RandomizeString: buffer is null after termination\n");
	return;
}

memcpy(string, buffer, length);

ExFreePool(buffer);

}`

ProcessTable/LoopTables/SpoofSMBIOSCleaner

`
void ProcessTable(SMBIOS_HEADER* header)
{

if (header->Type == 0)
{
	auto* type0 = reinterpret_cast<SMBIOS_TYPE0*>(header);

	auto* vendor = GetString(header, type0->Vendor);
	RandomizeString(vendor);
}

if (header->Type == 1)
{
	auto* type1 = reinterpret_cast<SMBIOS_TYPE1*>(header);

	auto* manufacturer = GetString(header, type1->Manufacturer);
	RandomizeString(manufacturer);

	auto* productName = GetString(header, type1->ProductName);
	RandomizeString(productName);

	auto* serialNumber = GetString(header, type1->SerialNumber);
	RandomizeString(serialNumber);
	
}

if (header->Type == 2)
{
	auto* type2 = reinterpret_cast<SMBIOS_TYPE2*>(header);

	auto* manufacturer = GetString(header, type2->Manufacturer);
	RandomizeString(manufacturer);

	auto* productName = GetString(header, type2->ProductName);
	RandomizeString(productName);

	auto* serialNumber = GetString(header, type2->SerialNumber);
	RandomizeString(serialNumber);
}

if (header->Type == 3)
{
	auto* type3 = reinterpret_cast<SMBIOS_TYPE3*>(header);

	auto* manufacturer = GetString(header, type3->Manufacturer);
	RandomizeString(manufacturer);

	auto* serialNumber = GetString(header, type3->SerialNumber);
	RandomizeString(serialNumber);
}

}

void LoopTables(void* mapped, ULONG size)
{

auto* endAddress = static_cast<char*>(mapped) + size;

if (endAddress == nullptr) 
{
	DbgPrint ("Failed to get end address");
}	

while (true)
{
	auto* header = static_cast<SMBIOS_HEADER*>(mapped);
	if (header->Type == 127 && header->Length == 4)
		break;

	ProcessTable(header);

	auto* end = static_cast<char*>(mapped) + header->Length;
	while (0 != (*end | *(end + 1))) end++;
	end += 2;
	if (end >= endAddress)
		break;

	mapped = end;
}

}

void SpoofSMBIOSCleaner()
{

auto* base = GetModuleBase("ntoskrnl.exe");
if (!base)
{
	DbgPrint("Failed to get ntoskrnl.exe base address");
}

auto* physicalAddress = static_cast<PPHYSICAL_ADDRESS>(FindPatternImage(base, "\x48\x8B\x0D\x00\x00\x00\x00\x48\x85\xC9\x74\x00\x8B\x15", "xxx????xxxx?xx")); // WmipFindSMBiosStructure -> WmipSMBiosTablePhysicalAddress
if (!physicalAddress)
{
	DbgPrint("Failed to find WmipSMBiosTablePhysicalAddress");
}

physicalAddress = reinterpret_cast<PPHYSICAL_ADDRESS>(reinterpret_cast<char*>(physicalAddress) + 7 + *reinterpret_cast<int*>(reinterpret_cast<char*>(physicalAddress) + 3));
if (!physicalAddress)
{
	DbgPrint("Failed to get physical address");
}

auto* sizeScan = FindPatternImage(base, "\x8B\x1D\x00\x00\x00\x00\x48\x8B\xD0\x44\x8B\xC3\x48\x8B\xCD\xE8\x00\x00\x00\x00\x8B\xD3\x48\x8B", "xx????xxxxxxxxxx????xxxx");  // WmipFindSMBiosStructure -> WmipSMBiosTableLength
if (!sizeScan)
{
	DbgPrint("Failed to find WmipSMBiosTableLength");
}

const auto size = *reinterpret_cast<ULONG*>(static_cast<char*>(sizeScan) + 6 + *reinterpret_cast<int*>(static_cast<char*>(sizeScan) + 2));
if (!size)
{
	DbgPrint("Failed to get size");
}

auto* mapped = MmMapIoSpace(*physicalAddress, size, MmNonCached);
if (!mapped)
{
	DbgPrint("Failed to map physical address");
}

LoopTables(mapped, size);

MmUnmapIoSpace(mapped, size);

}
`

In my kernel debug log I'm getting error for ..

[!] GetString: string is null
[!] RandomizeString: string is null

And that's it, just once for each.. no other errors are raised... any solution for this, or does this method not work for 22h2 ?

I cant compile it

can someone explain me, how to compile it, or can someone send me the compiled driver?
Im not the smartest guy, sorry!

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.