diff --git a/data/gui/msfgui.jar b/data/gui/msfgui.jar
index 076fa7ca85..903a90ac92 100644
Binary files a/data/gui/msfgui.jar and b/data/gui/msfgui.jar differ
diff --git a/external/source/gui/msfguijava/src/msfgui/DbConnectDialog.java b/external/source/gui/msfguijava/src/msfgui/DbConnectDialog.java
index 7e4c5de193..37d8a851a8 100644
--- a/external/source/gui/msfguijava/src/msfgui/DbConnectDialog.java
+++ b/external/source/gui/msfguijava/src/msfgui/DbConnectDialog.java
@@ -229,6 +229,14 @@ public class DbConnectDialog extends OptionsDialog {
props.put("db"+key, val);
}
+ /** Remove quotes */
+ private String stripQuotes(String quoted){
+ if(quoted.startsWith("\"") && quoted.endsWith("\"")
+ || quoted.startsWith("\'") && quoted.endsWith("\'"))
+ return quoted.substring(1, quoted.length() - 1);
+ return quoted;
+ }
+
/** Loads database information from the database.yml file in the default install. */
private void reloadDefaults(){
try{
@@ -243,17 +251,17 @@ public class DbConnectDialog extends OptionsDialog {
token = s.next();
while(s.hasNext()){
if(token.equals("adapter:"))
- props.put("dbdriver", s.next());
+ props.put("dbdriver", stripQuotes(s.next()));
else if(token.equals("database:"))
- props.put("dbdatabase", s.next());
+ props.put("dbdatabase", stripQuotes(s.next()));
else if(token.equals("username:"))
- props.put("dbusername", s.next());
+ props.put("dbusername", stripQuotes(s.next()));
else if(token.equals("password:"))
- props.put("dbpassword", s.next().replace("'", ""));
+ props.put("dbpassword", stripQuotes(s.next()));
else if(token.equals("host:"))
- props.put("dbhost", s.next());
+ props.put("dbhost", stripQuotes(s.next()));
else if(token.equals("port:"))
- props.put("dbport", s.next());
+ props.put("dbport", stripQuotes(s.next()));
token = s.next();
}
} catch (FileNotFoundException fnfox){
diff --git a/external/source/gui/msfguijava/src/msfgui/MainFrame.form b/external/source/gui/msfguijava/src/msfgui/MainFrame.form
index 173c371391..d447959092 100644
--- a/external/source/gui/msfguijava/src/msfgui/MainFrame.form
+++ b/external/source/gui/msfguijava/src/msfgui/MainFrame.form
@@ -874,9 +874,6 @@
-
-
-
diff --git a/external/source/gui/msfguijava/src/msfgui/MainFrame.java b/external/source/gui/msfguijava/src/msfgui/MainFrame.java
index 6a78184e8b..c6e30fbcbf 100644
--- a/external/source/gui/msfguijava/src/msfgui/MainFrame.java
+++ b/external/source/gui/msfguijava/src/msfgui/MainFrame.java
@@ -55,6 +55,7 @@ public class MainFrame extends FrameView {
});
eventsTable.setName("eventsTable"); // NOI18N
eventsPane.setViewportView(eventsTable);
+ tabbedPane.addTab("Events", eventsPane); // NOI18N
sessionsTableModel = null;
sessionWindowMap = new HashMap();
@@ -1558,11 +1559,6 @@ nameloop: for (int i = 0; i < names.length; i++) {
}//GEN-LAST:event_vulnsViewItemActionPerformed
private void eventsViewItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_eventsViewItemActionPerformed
- if(eventsPane.getParent() == null)
- tabbedPane.addTab("Events", eventsPane);
- if(eventsTable.getRowCount() == 0)
- reAdd(eventsTable,(List) ((Map)rpcConn.execute("db.events",MsfguiApp.workspace)).get("events"),
- new String[]{"host","created_at","updated_at","name","critical","username","info"});
DraggableTabbedPane.show(eventsPane);
}//GEN-LAST:event_eventsViewItemActionPerformed