This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The sendingRequest and responseReceived functions will be called for all requests/responses sent/received by ZAP, | |
// including automated tools (e.g. active scanner, fuzzer, ...) | |
// Note that new HttpSender scripts will initially be disabled | |
// Right click the script in the Scripts tree and select "enable" | |
// 'initiator' is the component the initiated the request: | |
// 1 PROXY_INITIATOR | |
// 2 ACTIVE_SCANNER_INITIATOR | |
// 3 SPIDER_INITIATOR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This script is: ZAP script to authenticate using oauth2 of Provider: okta | |
* Organization_URL = https://your-org.okta.com/ | |
* client_id = yourclientid | |
* callback_URL = http://localhost:8000/accounts/oauth2/callback/ | |
*/ | |
var AuthenticationHelper = Java.type("org.zaproxy.zap.authentication.AuthenticationHelper"); | |
var HttpRequestHeader = Java.type("org.parosproxy.paros.network.HttpRequestHeader"); | |
var HttpHeader = Java.type("org.parosproxy.paros.network.HttpHeader"); | |
var URI = Java.type("org.apache.commons.httpclient.URI"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas | |
import requests | |
import time | |
# Custom headers in key value pair | |
headers = {'user-agent': 'Link-Validator/0.0.1'} | |
# Create a session | |
session = requests.Session() | |
# Throttle requests/ min | |
throttle = 30 | |
# DataFrame.apply subroutine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VERSION BUILD=8970419 RECORDER=FX | |
TAB T=1 | |
'//-------------------------------- | |
'// Todays Date in M/D/YYYY format | |
SET todaysdate EVAL("var d = new Date();var result = (d.getMonth()+1)+'/'+d.getDate()+'/'+(d.getYear()+1900); result;") | |
PROMPT {{todaysdate}} | |
'//-------------------------------- | |
'// Tomorrows Date in M/D/YYYY format | |
SET tomorowsdate EVAL("var t = new Date(); var d = new Date(); d.setDate(t.getDate()+1); var result = (d.getMonth()+1)+'/'+d.getDate()+'/'+(d.getYear()+1900); result;") | |
PROMPT {{tomorrowsdate}} |