FileDocCategorySizeDatePackage
DepthTest.javaAPI DocExample566Mon Jan 15 13:34:42 GMT 2001javasec.samples.appd

DepthTest.java

package javasec.samples.appd;

import java.applet.*;
import java.math.*;

public class DepthTest extends Applet {
    native void evilInterface();
    
    public void init() {
        doMath();
        infiltrate();
    }
    
    public void infiltrate() {
        try {
            System.loadLibrary("evilLibrary");
            evilInterface();
        } catch (Exception e) {}
    }
    
    public void doMath() {
        BigInteger bi = new BigInteger("100");
        bi = bi.add(new BigInteger("100"));
        System.out.println("answer is " + bi);
    }
}