Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › BattleOn Games Hacks, Cheats & Trainers › Adventure Quest Worlds (AQW) Hacks / Cheats / Trainers › Swiff Code Injector - cheat on any server

Swiff Code Injector - cheat on any server

Posts 1–15 of 23 · Page 1 of 2
Biney
Biney
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:

 
AddCallback
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);
		}


 
GetProperty
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;
		}


 
SetProperty
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]];
			}
		}


 
TogglePacketLogger
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);
			}
		}


 
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);
			}
		}


 
Game constructor modification
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


SwiffCodeInjector_mpgh.net.zip SwiffCodeInjector-src_mpgh.net.zip
#1 · edited 8y ago · 8y ago
asamortal
asamortal
This is like Deep Web level botting.
Nice one.
#2 · 8y ago
FI
Finneboy3
Link unable, does look useful however

EDIT: Nevermind, realized that it's awaiting approval.
#3 · 8y ago
MC
mchqeen12
do you have video?
#4 · 8y ago
NE
Nevinjom
Looks complicated but good release.

- - - Updated - - -

Please do check your inbox, Biney, sent you a message.
#5 · 8y ago
Dab
Dab
Files approved.
#6 · 8y ago
doremi007
doremi007
Tried but nothing happened. Console stuck on Waiting for the game client response... buts thanks for the work. Good job for this one.
#7 · 8y ago
Biney
Biney
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?
#8 · 8y ago
doremi007
doremi007
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.
#9 · 8y ago
meme
[MPGH]meme
This is a really cool release, I'll make sure to give it a try when I get home today.
#10 · 8y ago
KI
Kimiro147
can u tell me what i can do with that?
#11 · 8y ago
meme
[MPGH]meme
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.
#12 · 8y ago
AL
alphablademaster
can anyone make redaq loaders i really need it
#13 · 8y ago
AR
arazielz
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.
#14 · edited 8y ago · 8y ago
NU
nursaleh34
how to send the packet..?
#15 · 8y ago
Posts 1–15 of 23 · Page 1 of 2

Post a Reply

Similar Threads

  • GOTV CAN SPECTATE YOU CHEATING ON ANY SERVER?By n4st in Counter-Strike 2 Discussions
    3Last post 7y ago
  • Undeck Lite || GUI Source Code Edit || Injector & CheatBy Bobby in Counter-Strike 2 Coding & Resources
    0Last post 8y ago
  • Any bases/source codes to start coding internal cheats for CSS?By 4773n0x in CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    3Last post 10y ago
  • Is there any Server, that has like a Lazy Admin, Where you can cheat easily?By magi332m in DayZ Mod & Standalone Hacks & Cheats
    2Last post 14y ago

Tags for this Thread

#code#hack#inject#modify#private#swf