GetPixel uses kernelmode?!

Cracking/Engineering Discuss, GetPixel uses kernelmode?! at Programmers Lounge forum; i heard masm is good. not sure about tasm though....


Go Back   Gamerz Needs - For All Your Gaming Needs! > Technology Zone > Programmers Lounge > Cracking/Engineering
Forgot Password? | Sign Up!

Notices

Advertisement
   

Reply
 
Bookmark this Thread Tools Display Modes
  #11  
Old 08-19-2008, 04:34 PM
wassssup34579's Avatar
Diamond Hole
 
Last Online: Today 04:39 PM
Join Date: Jan 2007
Location: California
Posts: 755
Blog Entries: 1
Thanks: 144
Thanked 99 Times in 50 Posts
Nominated 6 Times in 3 Posts
TOTW/F/M Award(s): 0
Latest Blog: blahh!!!
Rep Power: 6
wassssup34579 will become famous soon enough
Points: 1,567.80
Bank: 95,353.27
Total Points: 96,921.07
No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 
No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 
No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 
No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 
Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 
Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 
Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 
Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 
Send a message via AIM to wassssup34579 Send a message via MSN to wassssup34579
i heard masm is good. not sure about tasm though.
  #12  
Old 08-19-2008, 05:31 PM
kaswar's Avatar
Registered Users +
 
Last Online: Today 04:31 PM
Join Date: Nov 2006
Location: Location:
Posts: 2,063
Thanks: 230
Thanked 221 Times in 145 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog:
Rep Power: 11
kaswar will become famous soon enough
Points: 1,072.60
Bank: 109,849.36
Total Points: 110,921.96
Here ya go. Don't get drunk! O.O - joriannn Marked as kashin's property. (One of the four Mighty Titans led by sir SpaceCake) - kashin Merry christmas and seriously i couldnt find any other gift - ItsmYarD Merry Christmas N Happy New Years!!! - BiGbAnG to karwas. Bang - stormer320 
gotcha RPKMHFTAGUITALABPC - ROVE ure not drunk enough yet - swordmas754 
Gold - Wizxon Green - swordmas754 Green - swordmas754 
Send a message via MSN to kaswar
GetPixel clone?

is it like getpixel called 4 times each on a different part of the screen?

also, theres a GPPMX.DLL which bypasses GetPixel in ring3 i think.

it uses the 5 byte jmp
__________________
~I'm out
  #13  
Old 08-19-2008, 05:34 PM
Beast's Avatar
I love GzN!
 
Last Online: 09-09-2008 03:57 PM
Join Date: Jul 2007
Posts: 1,672
Blog Entries: 1
Thanks: 87
Thanked 119 Times in 84 Posts
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Latest Blog: Oh
Rep Power: 8
Beast is on a distinguished road
Points: 1,871.80
Bank: 135.15
Total Points: 2,006.95
Black - armoballer Dark Blue - hotboy 
All right, is do you any of you know asm?
__________________
I Love Gzn. www.iGzN.com
  #14  
Old 08-19-2008, 05:37 PM
wassssup34579's Avatar
Diamond Hole
 
Last Online: Today 04:39 PM
Join Date: Jan 2007
Location: California
Posts: 755
Blog Entries: 1
Thanks: 144
Thanked 99 Times in 50 Posts
Nominated 6 Times in 3 Posts
TOTW/F/M Award(s): 0
Latest Blog: blahh!!!
Rep Power: 6
wassssup34579 will become famous soon enough
Points: 1,567.80
Bank: 95,353.27
Total Points: 96,921.07
No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 
No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 
No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 
No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 
Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 
Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 
Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 
Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 
Send a message via AIM to wassssup34579 Send a message via MSN to wassssup34579
Quote:
Originally Posted by kaswar View Post
GetPixel clone?

is it like getpixel called 4 times each on a different part of the screen?

also, theres a GPPMX.DLL which bypasses GetPixel in ring3 i think.

it uses the 5 byte jmp
no, it's not. this also bypasses ring3, but without a 5 byte trampoline.

Quote:
Originally Posted by Beast View Post
All right, is do you any of you know asm?
i know some asm. not alot though. and could we try to keep on topic? im still curious if getpixel uses ring0.

