Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Solved] How is this done?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
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?

PostPosted: Mon Oct 20, 2008 1:04 pm    Post subject: [Solved] How is this done? Reply with quote

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. Smile

_________________

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
View user's profile Send private message
Innovation
Grandmaster Cheater
Reputation: 12

Joined: 14 Aug 2008
Posts: 617

PostPosted: Mon Oct 20, 2008 2:43 pm    Post subject: Reply with quote

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
View user's profile Send private 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?

PostPosted: Mon Oct 20, 2008 2:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Mon Oct 20, 2008 7:02 pm    Post subject: Reply with quote

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
View user's profile Send private 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?

PostPosted: Tue Oct 21, 2008 1:05 pm    Post subject: Reply with quote

Yes, that can be done, however, their is still the problem of finding certain values within the game. Wink 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
View user's profile Send private message
Spawnfestis
GO Moderator
Reputation: 0

Joined: 02 Nov 2007
Posts: 1746
Location: Pakistan

PostPosted: Tue Oct 21, 2008 1:39 pm    Post subject: Reply with quote

--Pillboi-- wrote:
Yes, that can be done, however, their is still the problem of finding certain values within the game. Wink 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
View user's profile Send private message Send e-mail MSN Messenger
--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?

PostPosted: Wed Oct 22, 2008 2:15 am    Post subject: Reply with quote

Great to have you on board spawn. Very Happy
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. Confused
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 Wink ) 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 Wink

_________________

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
View user's profile Send private message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Wed Oct 22, 2008 2:53 am    Post subject: Reply with quote

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
View user's profile Send private 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?

PostPosted: Wed Oct 22, 2008 3:14 am    Post subject: Reply with quote

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? Shocked
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
View user's profile Send private message
Spawnfestis
GO Moderator
Reputation: 0

Joined: 02 Nov 2007
Posts: 1746
Location: Pakistan

PostPosted: Wed Oct 22, 2008 8:23 am    Post subject: Reply with quote

--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? Shocked
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
View user's profile Send private message Send e-mail MSN Messenger
--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?

PostPosted: Wed Oct 22, 2008 8:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Spawnfestis
GO Moderator
Reputation: 0

Joined: 02 Nov 2007
Posts: 1746
Location: Pakistan

PostPosted: Wed Oct 22, 2008 8:38 am    Post subject: Reply with quote

--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? Razz

There is other ways than buying it Rolling Eyes
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 Very Happy)

_________________

CLICK TO HAX MAPLESTORAY ^ !!!!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
--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?

PostPosted: Wed Oct 22, 2008 8:57 am    Post subject: Reply with quote

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. Razz
Those features sound sweeet! Very Happy
All adobe's software are expensive. I mean, seriously, $700! Shocked
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
View user's profile Send private message
Spawnfestis
GO Moderator
Reputation: 0

Joined: 02 Nov 2007
Posts: 1746
Location: Pakistan

PostPosted: Wed Oct 22, 2008 9:02 am    Post subject: Reply with quote

--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. Razz
Those features sound sweeet! Very Happy
All adobe's software are expensive. I mean, seriously, $700! Shocked
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
View user's profile Send private message Send e-mail MSN Messenger
Hieroglyphics
I post too much
Reputation: 0

Joined: 06 Dec 2007
Posts: 2007
Location: Your bedroom

PostPosted: Wed Oct 22, 2008 9:10 am    Post subject: Reply with quote

Lol, for flash games you can use javascript to hack. So basically you can make a website that is a trainer?
_________________

Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites