split some options

This commit is contained in:
Adrien MALINGREY 2024-10-15 08:29:01 +02:00
parent 1befb0017c
commit 2c771c0766
2 changed files with 35 additions and 20 deletions

16
README.md Normal file
View File

@ -0,0 +1,16 @@
# lanScan
Scanne le réseau avec `nmap` et affiche les résultats dans une page web.
## Accès root
Certaines options nécessitent l'accès root.
Pour donner les droits à lanScan sous Linux, créer le fichier `/etc/sudoers.d/nmap` avec le contenu
(en remplaçant `www-data` par le compte du service web) :
```
www-data ALL = NOPASSWD: /usr/bin/nmap
````
et modifier le fichier `config.php` avec :
```php
$sudo = true;
```

View File

@ -77,26 +77,26 @@ Exemples: <?= $_SERVER['REMOTE_ADDR']; ?>/24 <?= $_SERVER['SERVER_NAME']; ?> 10.
</div>
</div>
<div class="fields">
<div class="field" title="-PS">
<label for="PSInput">TCP SYN</label>
<input type="text" id="PSInput" name="PS" placeholder="Ports" list="servicesList"
pattern="([0-9\-]+|[a-z\-]+)(,[0-9\-]+|,[a-z\-]+)*" value="<?= $inputs['PS'] ?? "" ?>"
title="Liste de ports ex: 22,23,25,80,200-1024,60000-">
</div>
<div class="field" title="-PA">
<label for="PAInput">TCP ACK</label>
<input type="text" id="PAInput" name="PA" placeholder="Ports" list="servicesList"
pattern="([0-9\-]+|[a-z\-]+)(,[0-9\-]+|,[a-z\-]+)*" value="<?= $inputs['PA'] ?? "" ?>"
title="Liste de ports ex: 22,23,25,80,200-1024,60000-">
</div>
<div class="field" title="-PU">
<label for="PUInput">UDP</label>
<input type="text" id="PUInput" name="PU" placeholder="Ports" list="servicesList"
pattern="([0-9\-]+|[a-z\-]+)(,[0-9\-]+|,[a-z\-]+)*" value="<?= $inputs['PU'] ?? "" ?>"
title="Liste de ports ex: 22,23,25,80,200-1024,60000-">
</div>
</div>
<div class="field">
<label>ICMP</label>
@ -173,7 +173,6 @@ Exemples: <?= $_SERVER['REMOTE_ADDR']; ?>/24 <?= $_SERVER['SERVER_NAME']; ?> 10.
</div>
<div class="content">
<div class="field">
<label>Scans</label>
<div class="fields">
<div class="field" title="-sS">
<div class="ui toggle checkbox">