misc options
This commit is contained in:
parent
009b2b3c2f
commit
7517c9f924
44
options.php
44
options.php
@ -542,7 +542,6 @@ Exemples: <?= $_SERVER['REMOTE_ADDR']; ?>/24 <?= $_SERVER['SERVER_NAME']; ?> 10.
|
|||||||
|
|
||||||
<div class="title"><i class="icon dropdown"></i>Évitement de pare-feux/IDS et mystification</div>
|
<div class="title"><i class="icon dropdown"></i>Évitement de pare-feux/IDS et mystification</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
||||||
<div class="inline inverted fields">
|
<div class="inline inverted fields">
|
||||||
<div class="inverted field">
|
<div class="inverted field">
|
||||||
<div class="ui toggle inverted checkbox">
|
<div class="ui toggle inverted checkbox">
|
||||||
@ -616,10 +615,10 @@ Exemples: <?= $_SERVER['REMOTE_ADDR']; ?>/24 <?= $_SERVER['SERVER_NAME']; ?> 10.
|
|||||||
<label for="randomizeHostsInput" title="--randomize-hosts">Scanner les cibles dans un ordre aléatoire</label>
|
<label for="randomizeHostsInput" title="--randomize-hosts">Scanner les cibles dans un ordre aléatoire</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="title"><i class="icon dropdown"></i>Options diverses</div>
|
||||||
|
<div class="content">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="stylesheetSelect" title="--stylesheet">Affichage des résultats</label>
|
<label for="stylesheetSelect" title="--stylesheet">Affichage des résultats</label>
|
||||||
<select id="stylesheetSelect" class="ui dropdown" name="--stylesheet" required>
|
<select id="stylesheetSelect" class="ui dropdown" name="--stylesheet" required>
|
||||||
@ -628,6 +627,45 @@ Exemples: <?= $_SERVER['REMOTE_ADDR']; ?>/24 <?= $_SERVER['SERVER_NAME']; ?> 10.
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="inverted field">
|
||||||
|
<div class="ui toggle inverted checkbox">
|
||||||
|
<input id="AInput" name="-A" type="checkbox">
|
||||||
|
<label for="AInput" title="-A">Scan agressif</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="two inverted fields">
|
||||||
|
<div class="inverted field">
|
||||||
|
<div class="ui toggle inverted checkbox">
|
||||||
|
<input id="sendEthInput" name="--send-eth" type="checkbox">
|
||||||
|
<label for="sendEthInput" title="--send-eth">Envoie des paquets en utilisant des trames Ethernet brutes</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="inverted field">
|
||||||
|
<div class="ui toggle inverted checkbox">
|
||||||
|
<input id="sendIPInput" name="--send-ip" type="checkbox">
|
||||||
|
<label for="sendIPInput" title="--send-ip">Envoie des paquets en utilisant des paquets IP bruts</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="two inverted fields">
|
||||||
|
<div class="inverted field">
|
||||||
|
<div class="ui toggle inverted checkbox">
|
||||||
|
<input id="privilegedInput" name="--privileged" type="checkbox">
|
||||||
|
<label for="privilegedInput" title="--privileged">Mode privilégié</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="inverted field">
|
||||||
|
<div class="ui toggle inverted checkbox">
|
||||||
|
<input id="unprivilegedInput" name="--unprivileged" type="checkbox">
|
||||||
|
<label for="unprivilegedInput" title="--unprivileged">Mode non privilégié</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label for="nameInput">Enregistrer sous le nom (optionnel)</label>
|
<label for="nameInput">Enregistrer sous le nom (optionnel)</label>
|
||||||
<div class="ui small input">
|
<div class="ui small input">
|
||||||
|
7
scan.php
7
scan.php
@ -102,22 +102,21 @@ if ($preset && isset($PRESETS[$preset])) {
|
|||||||
'--spoof-mac' => FILTER_VALIDATE_MAC,
|
'--spoof-mac' => FILTER_VALIDATE_MAC,
|
||||||
'--badsum' => FILTER_VALIDATE_BOOLEAN,
|
'--badsum' => FILTER_VALIDATE_BOOLEAN,
|
||||||
// MISC:
|
// MISC:
|
||||||
// '6' => FILTER_VALIDATE_BOOLEAN,
|
// '-6' => FILTER_VALIDATE_BOOLEAN,
|
||||||
'-A' => FILTER_VALIDATE_BOOLEAN,
|
'-A' => FILTER_VALIDATE_BOOLEAN,
|
||||||
'--send-eth' => FILTER_VALIDATE_BOOLEAN,
|
'--send-eth' => FILTER_VALIDATE_BOOLEAN,
|
||||||
|
'--send-ip' => FILTER_VALIDATE_BOOLEAN,
|
||||||
'--privileged' => FILTER_VALIDATE_BOOLEAN,
|
'--privileged' => FILTER_VALIDATE_BOOLEAN,
|
||||||
'--unprivileged' => FILTER_VALIDATE_BOOLEAN,
|
'--unprivileged' => FILTER_VALIDATE_BOOLEAN,
|
||||||
'--stylesheet' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $fileNameRegex]],
|
'--stylesheet' => ['filter' => FILTER_VALIDATE_REGEXP, 'options' => ['regexp' => $fileNameRegex]],
|
||||||
], false);
|
], false);
|
||||||
}
|
}
|
||||||
|
|
||||||
$inputs = array_merge($COMMONOPTIONS, $inputs);
|
|
||||||
|
|
||||||
$inputs['--stylesheet'] = "$BASEDIR/$STYLESHEETSDIR/{$inputs['--stylesheet']}?";
|
$inputs['--stylesheet'] = "$BASEDIR/$STYLESHEETSDIR/{$inputs['--stylesheet']}?";
|
||||||
if ($name) $inputs['--stylesheet'] .= "name=$name";
|
if ($name) $inputs['--stylesheet'] .= "name=$name";
|
||||||
|
|
||||||
$options = "";
|
$options = "";
|
||||||
foreach ($inputs as $option => $value) {
|
foreach (array_merge($COMMONOPTIONS, $inputs) as $option => $value) {
|
||||||
if (substr($option, 0, 1) == '-') {
|
if (substr($option, 0, 1) == '-') {
|
||||||
if (is_null($value)) {
|
if (is_null($value)) {
|
||||||
http_response_code(400);
|
http_response_code(400);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user