Skip to content

Instantly share code, notes, and snippets.

View arunelias's full-sized avatar

Arun Elias arunelias

View GitHub Profile
@arunelias
arunelias / ZAP_HTTPSender.js
Created February 22, 2025 17:27
OWASP ZAP HTTPSender script to add session cookie to all Requests
// 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
@arunelias
arunelias / ZAP_Auth.js
Created February 22, 2025 17:15
OWASP ZAP script to authenticate using oauth2 of Provider: okta
/*
* 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");
@arunelias
arunelias / Link_Validator.py
Created January 31, 2022 08:25
An efficient Link Validator written in Python using the Python modules Pandas and Requests.
@arunelias
arunelias / imacros_snippets.iim
Last active June 18, 2020 22:13
iMacros Snippets
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}}