text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_suffix|> specific language governing permissions and
* limitations under the License.
*/
package org.zaproxy.zap.tasks.internal;
import java.util.List;
public class MainAddOnsData {
private List<MainAddOn> addOns;
public List<MainAddOn> getAddOns() {
return addOns;
}
}
<|fim_prefix|>/*
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
<|fim_suffix|>}
}
<|fim_middle|> * ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2022 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fil... | 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 2023 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 asse<|fim_suffix|>pliance 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, softwa... | 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 2022 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 2022 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|>}
catch (err) {
print("FAILED processing: " + files[i].getAbsolutePath());
err.printStackTrace();
}
}<|fim_prefix|>/*
A ZAP standalone script for testing Automation Framework<|fim_middle|> (AF) context support.
The script loops through a set of context files and for each:
* Loads the context fil... | fim | zaproxy/zaproxy | javascript |
<|fim_prefix|>/*
Test session management script which does nothing other than expose the right interface
and define required and optional<|fim_suffix|>ssion(sessionWrapper) {
}
function getRequiredParamsNames() {
return ["aaa", "bbb"];
}
function getOptionalParamsNames() {
return ["ccc", "ddd"];
}
<|fim_middle|> ... | fim | zaproxy/zaproxy | javascript |
<|fim_suffix|> print(hr.getHttpMessage().getRequestHeader());
print(hr.getHttpMessage().getRequestBody());
print('=========');
print(hr.getHttpMessage().getResponseHeader());
print(hr.getHttpMessage().getResponseBody());
}
}
... | fim | zaproxy/zaproxy | javascript |
<|fim_suffix|>CweId(388) // CWE CATEGORY: Error Handling
alert.setWascId(20) // WASC Improper Input Handling
extensionAlert.alertFound(alert , ref)
}
}
}
function isGloballyExcluded(msg) {
var url = msg.getRequestHeader().getURI().toString()
var regexes = model.getSession().getGlobalExcludeURLRegexs()
for... | fim | zaproxy/zaproxy | javascript |
<|fim_suffix|> an API.\n" +
"Raised by the 'Alert on Unexpected Content Types' script");
alert.setEvidence(ctype)
extensionAlert.alertFound(alert , ref)
}
}
}
}
function isGloballyExcluded(msg) {
var url = msg.getRequestHeader().getURI().toString()
var regexes = model.getSession().getGlobalExclude... | fim | zaproxy/zaproxy | javascript |
<|fim_suffix|>st.append(klass)
# lower priority number ... the sooner it gets loaded
return sorted(test_list, key=lambda k: k.priority, reverse=False)
def run_tests(directory="./"):
test_list = get_test_cases(directory)
test_load = unittest.TestLoader()
cases = [test_load.loadTestsFromTestCase(t) ... | fim | zaproxy/zaproxy | python |
<|fim_prefix|>import importlib.util
import os
import sys
import tempfile
import unittest
from pathlib import Path
from unittest.mock import Mock, patch
import yaml
class TestZapBaselinePlan(unittest.TestCase):
target = "https://example.com/"
config_content = "10001\tFAIL\tignore\tCustom message\n"
def l... | fim | zaproxy/zaproxy | python |
<|fim_prefix|>import unittest
from datetime import datetime
from unittest.mock import Mock, PropertyMock, patch
import zap_common
import zapv2
class TestZapCommon(unittest.TestCase):
def setUp(self):
zap_common.context_id = None
zap_common.context_name = None
zap_common.context_users = No... | fim | zaproxy/zaproxy | python |
<|fim_suffix|>led_once_with(zap, target)
hooks.zap_spider_wrap.assert_called_once_with(None)
def test_zap_ajax_spider_triggers_hooks(self):
"""Hooks are triggered when zap_ajax_spider is called."""
hooks = Mock(zap_ajax_spider=Mock(return_value=[]))
zap_common.zap_hooks = hooks
... | fim | zaproxy/zaproxy | python |
#!/usr/bin/env python
# Zed Attack Proxy (ZAP) and its related class files.
#
# ZAP is an HTTP/HTTPS proxy for assessing web application security.
#
# Copyright 2017 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... | fim | zaproxy/zaproxy | python |
<|fim_suffix|> load config file from url
try:
config_data = urlopen(config_url).read().decode('UTF-8').splitlines()
load_config(config_data, config_dict, config_msg, out_of_scope_dict)
except ValueError as e:
logging.warning("Failed to read configs from " + config_url... | fim | zaproxy/zaproxy | python |
<|fim_suffix|>le if it wasn't specified with -P option
if port == 0:
port = get_free_port()
logging.debug('Using port: ' + str(port))
if config_file:
# load config file from filestore
config_file = os.path.join(base_dir, config_file)
with open(config_file) as f:
... | fim | zaproxy/zaproxy | python |
<|fim_prefix|>#!/usr/bin/env python
# Zed Attack Proxy (ZAP) and its related class files.
#
# ZAP is an HTTP/HTTPS proxy for assessing web application security.
#
# Copyright 2017 ZAP Development Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance wi... | fim | zaproxy/zaproxy | python |
<|fim_suffix|>for the specific language governing permissions and
* limitations under the License.
*/<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright $YEAR The ZAP Development Team<|fim_middle|>
*
* Licen... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>def pytest_addoption(parser):
parser.addoption("--zapconfig", action="store", default="test_zap.config",
help="ZAP client configuration file, default: test_zap.config")
<|fim_suffix|>_zapconfig(request):
return request.config.option.zapconfig
<|fim_middle|>def pytest_funcarg_<|endoftext|... | fim | zaproxy/zaproxy | python |
<|fim_suffix|>
zap = ZAP(proxies={'http': zapUrl, 'https': zapUrl})
if (parser.getboolean("Actions", "start")):
# print "platform=" + platform.system()
if (platform.system() == "Windows"):
zapScript = "start /b zap.bat"
else:
zapScript = "zap.sh"
zapInstall = parser.get("Proxy", "install");
if ... | fim | zaproxy/zaproxy | python |
<|fim_suffix|> key=lambda k_v: k_v[1]):
reportFile.write("<tr>")
reportFile.write("<td>" + v + "</td>")
reportFile.write("<td>" + k + "</td>")
reportFile.write("</tr>\n")
reportFile.write("</table><br/>\n")
reportFile.write("</body></html>\n")
reportFile.close()
#for key, value in sorted(alertsPerUrl.iteritems(... | fim | zaproxy/zaproxy | python |
<|fim_suffix|>" ")
reportFile.write("</font>")
total = 100 * totalPass / (totalPass + totalFail)
reportFile.write(str(total) + "%<br/><br/>\n")
reportFile.write('ZAP Version: ' + zapVersion + '<br/>\n')
reportFile.write('URLs found: ' + str(len(uniqueUrls)))
# Output the top level table
reportFile.write("... | fim | zaproxy/zaproxy | python |
<|fim_suffix|>nputStream lastResponseInputStream = null;
/** Whether or not the connection is connected. */
protected boolean isOpen = false;
/** the protocol being used */
private Protocol protocolInUse;
/** Collection of HTTP parameters associated with this HTTP connection*/
pri... | fim | zaproxy/zaproxy | java |
/*
* HeadURL: https://svn.apache.org/repos/asf/httpcomponents/oac.hc3x/trunk/src/java/org/apache/commons/httpclient/HttpException.java
* Revision: 608014
* Date: 2008-01-02 05:48:53 +0000 (Wed, 02 Jan 2008)
*
* ====================================================================
*
* Licensed to the Apache Softw... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ring, Object)}
* to exercise a more granular control over HTTP protocol strictness.
*/
@Deprecated
@Override
public void setStrictMode(boolean strictMode) {
if (strictMode) {
this.params.makeStrict();
} else {
this.params.makeLenient();
... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>guration.setHost(redirectUri);
} catch (URIException ex) {
throw new InvalidRedirectLocationException(
"Invalid redirect location: " + location, location, ex);
}
if (this.params.isParameterFalse(HttpClientParams.ALLOW_CIRCULAR_REDIRECTS)) {
if (this... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* HeadURL: https://svn.apache.org/repos/asf/httpcomponents/oac.hc3x/trunk/src/java/org/apache/commons/httpclient/URIException.java
* Revision: 608014
* Date: 2008-01-02 05:48:53 +0000 (Wed, 02 Jan 2008)
*
* ====================================================================
*
* Licensed to the... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* HeadURL: https://svn.apache.org/repos/asf/httpcomponents/oac.hc3x/trunk/src/java/org/apache/commons/httpclient/protocol/SecureProtocolSocketFactory.jav
* Revision: 608014
* Date: 2008-01-02 05:48:53 +0000 (Wed, 02 Jan 2008)
*
* ====================================================================... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>ocation)) {
sourceLocation = sourceLocation.getParent();
}
path = sourceLocation.toString();
} catch (URISyntaxException e) {
System.err.println(
"Failed to determine the ZAP ins... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>lue.
* @since 2.7.0
*/
protected Integer getInteger(String key, Integer defaultValue) {
try {
return getConfig().getInteger(key, defaultValue);
} catch (ConversionException e) {
logConversionException(key, e);
}
return defaultValue;
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it unde<|fim_suffix|>e;
}
}
<|fim_middle|>r the ... | fim | zaproxy/zaproxy | java |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as publish... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>tSessionId(), session.getSessionName());
} catch (DatabaseException e) {
if (!ErrorUtils.handleDiskSpaceException(e)) {
LOGGER.error(e.getMessage(), e);
}
}
return session;
}
/**
* Closes the old session and creates and opens a... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technol<|fim_suffix|>sChangedListener.
control.getExtensionLoader().optionsChangedAllPlugin(model.getOptionsParam());
view.get... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>EnableApi(true);
}
public boolean startServer() {
// setProxyParam put in here so restart can reread param.
proxyServer.setProxyParam(model.getOptionsParam().getProxyParam());
proxyServer.setConnectionParam(model.getOptionsParam().getConnectionParam());
if (model... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Zed <|fim_suffix|>th the value of the order that this listener should be notified
* about
*/
int getArrangeableListenerOrder();
}
<|fim_middle|>Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2005 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | 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|>s() {
return delegate.getInetAddress();
}
@Override
public InetAddress getLocalAddress() {
return delegate.getLocalAddress();
}
@Override
public int getPort() {
return delegate.getPort();
}
@Override
public int getLocalPort() {
return ... | 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|>to be forwarded to the client.
*
* @see OverrideMessageProxyListener
* @see ConnectRequestProxyListener
*/
// ZAP: Changed the JavaDoc.
public interface ProxyListener extends ArrangeableProxyListener {
/**
* Notifies the listener that a new request was received from the client and is ready t... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Created on Jun 6, 2004
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>;
}
}
<|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... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>oxyServer(String threadName) {
connectRequestProxyListeners = new ArrayList<>(1);
if (threadName != null) {
this.threadName = threadName;
}
}
public void setProxyParam(ProxyParam param) {
proxyParam = param;
}
public ProxyParam getProxyParam() ... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>.paros.network.HttpSender;
@Deprecated
public class ProxyServerSSL extends ProxyServer {
private static org.parosproxy.paros.network.SSLConnector ssl = HttpSender.getSSLConnector();
public ProxyServerSSL() {
super();
}
@Override
protected ServerSocket createServerSocket(Str... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Created on May 25, 2004
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
* Created on May 31, 2004
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>}
List<ScannerParamFilter> excludedParameters = getParameterExclusionFilters(param);
// We can use the base one, we don't do anything with it
HttpMessage msg = getBaseMsg();
for (ScannerParamFilter filter : excludedParameters) {
if (filter.isToExclude(msg, pa... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>eted(HostProcess parent) {
/* no need to notify parent this plugin is completed. HostProcess will wait each
AbstractAppPlugin to finish.
*/
}
}
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> this.alertId = alertId;
return this;
}
public Builder setPluginId(int pluginId) {
this.pluginId = pluginId;
return this;
}
public Builder setName(String name) {
this.name = name;
return this;
}
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as publish... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> HttpRequestConfig.builder()
.setRedirectionValidator(getRedirectionValidator())
.build();
}
return redirectRequestConfig;
}
/**
* Gets the redirection validator that ensures the followed redirections are 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 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|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | 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 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 License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>**
* @return Returns the name.
*/
public String getName() {
return name;
}
/**
* @param name The name to set.
*/
public void setName(String name) {
this.name = name;
}
/**
* @return Returns the value.
*/
public String getValue() {... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>e Network add-on. It will be removed in a future release.
* @return the number of milliseconds to wait before sending a request.
*/
@Deprecated(since = "2.13.0", forRemoval = true)
default int getDelayInMs() {
return 0;
}
/**
* @deprecated (2.13.0) This functionalit... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> }
Plugin plugin = probeNextPlugin();
if (plugin == null) {
return null;
}
listPending.remove(plugin);
plugin.setTimeStarted();
listRunning.add(plugin);
return plugin;
}
private boolean isAllDependencyCompleted(Plugin plugin... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>nner.ASCAN_RULE_PREFIX + this.pluginId + Scanner.ALERTS_POSTFIX);
}
/**
* Gets the scan progress of the plugin.
*
* @return the scan progress
*/
public int getProgress() {
return progress;
}
/**
* Increments the scan progress of the plugin.
*
... | 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_suffix|>ew HistoryReference(
Model.getSingleton().getSession(), HistoryReference.TYPE_TEMPORARY, message);
}
}
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies C... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | 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|>/03/03 Issue 546: Remove all template Javadoc comments
// ZAP: 2013/05/02 Removed redundant public modifiers from interface method declarations
// ZAP: 2014/10/24 Issue 1378: Revamp active scan panel
// ZAP: 2019/06/01 Normalise line endings.
// ZAP: 2019/06/05 Normalise format/style.
// ZAP: 2019/12/10 I... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>*");
addScannerParamFilter("(?i)SITESERVER", NameValuePair.TYPE_UNDEFINED, "*");
addScannerParamFilter("(?i)sessid", NameValuePair.TYPE_UNDEFINED, "*");
addScannerParamFilter("__VIEWSTATE", NameValuePair.TYPE_POST_DATA, "*");
addScannerParamFilter("__EVENTVA... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>"variant.param.type.cookie"));
typeMap.put(
NameValuePair.TYPE_JSON, Constant.messages.getString("variant.param.type.json"));
typeMap.put(
NameValuePair.TYPE_GRAPHQL_INLINE,
Constant.messages.getString("variant.param.type.graphql.inline"));
... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | 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 |
<|fim_suffix|>.append("; ");
}
if (cookieName != null && !cookieName.isEmpty()) {
cookieString.append(cookieName);
cookieString.append('=');
}
if (cookieValue != null) {
cookieString.append(cookieValue);
}
... | 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 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 License.
* Yo... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>olean:<<true or false>>
// null:null
if (patternNumberValue.matcher(paramDetails[1]).matches()
|| patternStringValue.matcher(paramDetails[1]).matches()
|| patternBooleanValue.matcher(paramDetails[1]).matches()... | fim | zaproxy/zaproxy | java |
<|fim_prefix|>/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License... | 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 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|>can) {
scanNullValues = scan;
}
/**
* Tells whether or not to scan null values.
*
* @return {@code true} if null values should be scanned, {@code false} otherwise.
* @see #setScanNullValues(boolean)
*/
public boolean isScanNullValues() {
return scanNul... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>sition\\s*:.*\\s+name\\s*\\=?\\s*\\\"?(?<name>.[^;\\\"\\n]*)\\\"?\\;?.*",
Pattern.CASE_INSENSITIVE);
private static final Pattern FIELD_VALUE_PATTERN = Pattern.compile("[\\r\\n]{2}(?<value>.*)");
private static final Pattern FILENAME_PART_PATTERN =
Pattern.compile(
... | 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_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 |
<|fim_prefix|>/*
* Zed<|fim_suffix|>Header(HttpHeader.CONTENT_TYPE) == null) {
Stats.incCounter(STATS_NAME + ".none");
return true;
}
if (msg.getRequestHeader().hasContentType("text/plain")) {
Stats.incCounter(STATS_NAME + ".plain");
return true;
... | 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 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 |
/*
*
* Paros and its related class files.
*
* Paros is an HTTP/HTTPS proxy for assessing web application security.
* Copyright (C) 2003-2004 Chinotec Technologies Company
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Clarified Artistic License
* as publish... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>[] injPoint) {
return injPoint[0] > headerLength
&& injPoint[1] > headerLength
&& injPoint[0] - headerLength <= bodyLength
&& injPoint[1] - headerLength <= bodyLength;
}
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related class files.
*... | 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 |
<|fim_suffix|>eListener databaseListener : listeners) {
try {
databaseListener.databaseOpen(databaseServer);
} catch (DatabaseUnsupportedException e) {
getLogger().error(e.getMessage(), e);
}
}
}
/**
* Notifies the database listen... | 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 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_suffix|>ener {
void databaseOpen(DatabaseServer dbServer)
throws DatabaseException, DatabaseUnsupportedException;
/**
* Called when the database is in process of closing, or when the listener is removed.
*
* @since 2.16.1
*/
default void closing(DatabaseServer db) thr... | fim | zaproxy/zaproxy | java |
<|fim_suffix|>abase server This interface was extracted from the previous
* Paros class of the same name. The Paros class that implements this interface has been moved to
* the 'paros' sub package and prefixed with 'Paros'
*
* @author psiinon
*/
public interface DatabaseServer {
/**
* Gets the URL used t... | fim | zaproxy/zaproxy | java |
<|fim_suffix|> for the specific language governing permissions and
* limitations under the License.
*/
package org.parosproxy.paros.db;
public class DatabaseUnsupportedException extends Exception {
private static final long serialVersionUID = 1L;
}
<|fim_prefix|>/*
* Zed Attack Proxy (ZAP) and its related clas... | fim | zaproxy/zaproxy | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.