@@ -25,6 +25,8 @@ var chunkedOption = false;
2525var dropcookOption = false ;
2626var threadsOption = "2" ;
2727var unstableconnOption = false ;
28+ var nocastOption = false ;
29+ var noescapeOption = false ;
2830var trigger ;
2931
3032
@@ -91,8 +93,11 @@ function assembleCmd(url, referUrl) {
9193 if ( chunkedOption ) { sqlmapText += " --chunked" ; } ;
9294 if ( dropcookOption ) { sqlmapText += " --drop-set-cookie" ; } ;
9395 if ( unstableconnOption ) { sqlmapText += " --unstable" ; } ;
96+ if ( nocastOption ) { sqlmapText += " --no-cast" ; } ;
97+ if ( noescapeOption ) { sqlmapText += " --no-escape" ; } ;
9498 sqlmapText += " --threads " + threadsOption ;
95- sqlmapText += sqlmapheaders ;
99+
100+ sqlmapText += sqlmapheaders ;
96101 try {
97102 if ( sqlmapUserOption . replace ( / \s / g, '' ) ) { sqlmapText += " " + sqlmapUserOption ; }
98103 }
@@ -164,7 +169,7 @@ browser.contextMenus.onClicked.addListener((info, tab) => {
164169
165170 // check the saved options each click in case they changed
166171 let gettingOptions = browser . storage . sync . get (
167- [ 'quotes' , 'prog' , 'verbose' , 'rua' , 'dumpall' , 'osshell' , 'sqlmapUser' , 'keepalive' , 'nullconn' , 'textonly' , 'titleonly' , 'batchp' , 'hex' , 'mobile' , 'chunked' , 'dropcook' , 'threads' , 'unstableconn' , 'snackbar' ] )
172+ [ 'quotes' , 'prog' , 'verbose' , 'rua' , 'dumpall' , 'osshell' , 'sqlmapUser' , 'keepalive' , 'nullconn' , 'textonly' , 'titleonly' , 'batchp' , 'hex' , 'mobile' , 'chunked' , 'dropcook' , 'threads' , 'unstableconn' , 'nocast' , 'noescape' , ' snackbar'] )
168173 . then ( ( res ) => {
169174 quotesOption = res . quotes ;
170175 programOption = res . prog ;
@@ -184,6 +189,8 @@ browser.contextMenus.onClicked.addListener((info, tab) => {
184189 dropcookOption = res . dropcook ;
185190 threadsOption = res . threads ;
186191 unstableconnOption = res . unstableconn ;
192+ nocastOption = res . nocast ;
193+ noescapeOption = res . noescape ;
187194 snackbarOption = res . snackbar ;
188195 } ) ;
189196 let promiseCancel = new Promise ( function ( resolve , reject ) {
0 commit comments