@@ -99,11 +99,29 @@ <h5 class="modal-title" id="exampleModalLabel">Settings</h5>
99
99
< div class ="tab-content " id ="pills-tabContent ">
100
100
< div class ="tab-pane fade show active " id ="pills-general " role ="tabpanel " aria-labelledby ="pills-general-tab ">
101
101
< div class ="form-group ">
102
- < label for ="pyInterp "> Python Interpreter </ label >
102
+ < label for ="pyInterp "> Python interpreter </ label >
103
103
< input type ="text " class ="form-control bg-dark text-white " name ="pyInterp " id ="pyInterp " aria-describedby ="pythonInterp "
104
104
placeholder ="">
105
105
< small id ="pythonInterp " class ="form-text text-muted "> The command to run to run the python interpreter</ small >
106
106
</ div >
107
+ < div class ="form-group ">
108
+ < label for ="nmapPath "> Nmap command</ label >
109
+ < input type ="text " class ="form-control bg-dark text-white " name ="nmapPath " id ="nmapPath " aria-describedby ="nmapPatha "
110
+ placeholder ="">
111
+ < small id ="nmapPatha " class ="form-text text-muted "> The command to run to run nmap</ small >
112
+ </ div >
113
+ < div class ="form-group ">
114
+ < label for ="userName "> Username</ label >
115
+ < input type ="text " class ="form-control bg-dark text-white " name ="userName " id ="userName " aria-describedby ="userNamea "
116
+ placeholder ="">
117
+ < small id ="userNamea " class ="form-text text-muted "> Change the username</ small >
118
+ </ div >
119
+ < div class ="form-group ">
120
+ < label for ="password "> Password</ label >
121
+ < input type ="password " class ="form-control bg-dark text-white " name ="password " id ="password " aria-describedby ="passworda "
122
+ placeholder ="">
123
+ < small id ="passworda " class ="form-text text-muted "> Change the password</ small >
124
+ </ div >
107
125
</ div >
108
126
< div class ="tab-pane fade " id ="pills-connections " role ="tabpanel " aria-labelledby ="pills-connections-tab ">
109
127
< div class ="card bg-dark text-white " style ="height: 300px;width: 100%;border-color: black;overflow: auto ">
@@ -168,6 +186,9 @@ <h3>No plugins yet...</h3>
168
186
$ . get ( "/server/settings" )
169
187
. done ( function ( data ) {
170
188
document . getElementById ( "pyInterp" ) . value = data . pyInterp
189
+ document . getElementById ( "nmapPath" ) . value = data . nmapPath
190
+ document . getElementById ( "userName" ) . value = data . userName
191
+ document . getElementById ( "password" ) . value = data . password
171
192
} )
172
193
} )
173
194
</ script >
@@ -184,7 +205,7 @@ <h5 class="modal-title">Add Host</h5>
184
205
< div class ="modal-body bg-dark ">
185
206
< div class ="form-group ">
186
207
< label for ="ipfield "> Ip:</ label >
187
- < input type ="text " class ="form-control " name ="host " id ="ipfield " aria-describedby ="helpId "
208
+ < input type ="text " class ="form-control bg-dark text-white " name ="host " id ="ipfield " aria-describedby ="helpId "
188
209
placeholder ="xxx.xxx.xxx.xxx ">
189
210
</ div >
190
211
</ div >
@@ -210,12 +231,12 @@ <h5 class="modal-title">Scan</h5>
210
231
< div class ="modal-body bg-dark ">
211
232
< div class ="form-group ">
212
233
< label for ="ipScanField "> Ip:</ label >
213
- < input type ="text " class ="form-control " name ="host " id ="ipScanField " aria-describedby ="helpId "
234
+ < input type ="text " class ="form-control bg-dark text-white " name ="host " id ="ipScanField " aria-describedby ="helpId "
214
235
placeholder ="xxx.xxx.xxx.xxx ">
215
236
</ div >
216
237
< div class ="form-group ">
217
238
< label for ="scanType "> Scan Type</ label >
218
- < select class ="form-control " name ="scanType " id ="scanType ">
239
+ < select class ="form-control bg-dark text-white " name ="scanType " id ="scanType ">
219
240
< option value =""> Pick an option</ option >
220
241
< option value ="-sT "> TCP</ option >
221
242
< option value ="-sU "> UDP</ option >
@@ -226,28 +247,58 @@ <h5 class="modal-title">Scan</h5>
226
247
</ div >
227
248
< div class ="form-check ">
228
249
< label class ="form-check-label ">
229
- < input type ="checkbox " class ="form-check-input " name ="fast " value ="-F ">
230
- Fast port scan
250
+ < input type ="checkbox " class ="form-check-input bg-dark " name ="fast " value ="-F ">
251
+ Fast mode - Scan fewer ports than the default scan
231
252
</ label >
232
253
</ div >
233
254
< div class ="form-check ">
234
255
< label class ="form-check-label ">
235
- < input type ="checkbox " class ="form-check-input " name ="ver " value ="-sV " checked >
256
+ < input type ="checkbox " class ="form-check-input bg-dark " name ="ver " value ="-sV " checked >
236
257
Service version detection
237
258
</ label >
238
259
</ div >
239
260
< div class ="form-check ">
240
261
< label class ="form-check-label ">
241
- < input type ="checkbox " class ="form-check-input " name ="aggr " value ="-A " >
242
- Agressive Scan
262
+ < input type ="checkbox " class ="form-check-input bg-dark " name ="osd " value ="-O " checked >
263
+ Enable OS detection
243
264
</ label >
244
265
</ div >
245
266
< div class ="form-check ">
246
267
< label class ="form-check-label ">
247
- < input type ="checkbox " class ="form-check-input " name ="osd " value ="-O " checked >
248
- OS detect
268
+ < input type ="checkbox " class ="form-check-input bg-dark " name ="online " value ="-Pn " >
269
+ Treat host as online - skip host discovery
249
270
</ label >
250
271
</ div >
272
+ < div class ="form-check ">
273
+ < label class ="form-check-label ">
274
+ < input type ="checkbox " class ="form-check-input bg-dark " name ="con " value ="-r ">
275
+ Scan ports consecutively - don't randomize
276
+ </ label >
277
+ </ div >
278
+ < div style ="width: 100% " class ="form-group ">
279
+ < label style ="width: 100% " class ="form-label ">
280
+ < div id ="portcountlabel "> Scan 1000 most common ports</ div > < br >
281
+ < input style ="width: 100% " class ="form-range " type ="range " defaultValue ="1000 " min ="0 " max ="65535 " name ="portcount " onchange ="document.getElementById('portcountlabel').innerText = `Scan ${value} most common ports` ">
282
+ </ label >
283
+ </ div >
284
+ < div class ="form-group ">
285
+ < label for ="scanSpeed "> Scan Speed</ label >
286
+ < select class ="form-control bg-dark text-white " name ="scanSpeed " id ="scanSpeed ">
287
+ < option value =""> Pick an option</ option >
288
+ < option value ="-T0 "> 0: paranoid IDS evasion</ option >
289
+ < option value ="-T1 "> 1: sneaky IDS evasion</ option >
290
+ < option value ="-T2 "> 2: polite IDS evasion</ option >
291
+ < option value ="-T3 "> 3: normal IDS evasion</ option >
292
+ < option value ="-T4 "> 4: aggressive speed scan</ option >
293
+ < option value ="-T5 "> 5: insane speed scan</ option >
294
+ </ select >
295
+ </ div >
296
+ < div class ="form-group ">
297
+ < label for ="ipScanField "> Custom args:</ label >
298
+ < input type ="text " class ="form-control bg-dark text-white " name ="customArgs " id ="customArgs " aria-describedby ="customArgsa "
299
+ placeholder ="-g 22... ">
300
+ < small id ="customArgsa "> Custom arguments to put in nmap scan command</ small >
301
+ </ div >
251
302
</ div >
252
303
< div class ="modal-footer bg-dark ">
253
304
< button type ="submit " class ="btn btn-primary "> Scan</ button >
0 commit comments