Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Java
You last visited: Today at 21:58

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] Sending packets in a Java game, related to in-game currency

Discussion on [Help] Sending packets in a Java game, related to in-game currency within the Java forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2011
Posts: 3
Received Thanks: 0
[Help] Sending packets in a Java game, related to in-game currency

Hello!

So, for some reason, I've decided to see if there is any possible way to change the amount of currency in a F2P, java-based game.
I am a total noob when in comes to this, so obviously I know nothing about hacking. I took CE and WPE Pro, as I thought I may be able to work something out with those.

I've managed to change the value for the currency with CE (say from 3000 to 30000) but obviously, this was just for the client-side, and whenever I would open/close the game, the currency would set to the correct amount.

I figured that since I can edit this with CE, I must be able to send packets to the server somehow, so that I can actually give myself that amount of in-game currency.

The problem is, whenever I use WPE Pro to sniff the packets I get from the game, it's not so black and white.
There are no values in the packets I receive, most of them are requests sent to the server, under the form of /getapi, such as:

Code:
GET /getdataAPI.php?username=myusername&key=tokens HTTP/1.1
User-Agent: Java/1.8.0_161
Host: -
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
I don't know how can I work with this. I've read somewhere about setting up a Proxy server, where I could set up the values I want, then have them sent to the game server, but I have no idea on how to set up something like this.

If someone is kind enough to guide me through some basics, I'd appreciate it. I am not asking for someone to do this in my behalf, but more to tutor me about it!

Thanks!
wDzZ is offline  
Old 02/14/2018, 14:44   #2
 
elite*gold: 0
Join Date: May 2015
Posts: 700
Received Thanks: 444
Quote:
I figured that since I can edit this with CE, I must be able to send packets to the server somehow, so that I can actually give myself that amount of in-game currency.
Why would you think that? The communication between client and server has nothing to do with what you can edit with CE.

What's the response to the http request?
algernong is offline  
Old 02/14/2018, 16:36   #3
 
elite*gold: 0
Join Date: Apr 2011
Posts: 3
Received Thanks: 0
This is what I get:

Code:
HTTP/1.1 200 OK
Server: nginx/1.12.2
Date: Wed, 14 Feb 2018 15:30:09 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 1
Connection: keep-alive
Set-Cookie: PHPSESSID=0epbgpeffn44mrem7vg0fo5vb5; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache

0e/
What is to keep in mind is that these are the packets I receive whenever I buy something.
I was looking to see if I cannot "add" currency (like with modifying the value in CE), maybe I can somewhat trick the server into thinking that the item actually costs 1 or 0 currency, and thus get it for free. But the thing is that there is no actual value for me to edit , in order to send back and achieve this.
Is it even possible to do such a thing?

Thanks
wDzZ is offline  
Old 09/18/2018, 15:42   #4


 
Benhero's Avatar
 
elite*gold: 964
Join Date: Mar 2008
Posts: 2,634
Received Thanks: 1,637
In the "Code" you post is nothing that is relevant.
No Information about your current amount of money otherwise any information that is important. The communication happens about the tcp protocol. you have to snife this packets with a programm like WireSharkPro.

But in 99,9% of the Online Games you CAN'T! modify your currency with TCP packets. Because there's no packet to change your money in the Database or whatever. And if there is a packet (like for Gamemasters) there will be a security check on the server if you are an Gamemaster or not. If not -> Nothing happens

Greatings Ben
Benhero is offline  
Old 09/20/2018, 20:46   #5
 
elite*gold: 0
Join Date: Apr 2011
Posts: 363
Received Thanks: 167
U could try sql injection and see if that works, but in most cases won' work

GET /getdataAPI.php?username="sql injection here"
Supose they store users in a table name users
GET /getdataAPI.php?username=" ' '; delete users where username = 'your username';"
this will delete your user if the table name is correct and no sql prepared statements are used in the php code.
elmarcia is offline  
Reply


Similar Threads Similar Threads
[AutoIT] Sending Packets Help
10/10/2012 - SRO Coding Corner - 53 Replies
With edxloader i got this : (Sit - Stand recorded) 04 Now, in AutoIt, i think that it need to look like this, but i dont know what to write in "?????" to send packet for sit - stand command .
Packets packets packets...
10/06/2012 - CO2 Private Server - 13 Replies
I have been struggling to understand what is a Packet how could i create one with the data i want then send it to my server So please any one tell if as example i want to send some info from my client to my server, then handle them from the server how could i do that : i have my socket server, also i don't wanna copy and paste codes i want to UNDERSTAND. My PacketReader.cs
Help sending packets
06/27/2012 - SRO Coding Corner - 2 Replies
well i knew that i need to put the packet in a byte array so i defined it BYTE pack = { 0x01, 0x00, 0x4F, 0x70, 0x20, 0x00, 0x04 }; and when i send it using the send through a socket like this
Help for sending packets
05/11/2012 - PW Hacks, Bots, Cheats, Exploits - 1 Replies
Hello Dear programmers, botovody! I am a novice programmer, and started programming in the language of Delphi! there is a couple of my works Каталог файлов - PwRuf - уникальный бот для Perfect World! But another question! I would like to implement the sending of packages to craft nirvana clothing, weapons. But I have a problem with traffic light emitted from the fact that the package that I send a very large ie 256 characters! Please help or point me where to...
Help with sending packets in autoit
08/16/2010 - AutoIt - 1 Replies
ive been lookin around different sites for ways to send packets to the game server. the only examples i see is to create a server and a client which i dont need, i think. well to the point now, can someone lead me in a direction or tell me how to send packets to a game? also if i send packets then that means i dont need the game to be active, correct? Because in autoit when u use keys u need to have the game active, and control send does not work. ty



All times are GMT +1. The time now is 21:59.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.