PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Finding nodes on a network For Linux and Windows

Go down

Finding nodes on a network For Linux and Windows Empty Finding nodes on a network For Linux and Windows

Post by jamied_uk 20th July 2015, 14:26






http://www.cyberciti.biz/faq/mapping-lan-with-linux-unix-ping-command/


Shutting down a node even through wifi



https://www.youtube.com/watch?v=T0NJF0ASQ2o

Open cmd from run box


Connect to target network

type

net view

then ping space the node you want to become your target


type shutdown -i
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Scan Networks using linux

Code:
sudo apt-get install -y arp-scan nmap



Code:
sudo arp-scan --interface=eth0 --localnet



Code:
sudo arp-scan -l --interface=wlan0
-or if using ethernet:
Code:
sudo arp-scan -l --interface=eth0




http://manpages.ubuntu.com/manpages/hardy/man1/arp-scan.1.html



http://superuser.com/questions/261818/how-can-i-list-all-ips-in-the-connected-network-through-terminal-preferably


or

Code:
nmap -sP 192.168.0.1/24

Or


!/bin/bash

for ip in 192.168.0.{1..254}; do
  ping -c 1 -W 1 $ip | grep "64 bytes" &
done
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Finding nodes on a network For Linux and Windows Empty Re: Finding nodes on a network For Linux and Windows

Post by jamied_uk 20th July 2015, 14:53

Example Of usb0 connection (network)

Code:
finding your own ip is important
Code:
ifconfig eth0


Code:
sudo nmap -sP 192.168.1.0/24


Code:

sudo nmap -sP 192.168.42.0/24



you can do ranges

Code:
nmap -sP  192.168.0.1-254

Code:
sudo nmap -sP 192.168.1.0/24

Code:
1/4  <<< can be added or any other number in some cases


Other methods

Code:
sudo arp-scan --localnet

Code:
nmap -sP 192.168.254.*

So for example if your network is 192.168.42.0

Code:
sudo nmap -sP 192.168.42.0/24


and likwaise if your network is 192.168.1 then the following:

Code:
sudo nmap -sP 192.168.1.0/24

Code:
sudo arp-scan --interface=eth0 192.168.1.0/24


Code:
sudo arp-scan --interface=usb0 192.168.42.0/24



Showing Switches mac address
Code:
sh mac address-table

You can even use wlan0


http://serverfault.com/questions/245136/how-to-find-out-mac-addresses-of-all-machines-on-network
More on http://itsfoss.com/how-to-find-what-devices-are-connected-to-network-in-ubuntu/
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Finding nodes on a network For Linux and Windows Empty Re: Finding nodes on a network For Linux and Windows

Post by jamied_uk 20th July 2015, 15:19

jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Finding nodes on a network For Linux and Windows Empty Re: Finding nodes on a network For Linux and Windows

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum