-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from RUB-NDS/xsw
Improve Signature Wrapping Attacker
- Loading branch information
Showing
33 changed files
with
2,588 additions
and
698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
src/main/java/de/rub/nds/burp/espresso/gui/attacker/saml/UIPreview.form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JDialogFormInfo"> | ||
<Properties> | ||
<Property name="defaultCloseOperation" type="int" value="2"/> | ||
</Properties> | ||
<SyntheticProperties> | ||
<SyntheticProperty name="formSizePolicy" type="int" value="1"/> | ||
<SyntheticProperty name="generateCenter" type="boolean" value="false"/> | ||
</SyntheticProperties> | ||
<AuxValues> | ||
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> | ||
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> | ||
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> | ||
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> | ||
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> | ||
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> | ||
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> | ||
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> | ||
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> | ||
</AuxValues> | ||
|
||
<Layout> | ||
<DimensionLayout dim="0"> | ||
<Group type="103" groupAlignment="0" attributes="0"> | ||
<Group type="102" attributes="0"> | ||
<EmptySpace max="-2" attributes="0"/> | ||
<Group type="103" groupAlignment="0" attributes="0"> | ||
<Component id="jButtonExit" max="32767" attributes="0"/> | ||
<Component id="rTextScrollPane" pref="972" max="32767" attributes="0"/> | ||
<Group type="102" alignment="0" attributes="0"> | ||
<Component id="jLabel1" min="-2" max="-2" attributes="0"/> | ||
<EmptySpace max="32767" attributes="0"/> | ||
<Component id="jCheckBoxWrapLines" min="-2" max="-2" attributes="0"/> | ||
</Group> | ||
</Group> | ||
<EmptySpace max="-2" attributes="0"/> | ||
</Group> | ||
</Group> | ||
</DimensionLayout> | ||
<DimensionLayout dim="1"> | ||
<Group type="103" groupAlignment="0" attributes="0"> | ||
<Group type="102" alignment="0" attributes="0"> | ||
<EmptySpace min="-2" max="-2" attributes="0"/> | ||
<Group type="103" groupAlignment="3" attributes="0"> | ||
<Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/> | ||
<Component id="jCheckBoxWrapLines" alignment="3" min="-2" max="-2" attributes="0"/> | ||
</Group> | ||
<EmptySpace min="-2" max="-2" attributes="0"/> | ||
<Component id="rTextScrollPane" pref="531" max="32767" attributes="0"/> | ||
<EmptySpace min="-2" max="-2" attributes="0"/> | ||
<Component id="jButtonExit" min="-2" max="-2" attributes="0"/> | ||
<EmptySpace min="-2" max="-2" attributes="0"/> | ||
</Group> | ||
</Group> | ||
</DimensionLayout> | ||
</Layout> | ||
<SubComponents> | ||
<Container class="org.fife.ui.rtextarea.RTextScrollPane" name="rTextScrollPane"> | ||
<Properties> | ||
<Property name="autoscrolls" type="boolean" value="true"/> | ||
<Property name="lineNumbersEnabled" type="boolean" value="true"/> | ||
</Properties> | ||
|
||
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> | ||
<SubComponents> | ||
<Component class="org.fife.ui.rsyntaxtextarea.RSyntaxTextArea" name="rSyntaxTextArea"> | ||
<Properties> | ||
<Property name="editable" type="boolean" value="false"/> | ||
<Property name="columns" type="int" value="20"/> | ||
<Property name="rows" type="int" value="5"/> | ||
<Property name="codeFoldingEnabled" type="boolean" value="true"/> | ||
<Property name="syntaxEditingStyle" type="java.lang.String" value="text/xml"/> | ||
</Properties> | ||
</Component> | ||
</SubComponents> | ||
</Container> | ||
<Component class="javax.swing.JButton" name="jButtonExit"> | ||
<Properties> | ||
<Property name="text" type="java.lang.String" value="Exit"/> | ||
</Properties> | ||
<Events> | ||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButtonExitActionPerformed"/> | ||
</Events> | ||
</Component> | ||
<Component class="javax.swing.JLabel" name="jLabel1"> | ||
<Properties> | ||
<Property name="text" type="java.lang.String" value="New attack vector:"/> | ||
</Properties> | ||
</Component> | ||
<Component class="javax.swing.JCheckBox" name="jCheckBoxWrapLines"> | ||
<Properties> | ||
<Property name="text" type="java.lang.String" value="Enable Softwraps"/> | ||
</Properties> | ||
<Events> | ||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jCheckBoxWrapLinesActionPerformed"/> | ||
</Events> | ||
</Component> | ||
</SubComponents> | ||
</Form> |
137 changes: 137 additions & 0 deletions
137
src/main/java/de/rub/nds/burp/espresso/gui/attacker/saml/UIPreview.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
/** | ||
* EsPReSSO - Extension for Processing and Recognition of Single Sign-On Protocols. | ||
* Copyright (C) 2015 Tim Guenther and Christian Mainka | ||
* | ||
* This program is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License as published by the Free Software | ||
* Foundation; either version 2 of the License, or (at your option) any later | ||
* version. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | ||
* details. | ||
* | ||
* You should have received a copy of the GNU General Public License along with | ||
* this program; if not, write to the Free Software Foundation, Inc., 51 | ||
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
package de.rub.nds.burp.espresso.gui.attacker.saml; | ||
|
||
import javax.swing.JFrame; | ||
|
||
/** | ||
* @author Nurullah Erinola | ||
*/ | ||
public class UIPreview extends javax.swing.JDialog { | ||
|
||
/** | ||
* Creates new form UIPreview | ||
*/ | ||
public UIPreview(String message) { | ||
super(new JFrame(), true); | ||
initComponents(); | ||
// Set message | ||
rSyntaxTextArea.setText(message); | ||
rSyntaxTextArea.setCaretPosition(0); | ||
rTextScrollPane.setLineNumbersEnabled(true); | ||
// Show JDialog | ||
setLocationRelativeTo(null); | ||
setVisible(true); | ||
} | ||
|
||
/** | ||
* This method is called from within the constructor to initialize the form. | ||
* WARNING: Do NOT modify this code. The content of this method is always | ||
* regenerated by the Form Editor. | ||
*/ | ||
@SuppressWarnings("unchecked") | ||
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents | ||
private void initComponents() { | ||
|
||
rTextScrollPane = new org.fife.ui.rtextarea.RTextScrollPane(); | ||
rSyntaxTextArea = new org.fife.ui.rsyntaxtextarea.RSyntaxTextArea(); | ||
jButtonExit = new javax.swing.JButton(); | ||
jLabel1 = new javax.swing.JLabel(); | ||
jCheckBoxWrapLines = new javax.swing.JCheckBox(); | ||
|
||
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); | ||
|
||
rTextScrollPane.setAutoscrolls(true); | ||
rTextScrollPane.setLineNumbersEnabled(true); | ||
|
||
rSyntaxTextArea.setEditable(false); | ||
rSyntaxTextArea.setColumns(20); | ||
rSyntaxTextArea.setRows(5); | ||
rSyntaxTextArea.setCodeFoldingEnabled(true); | ||
rSyntaxTextArea.setSyntaxEditingStyle("text/xml"); | ||
rTextScrollPane.setViewportView(rSyntaxTextArea); | ||
|
||
jButtonExit.setText("Exit"); | ||
jButtonExit.addActionListener(new java.awt.event.ActionListener() { | ||
public void actionPerformed(java.awt.event.ActionEvent evt) { | ||
jButtonExitActionPerformed(evt); | ||
} | ||
}); | ||
|
||
jLabel1.setText("New attack vector:"); | ||
|
||
jCheckBoxWrapLines.setText("Enable Softwraps"); | ||
jCheckBoxWrapLines.addActionListener(new java.awt.event.ActionListener() { | ||
public void actionPerformed(java.awt.event.ActionEvent evt) { | ||
jCheckBoxWrapLinesActionPerformed(evt); | ||
} | ||
}); | ||
|
||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); | ||
getContentPane().setLayout(layout); | ||
layout.setHorizontalGroup( | ||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | ||
.addGroup(layout.createSequentialGroup() | ||
.addContainerGap() | ||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | ||
.addComponent(jButtonExit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) | ||
.addComponent(rTextScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 972, Short.MAX_VALUE) | ||
.addGroup(layout.createSequentialGroup() | ||
.addComponent(jLabel1) | ||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) | ||
.addComponent(jCheckBoxWrapLines))) | ||
.addContainerGap()) | ||
); | ||
layout.setVerticalGroup( | ||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) | ||
.addGroup(layout.createSequentialGroup() | ||
.addContainerGap() | ||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) | ||
.addComponent(jLabel1) | ||
.addComponent(jCheckBoxWrapLines)) | ||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) | ||
.addComponent(rTextScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 531, Short.MAX_VALUE) | ||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) | ||
.addComponent(jButtonExit) | ||
.addContainerGap()) | ||
); | ||
|
||
pack(); | ||
}// </editor-fold>//GEN-END:initComponents | ||
|
||
private void jCheckBoxWrapLinesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBoxWrapLinesActionPerformed | ||
if (jCheckBoxWrapLines.isSelected()) { | ||
rSyntaxTextArea.setLineWrap(true); | ||
} else { | ||
rSyntaxTextArea.setLineWrap(false); | ||
} | ||
}//GEN-LAST:event_jCheckBoxWrapLinesActionPerformed | ||
|
||
private void jButtonExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonExitActionPerformed | ||
this.dispose(); | ||
}//GEN-LAST:event_jButtonExitActionPerformed | ||
|
||
// Variables declaration - do not modify//GEN-BEGIN:variables | ||
private javax.swing.JButton jButtonExit; | ||
private javax.swing.JCheckBox jCheckBoxWrapLines; | ||
private javax.swing.JLabel jLabel1; | ||
private org.fife.ui.rsyntaxtextarea.RSyntaxTextArea rSyntaxTextArea; | ||
private org.fife.ui.rtextarea.RTextScrollPane rTextScrollPane; | ||
// End of variables declaration//GEN-END:variables | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.