kingthorin / neonmarker Goto Github PK
View Code? Open in Web Editor NEWContinuation of the ZAP Neonmarker add-on previously by Juha Kivekäs
License: Apache License 2.0
Continuation of the ZAP Neonmarker add-on previously by Juha Kivekäs
License: Apache License 2.0
Thanks to @sbzo for pointing out that it isn't intuitive.
This is a prime example of why some of zaproxy/zaproxy#3588 might be important.
Per: https://groups.google.com/g/zaproxy-users/c/rlAMhZITk5k
Using the following passive scan script:
// Passive scan rules should not make any requests
// Note that new passive scripts will initially be disabled
// Right click the script in the Scripts tree and select "enable"
var PluginPassiveScanner = Java.type("org.zaproxy.zap.extension.pscan.PluginPassiveScanner");
/**
* Passively scans an HTTP message. The scan function will be called for
* request/response made via ZAP, actual messages depend on the function
* "appliesToHistoryType", defined below.
*
* @param ps - the PassiveScan parent object that will do all the core interface tasks
* (i.e.: providing access to Threshold settings, raising alerts, etc.).
* This is an ScriptsPassiveScanner object.
* @param msg - the HTTP Message being scanned. This is an HttpMessage object.
* @param src - the Jericho Source representation of the message being scanned.
*/
extNeon = org.parosproxy.paros.control.Control.getSingleton().getExtensionLoader().getExtension(org.zaproxy.zap.extension.neonmarker.ExtensionNeonmarker.NAME);
function scan(ps, msg, src)
{
// Regex found a match, let's a tag and add color to the entry line in History tab
ps.addTag("my tag");
extNeon.addColorMapping("my tag", 0x990000)
}
/**
* Tells whether or not the scanner applies to the given history type.
*
* @param {Number} historyType - The ID of the history type of the message to be scanned.
* @return {boolean} Whether or not the message with the given type should be scanned by this scanner.
*/
function appliesToHistoryType(historyType) {
// For example, to just scan spider messages:
// return historyType == org.parosproxy.paros.model.HistoryReference.TYPE_SPIDER;
// Default behaviour scans default types.
return PluginPassiveScanner.getDefaultHistoryTypes().contains(historyType);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.