yeah, i just hacked a smudge tool into ms paint because i felt like it
>>107729648Nice
my primary hijack is a static iat injection into mspaint.exe using my custom minhook dll which gets a handle on gdi32.dll!RoundRect to target 0x01015523 which is the entry point for the rounded rectangle tool engine. i block the original shape drawing and execute my smudge logic insteadi also have to hook into BitBlt because mspaint like all other drawing applications uses a back buffer to store its canvas data, so every time the mouse moves i restore the canvas from a clean buffer so that i can simultaneously update that back buffer and smudge the colors on the canvasthen since hdcs use relative coordinates i use getcursorpos and screentoclient to get the absolute canvas position and then use getdcorgex to calculate the relative offset of the cursorthe smudge engine honestly took the longest because i am an actual retard when it comes to color logic, and it took hours of fighting with the blending method i was using to come to something that passes the typical sniff tests. if you know anything about color blending like htis you can see in my op image that im doing the correct interpolations, but the real nice part of this is the non-recursive pickup which allows me to do the blending on the brush itself rather than on the canvas, so i dont have the typical luminance or saturation loss that you'd run into doing this all with integer mathit was fun. i would not do this again
>>107729739just to see if i could
>>107729714post the code nigger
>>107729763https://pastebin.com/k5GWLeeU>>107729765you want to see how import address tables are patched? because thats what i did. you can google this and find out in 5 seconds
that's pretty cool man, good job
autism
>>107729818y dont u just tell people to use minhook lol
>>107729648how do i know you arent smudging in a different software and opening in paint
>>107729900this isnt meant to be a tutorial? im just telling you what i accomplished by being autistic and fighting with hacking a piece of software thats older than most of the people on this website for fun
>>107729923um wel i guess you dont know that but here is a webm of me doing exactly what i said im doing
this is what /g/ used to be about
based post thank you anon
>>107729714truly interesting, hope to see more from you like this anon
Use case for this asinine bloated feature?
>>107730040i dont even remember what made me think to try doing this, but after i failed on the first attempt i was determined>>107730061your fun, bro???
>>107730091Fun is not an argument. Closing this thread.
>>107730144alright good night bro
Guys how do I get this on my iPhone 17 Pro???Thx in advance!Sent from my iPhone
>>107730191just hack your ip phone lol
>>107729648Nothing good will ever come out of this.
How about something useful like adding layers
>>107729648but doesn't your brain just smudge the image too? isn't that what a human would do? how is that any different than asking AI to do it?
>>107729648You are a pretty interesting person. Most people on /g/ are bland and generic (copies of the same person) good job hacking mspaint and happy new year.
interestingis this from that windows source leak?did you decompile it?is it that javascript port? another port?or just literally hacking the executable and replacing shit? (I don't understand computers)