Last edited by wassssup34579; 08-19-2008 at 05:40 PM..
  #15  
Old 09-11-2008, 10:14 AM
X-Staff
 
Last Online: 11-16-2008 03:35 AM
Join Date: Jun 2006
Location: England
Posts: 4,729
Blog Entries: 10
Thanks: 185
Thanked 1,188 Times in 638 Posts
Nominated 2 Times in 1 Post
TOTW/F/M Award(s): 0
Latest Blog: Exam Results
Rep Power: 23
Slugsnack has a spectacular aura aboutSlugsnack has a spectacular aura aboutSlugsnack has a spectacular aura about
Points: 976.20
Bank: 161,489.27
Total Points: 162,465.47
You need to stay healthy. :D - Kyle Marked as kashin's property. - kashin snack for slugs and worms - Ken Cheers! Youve finally got your dick to go past 1 inch. Rofl jk sluggy =P - choad Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS! - choad 
Gold - GodChaos Green - Slugsnack Gray - Slugsnack Gold - Slugsnack Lavender - Purple_Haze 
Dark Blue - Slugsnack Burgundy - Slugsnack Brown - Slugsnack Black - Slugsnack 
Have just read this thread. First off.. I want to strongly advise you against using this method. I know it is possible but it is really not smart. The code for APIs differ for different machines and different systems so there is a good chance your code will not function correctly on other systems especially if have modified bits and pieces.

Now then, for your main question. Yes, GetPixel does enter kernelspace if used correctly. Go to OllyDbg and press Ctrl-G (on an application which maps gdi32.dll) and enter GetPixel. See that it eventually makes a CALL ?

Click the call and press enter to follow it. You will probably see something like this :


Code:
773ECCC6    B8 C6100000     MOV EAX,10C6
773ECCCB    BA 0003FE7F     MOV EDX,7FFE0300
773ECCD0    FF12            CALL DWORD PTR DS:[EDX]
773ECCD2    C2 0C00         RETN 0C
0x7FFE0300 is your system-call API structure member and 0x10C6 is your ServiceID for this function. I'm not gonna say much more now because I do know a bit more about kernelmode but it's not something I'm comfortable talking about right now.. (don't feel like saying something wrong and looking like a ****tard lol).

If you REALLY must use your method instead of a trampoline.. what I suggest you do is to fetch the bytes of GetPixel dynamically and store it in a buffer and then write them back to an empty procedure when you want to use them. You will need to do it before GameGuard starts though. That way you can ensure the GetPixel you have is the correct copy for the system your application is running on.
__________________
The Following User Says Thank You to Slugsnack For This Useful Post:
wassssup34579 (09-11-2008)
  #16  
Old 09-11-2008, 05:18 PM
wassssup34579's Avatar
Diamond Hole
 
Last Online: Today 04:39 PM
Join Date: Jan 2007
Location: California
Posts: 755
Blog Entries: 1
Thanks: 144
Thanked 99 Times in 50 Posts
Nominated 6 Times in 3 Posts
TOTW/F/M Award(s): 0
Latest Blog: blahh!!!
Rep Power: 6
wassssup34579 will become famous soon enough
Points: 1,567.80
Bank: 95,353.27
Total Points: 96,921.07
No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 
No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 
No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 
No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 No Message - wassssup34579 
Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 
Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 
Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 
Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 Black - wassssup34579 
Send a message via AIM to wassssup34579 Send a message via MSN to wassssup34579
but if it uses kernelmode, why doesnt gameguard hook it in ring0?
  #17  
Old 09-11-2008, 06:13 PM
Sean's Avatar
Gunbound UnderGround Level 3
 
