Some payload fixes
git-svn-id: file:///home/svn/framework3/trunk@13596 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
4ad79d4385
commit
31d1628dde
Binary file not shown.
|
@ -52,13 +52,9 @@
|
|||
<Layout>
|
||||
<DimensionLayout dim="0">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<Group type="102" attributes="0">
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<Component id="outputScrollPane" min="-2" pref="691" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<Group type="103" groupAlignment="1" attributes="0">
|
||||
<Component id="descriptionBox" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
|
@ -73,24 +69,29 @@
|
|||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="handleConsoleButton" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Group type="102" alignment="1" attributes="0">
|
||||
</Group>
|
||||
<EmptySpace min="-2" pref="500" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<Component id="outputScrollPane" min="-2" pref="691" max="-2" attributes="0"/>
|
||||
<EmptySpace pref="26" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="103" alignment="0" groupAlignment="0" max="-2" attributes="0">
|
||||
<Component id="encoderLabel" alignment="0" 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" 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>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="1" attributes="0">
|
||||
<Group type="102" alignment="1" attributes="0">
|
||||
<Component id="templateField" pref="217" max="32767" attributes="1"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="templateButton" min="-2" pref="87" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Component id="archField" alignment="0" pref="310" max="32767" attributes="1"/>
|
||||
<Component id="timesField" alignment="0" pref="310" max="32767" attributes="1"/>
|
||||
<Component id="outputCombo" alignment="0" pref="310" max="32767" attributes="1"/>
|
||||
|
@ -100,13 +101,23 @@
|
|||
<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>
|
||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||
<Component id="templateWorkingCheck" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace min="-2" pref="154" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
<EmptySpace min="-2" pref="195" max="-2" attributes="0"/>
|
||||
<EmptySpace min="-2" pref="349" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</Group>
|
||||
|
@ -115,7 +126,7 @@
|
|||
<DimensionLayout dim="1">
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<EmptySpace min="-2" pref="36" max="-2" attributes="0"/>
|
||||
<EmptySpace min="-2" pref="54" max="-2" attributes="0"/>
|
||||
<Component id="descriptionBox" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace min="-2" pref="78" max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="3" attributes="0">
|
||||
|
@ -126,7 +137,7 @@
|
|||
<Component id="handleConsoleButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="outputScrollPane" pref="437" max="32767" attributes="0"/>
|
||||
<Component id="outputScrollPane" max="32767" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="3" attributes="0">
|
||||
<Component id="outputPathLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
|
@ -161,6 +172,12 @@
|
|||
<Component id="templateWorkingCheck" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="-2" 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="addCodeButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
</Group>
|
||||
</DimensionLayout>
|
||||
|
@ -369,6 +386,27 @@
|
|||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="handleConsoleButtonActionPerformed"/>
|
||||
</Events>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="addCodeLabel">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" resourceKey="addCodeLabel.text"/>
|
||||
<Property name="name" type="java.lang.String" value="addCodeLabel" noResource="true"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JTextField" name="addCodeField">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" resourceKey="addCodeField.text"/>
|
||||
<Property name="name" type="java.lang.String" value="addCodeField" noResource="true"/>
|
||||
</Properties>
|
||||
</Component>
|
||||
<Component class="javax.swing.JButton" name="addCodeButton">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" resourceKey="addCodeButton.text"/>
|
||||
<Property name="name" type="java.lang.String" value="addCodeButton" noResource="true"/>
|
||||
</Properties>
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="addCodeButtonActionPerformed"/>
|
||||
</Events>
|
||||
</Component>
|
||||
</SubComponents>
|
||||
</Container>
|
||||
</SubComponents>
|
||||
|
|
|
@ -73,6 +73,9 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
templateWorkingCheck.setVisible(saving);
|
||||
timesField.setVisible(saving);
|
||||
timesLabel.setVisible(saving);
|
||||
addCodeButton.setVisible(saving);
|
||||
addCodeLabel.setVisible(saving);
|
||||
addCodeField.setVisible(saving);
|
||||
|
||||
GroupLayout mainPanelLayout = (GroupLayout)mainPanel.getLayout();
|
||||
//HORIZONTAL GROUPING
|
||||
|
@ -120,7 +123,8 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
.addComponent(archLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(timesLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(outputPathLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(templateLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||
.addComponent(templateLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(addCodeLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(encoderCombo, 0, 188, Short.MAX_VALUE)
|
||||
|
@ -129,11 +133,13 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
|
||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(templateField, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE)
|
||||
.addComponent(outputPathField, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE))
|
||||
.addComponent(outputPathField, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE)
|
||||
.addComponent(addCodeField, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||
.addComponent(templateButton)
|
||||
.addComponent(choosePathButton)))
|
||||
.addComponent(choosePathButton)
|
||||
.addComponent(addCodeButton)))
|
||||
.addComponent(timesField, javax.swing.GroupLayout.DEFAULT_SIZE, 188, Short.MAX_VALUE))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(templateWorkingCheck)))
|
||||
|
@ -167,8 +173,9 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
.addComponent(handleButton)
|
||||
.addComponent(handleConsoleButton))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(outputScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||
.addComponent(outputScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE);
|
||||
if(saving)
|
||||
groupie = groupie.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||
.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)
|
||||
|
@ -195,7 +202,12 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
.addComponent(templateField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addComponent(templateButton)
|
||||
.addComponent(templateWorkingCheck))
|
||||
.addContainerGap();
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.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(addCodeButton));
|
||||
groupie = groupie.addContainerGap();
|
||||
mainPanelLayout.setVerticalGroup(mainPanelLayout.createParallelGroup(
|
||||
javax.swing.GroupLayout.Alignment.LEADING).addGroup(groupie));
|
||||
}
|
||||
|
@ -241,6 +253,9 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
templateField = new javax.swing.JTextField();
|
||||
handleButton = new javax.swing.JButton();
|
||||
handleConsoleButton = new javax.swing.JButton();
|
||||
addCodeLabel = new javax.swing.JLabel();
|
||||
addCodeField = new javax.swing.JTextField();
|
||||
addCodeButton = new javax.swing.JButton();
|
||||
|
||||
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
|
||||
setName("Form"); // NOI18N
|
||||
|
@ -359,6 +374,20 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
}
|
||||
});
|
||||
|
||||
addCodeLabel.setText(resourceMap.getString("addCodeLabel.text")); // NOI18N
|
||||
addCodeLabel.setName("addCodeLabel"); // NOI18N
|
||||
|
||||
addCodeField.setText(resourceMap.getString("addCodeField.text")); // NOI18N
|
||||
addCodeField.setName("addCodeField"); // NOI18N
|
||||
|
||||
addCodeButton.setText(resourceMap.getString("addCodeButton.text")); // NOI18N
|
||||
addCodeButton.setName("addCodeButton"); // NOI18N
|
||||
addCodeButton.addActionListener(new java.awt.event.ActionListener() {
|
||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||
addCodeButtonActionPerformed(evt);
|
||||
}
|
||||
});
|
||||
|
||||
javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
|
||||
mainPanel.setLayout(mainPanelLayout);
|
||||
mainPanelLayout.setHorizontalGroup(
|
||||
|
@ -366,9 +395,6 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||
.addContainerGap()
|
||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||
.addComponent(outputScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 691, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addContainerGap())
|
||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||
.addComponent(descriptionBox, javax.swing.GroupLayout.Alignment.LEADING)
|
||||
|
@ -381,22 +407,25 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(handleButton)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(handleConsoleButton))
|
||||
.addComponent(handleConsoleButton)))
|
||||
.addGap(500, 500, 500))
|
||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||
.addComponent(outputScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 691, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||
.addComponent(encoderLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(outputLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(timesLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(outputPathLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||
.addComponent(outputPathLabel)
|
||||
.addComponent(addCodeLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
||||
.addComponent(templateLabel)
|
||||
.addComponent(archLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||
.addComponent(templateField, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(templateButton, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addComponent(archField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)
|
||||
.addComponent(timesField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)
|
||||
.addComponent(outputCombo, javax.swing.GroupLayout.Alignment.LEADING, 0, 310, Short.MAX_VALUE)
|
||||
|
@ -404,16 +433,23 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup()
|
||||
.addComponent(outputPathField, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(choosePathButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)))
|
||||
.addComponent(choosePathButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
|
||||
.addComponent(addCodeField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)
|
||||
.addComponent(templateField, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
|
||||
.addComponent(addCodeButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||
.addComponent(templateButton, javax.swing.GroupLayout.DEFAULT_SIZE, 87, Short.MAX_VALUE))))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||
.addComponent(templateWorkingCheck)
|
||||
.addGap(154, 154, 154)))
|
||||
.addGap(195, 195, 195))))
|
||||
.addComponent(templateWorkingCheck)))
|
||||
.addGap(349, 349, 349))))
|
||||
);
|
||||
mainPanelLayout.setVerticalGroup(
|
||||
mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
||||
.addGap(36, 36, 36)
|
||||
.addGap(54, 54, 54)
|
||||
.addComponent(descriptionBox)
|
||||
.addGap(78, 78, 78)
|
||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
|
@ -423,7 +459,7 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
.addComponent(handleButton)
|
||||
.addComponent(handleConsoleButton))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(outputScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 437, Short.MAX_VALUE)
|
||||
.addComponent(outputScrollPane)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(outputPathLabel)
|
||||
|
@ -451,6 +487,11 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
.addComponent(templateField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addComponent(templateButton)
|
||||
.addComponent(templateWorkingCheck))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.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(addCodeButton))
|
||||
.addContainerGap())
|
||||
);
|
||||
|
||||
|
@ -492,6 +533,8 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
hash.put("ecount", timesField.getText());
|
||||
if(archField.getText().length() > 0)
|
||||
hash.put("arch", archField.getText());
|
||||
if(addCodeField.getText().length() > 0)
|
||||
hash.put("addshellcode", addCodeField.getText());
|
||||
if(templateField.getText().length() > 0){
|
||||
hash.put("altexe", templateField.getText());
|
||||
if(templateWorkingCheck.isSelected())
|
||||
|
@ -564,7 +607,15 @@ public class PayloadPopup extends ModuleInfoWindow {
|
|||
doRun(true);
|
||||
}//GEN-LAST:event_handleConsoleButtonActionPerformed
|
||||
|
||||
private void addCodeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addCodeButtonActionPerformed
|
||||
if(MsfguiApp.fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION)
|
||||
addCodeField.setText(MsfguiApp.fileChooser.getSelectedFile().getAbsolutePath());
|
||||
}//GEN-LAST:event_addCodeButtonActionPerformed
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
private javax.swing.JButton addCodeButton;
|
||||
private javax.swing.JTextField addCodeField;
|
||||
private javax.swing.JLabel addCodeLabel;
|
||||
private javax.swing.JTextField archField;
|
||||
private javax.swing.JLabel archLabel;
|
||||
private javax.swing.ButtonGroup buttonGroup1;
|
||||
|
|
|
@ -19,3 +19,6 @@ templateLabel.text=(win32 only) exe template
|
|||
handleButton.text=Start handler
|
||||
handleConsoleButton.text=Start handler in console
|
||||
descriptionBox.text=Description
|
||||
addCodeLabel.text=(win32 only) add shellcode
|
||||
addCodeButton.text=Choose...
|
||||
addCodeField.text=
|
||||
|
|
|
@ -216,18 +216,27 @@ class Module < Base
|
|||
:template_path => options['exedir']
|
||||
}
|
||||
|
||||
# If we were given addshellcode for a win32 payload,
|
||||
# create a double-payload; one running in one thread, one running in the other
|
||||
if options['addshellcode']
|
||||
buf = Msf::Util::EXE.win32_rwx_exec_thread(buf,0,'end')
|
||||
file = ::File.new(options['addshellcode'])
|
||||
file.binmode
|
||||
buf << file.read
|
||||
file.close
|
||||
end
|
||||
|
||||
enc = $framework.encoders.create(encoder)
|
||||
|
||||
begin
|
||||
# Imports options
|
||||
enc.datastore.update(options)
|
||||
|
||||
eout = buf.dup
|
||||
raw = nil
|
||||
raw = buf.dup
|
||||
|
||||
1.upto(ecount) do |iteration|
|
||||
# Encode it up
|
||||
raw = enc.encode(eout, badchars, nil, plat)
|
||||
raw = enc.encode(raw, badchars, nil, plat)
|
||||
end
|
||||
|
||||
output = Msf::Util::EXE.to_executable_fmt($framework, arch, plat, raw, fmt, exeopts)
|
||||
|
|
3
msfvenom
3
msfvenom
|
@ -323,7 +323,6 @@ if opts[:encode]
|
|||
begin
|
||||
break if done
|
||||
#enc.datastore.import_options_from_s(datastore, '_|_')
|
||||
eout = payload_raw.dup
|
||||
skip = false
|
||||
raw = nil
|
||||
|
||||
|
@ -334,7 +333,7 @@ if opts[:encode]
|
|||
|
||||
1.upto(opts[:iterations].to_i) do |iteration|
|
||||
begin
|
||||
raw = enc.encode(eout, opts[:badchars], nil, opts[:platform])
|
||||
raw = enc.encode(payload_raw.dup, opts[:badchars], nil, opts[:platform])
|
||||
rescue Msf::EncodingError
|
||||
print_error("#{enc.refname} failed: #{$!.class} : #{$!}")
|
||||
skip = true
|
||||
|
|
Loading…
Reference in New Issue