@@ -27,6 +27,13 @@ var threadsOption = "2";
2727var unstableconnOption = false ;
2828var nocastOption = false ;
2929var noescapeOption = false ;
30+ var techOption = '' ;
31+ var techbOption = true ;
32+ var techeOption = true ;
33+ var techuOption = true ;
34+ var techsOption = true ;
35+ var techtOption = true ;
36+ var techqOption = true ;
3037var trigger ;
3138
3239
@@ -95,6 +102,16 @@ function assembleCmd(url, referUrl) {
95102 if ( unstableconnOption ) { sqlmapText += " --unstable" ; } ;
96103 if ( nocastOption ) { sqlmapText += " --no-cast" ; } ;
97104 if ( noescapeOption ) { sqlmapText += " --no-escape" ; } ;
105+
106+ techOption = ''
107+ if ( techbOption ) { techOption += "B" ; } ;
108+ if ( techeOption ) { techOption += "E" ; } ;
109+ if ( techuOption ) { techOption += "U" ; } ;
110+ if ( techsOption ) { techOption += "S" ; } ;
111+ if ( techtOption ) { techOption += "T" ; } ;
112+ if ( techqOption ) { techOption += "Q" ; } ;
113+ sqlmapText += " --technique " + techOption ;
114+
98115 sqlmapText += " --threads " + threadsOption ;
99116
100117 sqlmapText += sqlmapheaders ;
@@ -169,7 +186,7 @@ browser.contextMenus.onClicked.addListener((info, tab) => {
169186
170187 // check the saved options each click in case they changed
171188 let gettingOptions = browser . storage . sync . get (
172- [ 'quotes' , 'prog' , 'verbose' , 'rua' , 'dumpall' , 'osshell' , 'sqlmapUser' , 'keepalive' , 'nullconn' , 'textonly' , 'titleonly' , 'batchp' , 'hex' , 'mobile' , 'chunked' , 'dropcook' , 'threads' , 'unstableconn' , 'nocast' , 'noescape' , 'snackbar' ] )
189+ [ 'quotes' , 'prog' , 'verbose' , 'rua' , 'dumpall' , 'osshell' , 'sqlmapUser' , 'keepalive' , 'nullconn' , 'textonly' , 'titleonly' , 'batchp' , 'hex' , 'mobile' , 'chunked' , 'dropcook' , 'threads' , 'unstableconn' , 'nocast' , 'noescape' , 'techb' , 'teche' , 'techu' , 'techs' , 'techt' , 'techq' , ' snackbar'] )
173190 . then ( ( res ) => {
174191 quotesOption = res . quotes ;
175192 programOption = res . prog ;
@@ -191,6 +208,12 @@ browser.contextMenus.onClicked.addListener((info, tab) => {
191208 unstableconnOption = res . unstableconn ;
192209 nocastOption = res . nocast ;
193210 noescapeOption = res . noescape ;
211+ techbOption = res . techb ;
212+ techeOption = res . teche ;
213+ techuOption = res . techu ;
214+ techsOption = res . techs ;
215+ techtOption = res . techt ;
216+ techqOption = res . techq ;
194217 snackbarOption = res . snackbar ;
195218 } ) ;
196219 let promiseCancel = new Promise ( function ( resolve , reject ) {
0 commit comments