 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Mon Oct 20, 2008 1:04 pm Post subject: [Solved] How is this done? |
|
|
I know that this is on the edge of sounding like a noobish question, however it continues to stump me.
How does this website achieve being able to "read" certain values from a specific flash game, or rather, how are they doing this?
http://www.kongregate.com/games/Louissi/age-of-war
For example, with this game, it counts how many units have been killed, how many trained, and if you've completed the game. How?
Thanks.  _________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair.
Last edited by --Pillboi-- on Wed Oct 22, 2008 4:47 am; edited 1 time in total |
|
| Back to top |
|
 |
Innovation Grandmaster Cheater
Reputation: 12
Joined: 14 Aug 2008 Posts: 617
|
Posted: Mon Oct 20, 2008 2:43 pm Post subject: |
|
|
I don't think it is possible to send information to a flash game but I know that the flash game can send information to something. I think it might be sending it into a separate frame that refreshes every new message sent to it but I can't really tell for sure.
I am probably wrong... |
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Mon Oct 20, 2008 2:49 pm Post subject: |
|
|
Unfortunately, it can't be that simple, as those games are not made by them, and cannot be edited by them. _________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Mon Oct 20, 2008 7:02 pm Post subject: |
|
|
It looks like another peice of flash loads the game instead of the webpage loading it directly. Maybe there's some way the loader is interfacing with it since they're both flash? _________________
|
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Tue Oct 21, 2008 1:05 pm Post subject: |
|
|
Yes, that can be done, however, their is still the problem of finding certain values within the game. Can this be done using flash on another swf?
Or, I suppose, they could have decompiled the game and added code to it, but I doubt it, as it would take a long time. What do you think?
Edit : I am not sure, but it seems you can get variables from Flash using javascript, and this could be the method they are using, although it seems unlikely. I have yet to search the source properly.
Edit 2 : You can get pixel colour of a position on the page using flash or java, maybe this is the technique they use to detect score, but it doesn't work for deaths.
I did a few tests, just to rule out some possibilities: No data is transferred to or from the server. _________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
Spawnfestis GO Moderator
Reputation: 0
Joined: 02 Nov 2007 Posts: 1746 Location: Pakistan
|
Posted: Tue Oct 21, 2008 1:39 pm Post subject: |
|
|
| --Pillboi-- wrote: | Yes, that can be done, however, their is still the problem of finding certain values within the game. Can this be done using flash on another swf?
Or, I suppose, they could have decompiled the game and added code to it, but I doubt it, as it would take a long time. What do you think?
Edit : I am not sure, but it seems you can get variables from Flash using javascript, and this could be the method they are using, although it seems unlikely. I have yet to search the source properly.
Edit 2 : You can get pixel colour of a position on the page using flash or java, maybe this is the technique they use to detect score, but it doesn't work for deaths.
I did a few tests, just to rule out some possibilities: No data is transferred to or from the server. |
I thought of Javascript the moment I entered the thread. _________________
CLICK TO HAX MAPLESTORAY ^ !!!! |
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Wed Oct 22, 2008 2:15 am Post subject: |
|
|
Great to have you on board spawn.
I just had a great idea, turn of javascript, and play. I'll post the results in a second.
Edit : Neither the game or the chat box even showed when javascript was turned off, so it's a possibility. However, the chat box shows certain things, like "You've reached a highscore", so I assume, if it's javascript, it would have to get the variable from the game and pass it to the chat box.
I was wondering if their was a flash alternative for getvariable?
This would just mean it was a lot easier and a lot more flexible.
Edit 2 : Because the variable name is needed in order to get it's value, this means we have to find it in some way. How would we go about this? (Sorry, never hacked flash before ) From the little I know, I suppose we just have to hope that they are not dynamic.
Edit 3 : I can't find any info on hacking a flash file from another flash file on the internet because the only results I get ar for cheatengine and shiftu-hacks  _________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
nog_lorp Grandmaster Cheater
Reputation: 0
Joined: 26 Feb 2006 Posts: 743
|
Posted: Wed Oct 22, 2008 2:53 am Post subject: |
|
|
I've seen several flash files that load and interact with other flash files. I'm also pretty sure that flash can interact with Javascript variables. _________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish |
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Wed Oct 22, 2008 3:14 am Post subject: |
|
|
| nog_lorp wrote: | | I've seen several flash files that load and interact with other flash files. I'm also pretty sure that flash can interact with Javascript variables. |
Yes, they can. However, we need it the other way, we need to get variables from a flash game from another swf or if it has to be, javascript.
Edit : Wow! Even using javascript it's incredibly easy to hack a game! That's scary.
| Code: | <head>
<script language="Javascript" type="text/javascript">
function getFlashMovieObject(movieName){
if (window.document[movieName]){
return window.document[movieName];
} if (navigator.appName.indexOf("Microsoft Internet")==-1){
if (document.embeds && document.embeds[movieName])
return document.embeds[movieName];
} else {
return document.getElementById(movieName);
}
} function ReceiveDataFromFlashMovie(){
var flashMovie=getFlashMovieObject("movie");
var message=flashMovie.GetVariable("/:cash");
output.value=message;
} function SendDataToFlashMovie(){
var flashMovie=getFlashMovieObject("movie");
flashMovie.SetVariable("/:cash", output2.value);
}
</script>
</head>
<body>
<object width="550" height="400">
<param name="movie" value="http://207.218.234.34/ageofwarupdate1MzYx.swf">
<embed name="movie" src="http://207.218.234.34/ageofwarupdate1MzYx.swf" width="550" height="400">
</embed>
</object>
<br><input type="text" name="output" id="output"><button onclick="ReceiveDataFromFlashMovie();">Get</button>
<br><input type="text" name="output2" id="output2"><button onclick="SendDataToFlashMovie();">Set</button>
</body> |
Would embedding a flash game inside of a flash loader make it more difficult to hack?
If it does, then javascript will still not do, as it can also be hacked easily. _________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
Spawnfestis GO Moderator
Reputation: 0
Joined: 02 Nov 2007 Posts: 1746 Location: Pakistan
|
Posted: Wed Oct 22, 2008 8:23 am Post subject: |
|
|
| --Pillboi-- wrote: | | nog_lorp wrote: | | I've seen several flash files that load and interact with other flash files. I'm also pretty sure that flash can interact with Javascript variables. |
Yes, they can. However, we need it the other way, we need to get variables from a flash game from another swf or if it has to be, javascript.
Edit : Wow! Even using javascript it's incredibly easy to hack a game! That's scary.
Would embedding a flash game inside of a flash loader make it more difficult to hack?
If it does, then javascript will still not do, as it can also be hacked easily. |
Things such as dynamic memory could easily trick the "beginner" hackers (those who usually hack Flash Games).
So really, all you have to do when you create a flash game is that you protect it for beginners not to be able to search like on the exact score or whatever.
For example, defining a variable in AS3 that changes dynamically could be something like this.
| Code: | //Global variables
var fakeScore:int = 0; //score label var
var realScore:int = 0; //start score
var dynamic:Number = 0; //the dynamic container
// Constructor
dynamic = Math.random() * 9 + 1; //dynamic container now contains a value from 1 to 10
// Insert gameloop and include makeDynamic()
private function makeDynamic() {
fakeScore = realScore;
realScore += dynamic; //this will be used until we are dead/the game ends.
}
//Die or end-game function/routine here
realScore -= dynamic;
//And then call your highschore list with 'realScore' as an argument
|
Now, of course this could be done like a crc, and what not - it's easy to make.
It was just an example of how you can trick the users, EASILY. _________________
CLICK TO HAX MAPLESTORAY ^ !!!!
Last edited by Spawnfestis on Wed Oct 22, 2008 11:10 am; edited 1 time in total |
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Wed Oct 22, 2008 8:35 am Post subject: |
|
|
True, true. I'm actually quite interested into getting into flash, it looks like fun! However... I cannot buy one of the mainstream flash "compilers". I wonder, are there any good free ones? :P _________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
Spawnfestis GO Moderator
Reputation: 0
Joined: 02 Nov 2007 Posts: 1746 Location: Pakistan
|
Posted: Wed Oct 22, 2008 8:38 am Post subject: |
|
|
| --Pillboi-- wrote: | True, true. I'm actually quite interested into getting into flash, it looks like fun! However... I cannot buy one of the mainstream flash "compilers". I wonder, are there any good free ones?  |
There is other ways than buying it
What you're looking for is Adobe Flash CS3 (if CS4 is out, get it!)
Ah and the reason why you would want CS4 is because it has a shitload of useful features in it.
One is that it can transform 2D objects into 3D, and you can set a "skeleton form" on 2D Objects (meaning you can pull in a characters leg and it moves its leg and not the whole image ) _________________
CLICK TO HAX MAPLESTORAY ^ !!!! |
|
| Back to top |
|
 |
