This forum is in archive mode. You will not be able to post new content.

Author Topic: [Question] Text-Based Game  (Read 3320 times)

0 Members and 1 Guest are viewing this topic.

Offline Hydration

  • /dev/null
  • *
  • Posts: 9
  • Cookies: 0
    • View Profile
[Question] Text-Based Game
« on: September 17, 2012, 05:31:41 PM »







Hello,


This title may be a bit misleading as I don't wish to create a text based game but for my beginner project I want to create the ability to 'cheat' in one.
Basically what I wish to do is create a program that has the ability to add resources without any effort.


For example:


[Wood: 500]


*open program*


Add Wood: *type amount of wood you wish to add*
Add Wood: 1500
*refresh webpage*


[Wood: 2000]


(I hope that example made some sort of sense)


Basically what I am asking is which language would be best to do something like this. The game I wish to do this with is called Raynia. If you wish to help and need to see what the game is like use the username: Test and the password: Test


Thank you for any help in advance

Offline flowjob

  • Knight
  • **
  • Posts: 327
  • Cookies: 46
  • Pastafarian
    • View Profile
Re: [Question] Text-Based Game
« Reply #1 on: September 17, 2012, 05:36:28 PM »
AFAIK,You'll have to find an exploit,make a Bufferoverflow and point at your function,wich adds e.g. wood,so it's the next one wich gets executed in the stack....
Quote
<phil> I'm gonna DDOS the washing machine with clothes packets.
<deviant_sheep> dont use too much soap or youll cause a bubble overflow

Offline Hydration

  • /dev/null
  • *
  • Posts: 9
  • Cookies: 0
    • View Profile
Re: [Question] Text-Based Game
« Reply #2 on: September 17, 2012, 05:43:40 PM »
So if it's buffer overflows I should be looking into c++ for this project?

Offline flowjob

  • Knight
  • **
  • Posts: 327
  • Cookies: 46
  • Pastafarian
    • View Profile
Re: [Question] Text-Based Game
« Reply #3 on: September 17, 2012, 06:11:11 PM »
C,C++ something like that...

But it will require lots of time to learn the language,creating exploits,etc...
In the end it will not be worth the work...
Quote
<phil> I'm gonna DDOS the washing machine with clothes packets.
<deviant_sheep> dont use too much soap or youll cause a bubble overflow

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: [Question] Text-Based Game
« Reply #4 on: September 17, 2012, 11:25:08 PM »
You can try fuzzing the input. Kinda like glitches you find in commercial games.
>>>import this
-----------------------------

Offline Hydration

  • /dev/null
  • *
  • Posts: 9
  • Cookies: 0
    • View Profile
Re: [Question] Text-Based Game
« Reply #5 on: September 18, 2012, 05:29:32 AM »
It may not be worth it but I don't really want to hack the game to gain an advantage at all, I just wish to learn a language and put it to use. I wish to try and see what potential I have as a programmer and see if I have the will power to finish a project that may be a bit difficult them something a bit normal.


I don't really know much apart from java. Other then that I don't know a lot which is why I like this site, it has a lot of tutorials that are smooth and easy to follow

Offline Daemon

  • VIP
  • Baron
  • *
  • Posts: 845
  • Cookies: 153
  • A wise man fears a gentle mans anger
    • View Profile
