All pastes #558346 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-11 10:30 UTC
rendered paste body
// TEST.JAVA
public class test { // Testing BCEL ^_^

  boolean loggedIn = false;
  String validated_name = "alex";
  String currently_name = "";
  
  public test() {
   this.currently_name = currently_name;
      if(this.currently_name.equals(validated_name)) {
        System.out.println("Welcome to AdminPanel Alex..");
        this.loggedIn = true;
      } else {
        System.out.println("Access denied.");
      }
      
      if(loggedIn) 
        System.out.println("Alex has no fear!"); 
          else 
        System.out.println("Access denied x2");
  }

     
  public static void main(String args[]) {
    new test();
  }
}


// CRACKED.JAVA

public class cracked extends test {

public String validated_name = "aa^way";
public String currently_name = "aa^way";

public static void main(String args[]) {
cracked ikn = new cracked();
System.out.println(ikn.validated_name);
}

}