File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -6,21 +6,32 @@ import org.parosproxy.paros.network.HttpSender
6
6
7
7
class ExtensionReflect : ExtensionAdaptor (NAME ) {
8
8
9
+ val reflectPanel = ReflectPanel ()
10
+
9
11
companion object {
10
12
const val NAME = " Reflect"
11
13
}
12
14
13
15
override fun hook (extensionHook : ExtensionHook ? ) {
14
16
super .hook(extensionHook)
15
- val reflectPanel = ReflectPanel ()
16
- HttpSender .addListener(ReflectListener (reflectPanel))
17
- extensionHook?.hookView?.addWorkPanel(reflectPanel)
17
+ if (view != null ) {
18
+ HttpSender .addListener(ReflectListener (reflectPanel))
19
+ extensionHook?.hookView?.addWorkPanel(reflectPanel)
20
+ }
18
21
}
19
22
20
23
override fun canUnload (): Boolean = true
21
24
22
25
override fun getAuthor (): String = " Caleb Kinney"
23
26
24
27
override fun getDescription (): String = " Finds reflected parameters."
28
+
29
+ override fun postInstall () {
30
+ super .postInstall()
31
+
32
+ if (view != null ) {
33
+ reflectPanel.setTabFocus()
34
+ }
35
+ }
25
36
}
26
37
You can’t perform that action at this time.
0 commit comments