text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> Set<String> eventTypes, String publisherName) {
this(consumer, eventTypes);
this.publisherName = publisherName;
}
EventConsumer getConsumer() {
return consumer;
}
boolean wantsEvent(String eventType) {
return eventTypes.isE... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2016 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>nse.
*/
package org.zaproxy.zap.extension;
public interface AddonFilesChangedListener {
/** Called after addon files have been dynamically added from the marketplace. */
void filesAdded();
/** Called after addon files have been dynamically removed when uninstalling an addon. */
void fil... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>*
* @param text the text of the menu item.
*/
public ExtensionPopupMenu(String text) {
super(text);
}
/**
* Replaced by weights.
*
* @deprecated
*/
@Deprecated(since = "2.15.0")
public void setOrderChildren(boolean orderChildren) {}
/**
... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>nse, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License i... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2018 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> btnCancel.addActionListener(
new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
clearAndCloseDialog();
}
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> public void insert(MutableTreeNode newChild, int childIndex) {
if (!(newChild instanceof AlertNode)) {
throw new IllegalArgumentException("Parameter newChild must be an AlertNode.");
}
super.insert(newChild, childIndex);
}
@Override
public int getIndex(Tr... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> return maximumInstances;
}
public int getSystemicLimit() {
return systemicLimit;
}
public void setSystemicLimit(int systemicLimit) {
int newValue = Math.max(0, systemicLimit);
if (this.systemicLimit != newValue) {
this.systemicLimit = newValue;
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2025 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2021 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>herAlertNode) {
return alertNode.getAlert().compareTo(anotherAlertNode.getAlert());
}
}
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2021 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Z<|fim_suffix|>nse, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribute... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
*<|fim_suffix|>r can raise. */
List<Alert> getExampleAlerts();
}
<|fim_middle|> Copyright 2020 The ZAP Development Team
*
* Licensed under the Apache License, Versio... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> }
}
alert.setTags(ctags);
}
private static boolean isInvalid(Alert alert) {
if (alert.getUri().isEmpty() || alert.getMessage() == null) {
LOGGER.error(
"Attempting to raise an alert without URI or HTTP message, Plugin ID: {} Alert N... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file excep<|fim_suffix|>Exception;
... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>@since 1.4.0
*/
@SuppressWarnings("serial")
public class PopupMenuAlertEdit extends PopupMenuItemAlert {
private static final long serialVersionUID = 1L;
private final ExtensionAlert extension;
public PopupMenuAlertEdit(ExtensionAlert extension) {
super(Constant.messages.getString(... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>_POSITIVE);
try {
getExtensionAlert().updateAlert(newAlert);
} catch (HttpMalformedHeaderException | DatabaseException e) {
LOGGER.error("Unable to update confidence for alert: {}", alert.getAlertId(), e);
}
}
@Override
public boolean isSafe() {... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2016 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2025 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>oid setEnabled(boolean enabled) {
// Ignore
}
private boolean registerToken(int historyType) {
return PluginPassiveScanner.getDefaultHistoryTypes().contains(historyType);
}
@Override
public boolean appliesToHistoryType(int historyType) {
return true;
}
}
<... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> this.confirmRemoveToken = getBoolean(CONFIRM_REMOVE_TOKEN_KEY, true);
this.partialMatchingEnabled = getBoolean(PARTIAL_MATCHING_ENABLED, true);
}
/**
* Adds Anti-CSRF tokens if the existing list doesn't already contain all the defaults.
*
* @see #addToken(String)
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ring value) {
this.value = value;
}
public void setTargetURL(String targetUrl) {
this.targetURL = targetUrl;
}
public String getTargetURL() {
return targetURL;
}
public int getFormIndex() {
return formIndex;
}
public void setFormIndex(int... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> value : valueToToken.keySet()) {
if (reqBody.indexOf(value) >= 0) {
antiCsrfToken = valueToToken.get(value).clone();
antiCsrfToken.setTargetURL(message.getRequestHeader().getURI().toString());
break;
}
... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ive(HttpMessage message) throws IOException;
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2020 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License")... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>
addDialog.clear();
return token;
}
@Override
public AntiCsrfParamToken showModifyDialogue(AntiCsrfParamToken e) {
if (modifyDialog == null) {
modifyDialog = new DialogModifyToken(View.getSingleton().getOptionsDialog(null));
... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> java.util.List;
import org.parosproxy.paros.Constant;
import org.zaproxy.zap.view.AbstractMultipleOptionsTableModel;
@SuppressWarnings("serial")
public class OptionsAntiCsrfTableModel
extends AbstractMultipleOptionsTableModel<AntiCsrfParamToken> {
private static final long serialVersionUID ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>params = getParams(requestHeader);
// Parse the query:
// format of url is http://zap/format/component/reqtype/name/?params
// 0 1 2 3 4 5 6
String[] elements = url.split("/");
if (... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2016 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>d to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.zaproxy.zap.ex... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>@param paramName the name of the parameter
* @param mandatory {@code true} if the parameter is mandatory, {@code false} otherwise
* @return the {@code ApiResponseSet} with the name and mandatory fields
*/
private static ApiResponseSet<String> buildParamMap(String paramName, boolean mand... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related clas<|fim_suffix|>quired by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific lan... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>null);
api.addApiOptions(new AntiCsrfParam());
imps.add(api);
imps.add(new SearchAPI(null));
api = new AutoUpdateAPI(null);
api.addApiOptions(new OptionsParamCheckForUpdates());
imps.add(api);
api = new CoreAPI();
imps.add(api);
a... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2019 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and <|fim_suffix|> http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or imp... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2013 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>;
}
@Override
public void toXML(Document doc, Element parent) {
if (apiResponse == null) {
parent.appendChild(
doc.createTextNode(
getValue() != null
? XMLStringUtil.escapeControlChrs(this.... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> sb.append(StringEscapeUtils.escapeHtml4(value.toString()));
}
sb.append("</td></tr>\n");
}
sb.append("</table>\n");
}
@Override
public String toString(int indent) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i <... | fim | zaproxy/zaproxy | java |
<|fim_suffix|><String> mandatoryParamNames, List<String> optionalParamNames) {
super(name, mandatoryParamNames, optionalParamNames);
}
public ApiView(String name, String[] mandatoryParamNames, String[] optionalParamNames) {
super(name, mandatoryParamNames, optionalParamNames);
}
public... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2013 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> + " the ZAP development team\n"
+ " *\n"
+ " * Licensed under the Apache License, Version 2.0 (the \"License\");\n"
+ " * you may not use this file except in compliance with the License.\n"
+ " * You may obtain... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 The ZAP Development Team
*
* Licensed un<|fim_suffix|>tem getMenuAPI() {
if (menuAPI == null) {
menuAPI = new ZapMenuItem("api.menu.... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> transferDirectory = new JTextField(20);
}
return transferDirectory;
}
@Override
public void initParam(Object obj) {
OptionsParam options = (OptionsParam) obj;
getChkEnabled().setSelected(options.getApiParam().isEnabled());
getChkUiEnabled().setSelecte... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>tProperty(elementBaseKey + CALLBACK_PREFIX_KEY, entry.getValue());
i++;
}
try {
getConfig().save();
} catch (ConfigurationException e) {
LOGGER.error(e.getMessage(), e);
}
}
/**
* Add a callback which persists over ZAP resta... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2017 The ZAP Develo<|fim_suffix|>el<DomainMatcher> {
private static final long serialVersionUID = -5411351965957264957L;
private static final String[... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2019 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> categoryId) {
if (alertThreshold == null) {
alertThreshold = scanner.getAlertThreshold(true);
} else if (!alertThreshold.equals(scanner.getAlertThreshold(true))) {
// Not all the same
return null;
... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> boolean techOverridden = false;
if (contextSpecificObjects != null) {
for (Object obj : contextSpecificObjects) {
if (obj instanceof ScannerParam) {
LOGGER.debug("Setting custom scanner params");
asca... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ull;
@Override
public String getPublisherName() {
return ActiveScanEventPublisher.class.getCanonicalName();
}
public static synchronized ActiveScanEventPublisher getPublisher() {
if (publisher == null) {
publisher = new ActiveScanEventPublisher();
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2010 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>leModel extends DefaultHistoryReferencesTableModel {
private static final long serialVersionUID = 5732679524771190690L;
public ActiveScanTableModel() {
super(
new Column[] {
Column.HREF_ID,
Column.REQUEST_TIMESTAMP,
... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>nder the License.
*/
package org.zaproxy.zap.extension.ascan;
import javax.script.ScriptException;
import org.parosproxy.paros.network.HttpMessage;
@Deprecated(since = "2.15.0", forRemoval = true)
@SuppressWarnings("removal")
public interface ActiveScript {
void scan(ScriptsActiveScanner sas, Http... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> limitations under the License.
*/
package org.zaproxy.zap.extension.ascan;
import javax.script.ScriptException;
import org.parosproxy.paros.network.HttpMessage;
@Deprecated(since = "2.15.0", forRemoval = true)
@SuppressWarnings("removal")
public interface ActiveScript2 {
void scanNode(ScriptsActi... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> {
continue;
}
plugin.setAttackStrength(at);
}
}
void setAllCategoryEnabled(boolean enabled) {
for (int i = 0; i < pluginFactory.getAllPlugin().size(); i++) {
Plugin plugin = pluginFactory.getAllPlugin().get(i);
plug... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> new Runnable() {
@Override
public void run() {
boolean anyInScope = false;
for (Context ctx :
Model.getSingleton().getSession()... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>IDX:
return wrapper.getStatus();
default:
return "";
}
}
private List<PluginWrapper> getTestList() {
if (listTestCategory == null) {
listTestCategory = new ArrayList<>();
}
return listTestCategory;
}
... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>{
variantPanel = new OptionsVariantPanel();
variantPanel.setReasonVariantsDisabled(
Constant.messages.getString("ascan.custom.warn.disabled"));
}
return variantPanel;
}
private JPanel getCustomPanel() {
if (customPanel == null) ... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2015 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (th<|fim_suffix|>/
package org.zaproxy.zap.extension.ascan;
import org.paro... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ID = 1L;
private static final String DIALOG_TITLE =
Constant.messages.getString("variant.options.excludedparam.dialog.token.add.title");
private static final String CONFIRM_BUTTON_LABEL =
Constant.messages.getString(
"variant.options.excludedparam.dialog... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ht... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>hanged();
}
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fil... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>AllScans();
}
@Override
public int removeFinishedScans() {
return ascanController.removeFinishedScans();
}
@Override
public ActiveScan getLastScan() {
return ascanController.getLastScan();
}
public int registerScan(ActiveScan scanner) {
int id = a... | fim | zaproxy/zaproxy | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.