[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1745151254783064.png (52 KB, 775x772)
52 KB
52 KB PNG
yeah, i just hacked a smudge tool into ms paint because i felt like it
>>
>>107729648
Nice
>>
File: 1755345565115869.png (78 KB, 775x772)
78 KB
78 KB PNG
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 instead
i 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 canvas
then 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 cursor
the 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 math
it was fun. i would not do this again
>>
File: 1758404968255494.png (45 KB, 775x772)
45 KB
45 KB PNG
>>107729739
just to see if i could
>>
>>107729714
post the code nigger
>>
File: 1738690945810373.png (26 KB, 775x772)
26 KB
26 KB PNG
>>107729763
https://pastebin.com/k5GWLeeU
>>107729765
you 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
>>
>>107729818
y dont u just tell people to use minhook lol
>>
>>107729648
how do i know you arent smudging in a different software and opening in paint
>>
File: 1760933780692916.png (37 KB, 775x772)
37 KB
37 KB PNG
>>107729900
this 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
>>
File: paint.webm (602 KB, 772x720)
602 KB
602 KB WEBM
>>107729923
um 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
>>
File: 1735830485978824.png (112 KB, 775x772)
112 KB
112 KB PNG
based post thank you anon
>>
>>107729714
truly interesting, hope to see more from you like this anon
>>
Use case for this asinine bloated feature?
>>
File: 1764042035745990.png (144 KB, 775x772)
144 KB
144 KB PNG
>>107730040
i dont even remember what made me think to try doing this, but after i failed on the first attempt i was determined
>>107730061
your fun, bro???
>>
File: proxy-image.jpg (94 KB, 800x800)
94 KB
94 KB JPG
>>107730091
Fun is not an argument. Closing this thread.
>>
File: 1751932120356148.png (190 KB, 775x772)
190 KB
190 KB PNG
>>107730144
alright good night bro
>>
Guys how do I get this on my iPhone 17 Pro???
Thx in advance!

Sent from my iPhone
>>
>>107730191
just hack your ip phone lol
>>
>>107729648
Nothing good will ever come out of this.
>>
How about something useful like adding layers
>>
>>107729648
but 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?
>>
>>107729648

You 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.
>>
interesting
is 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)
>>
File: 1760428263951545.png (11 KB, 505x105)
11 KB
11 KB PNG
>>107730224
just update your paint, silly goose. It's right next to the copilot button
>>
>>107729714
>its a static iat injection
Then why does it look like a modified version of XP MSPaint?
>>
>>107729714
doing it that way is pants on head retarded when you could just grab the source code from the XP leak and get that exact same version of mspaint
now do the same thing with the Win7 mspaint and I'll be impressed
>>
>>107729648
The source code to mspaint is available. No need to do any hacking nonsense. I even managed to extricate the mspaint code into a visual studio 2008 project. Though, honestly, I would not advise working on the mspaint code, its such a horrific mess. It would be easier to start from scratch, I spent ages hacking on it, and I came to realize that there was going to be almost nothing of the original code left when I was done.
>>
now all that is missing is layers
>>
File: 1766595995625228.png (45 KB, 208x199)
45 KB
45 KB PNG
>pointless fun with a computer
good way to start the year



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.