File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 11/* Output sample:
2- * Alert_Name Source:PluginName WASC CWE
3- * Cross Site Scripting (DOM Based) ACTIVE:Cross Site Scripting (DOM Based) 8 79
4- * Non-Storable Content PASSIVE:Content Cacheability 13 524
2+ * Alert_Name Source:PluginName WASC CWE
3+ * Cross Site Scripting (DOM Based) ACTIVE:Cross Site Scripting (DOM Based) 8 79
4+ * Non-Storable Content PASSIVE:Content Cacheability 13 524
55 * It's tab separated so you can simply copy/paste it into Excel (or whatever).
66 */
77
@@ -11,7 +11,7 @@ extAlert = control
1111
1212extPscan = control
1313 . getExtensionLoader ( )
14- . getExtension ( org . zaproxy . zap . extension . pscan . ExtensionPassiveScan . NAME ) ;
14+ . getExtension ( org . zaproxy . addon . pscan . ExtensionPassiveScan2 . NAME ) ;
1515
1616var pf = Java . type ( "org.parosproxy.paros.core.scanner.PluginFactory" ) ;
1717
@@ -43,7 +43,9 @@ function printAlert(alert) {
4343 }
4444 }
4545 if ( alert . getSource ( ) == Alert . Source . PASSIVE && extPscan != null ) {
46- plugin = extPscan . getPluginPassiveScanner ( alert . getPluginId ( ) ) ;
46+ plugin = extPscan
47+ . getPassiveScannersManager ( )
48+ . getScanRule ( alert . getPluginId ( ) ) ;
4749 if ( plugin != null ) {
4850 scanner = plugin . getName ( ) ;
4951 }
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ for (var i = 0; i < plugins.length; i++) {
2929
3030extPscan = control
3131 . getExtensionLoader ( )
32- . getExtension ( org . zaproxy . zap . extension . pscan . ExtensionPassiveScan . NAME ) ;
32+ . getExtension ( org . zaproxy . addon . pscan . ExtensionPassiveScan2 . NAME ) ;
3333
34- plugins = extPscan . getPluginPassiveScanners ( ) . toArray ( ) ;
34+ plugins = extPscan . getPassiveScannersManager ( ) . getScanRules ( ) ;
3535
3636for ( var i = 0 ; i < plugins . length ; i ++ ) {
3737 try {
You can’t perform that action at this time.
0 commit comments