You are viewing our Forum Archives. To view or take place in current topics click here.
GTA Find Rank Offset method + set rank [Needs Testing!!!!]
Posted:

GTA Find Rank Offset method + set rank [Needs Testing!!!!]Posted:

ip
  • 2 Million
Status: Offline
Joined: Dec 30, 201211Year Member
Posts: 3,778
Reputation Power: 3016
Status: Offline
Joined: Dec 30, 201211Year Member
Posts: 3,778
Reputation Power: 3016
Well, I'm just going to go ahead and post this here. I am in need of people to test this as I am not online and I just wanted to see if it worked. It's dirty code, I know. I typed it in 45 mins so don't complain. This was a method from tu15 but I have updated the offsets so it should work, but I could be wrong. You may get an error with the Jtag.GetMemory method. If you know what you are doing, I'm sure you can fix it. :p

public void Find_Rank()
{
   try
   {
      MessageBox.Show("Searching for Rank offsets");
      for (int index = 0; index < 0x2FFFFF; index++)
         uint_13[index] = 0;
      int_3 = 0;
      byte[] numArray1 = new byte[0x2FFFFF];
      Jtag.GetMemory(0xCCB00007, numArray1);
      byte[] byte_2 = new byte[4] { 0xFA, 0x3E, 0x19, 0x99 };
      byte[] bytes = new bytes[4];
      for (int index = 0; index < int_3; index++)
      {
         GetMemory(uint_13[index], bytes);
         if (Enumerable.SequenceEqual<byte>((IEnumerable<byte>) bytes, (IEnumerable<byte>) numArray2))
         {
            uint_14[int_4] = uint_13[index]
            int_4++;
         }
      }
      MessabeBox.Show("Rank Found");
   }
}


Now to call it in a button. Make sure the textbox used with this is called textbox1.Text or it may not work.
try
{
   byte[] bytes = BitConverter.GetBytes(Convert.ToInt32(textBox1.Text));
   Array.Reverse((Array)bytes);
   for (int index = 0; index < int_4; index++)
      Jtag.SetMemory(uint_14[index] - 9B, bytes);
}
catch (Exception)
{
}

The following 4 users thanked ip for this useful post:

Psychonauts (09-28-2014), xChillest (09-28-2014), Cartier (09-28-2014), tell (09-28-2014)
#2. Posted:
Cartier
  • V5 Launch
Status: Offline
Joined: Mar 04, 201212Year Member
Posts: 1,975
Reputation Power: 107
Status: Offline
Joined: Mar 04, 201212Year Member
Posts: 1,975
Reputation Power: 107
I wish I still had my RGH. This is really helpful stuff for the community though! Thanks for posting!
#3. Posted:
xChillest
  • Christmas!
Status: Offline
Joined: Jul 30, 201212Year Member
Posts: 2,396
Reputation Power: 123
Status: Offline
Joined: Jul 30, 201212Year Member
Posts: 2,396
Reputation Power: 123
Just a hint to everyone that wants to update it, this is for TU15 and there's only one offset that needs to be updated. Have fun ;)


@Liubiliteh, <3
#4. Posted:
ip
  • TTG Contender
Status: Offline
Joined: Dec 30, 201211Year Member
Posts: 3,778
Reputation Power: 3016
Status: Offline
Joined: Dec 30, 201211Year Member
Posts: 3,778
Reputation Power: 3016
xChillest wrote Just a hint to everyone that wants to update it, this is for TU15 and there's only one offset that needs to be updated. Have fun ;)


@Liubiliteh, <3
You ruined my plan m8. It's forever lost now thanks to all the people that don't know the difference between a void and a button. rip in peace.
#5. Posted:
Chugs
  • Challenger
Status: Offline
Joined: Sep 07, 201410Year Member
Posts: 175
Reputation Power: 6
Status: Offline
Joined: Sep 07, 201410Year Member
Posts: 175
Reputation Power: 6
Liability wrote
xChillest wrote Just a hint to everyone that wants to update it, this is for TU15 and there's only one offset that needs to be updated. Have fun ;)


@Liubiliteh, <3
You ruined my plan m8. It's forever lost now thanks to all the people that don't know the difference between a void and a button. rip in peace.

Rest in peace in peace. #wat :wat:
#6. Posted:
Botch
  • TTG Senior
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
Why are you casting a byte array as an array? o_0
Also, this looks suspiciously like decompiled code... but whatever, nice release I guess?
#7. Posted:
ISIS
  • Resident Elite
Status: Offline
Joined: Sep 11, 201410Year Member
Posts: 268
Reputation Power: 14
Status: Offline
Joined: Sep 11, 201410Year Member
Posts: 268
Reputation Power: 14
Botch wrote Why are you casting a byte array as an array? o_0
Also, this looks suspiciously like decompiled code... but whatever, nice release I guess?
That makes no sense at all. How can you tell if its decompiled or not?
#8. Posted:
Chugs
  • Challenger
Status: Offline
Joined: Sep 07, 201410Year Member
Posts: 175
Reputation Power: 6
Status: Offline
Joined: Sep 07, 201410Year Member
Posts: 175
Reputation Power: 6
AnimeHypedUp wrote
Botch wrote Why are you casting a byte array as an array? o_0
Also, this looks suspiciously like decompiled code... but whatever, nice release I guess?
That makes no sense at all. How can you tell if its decompiled or not?

Obviously with his magic ****
#9. Posted:
vSmithy
  • TTG Natural
Status: Offline
Joined: Jan 30, 201014Year Member
Posts: 935
Reputation Power: 45
Status: Offline
Joined: Jan 30, 201014Year Member
Posts: 935
Reputation Power: 45
AnimeHypedUp wrote That makes no sense at all. How can you tell if its decompiled or not?


Look at the variable names. Funnily enough, that's how they will show up after deobfuscating. It's very bad practice to name all variables like that (ie str1, str2, str3) as it's easy to lose track of which one holds which value and so most (<99%) programmers won't do it - however, a deobfuscator can't tell the meaning of the values assigned to each variable, and so it will assign them generic names. The only reason you would deobfuscate something in the first place is so that you can then decompile it.

If i'm wrong and it's not decompiled then w/e. It's early and my brain isn't functioning properly yet.
#10. Posted:
Botch
  • TTG Senior
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
AnimeHypedUp wrote
Botch wrote Why are you casting a byte array as an array? o_0
Also, this looks suspiciously like decompiled code... but whatever, nice release I guess?
That makes no sense at all. How can you tell if its decompiled or not?

As vSmithy said, variable names in decompiled code are their data type followed by a number, which all of his variables are. No programmer, especially one programming with concepts as complex as these, names their variables like that, as it's terrible practice. Also, he uses numbers that aren't valid in any high-level language: at one point he subtracts a '9B' value. It's not decimal, it's not binary, but it's not hexadecimal either considering there is no '0x' notation preceding it.

I don't know, I might be wrong, but it seems to be decompiled code. No hate to anyone though.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.