--Pillboi-- Grandmaster Cheater Supreme
Reputation: 0
Joined: 06 Mar 2007 Posts: 1383 Location: I don't understand the question. Is this a 1 to 10 thing?
|
Posted: Wed Oct 22, 2008 8:57 am Post subject: |
|
|
Haha, I know, but all the *cough* places that you can get it for free are either infected, or have their files hosted at rapidshare.
Those features sound sweeet!
All adobe's software are expensive. I mean, seriously, $700!
I don't know, I've always felt a bit uneasy about *cough* free software. _________________
Enter darkness, leave the light, Here be nightmare, here be fright...
Earth and Water, Fire and Air. Prepare to meet a creature rare.
Enter now if you dare, Enter now the dragon's lair. |
|
| Back to top |
|
 |
Spawnfestis GO Moderator
Reputation: 0
Joined: 02 Nov 2007 Posts: 1746 Location: Pakistan
|
Posted: Wed Oct 22, 2008 9:02 am Post subject: |
|
|
| --Pillboi-- wrote: | Haha, I know, but all the *cough* places that you can get it for free are either infected, or have their files hosted at rapidshare.
Those features sound sweeet!
All adobe's software are expensive. I mean, seriously, $700!
I don't know, I've always felt a bit uneasy about *cough* free software. |
Adobe is aware of the piracy and they don't intend to make money out of their products within personal computers, exception of their "personal" editions such as Photoshop Elements.
Sadly, to gain interest or knowledge with flash you need Adobe Flash, and not everyone have the option to study or get a job with it (usually you get hired if you already know the language, they don't teach you.) so it shouldn't be a biggie if you downloaded that really. :p _________________
CLICK TO HAX MAPLESTORAY ^ !!!! |
|
| Back to top |
|
 |
Hieroglyphics I post too much
Reputation: 0
Joined: 06 Dec 2007 Posts: 2007 Location: Your bedroom
|
Posted: Wed Oct 22, 2008 9:10 am Post subject: |
|
|
Lol, for flash games you can use javascript to hack. So basically you can make a website that is a trainer? _________________
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|