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 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_suffix|> excTagScroller = new JScrollPane(excTagList); excTagScroller.setHorizontalScrollBarPolicy( javax.swing.JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); excTagScroller.setVerticalScrollBarPolicy( javax.swing.JScrollPane.VERTICAL_SCROL...
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 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|> Constant.messages.getString( "ascan.policy.level." + level.name().toLowerCase(Locale.ROOT))); } tableTest.getColumnModel().getColumn(2).setCellEditor(new DefaultCellEditor(jcb2)); } return tableTest; } @Override ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ryPanel policyAllCategoryPanel = null; private List<AbstractParamPanel> additionalPanels = new ArrayList<>(); private PolicyManagerDialog pmd; private ScanPolicy policy; private String currentName; public PolicyDialog(ExtensionActiveScan extension, PolicyManagerDialog pmd, ScanPolicy ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> } // Return a new 'blank' one return new ScanPolicy(); } public boolean isLegalPolicyName(String str) { for (int i = 0; i < str.length(); i++) { if (ILLEGAL_POLICY_NAME_CHRS.indexOf(str.charAt(i)) >= 0) { return false; } ...
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|>ning permissions and * limitations under the License. */ package org.zaproxy.zap.extension.ascan; import javax.swing.ImageIcon; import org.parosproxy.paros.model.Model; import org.zaproxy.zap.extension.stdmenus.PopupContextTreeMenu; import org.zaproxy.zap.model.Context; import org.zaproxy.zap.model.Tar...
fim
zaproxy/zaproxy
java
<|fim_suffix|>r(resp400); this.resp500 = new AtomicInteger(resp500); } public ResponseCountSnapshot getDifference(ResponseCountSnapshot previous) { return new ResponseCountSnapshot( this.date, getPeriod(), getResp100() - previous.getResp100(), ...
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
<|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|>s; private ScanProgressActionIcon progressAction; private final PluginStats pluginStats; /** * @param plugin * @param status */ public ScanProgressItem(HostProcess hProcess, Plugin plugin, int status) { this.hProcess = hProcess; this.plugin = plugin; ...
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|> for (Iterator<ScriptWrapper> it = scripts.iterator(); it.hasNext() && !isStop(); ) { ScriptWrapper script = it.next(); try { if (script.isEnabled()) { ActiveScript2 s = extension.getInterface(script, ActiveScript2.class); 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 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<|fim_suffix|>itations under the License. */ package org.zaproxy.zap.extension.ascan.filters; /** * Processing of FilterCriteria is first Include then Exclude so in case a request matches Include * and Exclude both the criteria for eg:- say request tags are there in include ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> toString() { return "FilterResult [filtered=" + filtered + ", reason=" + reason + "]"; } } <|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 * * Licen...
fim
zaproxy/zaproxy
java
<|fim_suffix|>t java.util.ArrayList; import java.util.List; import java.util.function.Supplier; import org.apache.commons.collections.CollectionUtils; import org.zaproxy.zap.extension.ascan.filters.impl.AbstractGenericScanFilter; /** * Generic Filter Utility Class. * * @author KSASAN preetkaran20@gmail.com */ publ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>model.StructuralNode; /** * ScanFilter is called for each message to be scanned to check if it's filtered or not. New Filters * are added to the scan through {@code ExtensionActiveScan#startScan(String, Target, User, * Object[]) }. * * @author KSASAN preetkaran20@gmail.com * @since 2.9.0 */ public...
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_suffix|>ref.getStatusCode(); return this.isFiltered(statusCode); } @Override public String getFilterType() { return Constant.messages.getString(FILTER_TYPE); } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ered(StructuralNode node) { HistoryReference href = node.getHistoryReference(); String httpMethod = href.getMethod(); return this.isFiltered(httpMethod); } @Override public String getFilterType() { return Constant.messages.getString(FILTER_TYPE); } } <|fim...
fim
zaproxy/zaproxy
java
<|fim_suffix|>oryReference href = node.getHistoryReference(); List<String> nodeTags = href.getTags(); return this.isFiltered(nodeTags); } @Override public String getFilterType() { return Constant.messages.getString(FILTER_TYPE); } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) an...
fim
zaproxy/zaproxy
java
<|fim_suffix|>l.HistoryReference; import org.zaproxy.zap.extension.ascan.filters.FilterResult; import org.zaproxy.zap.model.StructuralNode; /** * ScanFilter implementation for filtering based on Url Patterns. * * @author KSASAN preetkaran20@gmail.com * @since 2.9.0 */ public class UrlPatternScanFilter extends Abs...
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|>sAutoDetect = type.getStrategy().equals(AuthCheckingStrategy.AUTO_DETECT); this.getLoggedInIndicatorRegexField().setEnabled(!isAutoDetect); this.getLoggedOutIndicatorRegexField().setEnabled(!isAutoDetect); } private JComboBox<AuthPollFrequencyUnitsType> getAuthFrequencyUnitsComboB...
fim
zaproxy/zaproxy
java
<|fim_suffix|>{ session.clearContextDataForType(contextIdx, RecordContext.TYPE_AUTH_POLL_URL); } if (context.getAuthenticationMethod().getPollData() != null) { session.setContextData( contextIdx, RecordContext.TYPE_A...
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 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 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 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 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|>e session * @param contextId the context id * @throws DatabaseException if an error occurred while reading from the database */ public void persistMethodToSession(Session session, int contextId) throws DatabaseException; /** * Export the method data to the configuration *...
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 Apac<|fim_suffix|> STATUS_CODES[i + 1] = HttpStatusCode.CODES[i]; } private JComboBox<...
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 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
/* * 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 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|>result; } private static ApiResponseList createResponseList(String name, List<AddOn> addOns) { return createResponseList(name, addOns, false); } private static ApiResponseList createResponseList( String name, List<AddOn> addOns, boolean localAddOns) { ApiRespo...
fim
zaproxy/zaproxy
java
<|fim_suffix|>nk #insecureUrl(String, Exception) * insecure URL errors}. * * @param aoc the latest {@code AddOnCollection}, or {@code null} if not obtained (e.g. I/O * errors). */ void gotLatestData(AddOnCollection aoc); void insecureUrl(String url, Exception cause); } <|fim_prefix...
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 hash; } public boolean isValidated() { return validated; } } <|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 th...
fim
zaproxy/zaproxy
java
<|fim_suffix|>eton() .showYesNoDialog( getView().getMainFrame(), new Object[] {msg, cfuOnStart}); setCfuOnStart = cfuOnStart.isSelected(); } options.setDayLastUpdateWarned(); if (result == JOptio...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ddOn.getId().equals(id)) { it.remove(); return; } } } @Override protected void restoreInstallationStatusFailedDownload(AddOnWrapper aow) { aow.setInstallationStatus(AddOn.InstallationStatus.INSTALLED); } @Override protec...
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 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 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_suffix|>if the method {@code isCheckOnStart()} returns * {@code true} and if no check was already done during the same day. * * @return {@code true} if a check for updates on start up needs to be performed, {@code false} * otherwise. * @see #isCheckOnStart() */ @ZapApiIgnore ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> public void activeScanRulesWillBeRemoved(int numberOfRules) { resetTypeAndValues(UninstallationProgressEvent.Type.ACTIVE_RULE, numberOfRules); } private void resetTypeAndValues(UninstallationProgressEvent.Type type, int max) { this.type = type; current...
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|>; public abstract class AbstractBreakPointMessage implements BreakpointMessageInterface { private boolean isEnabled = true; @Override public void setEnabled(boolean enabled) { this.isEnabled = enabled; } @Override public boolean isEnabled() { return isEnabled; ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> params.getString(PARAM_MATCH), ApiUtils.getBooleanParam(params, PARAM_INVERSE), ApiUtils.getBooleanParam(params, PARAM_IGNORECASE)); } catch (IllegalArgumentException e) { throw new ApiException(ApiException.Type.ILLEGAL...
fim
zaproxy/zaproxy
java
<|fim_suffix|> } return publisher; } public void publishHitEvent(Message msg) { this.publishEvent(BREAK_POINT_HIT, msg, msg.toEventData()); } public void publishActiveEvent(Message msg) { this.publishEvent(BREAK_POINT_ACTIVE, msg, msg.toEventData()); } public voi...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ToolbarFactory) { requestButton = breakToolbarFactory.getBtnBreakRequest(); responseButton = breakToolbarFactory.getBtnBreakResponse(); allButton = breakToolbarFactory.getBtnBreakAll(); separatorForBreakOnButtons = new JToolBar.Separator(); brkOn...
fim
zaproxy/zaproxy
java
<|fim_suffix|>.messages.getString("brk.toolbar.button.cont")); setEnabled(false); } @Override public void actionPerformed(ActionEvent e) { if (!breakPanel.isValidState()) { return; } setContinue(true); setBreakAll(fal...
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 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|>, 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.extension.brk; i...
fim
zaproxy/zaproxy
java
<|fim_suffix|>String("brk.optionspanel.option.breakmode.simple.label")); buttonMode.addItem( Constant.messages.getString("brk.optionspanel.option.breakmode.dual.label")); } return buttonMode; } @Override public void initParam(Object obj) { final Optio...
fim
zaproxy/zaproxy
java
<|fim_suffix|>k.table"; private static final String PREF_COLUMN_WIDTH = "column.width"; private final Preferences preferences; private final String prefnzPrefix = this.getClass().getSimpleName() + "."; private static final Logger LOGGER = LogManager.getLogger(BreakpointsPanel.class); public Breakp...
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|> void addBreakpoint(BreakpointMessageInterface breakpoint) { breakpoints.add(breakpoint); this.fireTableRowsInserted(breakpoints.size() - 1, breakpoints.size() - 1); rebuildMapBreakpointRow(); lastAffectedRow = mapBreakpointRow.get(breakpoint); if (breakpoint.isEn...
fim
zaproxy/zaproxy
java
<|fim_suffix|>missions and * limitations under the License. */ package org.zaproxy.zap.extension.brk; import org.zaproxy.zap.extension.httppanel.Message; public interface BreakpointsUiManagerInterface { Class<? extends Message> getMessageClass(); Class<? extends BreakpointMessageInterface> getBreakpointCl...
fim
zaproxy/zaproxy
java
<|fim_suffix|> aMessage, mode.equals(Mode.protect)); } /** * Exposes list of enabled breakpoints. * * @return list of enabled breakpoints */ public List<BreakpointMessageInterface> getBreakpointsEnabledList() { if (mode.equals(Mode.safe)) { return new...
fim
zaproxy/zaproxy
java
<|fim_suffix|>public boolean isEnableForComponent(Component invoker) { if (invoker.getName() != null && invoker.getName().equals(BreakpointsPanel.PANEL_NAME)) { return true; } return false; } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is a...
fim
zaproxy/zaproxy
java
<|fim_suffix|>governing permissions and * limitations under the License. */ package org.zaproxy.zap.extension.brk; import java.awt.Component; import org.parosproxy.paros.Constant; import org.parosproxy.paros.extension.ExtensionPopupMenuItem; @SuppressWarnings("serial") public class PopupMenuRemove extends Extension...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ull; } @Override public void cancelPressed() { dispose(); } @Override public String getHelpIndex() { return "ui.dialogs.addbreak"; } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web ap...
fim
zaproxy/zaproxy
java
<|fim_suffix|> msg; if (this.msg == null) { this.msg = httpMsg; this.request = isRequest; } else { if (isRequest) { this.msg.setRequestHeader(httpMsg.getRequestHeader()); this.msg.setRequestBody(httpMsg.getRe...
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 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 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|>ception e) { // Ignore } } @Override public int getWeight() { return MenuWeights.MENU_BREAK_WEIGHT; } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyri...
fim
zaproxy/zaproxy
java
<|fim_suffix|> return true; } return false; } @Override public boolean onHttpResponseReceive(HttpMessage msg) { if (isSkipImage(msg.getRequestHeader()) || isSkipImage(msg.getResponseHeader())) { return true; } if (extension.isInScopeOnly()) { ...
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|>rn localAddress; } public void setLocalAddress(String localAddress) { if (this.localAddress.equals(localAddress)) { return; } this.localAddress = localAddress.trim(); getConfig().setProperty(LOCAL_ADDRESS_KEY, this.localAddress); } public Strin...
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|> Exception {} @Override public void saveParam(Object obj) throws Exception { OptionsParam optionsParam = (OptionsParam) obj; CallbackParam proxyParam = optionsParam.getParamSet(CallbackParam.class); proxyParam.setLocalAddress((String) localAddress.getSelectedItem()); ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>etString("callback.options.title")); } }); return optionsButton; } private JScrollPane getJScrollPane() { if (scrollPane == null) { scrollPane = new JScrollPane(); scrollPane.setFont(FontUtils.getFont("Dialog")); ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>est.referer = historyReference.getHttpMessage().getRequestHeader().getHeader(HttpHeader.REFERER); return callbackRequest; } public String getHandler() { return handler; } public String getReferer() { return referer; } } <|fim_prefix|>/* * Zed ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>le(CallbackTableModel model) { super(model); setAutoCreateColumnsFromModel(false); setName("Callback Table"); getColumnExt(Constant.messages.getString("view.href.table.header.note")).setVisible(false); } @Override public void setModel(TableModel tableModel) { ...
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|>; this.name = name; } public Class<?> getColumnClass() { return columnClass; } public String getName() { return name; } public abstract Object getValue(T model); public Object getPrototypeValue() { return null; } } <|fim_prefix|>/* * Zed...
fim
zaproxy/zaproxy
java
<|fim_suffix|>etEntry(rowIndex); return getCustomColumn(columnIndex).getValue(uncheckedCast(entry)); } return super.getValueAt(rowIndex, columnIndex); } @SuppressWarnings({"unchecked"}) private T uncheckedCast(DefaultHistoryReferencesTableEntry entry) { if (!type.isInst...
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 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 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 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_suffix|> (!(aValue instanceof Boolean)) { return; } if (columnIndex == 0) { customPages.get(rowIndex).setEnabled(((Boolean) aValue).booleanValue()); fireTableCellUpdated(rowIndex, columnIndex); } else if (columnIndex == 3) { customPages.get(r...
fim
zaproxy/zaproxy
java
<|fim_suffix|> Base64.getDecoder().decode(pieces[0]), StandardCharsets.UTF_8), // Content CustomPageMatcherLocation.getCustomPagePageMatcherLocationWithId( Integer.parseInt(pieces[1])),...
fim
zaproxy/zaproxy
java
<|fim_suffix|> "custompages.dialog.add.field.label.regex")); regexLabel.setLabelFor(getRegexCheckBox()); fieldsPanel.add(regexLabel, LayoutHelper.getGBC(0, 3, 1, 0.5D, insets)); fieldsPanel.add(getRegexCheckBox(), LayoutHelper.getGBC(1, 3, 1, 0.5D, insets)); ...
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_suffix|>@Override public String getAuthor() { return Constant.ZAP_TEAM; } @Override public String getDescription() { return Constant.messages.getString(PREFIX + ".desc"); } /** * Gets the popup menu for flagging {@code CustomPage} patterns. * * @return the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> // Is anything selected? selectedText = txtComponent.getSelectedText(); this.setEnabled(selectedText != null && selectedText.length() != 0); return true; } else { selectedText = null; return false; } } public Stri...
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 mawoki@ymail.com * * 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
java
<|fim_suffix|>heckExistingCertificate()) { // prevent overwriting return; } try { final KeyStore newrootca = SslCertificateUtils.createRootCA(); setRootca(newrootca); } catch (final Exception e) { logger.error("Error while generating Ro...
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 mawoki@ymail.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
fim
zaproxy/zaproxy
java