med0x2e / sigflip Goto Github PK
View Code? Open in Web Editor NEWSigFlip is a tool for patching authenticode signed PE files (exe, dll, sys ..etc) without invalidating or breaking the existing signature.
License: MIT License
SigFlip is a tool for patching authenticode signed PE files (exe, dll, sys ..etc) without invalidating or breaking the existing signature.
License: MIT License
Shouldn't this be part of this repo?
when I : >>>> SigInject "C:\Windows\System32\kernel32.dll" "C:\Users\test\testbeacon.dll" "Users\test\Documents\exs.bin"
I get this error:
"Could not read the shellcode file, check the path & if the file exists".( confirming that the Users\test\Documents\exs.bin is an acceccible directory on my Mac.
any ideas please??
Hi,med0x2e:
I used to test the tool and some other way like this principle,but I can't execute my code.So I think maybe this had be patch by default.
I test the code,and the function like the web:https://research.checkpoint.com/2022/can-you-trust-a-files-digital-signature-new-zloader-campaign-exploits-microsofts-signature-verification-putting-users-at-risk/
Execute exe after successful injection, but shellcode is not loaded
[+]:Scanning for Shellcode...
[+]: Shellcode located at 1c08
[+]: Opening Remote Process PID: 277
[+]: Memory allocated at 0x4C00000
CreateRemoteThread Failed. Error: 5
is error 5 referring to access denied --> same as windows error msg? or ERROR 5 related to injection?
Hi,
I have a question. The SigFlip cannot change the Authentihash of the PE executable (used by MDAC). Which hashes types (except the standard cryptographic hashes) are changed by SigFlip? For example, the file hashes included in VirusTotal reports (Vhash, Imphash, Rich PE header hash, etc.).
here is a sample of the error when trying to compile Sigloader(BOF):
In file included from sigloader.c:1:
common.h:42:102: note: expected 'SIZE_T' {aka 'long unsigned int'} but argument is of type 'void *'
42 | DECLSPEC_IMPORT WINBASEAPI BOOL WINAPI KERNEL32$WriteProcessMemory (HANDLE, LPVOID, LPCVOID, SIZE_T, SIZE_T);
| ^~~~~~
sigloader.c:184:58: warning: passing argument 3 of 'KERNEL32$QueueUserAPC' makes integer from pointer without a cast [-Wint-conversion]
184 | KERNEL32$QueueUserAPC((PAPCFUNC)apcRoutine, hThread, NULL);
| ^~~~
| |
| void *
In file included from sigloader.c:1:
common.h:40:82: note: expected 'ULONG_PTR' {aka 'long unsigned int'} but argument is of type 'void *'
40 | DECLSPEC_IMPORT WINBASEAPI DWORD WINAPI KERNEL32$QueueUserAPC (PAPCFUNC, HANDLE, ULONG_PTR);
| ^~~~~~~~~
sigloader.c:199:43: warning: passing argument 1 of 'MSVCRT$free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
199 | if (sProcess) MSVCRT$free(sProcess);
| ^~~~~~~~
error:
[+]:Loading/Parsing PE File 'evil.exe'
[+]:Scanning for Shellcode...
[+]: Shellcode located at 40128
[+]: Opening Remote Process PID: 7628
[+]: Memory allocated at 0xF40000
CreateRemoteThread Failed. Error: 5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.