Lost Password?


Go Back   CodeCall Programming Forum > Software Development > Java Help

Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.

Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-03-2007, 03:49 PM
hoser2001's Avatar   
hoser2001 hoser2001 is offline
Programmer
 
Join Date: Jul 2006
Posts: 175
Rep Power: 10
hoser2001 is on a distinguished road
Default Anyone Play Yahoo Pool???

I sometimes have time at work to play some yahoo pool, one day I was playin and apparently I was doing good, because someone accused me of using an "aimer". After some research, i found out that there are many applications available that can be run while playing yahoo pool, that will re-create the table, and provide extra 'cheat' lines that help you make the shots easier. I'm not very familiar with JAVA, but I know that yahoo pool uses it to work. I want to know what steps I would take to make my own yahoo pool aimer. If anyone can offer some guidance that would be great.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

Sponsored Links
  #2 (permalink)  
Old 08-03-2007, 08:44 PM
Lop's Avatar   
Lop Lop is offline
Speaks fluent binary
 
Join Date: May 2006
Posts: 1,149
Rep Power: 18
Lop will become famous soon enoughLop will become famous soon enough
Default

From what little I know, Java loads on the client side so everything being executed is local. That means if you get a TCP sniffer you could see all of the actions between players. Not sure how this helps you....

Maybe you could just decompile the Java?
__________________
Lop
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old 08-04-2007, 07:04 PM
hoser2001's Avatar   
hoser2001 hoser2001 is offline
Programmer
 
Join Date: Jul 2006
Posts: 175
Rep Power: 10
hoser2001 is on a distinguished road
Default

I don't need to know anything about what the other players are doing, I'm guessing all I need to do is somehow capture the script and modify it. In Yahoo Pool, when you aim, a line is drawn to the ball you want to hit, them from the ball to (what you hope is) the pocket. The aimer programs merely extend the line from the ball to the pocket, because yahoo only limits it to a few pixels.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4 (permalink)  
Old 08-04-2007, 08:43 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,470
Last Blog:
Joomla! And Incompeten...
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

Reverse-engineering compiled software is considered hacking/cracking and should not be discussed in these forums.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5 (permalink)  
Old 08-06-2007, 08:43 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,650
Last Blog:
PHP Objects, Patterns,...
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

I've always wondered how these hack programs work. If you find the answer let us know.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

Sponsored Links
  #6 (permalink)  
Old 08-06-2007, 12:08 PM
v0id's Avatar   
v0id v0id is offline
Retired
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,654
Last Blog:
CherryPy(thon)
Rep Power: 29
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default

Yes, the great thing about Java is that it runs on your own computer, and not on the server (like Lop pointed out.) The Java applet is then communicating with the server, and maybe are sending it commands which does stuff, which later is sent to the player you're playing against.

But it isn't as easy as it sounds - they're not stupid, so most applets is using encryption to prevent this kind of cheat. It's going to be a lame job to crack the encryption, if you know nothing about that kind of stuff, but there's another alternative; the applet. It's the applet which is sending the encrypted commands to the server, and receives some as well. That means that the encryption algorithm is in the applet.

If you not are extremely brain-death you can remember that the applet is running at our computer. Yes, our own computer. So we have full access to the applet. The Java applet works somewhat like Javascript does. When the browser sees Javascript, it handles it and executes it. It's the same with Java, but instead of executing it, it sends it to the Java machine, which is communicating with the browser, and executing the Java source. The Java source is fully available, but still not. It's compiled into class files, which only the Java machine can handle. Not good, eh? Then it's good there's something called decompilers (like Lop also pointed out.)

The Java class-files is usually saved in so-called cabinet files (*.cab), which is on the server. F.ex. on Yahoo!'s server. As I said, it's like Javascript, so you're able to download this cabinet file (it's basically just a RAR-compressed file, so it's easy to get its content.) When that is done, you end up with a lot of class files. You've to decompile those, and then you'll end up with a complete Java sourcecode (depends on the quality of the decompiler.)

Now you probably have the ****tiest job in front of you. You've to read through the sourcecode to find the encryption algorithm. But it's sometimes easy to find. When you're playing the game, then there's usually some kind of message, or other stuff that could lead you some where, f.ex. "Loading..." which maybe could lead you to the place where it communicates with the server - which means it encrypts messages and sends them. Then you just have to move backward.

When you've got the encryption algorithm, you can implement it in your own application, or whatever you want to. So let's say you want to make an application which receives and sends messages. You've to connect to the server on the right port (if you have problems finding it, look in the source) and then encrypt the messages and sent them, or decrypt them if you want to receive.

Have in mind that it probably isn't messages like "Do this and that" you're receiving, it could be something like "x 1, 1" which actually meant "Go to position 1 at x-axis and 1 at y-axis." To deal with this problem, you've to look at the sourcecode again. Somewhere you'll found the different messages, and such.

You've to remember one important thing; this is cracking and is illegal. So you've to do this on your own risk. But good luck, if you really want to try.

I think that answered your question as well, Jordan.
__________________
05-03-2007 - 11-13-2008
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you play online games? ShortCircuit Video Game Talk 16 10-30-2008 05:00 PM
Mylot has switched from google to yahoo littlefranciscan The Lounge 2 02-03-2007 07:14 PM
Yahoo Offers Great Plans For Hosting. littlefranciscan Hosting and Registrars 7 01-30-2007 04:58 PM
Do you like to play retro games? AlexanderRybak Site Reviews 1 12-16-2006 08:57 AM


All times are GMT -5. The time now is 12:07 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads