Discussion:
hacking a games java applet
(too old to reply)
brickled
2007-03-02 14:29:44 UTC
Permalink
hello all,

i have used the browser objects (using vb6 and vb.net) in the past to do
many things "automatically" on the web. now i'm trying to "interact" with a
java applet on a website. I am new to java and java applets. After loading
the webpage that contains the applet into a browser object i was able to to
make simple calls to the java applet - calls such as .getcodebase and
.getparameter along with a few others.

i decompiled the java class files for this applet (the web site stores them
in a zip file on your local drive) and found that there's mountains of
functions that make up this applet. sadly though, so far i have not been
able to call the same functions when using the approach that worked with
.getcodebase and the others.

it seems that any text/code that is part of the browser window (even if it
is also part of the applet) should somehow be exposable through the browser
object. i have searched the object endlessly and so far have not been able
to find much of the data the is displayed to the screen.

i know my details are sketchy here - but hopefully there's enough here to
help you help me.

thanks in advance for everyone's help!
trippy
2007-03-02 21:28:28 UTC
Permalink
In article <sxWFh.8016$***@newsread1.news.pas.earthlink.net>,
brickled took the hamburger meat, threw it on the grill, and I said "Oh
Wow"...
Post by brickled
hello all,
i have used the browser objects (using vb6 and vb.net) in the past to do
many things "automatically" on the web. now i'm trying to "interact" with a
java applet on a website. I am new to java and java applets. After loading
the webpage that contains the applet into a browser object i was able to to
make simple calls to the java applet - calls such as .getcodebase and
.getparameter along with a few others.
i decompiled the java class files for this applet (the web site stores them
in a zip file on your local drive) and found that there's mountains of
functions that make up this applet. sadly though, so far i have not been
able to call the same functions when using the approach that worked with
.getcodebase and the others.
Extend the Applet and pray the classes aren't static final.
Post by brickled
it seems that any text/code that is part of the browser window (even if it
is also part of the applet) should somehow be exposable through the browser
object.
Nope. Applet's an object, the browser's a different object. To do it
otherwise would violate encapsulation.
Post by brickled
i have searched the object endlessly and so far have not been able
to find much of the data the is displayed to the screen.
i know my details are sketchy here - but hopefully there's enough here to
help you help me.
thanks in advance for everyone's help!
--
trippy
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM

NP: "Muhammad My Friend" -- Tori Amos

"Now, technology's getting better all the time and that's fine,
but most of the time all you need is a stick of gum, a pocketknife,
and a smile."

-- Robert Redford "Spy Game"
brickled
2007-03-05 17:02:59 UTC
Permalink
thanks for the reply - could you please elaborate on what you mean by
"extend the applet" ?

i think i know what you mean but would benefit from some clarification.
Post by trippy
brickled took the hamburger meat, threw it on the grill, and I said "Oh
Wow"...
Post by brickled
hello all,
i have used the browser objects (using vb6 and vb.net) in the past to do
many things "automatically" on the web. now i'm trying to "interact" with a
java applet on a website. I am new to java and java applets. After loading
the webpage that contains the applet into a browser object i was able to to
make simple calls to the java applet - calls such as .getcodebase and
.getparameter along with a few others.
i decompiled the java class files for this applet (the web site stores them
in a zip file on your local drive) and found that there's mountains of
functions that make up this applet. sadly though, so far i have not been
able to call the same functions when using the approach that worked with
.getcodebase and the others.
Extend the Applet and pray the classes aren't static final.
Post by brickled
it seems that any text/code that is part of the browser window (even if it
is also part of the applet) should somehow be exposable through the browser
object.
Nope. Applet's an object, the browser's a different object. To do it
otherwise would violate encapsulation.
Post by brickled
i have searched the object endlessly and so far have not been able
to find much of the data the is displayed to the screen.
i know my details are sketchy here - but hopefully there's enough here to
help you help me.
thanks in advance for everyone's help!
--
trippy
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM
NP: "Muhammad My Friend" -- Tori Amos
"Now, technology's getting better all the time and that's fine,
but most of the time all you need is a stick of gum, a pocketknife,
and a smile."
-- Robert Redford "Spy Game"
j1mb0jay
2007-03-05 21:20:30 UTC
Permalink
Post by brickled
thanks for the reply - could you please elaborate on what you mean by
"extend the applet" ?
i think i know what you mean but would benefit from some
clarification.
I'm guessing inheritance .....
Post by brickled
Post by trippy
brickled took the hamburger meat, threw it on the grill, and I said
"Oh Wow"...
Post by brickled
hello all,
i have used the browser objects (using vb6 and vb.net) in the past
to do many things "automatically" on the web. now i'm trying to
"interact" with a java applet on a website. I am new to java and
java applets. After loading the webpage that contains the applet
into a browser object i was able to to make simple calls to the
java applet - calls such as .getcodebase and .getparameter along
with a few others.
i decompiled the java class files for this applet (the web site
stores them in a zip file on your local drive) and found that
there's mountains of functions that make up this applet. sadly
though, so far i have not been able to call the same functions when
using the approach that worked with .getcodebase and the others.
Extend the Applet and pray the classes aren't static final.
Post by brickled
it seems that any text/code that is part of the browser window
(even if it is also part of the applet) should somehow be exposable
through the browser object.
Nope. Applet's an object, the browser's a different object. To do it
otherwise would violate encapsulation.
Post by brickled
i have searched the object endlessly and so far have not been able
to find much of the data the is displayed to the screen.
i know my details are sketchy here - but hopefully there's enough
here to help you help me.
thanks in advance for everyone's help!
--
trippy
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM
NP: "Muhammad My Friend" -- Tori Amos
"Now, technology's getting better all the time and that's fine,
but most of the time all you need is a stick of gum, a pocketknife,
and a smile."
-- Robert Redford "Spy Game"
--
Regards JJ (UWA)
trippy
2007-03-06 07:15:23 UTC
Permalink
In article <73YGh.9561$***@newsread1.news.pas.earthlink.net>,
brickled took the hamburger meat, threw it on the grill, and I said "Oh
Wow"...
Post by brickled
thanks for the reply - could you please elaborate on what you mean by
"extend the applet" ?
Create a child applet using the keyword extends. When you extend
something in Java, the child object inherits all the attributes and
methods from the original object. That way, you can code in general
things all child classes must have while leaving class specific things
to the child class.

<code>

public class AClass {

private String aString = "This string is in the A class.";

public void showString() {

System.out.println(aString);

}

}

// save this as AClass.java

public class BClass extends AClass {

private String bString = "This string is in the B class.";

public void showBString() {

System.out.println(bString);

}

}

// save this as BClass.java

public class ShowString {

public void run() {

BClass b = new BClass();
b.showString();
b.showBString();

}

public static void main(String[] args) {

ShowString ss = new ShowString();
ss.run();

}
}

// save this as ShowString.java

</code>

javac ShowString.java
To run, java ShowString
Post by brickled
i think i know what you mean but would benefit from some clarification.
So if you take the applet and extend it, you can code new functionality
into it.

If your classes are final, then you can't extend them, and you're pretty
well screwed. The code may also be obfuscated.
Post by brickled
Post by trippy
brickled took the hamburger meat, threw it on the grill, and I said "Oh
Wow"...
Post by brickled
hello all,
i have used the browser objects (using vb6 and vb.net) in the past to do
many things "automatically" on the web. now i'm trying to "interact"
with a
Post by trippy
Post by brickled
java applet on a website. I am new to java and java applets. After
loading
Post by trippy
Post by brickled
the webpage that contains the applet into a browser object i was able to
to
Post by trippy
Post by brickled
make simple calls to the java applet - calls such as .getcodebase and
.getparameter along with a few others.
i decompiled the java class files for this applet (the web site stores
them
Post by trippy
Post by brickled
in a zip file on your local drive) and found that there's mountains of
functions that make up this applet. sadly though, so far i have not been
able to call the same functions when using the approach that worked with
.getcodebase and the others.
Extend the Applet and pray the classes aren't static final.
Post by brickled
it seems that any text/code that is part of the browser window (even if
it
Post by trippy
Post by brickled
is also part of the applet) should somehow be exposable through the
browser
Post by trippy
Post by brickled
object.
Nope. Applet's an object, the browser's a different object. To do it
otherwise would violate encapsulation.
Post by brickled
i have searched the object endlessly and so far have not been able
to find much of the data the is displayed to the screen.
i know my details are sketchy here - but hopefully there's enough here
to
Post by trippy
Post by brickled
help you help me.
thanks in advance for everyone's help!
--
trippy
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM
NP: "Muhammad My Friend" -- Tori Amos
"Now, technology's getting better all the time and that's fine,
but most of the time all you need is a stick of gum, a pocketknife,
and a smile."
-- Robert Redford "Spy Game"
--
trippy
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM

NP: "Muhammad My Friend" -- Tori Amos

"Now, technology's getting better all the time and that's fine,
but most of the time all you need is a stick of gum, a pocketknife,
and a smile."

-- Robert Redford "Spy Game"
Loading...