"Fuzzing Session Running. Stop Fuzzing?",
" JBroFuzz - Stop ", JOptionPane.YES_NO_OPTION);
if (choice == JOptionPane.YES_OPTION) {
final int c = mFrameWindow.getTp().getSelectedIndex();
final AbstractPanel p = (AbstractPanel) mFrameWindow.getTp()
.getComponent(c);
p.stop();
mFrameWindow.getPanelFuzzing().clearAllFields();
mFrameWindow.setTitle("Untitled");
// Create a new directory to store all data
mFrameWindow.getJBroFuzz().getHandler()
.createNewDirectory();
}
}
}
});
// File -> Open
open.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent aEvent) {
mainMenuBar.setSelectedPanelCheckBox(JBroFuzzWindow.ID_PANEL_FUZZING);
mFrameWindow.setTabShow(JBroFuzzWindow.ID_PANEL_FUZZING);
if (mFrameWindow.getPanelFuzzing().isStopped()) {
new OpenSession(mFrameWindow);
} else {
final int choice = JOptionPane.showConfirmDialog(mFrameWindow,
"Fuzzing Session Running. Stop Fuzzing?",
" JBroFuzz - Stop ", JOptionPane.YES_NO_OPTION);
if (choice == JOptionPane.YES_OPTION) {
final int c = mFrameWindow.getTp().getSelectedIndex();
final AbstractPanel p = (AbstractPanel) mFrameWindow.getTp()
.getComponent(c);
p.stop();
new OpenSession(mFrameWindow);
}
}
}
});
// File -> Close
close.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent aEvent) {
mainMenuBar.setSelectedPanelCheckBox(JBroFuzzWindow.ID_PANEL_FUZZING);
mFrameWindow.setTabShow(JBroFuzzWindow.ID_PANEL_FUZZING);
if (mFrameWindow.getPanelFuzzing().isStopped()) {
mFrameWindow.setCloseFile();
mFrameWindow.setTitle("Untitled");
} else {
final int choice = JOptionPane.showConfirmDialog(mFrameWindow,
"Fuzzing Session Running. Stop Fuzzing?",
" JBroFuzz - Stop ", JOptionPane.YES_NO_OPTION);
if (choice == JOptionPane.YES_OPTION) {
final int c = mFrameWindow.getTp().getSelectedIndex();
final AbstractPanel p = (AbstractPanel) mFrameWindow.getTp()
.getComponent(c);
p.stop();
mFrameWindow.setCloseFile();
mFrameWindow.setTitle("Untitled");
}
}
}
});
// File -> Open Location
openLocation.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent aEvent) {
mainMenuBar.setSelectedPanelCheckBox(JBroFuzzWindow.ID_PANEL_FUZZING);
mFrameWindow.setTabShow(JBroFuzzWindow.ID_PANEL_FUZZING);
if (!mFrameWindow.getPanelFuzzing().isStopped()) {
final int choice = JOptionPane.showConfirmDialog(mFrameWindow,
"Fuzzing Session Running. Stop Fuzzing?",
" JBroFuzz - Stop ", JOptionPane.YES_NO_OPTION);
if (choice == JOptionPane.YES_OPTION) {
final int c = mFrameWindow.getTp().getSelectedIndex();
final AbstractPanel p = (AbstractPanel) mFrameWindow.getTp()
.getComponent(c);
p.stop();
new OpenLocationDialog(mFrameWindow);
}
} else {
new OpenLocationDialog(mFrameWindow);
}
}
});
// File -> Load Fuzzers
loadFuzzers.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent aEvent) {
mFrameWindow.getPanelPayloads().start();
}
});
// File -> Clear Output
clearOutput.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent aEvent) {
mainMenuBar.setSelectedPanelCheckBox(JBroFuzzWindow.ID_PANEL_FUZZING);
mFrameWindow.setTabShow(JBroFuzzWindow.ID_PANEL_FUZZING);
if (!mFrameWindow.getPanelFuzzing().isStopped()) {
final int choice = JOptionPane.showConfirmDialog(mFrameWindow,
"Fuzzing Session Running. Stop Fuzzing?",
" JBroFuzz - Stop ", JOptionPane.YES_NO_OPTION);
if (choice == JOptionPane.YES_OPTION) {
final int c = mFrameWindow.getTp().getSelectedIndex();
final AbstractPanel p = (AbstractPanel) mFrameWindow.getTp()
.getComponent(c);
p.stop();
mFrameWindow.getPanelFuzzing().clearOutputTable();
// Create a new directory to store all data
mFrameWindow.getJBroFuzz().getHandler()
.createNewDirectory();
}
} else {
mFrameWindow.getPanelFuzzing().clearOutputTable();
// Create a new directory to store all data
mFrameWindow.getJBroFuzz().getHandler()
.createNewDirectory();
}
}
});
// File -> Clear Fuzzers
clearFuzzers.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent aEvent) {
mainMenuBar.setSelectedPanelCheckBox(JBroFuzzWindow.ID_PANEL_FUZZING);
mFrameWindow.setTabShow(JBroFuzzWindow.ID_PANEL_FUZZING);
if (!mFrameWindow.getPanelFuzzing().isStopped()) {
final int choice = JOptionPane.showConfirmDialog(mFrameWindow,
"Fuzzing Session Running. Stop Fuzzing?",
" JBroFuzz - Stop ", JOptionPane.YES_NO_OPTION);
if (choice == JOptionPane.YES_OPTION) {
final int c = mFrameWindow.getTp().getSelectedIndex();
final AbstractPanel p = (AbstractPanel) mFrameWindow.getTp()
.getComponent(c);
p.stop();
mFrameWindow.getPanelFuzzing().clearFuzzersTable();
}
} else {
mFrameWindow.getPanelFuzzing().clearFuzzersTable();
}
}
});
// File -> Clear On The Wire
clearOnTheWire.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent aEvent) {
mainMenuBar.setSelectedPanelCheckBox(JBroFuzzWindow.ID_PANEL_FUZZING);
mFrameWindow.setTabShow(JBroFuzzWindow.ID_PANEL_FUZZING);
mFrameWindow.getPanelFuzzing().clearOnTheWire();
}
});
// File -> Save
save.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent aEvent) {
mainMenuBar.setSelectedPanelCheckBox(JBroFuzzWindow.ID_PANEL_FUZZING);
mFrameWindow.setTabShow(JBroFuzzWindow.ID_PANEL_FUZZING);
if (mFrameWindow.getPanelFuzzing().isStopped()) {
new SaveSession(mFrameWindow);
} else {
final int choice = JOptionPane.showConfirmDialog(mFrameWindow,
"Fuzzing Session Running. Stop Fuzzing?",
" JBroFuzz - Stop ", JOptionPane.YES_NO_OPTION);
if (choice == JOptionPane.YES_OPTION) {
final int c = mFrameWindow.getTp().getSelectedIndex();
final AbstractPanel p = (AbstractPanel) mFrameWindow.getTp()
.getComponent(c);
p.stop();
new SaveSession(mFrameWindow);
}
}
}
});
// File -> Save as
saveAs.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent aEvent) {
mainMenuBar.setSelectedPanelCheckBox(JBroFuzzWindow.ID_PANEL_FUZZING);
mFrameWindow.setTabShow(JBroFuzzWindow.ID_PANEL_FUZZING);
if (!mFrameWindow.getPanelFuzzing().isStopped()) {
final int choice = JOptionPane.showConfirmDialog(mFrameWindow,
"Fuzzing Session Running. Stop Fuzzing?",
" JBroFuzz - Stop ", JOptionPane.YES_NO_OPTION);
if (choice == JOptionPane.YES_OPTION) {
final int c = mFrameWindow.getTp().getSelectedIndex();
final AbstractPanel p = (AbstractPanel) mFrameWindow.getTp()
.getComponent(c);
p.stop();
new SaveAsSession(mFrameWindow);
}