Package org.owasp.jbrofuzz.ui

Examples of org.owasp.jbrofuzz.ui.AbstractPanel


          "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();

        mainMenuBar.setSelectedPanelCheckBox(JBroFuzzWindow.ID_PANEL_PAYLOADS);
        mFrameWindow.setTabShow(JBroFuzzWindow.ID_PANEL_PAYLOADS);

        new LoadFuzzers(mFrameWindow);
View Full Code Here


        SwingUtilities.invokeLater(new Runnable() {
          public void run() {

            final int c = getFrame().getTp().getSelectedIndex();
            final AbstractPanel p = (AbstractPanel) getFrame().getTp()
            .getComponent(c);
            p.stop();

          }
        });

      }
    });

    pause.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent e) {
        SwingUtilities.invokeLater(new Runnable() {
          public void run() {

            Logger.log("Pause functionality has not yet being implemented", 2);

          }
        });
      }
    });

    add.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent e) {

        SwingUtilities.invokeLater(new Runnable() {
          public void run() {

            final int c = getFrame().getTp().getSelectedIndex();
            final AbstractPanel p = (AbstractPanel) getFrame().getTp()
            .getComponent(c);
            p.add();

          }
        });

      }
    });

    updates.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent e) {

        SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            new CheckForUpdates(JBroFuzzMenuBar.this.getFrame());
          }
        });

      }
    });

    remove.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent e) {

        SwingUtilities.invokeLater(new Runnable() {
          public void run() {

            final int c = getFrame().getTp().getSelectedIndex();
            final AbstractPanel p = (AbstractPanel) getFrame().getTp()
            .getComponent(c);
            p.remove();

          }
        });

      }
View Full Code Here

              "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);

          }
View Full Code Here

    stop.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent e) {

        final int c = getFrame().getTp().getSelectedIndex();
        final AbstractPanel p = (AbstractPanel) getFrame().getTp()
        .getComponent(c);
        p.stop();

      }
    });

    pause.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent e) {
        SwingUtilities.invokeLater(new Runnable() {
          public void run() {

            Logger.log("Pause functionality has not yet being implemented", 2);

          }
        });
      }
    });

    add.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent e) {

        SwingUtilities.invokeLater(new Runnable() {
          public void run() {

            final int c = getFrame().getTp().getSelectedIndex();
            final AbstractPanel p = (AbstractPanel) getFrame().getTp()
            .getComponent(c);
            p.add();

          }
        });

      }
    });

    remove.addActionListener(new ActionListener() {
      public void actionPerformed(final ActionEvent e) {

        SwingUtilities.invokeLater(new Runnable() {
          public void run() {

            final int c = getFrame().getTp().getSelectedIndex();
            final AbstractPanel p = (AbstractPanel) getFrame().getTp()
            .getComponent(c);
            p.remove();

          }
        });

      }
View Full Code Here

      OpenSession os = new OpenSession(mWindow, inputFileName);

      // start fuzzing
      if(!doNotFuzz){
        final int c = mWindow.getTp().getSelectedIndex();
        AbstractPanel p = (AbstractPanel) mWindow.getTp().getComponent(c);
        p = (AbstractPanel) mWindow.getTp().getComponent(c);
        p.start();
        p.stop();
        if (mWindow.getPanelFuzzing().isStopped()){
          p.stop();
        }
      }
   

      // write the results to output file
View Full Code Here

TOP

Related Classes of org.owasp.jbrofuzz.ui.AbstractPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.