Thread: Integer Fixer

Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,669
    My Mood
    Breezy
    Code:
    __declspec(naked) int IntegerFix(int val)
    {
    	__asm {
    		_emit 0x55
    		_emit 0x8B
    		_emit 0xEC
    		_emit 0x8B
    		_emit 0x45
    		_emit 0x08
    		_emit 0x5D
    		_emit 0x05
    		_emit 0x01
    		_emit 0x00
    		_emit 0x00
    		_emit 0x00
    		_emit 0xC3
    	}
    }
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  2. The Following 3 Users Say Thank You to master131 For This Useful Post:

    [MPGH]Flengo (07-28-2013),Plutonsvea (07-30-2013),Saltine (07-28-2013)

  3. #17
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    /admincp/banning.php
    Posts
    20,591
    Reputation
    5180
    Thanks
    14,179
    My Mood
    Inspired
    Quote Originally Posted by master131 View Post
    Code:
    __declspec(naked) int IntegerFix(int val)
    {
        __asm {
            _emit 0x55
            _emit 0x8B
            _emit 0xEC
            _emit 0x8B
            _emit 0x45
            _emit 0x08
            _emit 0x5D
            _emit 0x05
            _emit 0x01
            _emit 0x00
            _emit 0x00
            _emit 0x00
            _emit 0xC3
        }
    }
    Teach us all your ways.
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.

     


     
    VM | PM | IM
    Staff Administrator Since 10.13.2019
    Publicist Since 04.04.2015
    Middleman Since 04.14.2014
    Global Moderator Since 08.01.2013
    Premium Since 05.29.2013

    Minion+ Since 04.18.2013

    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  4. #18
    Nico's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Germany :D
    Posts
    15,918
    Reputation
    1121
    Thanks
    8,617
    Code:
    class IntegerFix{
    
    	public:
    	
    	int fixedNumber;
    	
    	IntegerFix(int i)
    	{
    		integer = i;
    	}
    	
    	void Fix()
    	{
    		unsigned long double *fixedNumber = &integer;
    		*fixedNumber = integer + 1;
    		return (unsigned long double)*(&(*fixedNumber));
    	}
    	
    	private:
    		
    	int integer;
    		
    	protected:
    	
    };
    Thought class would be useful for this massive amount of code, it's just cleaner. Credits for fix go to @Gab

  5. The Following 2 Users Say Thank You to Nico For This Useful Post:

    [MPGH]Flengo (07-28-2013),Gab (07-28-2013)

  6. #19
    Gab's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,716
    Reputation
    1755
    Thanks
    1,543
    Quote Originally Posted by Nico View Post
    Code:
    class IntegerFix{
    
    	public:
    	
    	int fixedNumber;
    	
    	IntegerFix(int i)
    	{
    		integer = i;
    	}
    	
    	void Fix()
    	{
    		unsigned long double *fixedNumber = &integer;
    		*fixedNumber = integer + 1;
    		return (unsigned long double)*(&(*fixedNumber));
    	}
    	
    	private:
    		
    	int integer;
    		
    	protected:
    	
    };
    Thought class would be useful for this massive amount of code, it's just cleaner. Credits for fix go to @Gab
    Thanks a lot! I didn't even know a "void" function could return a "unsigned long double"!
    Great class!

  7. The Following User Says Thank You to Gab For This Useful Post:

    [MPGH]Flengo (07-28-2013)

  8. #20
    Nico's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Germany :D
    Posts
    15,918
    Reputation
    1121
    Thanks
    8,617
    Quote Originally Posted by Gab View Post


    Thanks a lot! I didn't even know a "void" function could return a "unsigned long double"!
    Great class!
    My bad, while leec *cough* I mean analyzing your code I totally forgot to remove that line.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Release] DISCONNECTION FIXER Prg V3.0 wrks on any drive, any path to CA! 1/2/09
    By groundwalker in forum Combat Arms Hacks & Cheats
    Replies: 159
    Last Post: 01-22-2009, 01:53 PM
  2. [Release] Dc Problem FIXER! 1/1/09
    By groundwalker in forum Combat Arms Hacks & Cheats
    Replies: 21
    Last Post: 01-02-2009, 11:52 PM
  3. [Release] Dc Problem fixer V2.0 1/1/09
    By groundwalker in forum Combat Arms Hacks & Cheats
    Replies: 2
    Last Post: 01-01-2009, 05:08 PM
  4. Random Integer Generator
    By SpiderByte in forum C++/C Programming
    Replies: 12
    Last Post: 02-19-2006, 04:46 AM
  5. Random Integer Generator
    By SpiderByte in forum Art & Graphic Design
    Replies: 6
    Last Post: 01-22-2006, 09:51 AM