Re: [Question] Text-Based Game
« Reply #6 on: September 18, 2012, 05:43:25 AM »
If it's a web based game then you might want to look into how the webpage retrieves and adds the information. Most likely javascript or PHP, it could be as simple as messing with the clock to say that you've passed the correct amount of time (seen this done, don't remember where) or anything else really. First step though, i would say, is check the source and try to figure out how the webpage (and in what language) updates your stats
This lifestyle is strictly DIY or GTFO - lucid

Because sexploits are for h0edays - noncetonic


Xires burns the souls of HF skids as a power supply

Offline Hydration

  • /dev/null
  • *
  • Posts: 9
  • Cookies: 0
    • View Profile
Re: [Question] Text-Based Game
« Reply #7 on: September 18, 2012, 06:43:01 AM »
I saw this

      <span class="return owntransport">One of your <a href='#' onmouseover="return overlib('<table width=200><tr><td width=50% align=left><font color=white>Small Cargo:<font></td><td width=50% align=right><font color=white>5<font></td></tr><tr><td width=50% align=left><font color=white>Large Cargo:<font></td><td width=50% align=right><font color=white>2<font></td></tr></table>');" onmouseout="return nd();" class="owntransport">Fleets </a>returns from the world Kepler <a href="galaxy.php?mode=3&galaxy=1&system=472" owntransport >[1:472:12]</a> and arrives at the planet Colony <a href="galaxy.php?mode=3&galaxy=1&system=472" owntransport >[1:472:10]</a>. Current mission: <a href='#' onmouseover="return overlib('<table width=200><tr><td width=50% align=left><font color=white>Metal<font></td><td width=50% align=right><font color=white>0<font></td></tr><tr><td width=50% align=left><font color=white>Crystal<font></td><td width=50% align=right><font color=white>0<font></td></tr><tr><td width=50% align=left><font color=white>Deuterium<font></td><td width=50% align=right><font color=white>74.978<font></td></tr></table>');" onmouseout="return nd();" class="owntransport">Transport</a></span>
</th>
I bolded where I thought it was important as it is stated that the code is written in javascript.

I'm not sure how it works, but I can ask someone on the games forum hopefully, just to get a bit of information.
   <script language="JavaScript">


« Last Edit: September 18, 2012, 06:47:53 AM by Hydration »

Offline Hydration

  • /dev/null
  • *
  • Posts: 9
  • Cookies: 0
    • View Profile
Re: [Question] Text-Based Game
« Reply #8 on: September 18, 2012, 06:49:11 AM »
You can try fuzzing the input. Kinda like glitches you find in commercial games.


This sounds like a good idea, and I have looked into it. would it work with a text-based game?

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: [Question] Text-Based Game
« Reply #9 on: September 18, 2012, 04:03:51 PM »
Since this is a web based game, you can look away from C/++ and overflows etc. These are application security flaws.

What you need to look at is web application security. And also, rayniawars is a crazy small game and are incredible buggy.

PS: The javascript stuff is probably not very interesting.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline TRAiN3R

  • Serf
  • *
  • Posts: 35
  • Cookies: 14
  • To Train the Untrained
    • View Profile
Re: [Question] Text-Based Game
« Reply #10 on: September 18, 2012, 07:05:02 PM »
Well I'm not familar with the game or anything, but if its online, have you tried CheatEngine? My wife was really into Facebook and the Facebook games by Zanga and was able to cheat most of them with the help of CheatEngine searching for random bytes going in and out of the Web Browser... Might be a viable option

http://cheatengine.org/
Remember, remember the Fifth of November,
the Gunpowder Treason and Plot,

I see no reason why Gunpowder Treason should ever be forgot.

Offline Hydration

  • /dev/null
  • *
  • Posts: 9
  • Cookies: 0
    • View Profile
Re: [Question] Text-Based Game
« Reply #11 on: September 19, 2012, 04:02:27 AM »
I tried using cheat engine, but it didn't work. I believe because most of it is server based.
So ande what would you suggest I use as a language?

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: [Question] Text-Based Game
« Reply #12 on: September 19, 2012, 12:30:19 PM »
I tried using cheat engine, but it didn't work. I believe because most of it is server based.
So ande what would you suggest I use as a language?


Perl, PHP, or Python.
>>>import this
-----------------------------

Offline Hydration

  • /dev/null
  • *
  • Posts: 9
  • Cookies: 0
    • View Profile
Re: [Question] Text-Based Game
« Reply #13 on: September 19, 2012, 02:01:06 PM »
Thank you very much :)

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: [Question] Text-Based Game
« Reply #14 on: September 20, 2012, 05:27:15 PM »
Well I'm not familar with the game or anything, but if its online, have you tried CheatEngine? My wife was really into Facebook and the Facebook games by Zanga and was able to cheat most of them with the help of CheatEngine searching for random bytes going in and out of the Web Browser... Might be a viable option

http://cheatengine.org/

You have to learn the difference between server side and client side. Cheat engine will only work on client side.

I tried using cheat engine, but it didn't work. I believe because most of it is server based.
So ande what would you suggest I use as a language?

Not sure what you mean. What language to do what? The game is written in PHP and MySQL, so it might be a good idea to learn those to better understand how the game works and then look into web application vulnerabilities. Other than that, use any language you want..
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.