Permalink
Zoosk Hacking Tool - Zoosk Hack For Mac Gregorio Smith. Unsubscribe from Gregorio Smith? Steve Mac, Ina Wroldsen, Jack Patterson, Anmol Malik; Licensed to YouTube.
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up| usage='$(basename '$0') [OPTIONS] -- program to retrieve network devices and show IP address paired with the device name |
| where: |
| -h show this help text |
| -i set the IP interface to check (default: 1) - check available IPs list with [-l] option |
| -l list the available IP addresses |
| -a show all network IPs, even if no computer name is found |
| -m show MAC address |
| -b show devices brand when no other information is available (if nmap installed and if can be found)' |
| myip=1 |
| shownoname=false |
| showmac=false |
| showbrand=false |
| RED='033[0;31m' |
| GREEN='033[0;32m' |
| ORANGE='033[0;33m' |
| NC='033[0m' |
| whilegetopts':halmbi:' option;do |
| case'$option'in |
| h) echo'$usage' |
| exit 0 |
| ;; |
| a) shownoname=true |
| ;; |
| l) sudo nm-tool | grep -i 'address'| grep -Po '[0-9]+.[0-9]+.[0-9]+.[0-9]+'| nl -n 'ln' |
| exit 0 |
| ;; |
| m) showmac=true |
| ;; |
| b) showbrand=true |
| ;; |
| i) myip=$OPTARG |
| if [ -z$(sudo nm-tool | grep -i 'address'| grep -Po '[0-9]+.[0-9]+.[0-9]+.[0-9]+'| sed -n '$myip'p) ];then |
| echo'there is no such interface, try the [-l] option' |
| exit 1 |
| fi |
| ;; |
| :) printf'missing argument for -%sn''$OPTARG'>&2 |
| exit 1 |
| ;; |
| ?) printf'illegal option: -%sn''$OPTARG'>&2 |
| exit 1 |
| ;; |
| esac |
| done |
| shift$((OPTIND -1)) |
| # get if nmap is installed |
| nmapInstalled=$(whereis nmap) |
| if [ -z'$nmapInstalled' ];then |
| showbrand=false |
| fi |
| maxwait=0.1; |
| # get starter IP address |
| IFS=. read -r i1 i2 i3 i4 <<<$(sudo nm-tool | grep -i 'address'| grep -Po '[0-9]+.[0-9]+.[0-9]+.[0-9]+'| sed -n '$myip'p) |
| IFS=. read -r m1 m2 m3 m4 <<<$(sudo nm-tool | grep -i 'prefix'| grep -Po '[0-9]+.[0-9]+.[0-9]+.[0-9]+'| sed -n '$myip'p) |
| si1=$(($i1&$m1)) |
| si2=$(($i2&$m2)) |
| si3=$(($i3&$m3)) |
| si4=$(($i4&$m4)) |
| # get my HW address |
| myhwaddr=$(ifconfig | grep -B 1 '$i1.$i2.$i3.$i4'| grep -oP '([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})'| sed -n '$myip'p) |
| # get number of IPs in network |
| iprange=$(sudo nm-tool | grep -i 'prefix'| grep -Po 's[0-9]+'| grep -Po '[0-9]+'| sed -n '$myip'p) |
| iprange=$((2**(32-$iprange) -1)) |
| # cycle through IPs |
| for((i=1;i<$iprange;i++));do |
| # calulate IP |
| ci4=$(($si4+$i)) |
| ci3=$(($si3+ ($ci4/256) )); ci4=$(($ci4%256)) |
| ci2=$(($si2+ ($ci3/256) )); ci3=$(($ci3%256)) |
| ci1=$(($si1+ ($ci2/256) )); ci2=$(($ci2%256)) |
| # get computer name |
| result=$(timeout $maxwait nmblookup -A '$ci1.$ci2.$ci3.$ci4'| sed -n 2p | grep -Po 't.+?s'| xargs) |
| hwaddress=$(arp '$ci1.$ci2.$ci3.$ci4'| grep -Po '([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})') |
| if [ -z'$result' ] && [ !-z'$hwaddress' ] && [ $shownonametrue ];then |
| result='???' |
| fi |
| # print if response given |
| if [ !-z'$result' ];then |
| toprint='$ci1.$ci2.$ci3.$ci4' |
| if [ $showmactrue ];then |
| if [ -z'$hwaddress' ];then |
| hwaddress=$myhwaddr |
| fi |
| toprint='$toprint ( $hwaddress )' |
| fi |
| myhost=$(grep '$ci1.$ci2.$ci3.$ci4' /etc/hosts | grep -oP 's.+'| xargs) |
| if [ !-z'$myhost' ];then |
| result='$result ( ${GREEN}$myhost${NC} )' |
| fi |
| if [ '$ci1.$ci2.$ci3.$ci4''$i1.$i2.$i3.$i4' ];then |
| result='$result ( ${RED}THIS DEVICE${NC} )' |
| fi |
| # if nothing found and nmap installed get device brand |
| if [ '$result''???' ] && [ $showbrandtrue ];then |
| result=$(sudo nmap -sP '$ci1.$ci2.$ci3.$ci4'| grep 'MAC Address'| grep -Po '(.+?)') |
| if [ '$result''(Unknown)' ];then |
| result='???' |
| else |
| result='??? ${ORANGE}$result${NC}' |
| fi |
| fi |
| echo -e '$toprintt=>t$result' |
| fi |
| done |
Copy lines Copy permalink
11.3 Command-line Network Configuration Interfaces
If the NetworkManager service is running, you can use the nm-tool command to display a verbose listing of the state of the system's physical network interfaces, for example:
You can also use the ip command to display the status of an interface, for debugging, or for system tuning. For example, to display the status of all active interfaces:
For each network interface, the output shows the current IP address, and the status of the interface. To display the status of a single interface such as eth0, specify its name as shown here:

You can also use ip to set properties and activate a network interface. The following example sets the IP address of the eth1 interface and activates it:

You might be used to using the ifconfig command to perform these operations. However, ifconfig is considered obsolete and will eventually be replaced altogether by the ip command.
Any settings that you configure for network interfaces using ip do not persist across system reboots. To make the changes permanent, set the properties in the /etc/sysconfig/network-scripts/ifcfg- file.interface
Any changes that you make to an interface file in /etc/sysconfig/network-scripts do not take effect until you restart the network service or bring the interface down and back up again. For example, to restart the network service:
To restart an individual interface, you can use the ifup or ifdown commands, which invoke the script in /etc/sysconfig/network-scripts that corresponds to the interface type, for example:
Alternatively, you can use the ip command:
The ethtool utility is useful for diagnosing potentially mismatched settings that affect performance, and allows you to query and set the low-level properties of a network device. Any changes that you make using ethtool do not persist across a reboot. To make the changes permanent, modify the settings in the device's ifcfg- file in interface/etc/sysconfig/network-scripts.
Snippet Tool For Mac
For more information, see the ethtool(8), ifup(8), ip(8), and nm-tool(1) manual pages.
Nm Tool For Android
Copyright © 2013, 2019, Oracle and/or its affiliates. All rights reserved. Legal Notices