Merge pull request #7 from scriptjunkie/badcharsgui
Add badchars field to msfgui payload popupunstable
commit
4007c215c6
Binary file not shown.
|
@ -56,79 +56,76 @@
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<Group type="103" groupAlignment="1" attributes="0">
|
<Component id="descriptionBox" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="descriptionBox" alignment="0" min="-2" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="1394" max="-2" attributes="0"/>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<Component id="generateButton" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="displayButton" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="saveButton" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="handleButton" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="handleConsoleButton" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace min="-2" pref="500" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" attributes="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="1" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Component id="outputPathLabel" min="-2" max="-2" attributes="1"/>
|
||||||
<Component id="outputScrollPane" min="-2" pref="691" max="-2" attributes="0"/>
|
<Component id="encoderLabel" min="-2" max="-2" attributes="1"/>
|
||||||
<EmptySpace pref="26" max="-2" attributes="0"/>
|
<Component id="outputLabel" min="-2" max="-2" attributes="1"/>
|
||||||
|
<Component id="timesLabel" min="-2" max="-2" attributes="1"/>
|
||||||
|
<Component id="addCodeLabel" alignment="1" min="-2" max="-2" attributes="1"/>
|
||||||
|
<Component id="badcharsLabel" alignment="1" min="-2" max="-2" attributes="1"/>
|
||||||
|
<Component id="archLabel" alignment="1" min="-2" max="-2" attributes="1"/>
|
||||||
|
<Component id="templateLabel" alignment="1" min="-2" max="-2" attributes="1"/>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="1" attributes="0">
|
||||||
|
<Group type="102" alignment="1" attributes="0">
|
||||||
|
<Component id="outputPathField" pref="453" max="32767" attributes="1"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="choosePathButton" min="-2" pref="91" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
<Component id="archField" alignment="0" pref="550" max="32767" attributes="1"/>
|
||||||
|
<Component id="badcharsField" alignment="0" pref="550" max="32767" attributes="1"/>
|
||||||
|
<Component id="timesField" alignment="0" pref="550" max="32767" attributes="1"/>
|
||||||
|
<Component id="outputCombo" alignment="0" pref="550" max="32767" attributes="1"/>
|
||||||
|
<Component id="encoderCombo" alignment="0" min="-2" pref="540" max="-2" attributes="1"/>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="0" attributes="0">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
||||||
<Group type="103" alignment="0" groupAlignment="0" max="-2" attributes="0">
|
<Component id="addCodeField" max="32767" attributes="1"/>
|
||||||
<Component id="encoderLabel" alignment="0" max="32767" attributes="1"/>
|
<Component id="templateField" alignment="0" pref="447" max="32767" attributes="1"/>
|
||||||
<Component id="outputLabel" alignment="0" max="32767" attributes="1"/>
|
|
||||||
<Component id="timesLabel" alignment="0" max="32767" attributes="1"/>
|
|
||||||
<Component id="outputPathLabel" alignment="0" min="-2" max="-2" attributes="1"/>
|
|
||||||
<Component id="addCodeLabel" alignment="0" max="32767" attributes="1"/>
|
|
||||||
</Group>
|
|
||||||
<Component id="templateLabel" min="-2" max="-2" attributes="1"/>
|
|
||||||
<Component id="archLabel" min="-2" pref="177" max="-2" attributes="1"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="1" attributes="0">
|
<Group type="103" groupAlignment="1" attributes="0">
|
||||||
<Component id="archField" alignment="0" pref="310" max="32767" attributes="1"/>
|
<Component id="addCodeButton" pref="97" max="32767" attributes="1"/>
|
||||||
<Component id="timesField" alignment="0" pref="310" max="32767" attributes="1"/>
|
<Component id="templateButton" alignment="0" pref="97" max="32767" attributes="1"/>
|
||||||
<Component id="outputCombo" alignment="0" pref="310" max="32767" attributes="1"/>
|
|
||||||
<Component id="encoderCombo" alignment="0" pref="310" max="32767" attributes="1"/>
|
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<Component id="outputPathField" min="-2" pref="213" max="-2" attributes="1"/>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Component id="choosePathButton" min="-2" pref="91" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<Group type="102" alignment="1" attributes="0">
|
|
||||||
<Group type="103" groupAlignment="1" attributes="0">
|
|
||||||
<Component id="addCodeField" alignment="0" pref="217" max="32767" attributes="0"/>
|
|
||||||
<Component id="templateField" alignment="1" pref="217" max="32767" attributes="1"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
|
||||||
<Group type="103" groupAlignment="0" max="-2" attributes="0">
|
|
||||||
<Component id="addCodeButton" max="32767" attributes="1"/>
|
|
||||||
<Component id="templateButton" alignment="0" pref="87" max="32767" attributes="1"/>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
|
||||||
<Component id="templateWorkingCheck" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="-2" pref="349" max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="templateWorkingCheck" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace min="-2" pref="115" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
|
<Group type="102" alignment="0" attributes="0">
|
||||||
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
|
<Group type="102" alignment="0" attributes="0">
|
||||||
|
<Component id="generateButton" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="displayButton" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="saveButton" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="handleButton" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="handleConsoleButton" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace min="-2" pref="121" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<Component id="outputScrollPane" alignment="0" min="-2" pref="691" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace min="-2" pref="795" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
<DimensionLayout dim="1">
|
<DimensionLayout dim="1">
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="0">
|
<Group type="102" alignment="1" attributes="0">
|
||||||
<EmptySpace min="-2" pref="54" max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="119" max="-2" attributes="0"/>
|
||||||
<Component id="descriptionBox" min="-2" max="-2" attributes="0"/>
|
<Component id="descriptionBox" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace min="-2" pref="78" max="-2" attributes="0"/>
|
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="generateButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="generateButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="displayButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="displayButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
@ -137,47 +134,52 @@
|
||||||
<Component id="handleConsoleButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="handleConsoleButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="outputScrollPane" max="32767" attributes="0"/>
|
<Component id="outputScrollPane" pref="12" max="32767" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace min="-2" pref="6" max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="outputPathLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="outputPathField" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="outputPathField" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="outputPathLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="choosePathButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="choosePathButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="encoderLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="encoderCombo" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="encoderCombo" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="encoderLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="outputLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="outputCombo" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="outputCombo" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="outputLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="timesLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="timesField" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="timesField" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="timesLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
</Group>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
|
<Component id="badcharsField" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="badcharsLabel" alignment="3" min="-2" pref="23" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="archLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="archField" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="archField" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="archLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="templateLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="templateField" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="templateField" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="templateLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="templateButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="templateButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="templateWorkingCheck" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="templateWorkingCheck" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
<Group type="103" groupAlignment="3" attributes="0">
|
||||||
<Component id="addCodeLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="addCodeField" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="addCodeField" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
|
<Component id="addCodeLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="addCodeButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="addCodeButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
|
@ -407,6 +409,17 @@
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="addCodeButtonActionPerformed"/>
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="addCodeButtonActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
</Component>
|
</Component>
|
||||||
|
<Component class="javax.swing.JLabel" name="badcharsLabel">
|
||||||
|
<Properties>
|
||||||
|
<Property name="text" type="java.lang.String" resourceKey="badcharsLabel.text"/>
|
||||||
|
<Property name="name" type="java.lang.String" value="badcharsLabel" noResource="true"/>
|
||||||
|
</Properties>
|
||||||
|
</Component>
|
||||||
|
<Component class="javax.swing.JTextField" name="badcharsField">
|
||||||
|
<Properties>
|
||||||
|
<Property name="name" type="java.lang.String" value="badcharsField" noResource="true"/>
|
||||||
|
</Properties>
|
||||||
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Container>
|
</Container>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
|
|
|
@ -13,6 +13,7 @@ import javax.swing.GroupLayout;
|
||||||
import javax.swing.GroupLayout.ParallelGroup;
|
import javax.swing.GroupLayout.ParallelGroup;
|
||||||
import javax.swing.GroupLayout.SequentialGroup;
|
import javax.swing.GroupLayout.SequentialGroup;
|
||||||
import javax.swing.JFileChooser;
|
import javax.swing.JFileChooser;
|
||||||
|
import javax.swing.LayoutStyle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Popup for generating payloads and starting handlers.
|
* Popup for generating payloads and starting handlers.
|
||||||
|
@ -74,26 +75,28 @@ public class PayloadPopup extends ModuleInfoWindow {
|
||||||
templateWorkingCheck.setVisible(saving);
|
templateWorkingCheck.setVisible(saving);
|
||||||
timesField.setVisible(saving);
|
timesField.setVisible(saving);
|
||||||
timesLabel.setVisible(saving);
|
timesLabel.setVisible(saving);
|
||||||
|
badcharsField.setVisible(saving);
|
||||||
|
badcharsLabel.setVisible(saving);
|
||||||
addCodeButton.setVisible(saving);
|
addCodeButton.setVisible(saving);
|
||||||
addCodeLabel.setVisible(saving);
|
addCodeLabel.setVisible(saving);
|
||||||
addCodeField.setVisible(saving);
|
addCodeField.setVisible(saving);
|
||||||
|
|
||||||
GroupLayout mainPanelLayout = (GroupLayout)mainPanel.getLayout();
|
GroupLayout mainPanelLayout = (GroupLayout)mainPanel.getLayout();
|
||||||
//HORIZONTAL GROUPING
|
//HORIZONTAL GROUPING
|
||||||
ParallelGroup labelGroup = mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING);
|
ParallelGroup labelGroup = mainPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING);
|
||||||
//make label group
|
//make label group
|
||||||
for(int i = 0; i < optionalOpts.size(); i+= 2)
|
for(int i = 0; i < optionalOpts.size(); i+= 2)
|
||||||
labelGroup = labelGroup.addComponent((Component)optionalOpts.get(i), javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE);
|
labelGroup = labelGroup.addComponent((Component)optionalOpts.get(i), GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE);
|
||||||
//make text box group
|
//make text box group
|
||||||
ParallelGroup textBoxGroup = mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING);
|
ParallelGroup textBoxGroup = mainPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING);
|
||||||
for(int i = 1; i < optionalOpts.size(); i+= 2)
|
for(int i = 1; i < optionalOpts.size(); i+= 2)
|
||||||
textBoxGroup = textBoxGroup.addComponent((Component)optionalOpts.get(i));
|
textBoxGroup = textBoxGroup.addComponent((Component)optionalOpts.get(i));
|
||||||
//put it together
|
//put it together
|
||||||
mainPanelLayout.setHorizontalGroup(
|
mainPanelLayout.setHorizontalGroup(
|
||||||
mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
mainPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(titleLabel)
|
.addComponent(titleLabel)
|
||||||
.addComponent(descriptionBox)
|
.addComponent(descriptionBox)
|
||||||
.addComponent(authorsLabel)
|
.addComponent(authorsLabel)
|
||||||
|
@ -101,116 +104,122 @@ public class PayloadPopup extends ModuleInfoWindow {
|
||||||
.addComponent(versionLabel)
|
.addComponent(versionLabel)
|
||||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||||
.addGroup(labelGroup)
|
.addGroup(labelGroup)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addGroup(textBoxGroup)
|
.addGroup(textBoxGroup)
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||||
.addComponent(generateButton)
|
.addComponent(generateButton)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(displayButton)
|
.addComponent(displayButton)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(saveButton)
|
.addComponent(saveButton)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addComponent(handleButton)
|
.addComponent(handleButton)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(handleConsoleButton))
|
.addComponent(handleConsoleButton))
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
|
.addGroup(GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
|
||||||
.addComponent(outputScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)
|
.addComponent(outputScrollPane, GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)
|
||||||
.addComponent(encoderLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(encoderLabel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE)
|
||||||
.addComponent(outputLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(outputLabel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE)
|
||||||
.addComponent(archLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(archLabel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE)
|
||||||
.addComponent(timesLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(badcharsLabel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE)
|
||||||
.addComponent(outputPathLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(timesLabel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE)
|
||||||
.addComponent(templateLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(outputPathLabel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE)
|
||||||
.addComponent(addCodeLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addComponent(templateLabel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addComponent(addCodeLabel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE))
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(encoderCombo, 0, 188, Short.MAX_VALUE)
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(outputCombo, 0, 188, Short.MAX_VALUE)
|
.addComponent(encoderCombo, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(archField, javax.swing.GroupLayout.DEFAULT_SIZE, 188, Short.MAX_VALUE)
|
.addComponent(outputCombo, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
|
.addComponent(archField, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addComponent(badcharsField, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(templateField, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE)
|
.addGroup(GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
|
||||||
.addComponent(outputPathField, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE)
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(addCodeField, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE))
|
.addComponent(templateField, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addComponent(outputPathField, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
.addComponent(addCodeField, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)
|
||||||
.addComponent(templateButton)
|
.addComponent(templateButton)
|
||||||
.addComponent(choosePathButton)
|
.addComponent(choosePathButton)
|
||||||
.addComponent(addCodeButton)))
|
.addComponent(addCodeButton)))
|
||||||
.addComponent(timesField, javax.swing.GroupLayout.DEFAULT_SIZE, 188, Short.MAX_VALUE))
|
.addComponent(timesField, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(templateWorkingCheck)))
|
.addComponent(templateWorkingCheck)))
|
||||||
.addContainerGap()));
|
.addContainerGap()));
|
||||||
|
|
||||||
//VERTICAL GROUPING
|
//VERTICAL GROUPING
|
||||||
SequentialGroup groupie = mainPanelLayout.createSequentialGroup().
|
SequentialGroup groupie = mainPanelLayout.createSequentialGroup().
|
||||||
addComponent(titleLabel).
|
addComponent(titleLabel).
|
||||||
addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).
|
addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
|
||||||
addComponent(descriptionBox).
|
addComponent(descriptionBox).
|
||||||
addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).
|
addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
|
||||||
addComponent(authorsLabel).
|
addComponent(authorsLabel).
|
||||||
addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).
|
addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
|
||||||
addComponent(licenseLabel).
|
addComponent(licenseLabel).
|
||||||
addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).
|
addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).
|
||||||
addComponent(versionLabel);
|
addComponent(versionLabel);
|
||||||
for(int i = 0; i < optionalOpts.size(); i+=2){
|
for(int i = 0; i < optionalOpts.size(); i+=2){
|
||||||
groupie = groupie.addGroup(mainPanelLayout.createParallelGroup(
|
groupie = groupie.addGroup(mainPanelLayout.createParallelGroup(
|
||||||
javax.swing.GroupLayout.Alignment.BASELINE)
|
GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent((Component)optionalOpts.get(i)) //LABEL
|
.addComponent((Component)optionalOpts.get(i)) //LABEL
|
||||||
.addComponent((Component)optionalOpts.get(i+1), //TEXT BOX
|
.addComponent((Component)optionalOpts.get(i+1), //TEXT BOX
|
||||||
javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
|
GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
|
||||||
javax.swing.GroupLayout.PREFERRED_SIZE))
|
GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED);
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED);
|
||||||
}
|
}
|
||||||
groupie = groupie
|
groupie = groupie
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(generateButton)
|
.addComponent(generateButton)
|
||||||
.addComponent(displayButton)
|
.addComponent(displayButton)
|
||||||
.addComponent(saveButton)
|
.addComponent(saveButton)
|
||||||
.addComponent(handleButton)
|
.addComponent(handleButton)
|
||||||
.addComponent(handleConsoleButton))
|
.addComponent(handleConsoleButton))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(outputScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE);
|
.addComponent(outputScrollPane, GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE);
|
||||||
if(saving)
|
if(saving)
|
||||||
groupie = groupie.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
groupie = groupie.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(outputPathLabel)
|
.addComponent(outputPathLabel)
|
||||||
.addComponent(outputPathField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(outputPathField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(choosePathButton))
|
.addComponent(choosePathButton))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(encoderLabel)
|
.addComponent(encoderLabel)
|
||||||
.addComponent(encoderCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(encoderCombo, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(outputLabel)
|
.addComponent(outputLabel)
|
||||||
.addComponent(outputCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(outputCombo, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(timesLabel)
|
.addComponent(timesLabel)
|
||||||
.addComponent(timesField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(timesField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
|
||||||
|
.addComponent(badcharsLabel)
|
||||||
|
.addComponent(badcharsField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
|
||||||
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(archLabel)
|
.addComponent(archLabel)
|
||||||
.addComponent(archField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(archField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(templateLabel)
|
.addComponent(templateLabel)
|
||||||
.addComponent(templateField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(templateField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(templateButton)
|
.addComponent(templateButton)
|
||||||
.addComponent(templateWorkingCheck))
|
.addComponent(templateWorkingCheck))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(addCodeLabel)
|
.addComponent(addCodeLabel)
|
||||||
.addComponent(addCodeField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(addCodeField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(addCodeButton));
|
.addComponent(addCodeButton));
|
||||||
groupie = groupie.addContainerGap();
|
groupie = groupie.addContainerGap();
|
||||||
mainPanelLayout.setVerticalGroup(mainPanelLayout.createParallelGroup(
|
mainPanelLayout.setVerticalGroup(mainPanelLayout.createParallelGroup(
|
||||||
javax.swing.GroupLayout.Alignment.LEADING).addGroup(groupie));
|
GroupLayout.Alignment.LEADING).addGroup(groupie));
|
||||||
}
|
}
|
||||||
/** Displays payload info and options. */
|
/** Displays payload info and options. */
|
||||||
private void showOptions(String fullName) {
|
private void showOptions(String fullName) {
|
||||||
|
@ -257,6 +266,8 @@ public class PayloadPopup extends ModuleInfoWindow {
|
||||||
addCodeLabel = new javax.swing.JLabel();
|
addCodeLabel = new javax.swing.JLabel();
|
||||||
addCodeField = new javax.swing.JTextField();
|
addCodeField = new javax.swing.JTextField();
|
||||||
addCodeButton = new javax.swing.JButton();
|
addCodeButton = new javax.swing.JButton();
|
||||||
|
badcharsLabel = new javax.swing.JLabel();
|
||||||
|
badcharsField = new javax.swing.JTextField();
|
||||||
|
|
||||||
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
|
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
|
||||||
setName("Form"); // NOI18N
|
setName("Form"); // NOI18N
|
||||||
|
@ -389,6 +400,11 @@ public class PayloadPopup extends ModuleInfoWindow {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
badcharsLabel.setText(resourceMap.getString("badcharsLabel.text")); // NOI18N
|
||||||
|
badcharsLabel.setName("badcharsLabel"); // NOI18N
|
||||||
|
|
||||||
|
badcharsField.setName("badcharsField"); // NOI18N
|
||||||
|
|
||||||
javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
|
javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
|
||||||
mainPanel.setLayout(mainPanelLayout);
|
mainPanel.setLayout(mainPanelLayout);
|
||||||
mainPanelLayout.setHorizontalGroup(
|
mainPanelLayout.setHorizontalGroup(
|
||||||
|
@ -397,62 +413,62 @@ public class PayloadPopup extends ModuleInfoWindow {
|
||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
.addComponent(descriptionBox)
|
||||||
.addComponent(descriptionBox, javax.swing.GroupLayout.Alignment.LEADING)
|
.addGap(1394, 1394, 1394))
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup()
|
|
||||||
.addComponent(generateButton)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(displayButton)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(saveButton)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(handleButton)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
||||||
.addComponent(handleConsoleButton)))
|
|
||||||
.addGap(500, 500, 500))
|
|
||||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||||
|
.addComponent(outputPathLabel)
|
||||||
|
.addComponent(encoderLabel)
|
||||||
|
.addComponent(outputLabel)
|
||||||
|
.addComponent(timesLabel)
|
||||||
|
.addComponent(addCodeLabel)
|
||||||
|
.addComponent(badcharsLabel)
|
||||||
|
.addComponent(archLabel)
|
||||||
|
.addComponent(templateLabel))
|
||||||
|
.addGap(18, 18, 18)
|
||||||
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||||
.addComponent(outputScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 691, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(outputPathField, javax.swing.GroupLayout.DEFAULT_SIZE, 453, Short.MAX_VALUE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
.addComponent(choosePathButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addComponent(archField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 550, Short.MAX_VALUE)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
.addComponent(badcharsField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 550, Short.MAX_VALUE)
|
||||||
.addComponent(encoderLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(timesField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 550, Short.MAX_VALUE)
|
||||||
.addComponent(outputLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(outputCombo, javax.swing.GroupLayout.Alignment.LEADING, 0, 550, Short.MAX_VALUE)
|
||||||
.addComponent(timesLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(encoderCombo, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 540, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(outputPathLabel)
|
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup()
|
||||||
.addComponent(addCodeLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||||
.addComponent(templateLabel)
|
.addComponent(addCodeField)
|
||||||
.addComponent(archLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(templateField, javax.swing.GroupLayout.DEFAULT_SIZE, 447, Short.MAX_VALUE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||||
.addComponent(archField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)
|
.addComponent(addCodeButton, javax.swing.GroupLayout.DEFAULT_SIZE, 97, Short.MAX_VALUE)
|
||||||
.addComponent(timesField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)
|
.addComponent(templateButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 97, Short.MAX_VALUE))))
|
||||||
.addComponent(outputCombo, javax.swing.GroupLayout.Alignment.LEADING, 0, 310, Short.MAX_VALUE)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(encoderCombo, javax.swing.GroupLayout.Alignment.LEADING, 0, 310, Short.MAX_VALUE)
|
.addComponent(templateWorkingCheck)
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup()
|
.addGap(115, 115, 115))))
|
||||||
.addComponent(outputPathField, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(choosePathButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
.addComponent(generateButton)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(addCodeField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)
|
.addComponent(displayButton)
|
||||||
.addComponent(templateField, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE))
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addComponent(saveButton)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(addCodeButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
.addComponent(handleButton)
|
||||||
.addComponent(templateButton, javax.swing.GroupLayout.DEFAULT_SIZE, 87, Short.MAX_VALUE))))
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addComponent(handleConsoleButton)
|
||||||
.addComponent(templateWorkingCheck)))
|
.addGap(121, 121, 121))
|
||||||
.addGap(349, 349, 349))))
|
.addComponent(outputScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 691, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
|
.addGap(795, 795, 795))
|
||||||
);
|
);
|
||||||
mainPanelLayout.setVerticalGroup(
|
mainPanelLayout.setVerticalGroup(
|
||||||
mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
|
||||||
.addGap(54, 54, 54)
|
.addGap(119, 119, 119)
|
||||||
.addComponent(descriptionBox)
|
.addComponent(descriptionBox)
|
||||||
.addGap(78, 78, 78)
|
.addGap(18, 18, 18)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(generateButton)
|
.addComponent(generateButton)
|
||||||
.addComponent(displayButton)
|
.addComponent(displayButton)
|
||||||
|
@ -460,38 +476,42 @@ public class PayloadPopup extends ModuleInfoWindow {
|
||||||
.addComponent(handleButton)
|
.addComponent(handleButton)
|
||||||
.addComponent(handleConsoleButton))
|
.addComponent(handleConsoleButton))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(outputScrollPane)
|
.addComponent(outputScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 12, Short.MAX_VALUE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addGap(6, 6, 6)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(outputPathLabel)
|
|
||||||
.addComponent(outputPathField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(outputPathField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addComponent(outputPathLabel)
|
||||||
.addComponent(choosePathButton))
|
.addComponent(choosePathButton))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(encoderLabel)
|
.addComponent(encoderCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(encoderCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(encoderLabel))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(outputLabel)
|
.addComponent(outputCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(outputCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(outputLabel))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(timesLabel)
|
.addComponent(timesField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(timesField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(timesLabel))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(archLabel)
|
.addComponent(badcharsField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addComponent(archField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(badcharsLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
|
.addComponent(archField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addComponent(archLabel))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(templateLabel)
|
|
||||||
.addComponent(templateField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(templateField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addComponent(templateLabel)
|
||||||
.addComponent(templateButton)
|
.addComponent(templateButton)
|
||||||
.addComponent(templateWorkingCheck))
|
.addComponent(templateWorkingCheck))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||||
.addComponent(addCodeLabel)
|
|
||||||
.addComponent(addCodeField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(addCodeField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addComponent(addCodeLabel)
|
||||||
.addComponent(addCodeButton))
|
.addComponent(addCodeButton))
|
||||||
.addContainerGap())
|
.addContainerGap())
|
||||||
);
|
);
|
||||||
|
@ -535,6 +555,13 @@ public class PayloadPopup extends ModuleInfoWindow {
|
||||||
hash.put("format", outputCombo.getSelectedItem().toString());
|
hash.put("format", outputCombo.getSelectedItem().toString());
|
||||||
if(timesField.getText().length() > 0)
|
if(timesField.getText().length() > 0)
|
||||||
hash.put("ecount", timesField.getText());
|
hash.put("ecount", timesField.getText());
|
||||||
|
if(badcharsField.getText().length() > 0){
|
||||||
|
StringBuffer badbinary = new StringBuffer();
|
||||||
|
for(String s : badcharsField.getText().split("\\\\x"))
|
||||||
|
if(s.length() > 0)
|
||||||
|
badbinary.append((char)Integer.parseInt(s, 16));
|
||||||
|
hash.put("badchars", badbinary.toString());
|
||||||
|
}
|
||||||
if(archField.getText().length() > 0)
|
if(archField.getText().length() > 0)
|
||||||
hash.put("arch", archField.getText());
|
hash.put("arch", archField.getText());
|
||||||
if(addCodeField.getText().length() > 0)
|
if(addCodeField.getText().length() > 0)
|
||||||
|
@ -625,6 +652,8 @@ public class PayloadPopup extends ModuleInfoWindow {
|
||||||
private javax.swing.JLabel addCodeLabel;
|
private javax.swing.JLabel addCodeLabel;
|
||||||
private javax.swing.JTextField archField;
|
private javax.swing.JTextField archField;
|
||||||
private javax.swing.JLabel archLabel;
|
private javax.swing.JLabel archLabel;
|
||||||
|
private javax.swing.JTextField badcharsField;
|
||||||
|
private javax.swing.JLabel badcharsLabel;
|
||||||
private javax.swing.ButtonGroup buttonGroup1;
|
private javax.swing.ButtonGroup buttonGroup1;
|
||||||
private javax.swing.JButton choosePathButton;
|
private javax.swing.JButton choosePathButton;
|
||||||
public javax.swing.JLabel descriptionBox;
|
public javax.swing.JLabel descriptionBox;
|
||||||
|
|
|
@ -22,3 +22,4 @@ descriptionBox.text=Description
|
||||||
addCodeLabel.text=(win32 only) add shellcode
|
addCodeLabel.text=(win32 only) add shellcode
|
||||||
addCodeButton.text=Choose...
|
addCodeButton.text=Choose...
|
||||||
addCodeField.text=
|
addCodeField.text=
|
||||||
|
badcharsLabel.text=Badchars (\\xff\\x00)
|
||||||
|
|
Loading…
Reference in New Issue