File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ extAlert = control
11
11
12
12
extPscan = control
13
13
. getExtensionLoader ( )
14
- . getExtension ( org . zaproxy . zap . extension . pscan . ExtensionPassiveScan . NAME ) ;
14
+ . getExtension ( org . zaproxy . addon . pscan . ExtensionPassiveScan2 . NAME ) ;
15
15
16
16
var pf = Java . type ( "org.parosproxy.paros.core.scanner.PluginFactory" ) ;
17
17
@@ -43,7 +43,9 @@ function printAlert(alert) {
43
43
}
44
44
}
45
45
if ( alert . getSource ( ) == Alert . Source . PASSIVE && extPscan != null ) {
46
- plugin = extPscan . getPluginPassiveScanner ( alert . getPluginId ( ) ) ;
46
+ plugin = extPscan
47
+ . getPassiveScannersManager ( )
48
+ . getScanRule ( alert . getPluginId ( ) ) ;
47
49
if ( plugin != null ) {
48
50
scanner = plugin . getName ( ) ;
49
51
}
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ for (var i = 0; i < plugins.length; i++) {
29
29
30
30
extPscan = control
31
31
. getExtensionLoader ( )
32
- . getExtension ( org . zaproxy . zap . extension . pscan . ExtensionPassiveScan . NAME ) ;
32
+ . getExtension ( org . zaproxy . addon . pscan . ExtensionPassiveScan2 . NAME ) ;
33
33
34
- plugins = extPscan . getPluginPassiveScanners ( ) . toArray ( ) ;
34
+ plugins = extPscan . getPassiveScannersManager ( ) . getScanRules ( ) ;
35
35
36
36
for ( var i = 0 ; i < plugins . length ; i ++ ) {
37
37
try {
You can’t perform that action at this time.
0 commit comments