text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
/* * 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 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_suffix|>_PREFIX = "stats.code."; public static final String CONTENT_TYPE_STATS_PREFIX = "stats.contentType."; public static final String RESPONSE_TIME_STATS_PREFIX = "stats.responseTime."; public StatsPassiveScanner() {} @Override public String getName() { return Constant.messages.ge...
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|> } public RuleConfigParam getRuleConfigParam() { if (ruleConfigParam == null) { ruleConfigParam = new RuleConfigParam(); } return ruleConfigParam; } public List<RuleConfig> getAllRuleConfigs() { return this.getRuleConfigParam().getAllRuleConfigs...
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
/* * 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 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 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|>Config(RuleConfig rc) { this.ruleConfigs.put(rc.getKey(), rc); if (!this.getConfig().containsKey(rc.getKey())) { // Dont overwrite an existing value this.getConfig().setProperty(rc.getKey(), rc.getValue()); } } public void addRuleConfig(String key, ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>Not super efficient, but we dont expect there to be too many of these if (token.getKey().equals(key)) { token.setValue(value); this.fireTableCellUpdated(row, 2); return; } row++; } } } <|fim_prefix|>/* * Zed 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 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 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|>eption if an error occurred while executing the script. */ void responseReceived(HttpMessage msg, int initiator, HttpSenderScriptHelper helper) throws ScriptException; } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assess...
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 no<|fim_suffix|>s and * limitations under the L...
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 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 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_suffix|>, off, len); forEachWriter(writer -> writer.append(str)); } @Override public void flush() throws IOException { forEachWriter(Writer::flush); } @Override public void close() throws IOException { forEachWriter(Writer::close); } public void addWriter...
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|>roxyScripts(HttpMessage msg, boolean request) { for (CachedScript<ProxyScript> cachedScript : scripts.getCachedScripts()) { ProxyScript script = cachedScript.getScript(); try { boolean forwardMessage = cachedScript.execute( ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ption if an error occurred while executing the script. */ boolean proxyRequest(HttpMessage msg) throws ScriptException; /** * Called after receiving the response from a proxied request. * * <p>If the return value is {@code true} the response <i>may be</i> forwarded and the fol...
fim
zaproxy/zaproxy
java
<|fim_suffix|> ApiException.Type.ILLEGAL_PARAMETER, ACTION_PARAM_SCRIPT_NAME); } extension.setEnabled(script, false); return ApiResponseElement.OK; } else if (ACTION_LOAD.equals(name)) { ScriptType type = extension.getScriptType(params.getString(...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HT<|fim_suffix|>zaproxy.zap.extension.script; import java.util.List; public class ScriptCollection { private ScriptType type; private List<ScriptWrapper> scripts; public ScriptCollection(ScriptType type, List<Sc...
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|>apper script, boolean display); void templateRemoved(ScriptWrapper script); } <|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 ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZA<|fim_suffix|>pe = type; this.template = template; } public ScriptNode(String name) { this.nodeName = name; } public ScriptNode(ScriptWrapper script) { this(script, false); } public ScriptNode(ScriptWrapper script, boolean templa...
fim
zaproxy/zaproxy
java
<|fim_suffix|>per script, String output); } <|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 ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> elementBaseKey + SCRIPT_FILE_KEY, script.getFile().getAbsolutePath()); i++; } } } public Set<ScriptWrapper> getScripts() { return scripts; } /** * Saves the properties of the provided script to ...
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 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|>selectNode(ScriptNode node, boolean expand, boolean allowFocus) { selectNode(node, expand); } void disableScriptDialog(Class<?> klass); /** * Removes a disabled script dialogue of the given class. * * @param klass the class that has the script dialogue disabled * ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>); } /** * Gets an unmodifiable map, variable key to value, containing the global custom variables. * * <p>Iterations should be done in a synchronised block using the returned map. * * @return an unmodifiable map containing the global variables, never {@code 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 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 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"); * 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|>g.zaproxy.zap.extension.script; import javax.script.ScriptException; import org.parosproxy.paros.network.HttpMessage; /** * A script that is executed on demand by the user for selected {@link HttpMessage HTTP message}(s). * * @since 2.2.0 */ public interface TargetedScript { /** * Called f...
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|> HTTP messages. * * @since 2.4.0 */ public interface HttpSearcher { /** * Returns a descriptive name of the searcher, to be shown in UI components. The name must be * internationalised. * * @return the name of the searcher, never {@code null} */ String getName(); ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>(); setName(NAME); setLayout(new FlowLayout(FlowLayout.LEADING, 0, 0)); JPanel panel = new JPanel(new GridBagLayout()); panel.setBorder(new EmptyBorder(2, 2, 2, 2)); GridBagConstraints gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0;...
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 Tea<|fim_suffix|>istributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See th...
fim
zaproxy/zaproxy
java
<|fim_suffix|> this.location = location; } public int getStart() { return start; } public void setStart(int start) { this.start = start; } public int getEnd() { return end; } public void setEnd(int end) { this.end = end; } public HttpMessage...
fim
zaproxy/zaproxy
java
<|fim_suffix|> if (searchType == null) { searchType = new JComboBox<>(); searchType.addItem( new SearchOption( Constant.messages.getString("search.toolbar.label.type.all"), ExtensionSearch.Type.All)); search...
fim
zaproxy/zaproxy
java
<|fim_suffix|> * @see #setMaximumSearchResultsGUI(int) */ public int getMaximumSearchResultsGUI() { return maximumSearchResultsGUI; } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyrigh...
fim
zaproxy/zaproxy
java
<|fim_suffix|>(regEx, Pattern.MULTILINE | Pattern.CASE_INSENSITIVE); // URL if (ExtensionSearch.Type.URL.equals(type)) { // TODO: handle multiple matches in the url? reqPanel.headerSearch(p, matches); return; } // Request Header if (ExtensionS...
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_suffix|>etStringFound() { return stringFound; } public SearchResult getSearchResult() { return sr; } private class HistoryReferenceSearchResult extends SearchResult { private List<CachedSearchMatch> matches; private CachedSearchMat...
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
/* * 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
/* * 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|> getConfigContainerPanel() { if (configContainerPanel == null) { configContainerPanel = new JPanel(new BorderLayout()); configContainerPanel.setBorder( javax.swing.BorderFactory.createTitledBorder( null, ...
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
/* * 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 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|> public InMemoryStats getInMemoryStats() { return this.inMemStats; } } <|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 ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>tatistics(site).clear(keyPrefix); } public Long getStat(String key) { return stats.getStat(key); } public Long getStat(String site, String key) { if (site == null || siteStats.containsKey(site)) { return getStatistics(site).getStat(key); } retu...
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|>piException(ApiException.Type.ILLEGAL_PARAMETER, PARAM_SITE); } result = new SiteStatsApiResponse( site, memStats.getSiteStats( site, this.getParam(params, PARAM_KEY_PRE...
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|>tFullKey(site, key)); } @Override public void counterInc(String key, long inc) { statsd2.increment(getFullKey(key), (int) inc); } @Override public void counterInc(String site, String key, long inc) { statsd2.increment(getFullKey(site, key), (int) inc); } ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>; // didn't send anything if (sampleRate < 1.0) { for (String stat : stats) { if (RNG.nextDouble() <= sampleRate) { stat = String.format(Locale.ENGLISH, "%s|@%f", stat, sampleRate); if (doSend(stat)) { retval = true; } } } } else { for (String stat : stats) { ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>eturn ctx != null && !ctx.isInScope(); } }; popupContextTreeMenuInScope.setText( Constant.messages.getString("context.inscope.popup")); popupContextTreeMenuInScope.addActionListener( new java.awt.ev...
fim
zaproxy/zaproxy
java
<|fim_suffix|>va.awt.Component; import java.util.ArrayList; import java.util.List; import javax.swing.JMenuItem; import org.parosproxy.paros.extension.ExtensionPopupMenuItem; import org.parosproxy.paros.model.Model; import org.parosproxy.paros.model.Session; import org.parosproxy.paros.view.View; import org.zaproxy.zap...
fim
zaproxy/zaproxy
java
<|fim_suffix|>import java.util.ArrayList; import java.util.List; import javax.swing.JMenuItem; import org.parosproxy.paros.extension.ExtensionPopupMenuItem; import org.parosproxy.paros.model.Model; import org.parosproxy.paros.model.Session; import org.parosproxy.paros.view.View; import org.zaproxy.zap.model.Context; im...
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. * <|fim_suffix|> 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 t...
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|>lean isSafe() { return true; } } <|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"); ...
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 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|> return true; } } } <|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"); * y...
fim
zaproxy/zaproxy
java
<|fim_suffix|>tainer) { if (getExtensionActiveScan() == null) { return false; } switch (invoker) { case ALERTS_PANEL: case ACTIVE_SCANNER_PANEL: case FORCED_BROWSE_PANEL: case FUZZER_PANEL: return false; case...
fim
zaproxy/zaproxy
java
<|fim_suffix|>mport org.zaproxy.zap.view.popup.PopupMenuItemHistoryReferenceContainer; /** * @deprecated (2.12.0) see the exim add-on */ @Deprecated public class PopupMenuCopyUrls extends PopupMenuItemHistoryReferenceContainer implements ClipboardOwner { private static final long serialVersionUID = 1L; ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>@Override public String getParentMenuName() { return Constant.messages.getString("context.includesite.popup"); } @Override protected ExtensionPopupMenuItem createPopupIncludeInContextMenu(int weight) { PopupMenuItemIncludeSiteInContext menu = new PopupMenuItemIncludeSiteIn...
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_suffix|>olTipSet) { this.setToolTipText(""); disabledToolTipSet = false; } return super.isButtonEnabledForSelectedMessages(httpMessages); } @Override public boolean isEnableForInvoker(Invoker invoker, HttpMessageContainer httpMessageContainer) { return ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> */ public PopupMenuResendMessage(String label, ExtensionHistory extension) { super(label); this.extension = extension; } @Override public void performAction(HttpMessage msg) { org.parosproxy.paros.extension.manualrequest.ManualRequestEditorDialog dialog = ...
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
/* * 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)<|fim_suffix|>org.parosproxy.paros.Constant; import org.parosproxy.paros.extension.ExtensionPopupMenuItem; public class PopupPasteMenu extends ExtensionPopupMenuItem { private static final long serialVersionUID = 1L; private JTextComponent lastInvoker = null; publ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> return true; } } @Override public boolean isSafe() { return true; } /** * Gets the user. * * @return the user */ public User getUser() { return user; } public Context getContext() { return context; } } <|fim_...
fim
zaproxy/zaproxy
java
<|fim_suffix|> * @param user the user * @param parentName the parent menu's name * @return the popup context menu */ public abstract PopupUserMenu getPopupUserMenu(Context context, User user, String parentName); } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is a...
fim
zaproxy/zaproxy
java
<|fim_suffix|>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.extension.tab; // Every Tab should implement this interface. /** * @deprecated (2.12.0) Not in effective use. */ @D...
fim
zaproxy/zaproxy
java
<|fim_suffix|>sion); mainFrame.getMainToolbarPanel().sessionChanged(session); mainFrame.setTitle(session); } @Override public void sessionAboutToChange(Session session) {} @Override public void sessionScopeChanged(Session session) {} @Override public void sessionProperties...
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 Attack Proxy (ZA<|fim_suffix|>extData(Session session) throws Exception { this.contextManager.setUsers(usersTableModel.getUsers()); } @Override public void saveTemporaryContextData(Context uiSharedContext) { // Data is already saved in the uiSharedContext } ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>fieldsPanel = new JPanel(); fieldsPanel.setLayout(new GridBagLayout()); fieldsPanel.setName("DialogAddUser"); Insets insets = new Insets(4, 8, 2, 4); JLabel nameLabel = new JLabel(Constant.messages.getString("users.dialog.add.field.labe...
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 <|fi...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ach context. */ private Map<Integer, ContextUserAuthManager> contextManagers = new HashMap<>(); private UsersAPI api; /** The Constant EXTENSION DEPENDENCIES. */ private static final List<Class<? extends Extension>> EXTENSION_DEPENDENCIES; static { // Prepare a list of Exten...
fim
zaproxy/zaproxy
java
<|fim_suffix|> new String[] {PARAM_CONTEXT_ID, PARAM_USER_ID, PARAM_USER_NAME})); this.addApiAction( new ApiAction( ACTION_SET_AUTH_CREDENTIALS, new String[] {PARAM_CONTEXT_ID, PARAM_USER_ID}, new String[] {PARAM_...
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|>new HashMap<>(); } public static String getStringFromName(String name) { return nameToString.get(name); } public static String getNameFromString(String str) { return stringToName.get(str); } public static String[] getNames() { Set<String> keys = nameToStr...
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 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 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 License. * Yo...
fim
zaproxy/zaproxy
java
<|fim_suffix|> if (end > otherTextLocation.getEnd()) { return 1; } else if (end < otherTextLocation.getEnd()) { return -1; } int result = value.compareTo(otherHttpMessageLocation.getValue()); if (result != 0) { return result; } ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> } else if (fieldAttributes .get("Control Type") .equalsIgnoreCase(FormControlType.PASSWORD.toString())) { return DEFAULT_PASS_VALUE; } else if (fieldAttributes .get("Control Type") .equalsIgnoreCase(FormControlType.F...
fim
zaproxy/zaproxy
java