Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    Biney's Avatar
    Join Date
    Aug 2016
    Gender
    male
    Posts
    833
    Reputation
    94
    Thanks
    15,101
    My Mood
    Devilish

    Swiff Code Injector - cheat on any server

    Hello.
    I had an idea that I decided to test out, and here is the result. This program automatically injects code into the game client .swf file before your browser receives it. It uses Fiddler and RABCDAsm.

    I've tested this on AQW and multiple private servers, it worked for all of them.

    Do note however, there is currently no error checking whatsoever in the program so it may be unstable. I might work on that if people use this.

    Here's a more precise description of what it does:

    First, it waits for the specified game client to be requested. Once the response is received from the server (which contains the swf) it exports the byte code of it, disassembles it, modifies it, assembles the modified code, and replaces the code in the swf. The swf in the response is then replaced with the modified swf.

    Five different methods are injected:

     
    This method allows you to add ExternalInterface callbacks to a method in the game client.

    Code:
    public function AddCallback(callbackName:String, methodPath:String):void
    		{
    			var arr:Array = methodPath.split(".");
    			
    			var method:Function = null;
    			
    			var tempObj:* = this;
    			
    			for (var i:int = 0; i < arr.length; i++)
    			{
    				if (i == (arr.length - 1))
    					method = tempObj[arr[i]];
    				else
    					tempObj = tempObj[arr[i]];
    			}
    			
    			ExternalInterface.addCallback(callbackName, method);
    		}


     
    This method allows you to get the value of a property in the game client.

    Code:
    public function GetProperty(path:String):*
    		{
    			var arr:Array = path.split(".");
    			
    			var property:* = this;
    			
    			for (var i:int = 0; i < arr.length; i++)
    			{
    				property = property[arr[i]];
    			}
    			
    			return property;
    		}


     
    This method allows you to set the value of a property in the game client.

    Code:
    public function SetProperty(path:String, value:*):void
    		{
    			var arr:Array = path.split(".");
    			
    			var property:* = this;
    			
    			for (var i:int = 0; i < arr.length; i++)
    			{
    				if (i == (arr.length - 1))
    					property[arr[i]] = value;
    				else
    					property = property[arr[i]];
    			}
    		}


     
    This method allows you to log packets (I added this just in case somebody makes a bot and wants this functionality).

    Code:
    public function TogglePacketLogger(activate:Boolean):void
    		{
    			var obj:* = this["sfc"];
    			
    			if (activate)
    			{
    				obj.addEventListener("onDebugMessage", OnDebugMessage);
    			}
    			else
    			{
    				obj.removeEventListener("onDebugMessage", OnDebugMessage);
    			}
    		}


     
    This method is required for the packet logger to work.

    Code:
    public function OnDebugMessage(e:*):void
    		{
    			if (e.params.message.indexOf("%xt%zm%") > -1)
    			{
    				var debugMessage:String = e.params.message;
    				var s:String = "[Sending - STR]: ";
    			
    				if (debugMessage.indexOf(s) > -1)
    				{
    					debugMessage = debugMessage.replace(s, "");
    				}
    				
    				ExternalInterface.call("packet", debugMessage);
    			}
    		}


     
    This code is injected into the Game (main game client class) constructor. This will allow you to call the injected methods through ExternalInterface.

    Code:
                           ExternalInterface.addCallback("AddCallback", this.AddCallback);
    			ExternalInterface.addCallback("GetProperty", this.GetProperty);
    			ExternalInterface.addCallback("SetProperty", this.SetProperty);
    			ExternalInterface.addCallback("TogglePacketLogger", this.TogglePacketLogger);


    Usage example

    This example will show you how to load a quest in AQW. The process is the same for private servers.

    First we need to find the url of the game client. So let's go to https://www.aq.com/game/
    Right click the page, inspect element and then select the network tab. Refresh the page. Copy the url of the game client and save it.



    Now, for everything to work you need to clear your cache, and restart your browser. I will assume that you know how to do that.

    Start SwiffCodeInjector.exe. Righ click the window border, select Edit -> Paste and then press enter.



    Now, open your browser again and back to https://www.aq.com/game/
    Once the page loads, you should see new messages in the console window. If everything is successful, the game in your browser has loaded and this is the console output:



    You can now close the injector.

    Now we need to find the id of the flash player on the page. Right click the page and click View source. Somewhere in here, there is a script that embeds the game swf. Look for something like this:



    Here we see that the id is "AQWGame". Remember it.

    Now it's time to load a quest. Login to the game and do what you did before to get the client url, except select the Console tab instead.

    This is the method in the game client that is used to load quests:



    It accepts two parameters, the first one being the quest id or ids, the second is the type of quest to load or something like that. It should be set to "q".

    So in the browser console, we first need to call our injected AddCallback method, to add a callback to the showQuests method. AddCallback accepts two parameters, the first one being the name of the new callback (which can be almost anything), the second one being the path to the method we want to add a callback to. showQuests is inside the World class, and an instance of that class is stored in the Game class with the name "world".

    So this is what we type into the console:



    No errors, so it was successful. Now, to call that method we do this:



    And the quests are loaded.



    Now let's try the GetProperty method that was injected. It accepts one parameter, which is the path to a property. This is how you would get your amount of gold:



    Now let's try the SetProperty method that was injected. It accepts two parameters, the first one is the path to a property, the second one is the value you want to set the property to. This is how you would change the username text of your avatar:



    Last but not least, let's look at how to use the packet logger. In order for it to work, you need to define a method called "packet" first, and then call TogglePacketLogger(true); to start it. To stop it, call TogglePacketLogger(false);



    So, that's it. What's good about this method is that it completely bypasses the usual anti-botting measures that some servers have, since the game is loaded in the browser.

    The detections are probably caused by the Fiddler library. But fear not - the source code of Swiff Code Injector is included.

    https://www.virustotal.com/#/file/b5...eb1f/detection
    https://virusscan.jotti.org/en-US/fi...job/dpkwod5skt

    https://www.virustotal.com/#/file/c7...9ac8/detection
    https://virusscan.jotti.org/en-US/fi...job/0c8duih28p


    <b>Downloadable Files</b> Downloadable Files

  2. The Following 35 Users Say Thank You to Biney For This Useful Post:

    aoliveros (06-03-2019),asamortal (05-22-2018),Aurase (05-23-2018),bielziix7 (05-23-2018),BrendanDegrano (05-29-2018),celestialeye (07-19-2018),Chaorruption (05-28-2021),combiy (06-14-2018),Crazyplays (08-14-2019),cumshot123 (03-07-2019),darkalienware01 (05-22-2018),doremi007 (05-22-2018),emoric28 (05-23-2018),Enforcer32 (05-25-2018),fajrimukti (12-18-2019),Finneboy3 (05-22-2018),fudgeBar (05-09-2019),googboog (05-25-2018),hard1212 (12-01-2018),harlanmuradi (02-08-2019),hoangskyht (05-24-2018),JamesRo (05-22-2018),jhozem (05-25-2018),loling123456 (05-25-2018),luis001 (11-22-2018),[MPGH]meme (05-22-2018),MicroInACake (05-24-2018),Nsofreeman (05-25-2018),nursaleh34 (05-24-2018),nzkingenoka (05-25-2018),Oliboli8769 (05-22-2018),pukemo (06-04-2018),ROBUT (03-04-2020),saxvise1147 (07-24-2018),youaregayguy1 (06-14-2018)

  3. #2
    asamortal's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    Mother Base
    Posts
    997
    Reputation
    31
    Thanks
    158
    My Mood
    Cynical
    This is like Deep Web level botting.
    Nice one.
    The Cash Must Flow

  4. The Following User Says Thank You to asamortal For This Useful Post:

    Biney (05-22-2018)

  5. #3
    Finneboy3's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Link unable, does look useful however

    EDIT: Nevermind, realized that it's awaiting approval.

  6. #4
    mchqeen12's Avatar
    Join Date
    May 2017
    Gender
    male
    Posts
    62
    Reputation
    10
    Thanks
    6
    My Mood
    Happy
    do you have video?

  7. #5
    Nevinjom's Avatar
    Join Date
    Dec 2014
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    0
    My Mood
    Amused
    Looks complicated but good release.

    - - - Updated - - -

    Please do check your inbox, Biney, sent you a message.

  8. #6
    Dab's Avatar
    Join Date
    Jun 2015
    Gender
    female
    Posts
    5,427
    Reputation
    663
    Thanks
    9,877
    Files approved.
    Former BattleOn Minion

    If you cannot run trainers please see this thread: https://www.mpgh.net/forum/showthread.php?t=1170564





  9. #7
    doremi007's Avatar
    Join Date
    Feb 2018
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    3
    My Mood
    Asleep
    Tried but nothing happened. Console stuck on Waiting for the game client response... buts thanks for the work. Good job for this one.

  10. #8
    Threadstarter
    We are the CONTRIBUFORCE
    Contributor
    Biney's Avatar
    Join Date
    Aug 2016
    Gender
    male
    Posts
    833
    Reputation
    94
    Thanks
    15,101
    My Mood
    Devilish
    Quote Originally Posted by doremi007 View Post
    Tried but nothing happened. Console stuck on Waiting for the game client response... buts thanks for the work. Good job for this one.
    You either skipped this extremely important step,

    Quote Originally Posted by Biney View Post
    Now, for everything to work you need to clear your cache, and restart your browser.
    or you didn't enter the correct game url.

    If not, what site are you trying it on?

  11. #9
    doremi007's Avatar
    Join Date
    Feb 2018
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    3
    My Mood
    Asleep
    Screenshot
    Did clear cache. Restart Browser.
    Used incognito mode. Restart Browser.
    Used Guest on chrome. Restart Browser.

    Still nothing happened. Might broke on my end. But yeah.

  12. #10
    meme's Avatar
    Join Date
    Jan 2016
    Gender
    male
    Location
    42.434720, -83.985
    Posts
    8,062
    Reputation
    1403
    Thanks
    2,410
    My Mood
    Lurking
    This is a really cool release, I'll make sure to give it a try when I get home today.
    Quote Originally Posted by Hennessy View Post
    meme is shittiest general mod ever.
     
    dd/mm/yy
    Member | 28/1/16 - ∞
    Premium | 20/3/16 - ∞
    BattleOn Minion | 24/12/17 - 21/7/21
    Minion+ | 4/4/19 - 11/12/20
    Other MMMORPG Minion | 10/11/19 - 21/7/21
    Publicist | 7/2/20 - Unknown
    Minecraft Minion | 10/12/20 - 21/7/21
    General Minion | 10/12/20 - 21/7/21

    Moderator | 11/12/20 - 21/7/21
    Princess | 5/1/21 - 30/6/21
    Global Moderator | 21/7/21 - ∞
    Pharaoh | 30/1/22 - ∞
    Trusted Member | 16/3/23 - ∞

  13. #11
    Kimiro147's Avatar
    Join Date
    Apr 2018
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    can u tell me what i can do with that?

  14. #12
    meme's Avatar
    Join Date
    Jan 2016
    Gender
    male
    Location
    42.434720, -83.985
    Posts
    8,062
    Reputation
    1403
    Thanks
    2,410
    My Mood
    Lurking
    Quote Originally Posted by Kimiro147 View Post
    can u tell me what i can do with that?
    It allows you to use trainer related features in the official game client.
    Quote Originally Posted by Hennessy View Post
    meme is shittiest general mod ever.
     
    dd/mm/yy
    Member | 28/1/16 - ∞
    Premium | 20/3/16 - ∞
    BattleOn Minion | 24/12/17 - 21/7/21
    Minion+ | 4/4/19 - 11/12/20
    Other MMMORPG Minion | 10/11/19 - 21/7/21
    Publicist | 7/2/20 - Unknown
    Minecraft Minion | 10/12/20 - 21/7/21
    General Minion | 10/12/20 - 21/7/21

    Moderator | 11/12/20 - 21/7/21
    Princess | 5/1/21 - 30/6/21
    Global Moderator | 21/7/21 - ∞
    Pharaoh | 30/1/22 - ∞
    Trusted Member | 16/3/23 - ∞

  15. #13
    alphablademaster's Avatar
    Join Date
    Apr 2018
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    My Mood
    Cool
    can anyone make redaq loaders i really need it

  16. #14
    arazielz's Avatar
    Join Date
    May 2018
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    1
    My Mood
    Cold
    Quote Originally Posted by doremi007 View Post
    Tried but nothing happened. Console stuck on Waiting for the game client response... buts thanks for the work. Good job for this one.
    Having this same problem when doing it with the official AQW (when the game website opens it says it's not secure, and if I add an exception to enter the website there is only a text saying to refresh the website if the game doesn't load), with augoeides it gets stuck on deleting files created by rabcdasm, also if I close the exe after it gets stuck it will leave the "Use a proxy server for your LAN" option of windows checked, making my internet not work until I uncheck it.
    Last edited by arazielz; 05-23-2018 at 05:38 PM.

  17. #15
    nursaleh34's Avatar
    Join Date
    Apr 2018
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    how to send the packet..?

Page 1 of 2 12 LastLast

Similar Threads

  1. [Info] GOTV CAN SPECTATE YOU CHEATING ON ANY SERVER?
    By n4st in forum Counter-Strike 2 Discussions
    Replies: 3
    Last Post: 11-06-2018, 12:41 PM
  2. [Source Code] Undeck Lite || GUI Source Code Edit || Injector & Cheat
    By Bobby in forum Counter-Strike 2 Coding & Resources
    Replies: 0
    Last Post: 12-23-2017, 05:47 AM
  3. [Request] Any bases/source codes to start coding internal cheats for CSS?
    By 4773n0x in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 3
    Last Post: 05-02-2016, 07:28 AM
  4. [Help] Is there any Server, that has like a Lazy Admin, Where you can cheat easily?
    By magi332m in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 2
    Last Post: 08-31-2012, 01:40 PM

Tags for this Thread