Пример #1
0
  public Session interact(long id) {

    RubyObject obj = (RubyObject) sessions.get(id);

    if (obj != null) {

      Session sesh = new Session(this.framework, obj);

      if (sesh != null) {
        return sesh;
      } else {
        Console.err("Session closed.");
      }

    } else {
      Console.err("Session does not exsist.");
    }

    return null;
  }
Пример #2
0
 public Plugins(Framework f) {
   Console.out("Plugins Module called.");
   this.framework = f;
   exploits = (RubyObject) framework.invoke("plugins");
 }
Пример #3
0
 public Sessions(Framework f) {
   Console.out("Sessions Module called.");
   this.framework = f;
   sessions = (RubyHash) this.framework.invoke("sessions");
 }