Remove bad shell hack.

git-svn-id: file:///home/svn/framework3/trunk@10676 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Weeks 2010-10-14 00:39:45 +00:00
parent 2ba327c3aa
commit 51169377a9
2 changed files with 3 additions and 6 deletions

Binary file not shown.

View File

@ -1524,15 +1524,12 @@ public class MainFrame extends FrameView {
new ProcessList(rpcConn,session,sessionPopupMap).setVisible(true); new ProcessList(rpcConn,session,sessionPopupMap).setVisible(true);
} }
}); });
addSessionItem("Shell",meterpreterPopupMenu,new RpcAction(this) { addScript("Shell",meterpreterPopupMenu,new RpcAction(this) {
public void action(Map session) throws Exception { public void action(Map session) throws Exception {
Map res = (Map)rpcConn.execute("console.create"); rpcConn.execute("session.meterpreter_write", session.get("id"),
InteractWindow iw = new InteractWindow(rpcConn, res, java.util.Arrays.asList(new String[]{ Base64.encode("shell\n".getBytes()));
"sessions","sessions -i "+session.get("id"), "shell"}));
registerConsole(res, true, iw);
} }
}); });
addSessionItem("Console",meterpreterPopupMenu,null); addSessionItem("Console",meterpreterPopupMenu,null);
addScript("Get hashes",meterpreterPopupMenu, addScript("Get hashes",meterpreterPopupMenu,
"multi_console_command -cl \"use priv\",\"getsystem\",\"run hashdump.rb\""); "multi_console_command -cl \"use priv\",\"getsystem\",\"run hashdump.rb\"");