Last Online: Today 02:27 PM
Join Date: Aug 2005
Age: 20
Posts: 4,399
Thanks: 2
Thanked 8,571 Times in 797 Posts
Nominated 32 Times in 17 Posts
Nominated TOTW/F/M Award(s): 1
Latest Blog:
Rep Power: 23
Sean has a spectacular aura aboutSean has a spectacular aura aboutSean has a spectacular aura about
Points: 41,360.36
Bank: 258,277.65
Total Points: 299,638.01
meat vomit - Ken I like people that are switched on up there. - Slugsnack I need no cells hack - huseyin No Message - goblin4u No Message - ahmedangel 
after all those bans, you still get POTM - pilotcs I love how you release only 1 new item to a hack, and get 250 more thanks. gay. =) - pilotcs Hmm. Banana. - Goku Thanks for the great MH ^^ - Adamaniac AwsOme HaCkEr - rebelife56 
I wonder if yours is longer. :) - Crumpeteer_ You Are a Cool friend so good luck and dont forget to eat my burger :)) - humam1992 A nice cold one on me! - kronikill421 best haxor - Plazma No Message - Yokerr 
GregP123 Ownz + Sean Ownz - GregP123 Cheers Sean! - chaosnite192 A beer for awesomeness! - Roguez Keep up the great works on the hacks. - Kyle No Message - jordandll 
Green - JMT420 Gold - Andrex2x Burgundy - Adamaniac Black - gogo_salem Black - shaolin786 
Dark Blue - aaronchanhongsen Gold - bmwm4 Green - hyperzuz Black - gogo_salem Gold - Roguez 
Burgundy - Torai Gold - Denipie 
Quote:
Originally Posted by Slugsnack View Post
[COLOR=\"blue\"]Have just read this thread. First off.. I want to strongly advise you against using this method. I know it is possible but it is really not smart. The code for APIs differ for different machines and different systems so there is a good chance your code will not function correctly on other systems especially if have modified bits and pieces.

Now then, for your main question. Yes, GetPixel does enter kernelspace if used correctly. Go to OllyDbg and press Ctrl-G (on an application which maps gdi32.dll) and enter GetPixel. See that it eventually makes a CALL ?

Click the call and press enter to follow it. You will probably see something like this :[/color]

Code:
773ECCC6    B8 C6100000     MOV EAX,10C6
773ECCCB    BA 0003FE7F     MOV EDX,7FFE0300
773ECCD0    FF12            CALL DWORD PTR DS:[EDX]
773ECCD2    C2 0C00         RETN 0C
[COLOR=\"Blue\"]0x7FFE0300 is your system-call API structure member and 0x10C6 is your ServiceID for this function. I'm not gonna say much more now because I do know a bit more about kernelmode but it's not something I'm comfortable talking about right now.. (don't feel like saying something wrong and looking like a ****tard lol).

If you REALLY must use your method instead of a trampoline.. what I suggest you do is to fetch the bytes of GetPixel dynamically and store it in a buffer and then write them back to an empty procedure when you want to use them. You will need to do it before GameGuard starts though. That way you can ensure the GetPixel you have is the correct copy for the system your application is running on.[/color]
this is where dynamically fetching the first 5 bytes presents a problem. on Rakion for example, all methods of injecting a dll before gg fully loads are patched. I guess the only reason trampolining works on Gunbound is because both gme's are loaded at the same time (right when you click start game).
__________________


Hacks of mine that you can get if you buy premium:
  • Gunz Multi Hack (IJJI)
  • Wolfteam Multi Hack (WIS, WLS)
  • Gunbound Multi Hack (GBNA, GIS, GBEU)
  • Rakion Legit Hack (RIS, RLS, RSS)
So support GzN, buy premium, and start hacking today!
  #18  
Old 09-12-2008, 12:23 AM
X-Staff
 
Last Online: 11-16-2008 03:35 AM
Join Date: Jun 2006
Location: England
Posts: 4,729
Blog Entries: 10
Thanks: 185
Thanked 1,188 Times in 638 Posts
Nominated 2 Times in 1 Post
TOTW/F/M Award(s): 0
Latest Blog: Exam Results
Rep Power: 23
Slugsnack has a spectacular aura aboutSlugsnack has a spectacular aura aboutSlugsnack has a spectacular aura about
Points: 976.20
Bank: 161,489.27
Total Points: 162,465.47
You need to stay healthy. :D - Kyle Marked as kashin's property. - kashin snack for slugs and worms - Ken Cheers! Youve finally got your dick to go past 1 inch. Rofl jk sluggy =P - choad Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS!!! Give Me Some SNACKS! - choad 
Gold - GodChaos Green - Slugsnack Gray - Slugsnack Gold - Slugsnack Lavender - Purple_Haze 
Dark Blue - Slugsnack Burgundy - Slugsnack Brown - Slugsnack Black - Slugsnack