DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th December 2011
badguy badguy is offline
Fdisk Soldier
 
Join Date: Jul 2009
Location: MD, USA
Posts: 59
Default Scanning network neighbors

just out of curiosity for what other people use out there.

In linux there is a command "ip neigh show" that can be used to scan the network neighbors on the LAN. Is there a similar command on openbsd (other than nmap)
Reply With Quote
  #2   (View Single Post)  
Old 7th December 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

There is always nc. The man page nc(1) says:
Code:
PORT SCANNING
     It may be useful to know which ports are open and running services on a
     target machine.  The -z flag can be used to tell nc to report open ports,
     rather than initiate a connection.  For example:

           $ nc -z host.example.com 20-30
           Connection to host.example.com 22 port [tcp/ssh] succeeded!
           Connection to host.example.com 25 port [tcp/smtp] succeeded!

     The port range was specified to limit the search to ports 20 - 30.

     Alternatively, it might be useful to know which server software is
     running, and which versions.  This information is often contained within
     the greeting banners.  In order to retrieve these, it is necessary to
     first make a connection, and then break the connection when the banner
     has been retrieved.  This can be accomplished by specifying a small
     timeout with the -w flag, or perhaps by issuing a "QUIT" command to the
     server:

           $ echo "QUIT" | nc host.example.com 20-30
           SSH-1.99-OpenSSH_3.6.1p2
           Protocol mismatch.
           220 host.example.com IMS SMTP Receiver Version 0.84 Ready
There are several tools in the ports tree other than net/nmap and its related facilities, but I have never used any of them.
Reply With Quote
  #3   (View Single Post)  
Old 7th December 2011
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Depends what you mean by "scan". If you just want to know their IP, then ping the broadcast address. If you want to know what ports are open, then ping the broadcast address, loop through each discovered IP and run nmap against it. And so on.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bluefish Editor 2.2.0 enhanced with new syntax scanning abilities J65nko News 0 28th November 2011 01:53 PM
Scanning without root with sane backrow OpenBSD Packages and Ports 4 16th May 2011 11:36 PM
Network bottleneck mapcorp OpenBSD General 2 29th June 2009 08:24 PM
Payment Card Industry compliance scanning dk_netsvil General software and network 2 21st July 2008 05:32 AM
Windows network PatrickBaer FreeBSD General 3 19th May 2008 02:23 PM


All times are GMT. The time now is 06:21 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick