Advertisement
CybEl

advanced

Jun 18th, 2018
2,380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.29 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Threading;
  7.  
  8.  
  9.  
  10. namespace ConsoleApp1
  11. {
  12.  
  13.  
  14.  
  15. public class Program
  16. {
  17.  
  18.  
  19. public static int Base = 0x04E4DBC; //This is the Base address for health offset
  20. public static int Health = 0xF4; //This is the health offset XD
  21.  
  22. public static int SBase = 0x004DF73C; //speed base address and also the low grav base address but i will be lazy and just make a new in XDDD
  23. public static int speed = 0x7C; //speed offset, 0 is off and to like 12 is max speed option!
  24.  
  25. public static int LowGravBase = 0x004DF73C; //low grav base address same as speed base address
  26. public static int GravityOffset = 0x54; //low grav offset to point
  27.  
  28. public static int PlayerName1 = 0x004D80B4;
  29. public static int PlayerOffset = 0x0;
  30.  
  31. public static int GunBaseAddress = 0x004DF73C;
  32. public static int GunOffset = 0x7F;
  33.  
  34.  
  35.  
  36. static void Main(string[] args)
  37. {
  38. VAMemory vam = new VAMemory("ac_client"); //we declare the process we are using with the VAMemory refrence we added earlier
  39. Console.WriteLine("==========================================="); //these lines here are just a title, bc why not XD
  40. Console.WriteLine("Ultimate Assault Cube Hack by Cyborg Elf");
  41. Console.WriteLine("===========================================");
  42.  
  43. //int PlayerName = vam.ReadInt32((IntPtr)PlayerOffset);
  44. //int address3 = PlayerName + PlayerOffset;
  45. //string NameString = address3.ToString();
  46. //string NameString2 = PlayerName1.ToString();
  47. //string PlayerNam1 = address3.ToString();
  48.  
  49. // Console.WriteLine("Welcome " + (NameString) + (NameString2));
  50.  
  51.  
  52.  
  53.  
  54. int LocalPlayer1 = vam.ReadInt32((IntPtr)Base); //pointing
  55.  
  56. int LocalPlayer2 = vam.ReadInt32((IntPtr)SBase); //pointing
  57.  
  58. int LocalPlayer3 = vam.ReadInt32((IntPtr)GravityOffset); //pointing
  59.  
  60. int LocalPlayer4 = vam.ReadInt32((IntPtr)GunOffset);
  61.  
  62.  
  63.  
  64. while (true) //this means always true
  65. {
  66.  
  67. Console.Title = "Assult Cube Hack"; //setting console title so things look perrrty
  68.  
  69. int address = LocalPlayer1 + Health; //same thin as earlier, adding together the addy's/offsets like I showed in that diagram
  70. int address1 = LocalPlayer2 + speed; //adding together the addy's/offsets like I showed in that diagram
  71. int address2 = LocalPlayer3 + GravityOffset; //same as above
  72. int address3 = LocalPlayer4 + GunOffset;
  73.  
  74.  
  75.  
  76. string YNspeed = ""; //same thing as ^
  77.  
  78. string LowGravYN = ""; // making a yes or no string like earlier for no grav question!
  79.  
  80. string GunYN = "";
  81.  
  82. //=======================================================
  83. Console.WriteLine("Select from the following options:");
  84. Console.WriteLine("[1] Superspeed");
  85. Console.WriteLine("[2] Fast Fall");
  86. Console.WriteLine("[3] Set Health to 9999");
  87. Console.WriteLine("[4] Make gun invisible!");
  88. Console.WriteLine("");
  89. string Select = "";
  90. Select = Console.ReadLine();
  91. if (Select == "1")
  92. {
  93. Console.WriteLine("You have selected super speed!");
  94. Thread.Sleep(100); //useful to min the use of cpu, essen telling code wait a second
  95.  
  96.  
  97. Console.WriteLine("How fast do you want to go?"); //showing options of # user can enter for diffrent speed settings
  98. Console.WriteLine("Semi Fast [1]");
  99. Console.WriteLine("Sonic Fast [2]");
  100. Console.WriteLine("Supah Fast [3] ");
  101.  
  102.  
  103. YNspeed = Console.ReadLine(); //same thing as earlier, setting the speed variable to whatever user entered
  104. if (YNspeed == "1")
  105. {
  106. vam.WriteInt32((IntPtr)address1, 2); // if user eneters a 1 speed is set to 2
  107. }
  108. else if (YNspeed == "2")
  109. {
  110. vam.WriteInt32((IntPtr)address1, 4); // if user eneters a 2 speed is set to 4
  111. }
  112. else if (YNspeed == "3")
  113. {
  114. vam.WriteInt32((IntPtr)address1, 10); // if user eneters a 3 speed is set to 10
  115. }
  116. else
  117. {
  118. vam.WriteInt32((IntPtr)address1, 0); //writting the speed
  119. Console.WriteLine("You entered and invalid response, super speed will be turned off!");
  120. }
  121. Thread.Sleep(100); //help cpu rest xd
  122.  
  123. }
  124. else if (Select == "2")
  125. {
  126. Console.WriteLine("You have selected Fast Fall!");
  127. Console.Write("Do you want to enable Fast Fall? [Y/N]: ");
  128. LowGravYN = Console.ReadLine();
  129.  
  130. if (LowGravYN == "Y") //if user types Y aka yes do below thing
  131. {
  132.  
  133. //the no grav wont work! idk y, it owkred in cheat engine
  134.  
  135. Console.WriteLine("The Fast Fall is enabled!");
  136. }
  137. else if (LowGravYN == "N") //user put no xd what a scrub
  138. {
  139. Console.WriteLine("Okay we don't give you cookie!!");
  140. }
  141. else
  142. {
  143. Console.WriteLine("Invalid Response, please take a minute and think how to speel!");
  144. }
  145. }
  146. else if (Select == "3")
  147. {
  148. Console.WriteLine("Enjoy the health!");
  149.  
  150. vam.WriteInt32((IntPtr)address, 999999999); //writting the health value, self explanatory
  151. }
  152. else if (Select == "4")
  153. {
  154. Console.WriteLine("Do you want invisible gun? [Y/N]: ");
  155. GunYN = Console.ReadLine();
  156. if (GunYN == "Y")
  157. {
  158. vam.WriteInt32((IntPtr)address3, 1);
  159. }
  160. else
  161. {
  162. vam.WriteInt32((IntPtr)address3, 0);
  163. }
  164. }
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174. //==========================================================
  175. //relates back to old if
  176. if (LowGravYN == "Y")
  177. {
  178. while (true)
  179. {
  180. vam.WriteInt32((IntPtr)address2, 1); //writting the the fast fall, hahahahahahahhah i messed up and made no fall not no grav, ill make a no grav later LOL!
  181.  
  182.  
  183.  
  184. }
  185. }
  186.  
  187.  
  188. }
  189. }
  190. }
  191. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement