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; }
public Plugins(Framework f) { Console.out("Plugins Module called."); this.framework = f; exploits = (RubyObject) framework.invoke("plugins"); }
public Sessions(Framework f) { Console.out("Sessions Module called."); this.framework = f; sessions = (RubyHash) this.framework.invoke("sessions"); }