Solved

Hooking Windows Java Interpreter

Posted on 2004-03-27
13
232 Views
Last Modified: 2010-03-31
For a bit of fun I want to try modifying a java applet by hooking the windows intepreter.  I'm not to worried about making the hook itself, it's just I've had a quick look at the interpreter and I can't find any relevant functions that could be useful to hook.  The applet itself is a simple 3d applet, so I was wondering what kind of calls are made to the interpreter to draw things like 3d models etc.  Anyone got any thoughts or ideas?

Thanks

MrBarby
0
Comment
Question by:MrBarby
  • 7
  • 4
13 Comments
 
LVL 9

Expert Comment

by:doronb
Comment Utility
Are you talking about DirectX in Windows?

If 3D is what you need, why not try working with Sun's 3D stuff?

Check this out: http://java.sun.com/products/java-media/3D/
0
 

Author Comment

by:MrBarby
Comment Utility
no, i think the program uses it own engine (not directX).  any suggestions?
0
 
LVL 9

Accepted Solution

by:
doronb earned 470 total points
Comment Utility
If I understand correctly what you're saying is the following:

1) A Java applet draws 3d models.
2) You think that the Java applet is using a native 3d-graphics engine.
3) This native 3d-graphics engine is not DirectX.

Two possiblities exist:

a) The Java applet simply draws 3d models by using Java's graphics abilities.

-- or --

b) The Java applet is using a native 3d-graphics engine supplied as a DLL file which is downloaded with the applet.

In either case, the best thing you can do is talk to the people who designed and programmed the applet.
0
 
LVL 9

Expert Comment

by:doronb
Comment Utility
P.S.

I was wondering, do you call the JVM a "Windows Java Interpreter"?

And if you do, by "hooking the Windows Java Interpreter" do you mean making JNI (Java-Native-Interface ) calls?
0
 

Author Comment

by:MrBarby
Comment Utility
I think the applet draws the 3d models using java's native functions...

"I was wondering, do you call the JVM a "Windows Java Interpreter"?"

Because I don't really know what I'm talking about.  Simple ;)

Basically what I'm after, is any way to manipulate the applet without actually changing any of the code.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:MrBarby
Comment Utility
Oh, and thank you for your help so far!
0
 
LVL 9

Expert Comment

by:doronb
Comment Utility
>> Basically what I'm after, is any way to manipulate the applet without actually changing any of the code.

Applets were designed to defeat exactly that purpose :)
0
 

Author Comment

by:MrBarby
Comment Utility
hehe, well it looks like im doing quite well then - i have find a way to make simple mods.  so far, i can alter the font :D

lol, all i did is decompile the file Font.class in the big zip (5.6mb) in the windows/java/packages and then added a couple of lines to it and recompiled it... just got to develop that a bit (i.e. figure out how this damn thing is actually drawing the models (what functions)) and then i should be able to get some decent things working.
0
 
LVL 9

Expert Comment

by:doronb
Comment Utility
Well, sure... that's always possible, but it's actually hacking and its alright as long as you're doing it for your own personal fun/learning. If you actually come to depend on tricks like this for commercial applications, that's a BIG no-no and clients won't want that approach, nor will your Boss if you work under someone else.
0
 
LVL 9

Expert Comment

by:doronb
Comment Utility
So, how's this working for you? Have I really helped? Need any other help about this?
0
 
LVL 9

Expert Comment

by:doronb
Comment Utility
Thanks :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now