Check out the .nessusrc file. that has a setting for deciding which ports to scan. the option you are looking for is called "port_range", which can look like "default" or "1-65535" or "22-25,80,443" and all points in between
<br><br><div><span class="gmail_quote">On 1/30/07, <b class="gmail_sendername">Sk8board Kid</b> <<a href="mailto:sk8boardkid@gmail.com">sk8boardkid@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would like to launch nessus from the command line using my nessus<br>server on <a href="http://127.0.0.1">127.0.0.1</a> in linux but would like it to skip the<br>portscanning and use a list of ports that i specify instead.
<br><br>I thought I could create a kb in<br>/opt/nessus/var/nessus/users/nessus/kbs/127/0/0/127.0.0.1<br><br>with the following content:<br><br>1170151262 3 Launched/10180=1<br>1170151262 3 Launched/10335=1<br>1170151262 3 Ports/tcp/80=1
<br>1170151262 3 Ports/tcp/443=1<br>1170151262 3 Host/scanned=1<br>1170151262 3 Host/scanners/nessus_tcp_scanner=1<br><br>drwx------ 2 root root 4096 Jan 30 10:23 .<br>drwx------ 3 root root 4096 Jan 29 15:04 ..<br>-rw-r----- 1 root root 193 Jan 30 10:21
<a href="http://127.0.0.1">127.0.0.1</a><br><br>although the scan seems to work as expected, the kbs file is not<br>updated with the scans results.<br><br>If i remove the file nessus runs from scratch saving it's kb with all the info.
<br><br>Is there another way to do get the desired effect?<br><br>Thanks<br>_______________________________________________<br>Nessus mailing list<br><a href="mailto:Nessus@list.nessus.org">Nessus@list.nessus.org</a><br><a href="http://mail.nessus.org/mailman/listinfo/nessus">
http://mail.nessus.org/mailman/listinfo/nessus</a><br></blockquote></div><br><br clear="all"><br>-- <br>Doug Nordwall<br>Unix, Network, and Security Administrator<br>Noise proves nothing. Often a hen who has merely laid an egg cackles as if she laid an asteroid. -- Mark Twain