@@ -24,7 +24,7 @@ public static Integer getMin_chunked_len() {
2424 try {
2525 return Integer .valueOf (val );
2626 }catch (Exception e ){
27- return min_chunked_len ;
27+ return Config . min_chunked_len ;
2828 }
2929 }
3030
@@ -38,7 +38,7 @@ public static Integer getMax_chunked_len() {
3838 try {
3939 return Integer .valueOf (val );
4040 }catch (Exception e ){
41- return max_chunked_len ;
41+ return Config . max_chunked_len ;
4242 }
4343 }
4444
@@ -49,10 +49,11 @@ public static void setMax_chunked_len(Integer max_chunked_len) {
4949
5050 public static boolean isAddComment () {
5151 String val = BurpExtender .callbacks .loadExtensionSetting ("addComment" );
52+ if (val == null ) return Config .addComment ;
5253 try {
5354 return Boolean .valueOf (val );
5455 }catch (Exception e ){
55- return addComment ;
56+ return Config . addComment ;
5657 }
5758 }
5859
@@ -66,7 +67,7 @@ public static Integer getMin_comment_len() {
6667 try {
6768 return Integer .valueOf (val );
6869 }catch (Exception e ){
69- return min_comment_len ;
70+ return Config . min_comment_len ;
7071 }
7172 }
7273
@@ -80,7 +81,7 @@ public static Integer getMax_comment_len() {
8081 try {
8182 return Integer .valueOf (val );
8283 }catch (Exception e ){
83- return max_comment_len ;
84+ return Config . max_comment_len ;
8485 }
8586 }
8687
@@ -91,10 +92,11 @@ public static void setMax_comment_len(Integer max_comment_len) {
9192
9293 public static boolean isAct_on_all_tools () {
9394 String val = BurpExtender .callbacks .loadExtensionSetting ("act_on_all_tools" );
95+ if (val == null ) return Config .act_on_all_tools ;
9496 try {
9597 return Boolean .valueOf (val );
9698 }catch (Exception e ){
97- return act_on_all_tools ;
99+ return Config . act_on_all_tools ;
98100 }
99101 }
100102
@@ -105,10 +107,11 @@ public static void setAct_on_all_tools(boolean act_on_all_tools) {
105107
106108 public static boolean isAct_on_target () {
107109 String val = BurpExtender .callbacks .loadExtensionSetting ("act_on_target" );
110+ if (val == null ) return Config .act_on_target ;
108111 try {
109112 return Boolean .valueOf (val );
110113 }catch (Exception e ){
111- return act_on_target ;
114+ return Config . act_on_target ;
112115 }
113116 }
114117
@@ -119,10 +122,11 @@ public static void setAct_on_target(boolean act_on_target) {
119122
120123 public static boolean isAct_on_proxy () {
121124 String val = BurpExtender .callbacks .loadExtensionSetting ("act_on_proxy" );
125+ if (val == null ) return Config .act_on_proxy ;
122126 try {
123127 return Boolean .valueOf (val );
124128 }catch (Exception e ){
125- return act_on_proxy ;
129+ return Config . act_on_proxy ;
126130 }
127131 }
128132
@@ -133,10 +137,11 @@ public static void setAct_on_proxy(boolean act_on_proxy) {
133137
134138 public static boolean isAct_on_spider () {
135139 String val = BurpExtender .callbacks .loadExtensionSetting ("act_on_spider" );
140+ if (val == null ) return Config .act_on_spider ;
136141 try {
137142 return Boolean .valueOf (val );
138143 }catch (Exception e ){
139- return act_on_spider ;
144+ return Config . act_on_spider ;
140145 }
141146 }
142147
@@ -147,10 +152,11 @@ public static void setAct_on_spider(boolean act_on_spider) {
147152
148153 public static boolean isAct_on_intruder () {
149154 String val = BurpExtender .callbacks .loadExtensionSetting ("act_on_intruder" );
155+ if (val == null ) return Config .act_on_intruder ;
150156 try {
151157 return Boolean .valueOf (val );
152158 }catch (Exception e ){
153- return act_on_intruder ;
159+ return Config . act_on_intruder ;
154160 }
155161 }
156162
@@ -161,10 +167,11 @@ public static void setAct_on_intruder(boolean act_on_intruder) {
161167
162168 public static boolean isAct_on_repeater () {
163169 String val = BurpExtender .callbacks .loadExtensionSetting ("act_on_repeater" );
170+ if (val == null ) return Config .act_on_repeater ;
164171 try {
165172 return Boolean .valueOf (val );
166173 }catch (Exception e ){
167- return act_on_repeater ;
174+ return Config . act_on_repeater ;
168175 }
169176 }
170177
@@ -175,10 +182,11 @@ public static void setAct_on_repeater(boolean act_on_repeater) {
175182
176183 public static boolean isAct_on_scanner () {
177184 String val = BurpExtender .callbacks .loadExtensionSetting ("act_on_scanner" );
185+ if (val == null ) return Config .act_on_scanner ;
178186 try {
179187 return Boolean .valueOf (val );
180188 }catch (Exception e ){
181- return act_on_scanner ;
189+ return Config . act_on_scanner ;
182190 }
183191 }
184192
@@ -189,10 +197,11 @@ public static void setAct_on_scanner(boolean act_on_scanner) {
189197
190198 public static boolean isAct_on_extender () {
191199 String val = BurpExtender .callbacks .loadExtensionSetting ("act_on_extender" );
200+ if (val == null ) return Config .act_on_extender ;
192201 try {
193202 return Boolean .valueOf (val );
194203 }catch (Exception e ){
195- return act_on_extender ;
204+ return Config . act_on_extender ;
196205 }
197206 }
198207
@@ -203,10 +212,11 @@ public static void setAct_on_extender(boolean act_on_extender) {
203212
204213 public static boolean isAct_on_sequencer () {
205214 String val = BurpExtender .callbacks .loadExtensionSetting ("act_on_sequencer" );
215+ if (val == null ) return Config .act_on_sequencer ;
206216 try {
207217 return Boolean .valueOf (val );
208218 }catch (Exception e ){
209- return act_on_sequencer ;
219+ return Config . act_on_sequencer ;
210220 }
211221 }
212222
0 commit comments