Skip to content

Commit 0332491

Browse files
author
isayan
committed
Match and Replace の選択状態を保存から除外
1 parent c4e1d4e commit 0332491

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

release/YaguraExtension-v3.2.jar

-6.85 MB
Binary file not shown.

src/main/java/burp/BurpExtension.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import burp.api.montoya.MontoyaApi;
44
import burp.api.montoya.core.Registration;
55
import burp.api.montoya.extension.ExtensionUnloadingHandler;
6+
import burp.api.montoya.http.message.Cookie;
67
import burp.api.montoya.http.message.HttpRequestResponse;
8+
import burp.api.montoya.http.sessions.CookieJar;
79
import burp.api.montoya.ui.contextmenu.ContextMenuEvent;
810
import burp.api.montoya.ui.contextmenu.ContextMenuItemsProvider;
911
import burp.api.montoya.ui.editor.extension.EditorCreationContext;
@@ -55,6 +57,8 @@
5557
import extension.helpers.StringUtil;
5658
import extension.helpers.SwingUtil;
5759
import extension.helpers.json.JsonUtil;
60+
import java.util.function.Predicate;
61+
import java.util.stream.Collectors;
5862
import yagura.Config;
5963
import yagura.Version;
6064
import yagura.handler.AutoResponderHandler;
@@ -309,6 +313,12 @@ public List<Component> provideMenuItems(ContextMenuEvent event) {
309313
this.tabbetOption.setProperty(this.option);
310314
this.tabbetOption.addPropertyChangeListener(newPropertyChangeListener());
311315
api.userInterface().registerSuiteTab(this.tabbetOption.getTabCaption(), this.tabbetOption);
316+
317+
}
318+
319+
public List<Cookie> getCookies(Predicate<? super Cookie> filter) {
320+
CookieJar cookieJar = api().http().cookieJar();
321+
return cookieJar.cookies().stream().filter(filter).collect(Collectors.toList());
312322
}
313323

314324
/**

src/main/java/yagura/model/MatchReplaceProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class MatchReplaceProperty implements IPropertyConfig {
2020

2121
public final static String MATCHREPLACE_PROPERTY = "matchReplaceProperty";
2222

23-
@Expose
23+
// 保存から除外
2424
private String selectedName = "";
2525

2626
/**

src/main/java/yagura/view/BurpToolBar.form

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
5959
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
6060
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
61-
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,0,35,0,0,2,9"/>
61+
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,0,35,0,0,2,78"/>
6262
</AuxValues>
6363

6464
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
@@ -136,11 +136,12 @@
136136
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
137137
<StringArray count="0"/>
138138
</Property>
139+
<Property name="lightWeightPopupEnabled" type="boolean" value="false"/>
139140
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
140-
<Dimension value="[120, 28]"/>
141+
<Dimension value="[180, 28]"/>
141142
</Property>
142143
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
143-
<Dimension value="[60, 28]"/>
144+
<Dimension value="[80, 28]"/>
144145
</Property>
145146
<Property name="name" type="java.lang.String" value="" noResource="true"/>
146147
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">

src/main/java/yagura/view/BurpToolBar.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,9 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
153153
});
154154
toolBar.add(btnOpenBrowser);
155155

156-
cmbProfile.setMaximumSize(new java.awt.Dimension(120, 28));
157-
cmbProfile.setMinimumSize(new java.awt.Dimension(60, 28));
156+
cmbProfile.setLightWeightPopupEnabled(false);
157+
cmbProfile.setMaximumSize(new java.awt.Dimension(180, 28));
158+
cmbProfile.setMinimumSize(new java.awt.Dimension(80, 28));
158159
cmbProfile.setName(""); // NOI18N
159160
cmbProfile.setPreferredSize(new java.awt.Dimension(120, 28));
160161
cmbProfile.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {

0 commit comments

Comments
 (0)