Finding nodes on a network For Linux and Windows

View previous topic View next topic Go down

Finding nodes on a network For Linux and Windows

Post by jamied_uk on 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
avatar
jamied_uk
Admin

Posts : 2280
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Finding nodes on a network For Linux and Windows

Post by jamied_uk on 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/
avatar
jamied_uk
Admin

Posts : 2280
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Finding nodes on a network For Linux and Windows

Post by jamied_uk on 20th July 2015, 15:19

avatar
jamied_uk
Admin

Posts : 2280
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Finding nodes on a network For Linux and Windows

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


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