Flash Layer injection?
Hello everyone,
I'm trying to learn how to do flash layer injection it's hard because I don't know what I am doing (broken image removed).
Bascially I'm trying to call a few functions inside Flash using VB6 using layer injection.
Okay let me list a few things.
Here is the game I'm trying to make a bot for.
http://clubbing.com/Pages/Games/Chickti ... ionary.swf
to play it you have to sign up for clubbing.com
pretty much you play this game and win actual real prizes.
Now it loads it fine in Sothink decompiler.
the Chicktionary class which has this function when you type something on keyboard
private function onType(param1:KeyboardEvent) : void
{
// Jump to 8;
var _loc_2:* = String.fromCharCode(param1.charCode);
if (param1.charCode < 123 && param1.charCode > 64 && currentAnswer.indexOf(_loc_2.toLowerCase()) > -1)
{
addLetter(_loc_2.toLowerCase());
}
else if (param1.charCode == 8)
{
deleteLetter();
}
else if (param1.charCode == 13)
{
submitWord(currentWord);
}
else
{
SoundManager.play("BirdUhOh2");
}// end else if
checkWord(currentWord);
return;
// Jump to 155;
}// end function
I'm guessing I'd have to use
public function submitWord(word:String, isWordDuplicate:Boolean = true) : void
The Chicktionary class is loaded inside
com.blockdot.msn.chicktionary.Chicktionary
so with layer injection I attempted this.
Created a new flash project file. In the first frame set actionscript
Assuming 't,e,s,t' letters are in the chickens.
onEnterFrame = function () {
com.blockdot.msn.chicktionary.Chicktionary.submitWord('test');
}
when attempting to compile it to SWF i get a few errors
Pretty much when I load that layer using VB6 it should be able to submit a word then again it will have to be a bit more advanced to support all kinds of words most likely looking like this
import flash.external.ExternalInterface;
// Register all the externally available functions
ExternalInterface.addCallback("haxSubmitWord", com.blockdot.msn.chicktionary.Chicktionary.submitWord);
//ExternalInterface.addCallback("haxStartGame", /*Presses New Game button*/);
//etc etc
But i keep getting compiler errors no idea why...
1120: Access of undefined property com.
Also maybe the whole thing won't work like this because Chicktionary has to be constructed into a instance.
Here is a ActionScript2 Layer Injection DrkGodz made
http://drkgodz.hobo-studios.org/blog/?page_id=224
(broken image removed)
obviously because com. doesn't exist somehow i've seen this done before i have no clue
No point in bytecode hacking this game you will not get any prizes.. I've packet hacked this before didn't get anything played it using a pixel/auto typer bot got 1 one so they have some cheater detection, but pixel/auto type bots are not flawless they mess alot can't really run minimized that well so I'm trying to fix that with layer injection.