<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Archiwa netdiscover - soban</title>
	<atom:link href="https://soban.pl/category/netdiscover/feed/" rel="self" type="application/rss+xml" />
	<link>https://soban.pl/category/netdiscover/</link>
	<description>IT, Linux, Servers, Security</description>
	<lastBuildDate>Sat, 25 Feb 2023 22:16:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Netdiscover great tool for scaning and watching local network</title>
		<link>https://soban.pl/netdiscover-great-tool-for-scaning-and-watching-local-network/</link>
		
		<dc:creator><![CDATA[soban]]></dc:creator>
		<pubDate>Wed, 20 Oct 2021 14:50:23 +0000</pubDate>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Kali]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[netdiscover]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[Security]]></category>
		<guid isPermaLink="false">https://soban.pl/?p=172</guid>

					<description><![CDATA[<p>Netdiscover is a popular network discovery tool that is used in Linux to identify live hosts on a network. It sends ARP (Address Resolution Protocol) requests to the network and then listens for replies from active hosts. By analyzing the replies, Netdiscover can build a list of all hosts that are currently active on the [&#8230;]</p>
<p>Artykuł <a href="https://soban.pl/netdiscover-great-tool-for-scaning-and-watching-local-network/">Netdiscover great tool for scaning and watching local network</a> pochodzi z serwisu <a href="https://soban.pl">soban</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Netdiscover is a popular network discovery tool that is used in Linux to identify live hosts on a network. It sends ARP (Address Resolution Protocol) requests to the network and then listens for replies from active hosts. By analyzing the replies, Netdiscover can build a list of all hosts that are currently active on the network.</p>



<p>Netdiscover is typically used by network administrators to identify all devices on a network and to detect any unauthorized devices that may be connected. It can also be used to identify the IP address of a device on a network that is not responding to conventional network scanning techniques.</p>



<p>Netdiscover is a command-line tool and has a range of options that allow it to be customized for specific network environments. For example, it can be set to scan a particular subnet or to use a specific network interface. Additionally, Netdiscover can output its results in a range of formats, including CSV and XML, making it easy to integrate with other tools and applications.</p>



<p>Overall, Netdiscover is a useful tool for network administrators who need to identify all devices on a network and detect any unauthorized devices that may be connected. Its ability to output results in a range of formats and its customizable options make it a versatile and valuable addition to any network security toolkit.</p>



<p>Netdiscover is a great tool to scan your local network for locally attached devices. It is installed by default in Kali Linux. However, if you want to use it on a raspberry pi, you need to install it. You can do this as follows:</p>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag"># apt install netdiscover</pre></div>



<p> In virtualbox I have this setup of network in Kali Linux: </p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="755" src="https://soban.pl/wp-content/uploads/2021/10/image-45-1024x755.png" alt="" class="wp-image-174" srcset="https://soban.pl/wp-content/uploads/2021/10/image-45-1024x755.png 1024w, https://soban.pl/wp-content/uploads/2021/10/image-45-300x221.png 300w, https://soban.pl/wp-content/uploads/2021/10/image-45-768x566.png 768w, https://soban.pl/wp-content/uploads/2021/10/image-45.png 1217w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>The very use of the tool requires specifying the subnetwork in which we are located. We can check it like this:</p>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag"># ifconfig</pre></div>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="543" src="https://soban.pl/wp-content/uploads/2021/10/image-48-1024x543.png" alt="" class="wp-image-178" srcset="https://soban.pl/wp-content/uploads/2021/10/image-48-1024x543.png 1024w, https://soban.pl/wp-content/uploads/2021/10/image-48-300x159.png 300w, https://soban.pl/wp-content/uploads/2021/10/image-48-768x408.png 768w, https://soban.pl/wp-content/uploads/2021/10/image-48.png 1029w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>In this case, we can scan network 192.168.1.0/24, so in <strong>netdiscover</strong> we can use:</p>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag"># netdiscover -r 192.168.1.0/24</pre></div>



<p>The screen will show the network scanner:</p>



<figure class="wp-block-image size-full"><img decoding="async" width="900" height="223" src="https://soban.pl/wp-content/uploads/2021/10/image-46.png" alt="" class="wp-image-175" srcset="https://soban.pl/wp-content/uploads/2021/10/image-46.png 900w, https://soban.pl/wp-content/uploads/2021/10/image-46-300x74.png 300w, https://soban.pl/wp-content/uploads/2021/10/image-46-768x190.png 768w" sizes="(max-width: 900px) 100vw, 900px" /></figure>



<p>Netdiscover also gives you the option to direct the result to a file, in this case it refreshes the scan every 2 seconds:</p>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag"># netdiscover -r 192.168.1.0/24 -s 2 -P &gt;&gt; /tmp/file</pre></div>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="898" height="307" src="https://soban.pl/wp-content/uploads/2021/10/image-49.png" alt="" class="wp-image-183" srcset="https://soban.pl/wp-content/uploads/2021/10/image-49.png 898w, https://soban.pl/wp-content/uploads/2021/10/image-49-300x103.png 300w, https://soban.pl/wp-content/uploads/2021/10/image-49-768x263.png 768w" sizes="auto, (max-width: 898px) 100vw, 898px" /></figure>



<p>Now we can also use nslookup to get hostname:</p>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">$ cat /tmp/file | grep '192\.' | grep -v Screen | cut -c1-14 | sort -u | nslookup | grep name | cut -f 2 | cut -c8-</pre></div>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1019" height="114" src="https://soban.pl/wp-content/uploads/2021/10/image-53.png" alt="" class="wp-image-190" srcset="https://soban.pl/wp-content/uploads/2021/10/image-53.png 1019w, https://soban.pl/wp-content/uploads/2021/10/image-53-300x34.png 300w, https://soban.pl/wp-content/uploads/2021/10/image-53-768x86.png 768w" sizes="auto, (max-width: 1019px) 100vw, 1019px" /></figure>



<p>Also we can use nmap:</p>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag"># nmap `cat /tmp/file | grep '192\.' | grep -v Screen | cut -c2-34 | sort -u | awk '{ print $1 }' | tr '\n' ' '`</pre></div>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1021" height="502" src="https://soban.pl/wp-content/uploads/2021/10/image-55.png" alt="" class="wp-image-194" srcset="https://soban.pl/wp-content/uploads/2021/10/image-55.png 1021w, https://soban.pl/wp-content/uploads/2021/10/image-55-300x148.png 300w, https://soban.pl/wp-content/uploads/2021/10/image-55-768x378.png 768w" sizes="auto, (max-width: 1021px) 100vw, 1021px" /></figure>



<p>You can use more parameters in nmap for more information, however this will significantly increase the scan time. Still, sometimes it&#8217;s worth the wait.</p>
<p>Artykuł <a href="https://soban.pl/netdiscover-great-tool-for-scaning-and-watching-local-network/">Netdiscover great tool for scaning and watching local network</a> pochodzi z serwisu <a href="https://soban.pl">soban</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
