Using telnet in 2024. Connecting to North Korea.
I have found a North Korean IP address. This is very interesting.
Read MoreI have found a North Korean IP address. This is very interesting.
Read MoreHow to filter via MAC address in Wireshark.
Read MoreHow to add another IP address to the loopback device on Linux.
Read MoreThe Cowsay program is very useful for printing information in your terminal. There are quite a few cow files allowing many useful avatars to print in your terminal. Install this today. jason@Yog-Sothoth » ~ » $ sudo apt install cowsay Then run this command to list all the available *.cow…
Read MoreGet IP address information using Netstat on Linux How to get IP address information using netcat and some other useful tips. user1@cloudshell:~$ netstat | awk ‘/tcp6/ { print $5 }’ 74.125.41.158:36146 173.194.93.92:48039user1@cloudshell:~$ netstat | awk ‘/tcp6/ { print $5 }’ 74.125.41.158:36146 173.194.93.92:48039 user1@cloudshell:~$ netstat | awk ‘/tcp6/ { print $5"…
Read MoreThis example will get the current IP address(s) of the user`s machine. PS C:\Users\Intel i5> Get-NetIPAddress | Sort-Object -Property InterfaceIndex | where-object -FilterScript {$_.SuffixOrigin -eq "Dhcp"} IPAddress : 192.168.1.114 InterfaceIndex : 10 InterfaceAlias : Ethernet AddressFamily : IPv4 Type : Unicast PrefixLength : 24 PrefixOrigin : Dhcp SuffixOrigin…
Read MoreThis one-liner will print the current LAN IP address of a machine running Macintosh OSX. jason@. PWD: ~. -bash. 3.2.57. 10 $> ifconfig | grep "inet " | awk ‘FNR==2{print $2}’ 192.168.1.2jason@. PWD: ~. -bash. 3.2.57. 10 $> ifconfig | grep "inet " | awk ‘FNR==2{print $2}’ 192.168.1.2 This is…
Read MoreThis is an interesting command to view your command history when you are using Bash. ┌──[[email protected]]─[~] └──╼ ╼ $ hash hits command 1 /usr/bin/gethostip 1 /usr/bin/sudo┌──[[email protected]]─[~] └──╼ ╼ $ hash hits command 1 /usr/bin/gethostip 1 /usr/bin/sudo This command is a Bash shell built-in command. If you are using the tcsh…
Read MoreThis one-liner will take your IP address and convert it into binary. This is very useful and fun to do. ┌──[[email protected]]─[~/Videos] └──╼ ╼ $ ipcalc `ip a | awk ‘/inet / { print $2 }’ | sed -n 2p | cut -d "/" -f1` | awk ‘/Address/ {print $3,$4}’ 11000000.10101000.00000001….
Read MoreGetting the gateway IP address of your machine is a very important trick sometimes. This is very easy on Linux. Use the ip route command on Linux to print information about the IP routing. This includes the gateway IP address. ┌──[[email protected]]─[~/Videos] └──╼ ╼ $ ip route | grep default |…
Read MoreHow to get the total size of a folder using Linux scripting. ┌──[[email protected]]─[~/Documents] └──╼ ╼ $ du -ack -BM | sort -nr | head -n 1 | awk ‘{print $1}’ 30255M┌──[[email protected]]─[~/Documents] └──╼ ╼ $ du -ack -BM | sort -nr | head -n 1 | awk ‘{print $1}’ 30255M This…
Read MoreThis useful one-liner will get your IP address from the command line very easily. This uses Google services and works very well. 4.4 Tue Jun 30 jason@Yog-Sothoth 0: $ dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | sed -e ‘s/^"//’ -e ‘s/"$//’ 209.134.104.2004.4 Tue Jun 30 jason@Yog-Sothoth 0: $ dig TXT +short…
Read MoreThis is how to get the current IP address of the active network adapter in your Windows system. PS C:\Users\Doom> (Test-Connection -ComputerName (hostname) -Count 1).IPV4Address.IPAddressToString 192.168.1.2PS C:\Users\Doom> (Test-Connection -ComputerName (hostname) -Count 1).IPV4Address.IPAddressToString 192.168.1.2 This prints the IP address of your machine to the Powershell terminal. This is a great way…
Read MoreHow to get just the adapter name when querying the adapter with ip a. This is a simple trick, this one-liner is not that elegant, but it does work. This allows me to get just the name of the adapter, and not any other extraneous information. 4.4 Wed Aug 07…
Read MoreThe nslookup command on UNIX and Linux may be used to get information about an IP address and tell you who it belongs to. This is very useful when using the Internet. This queries the DNS server and can tell you the domain name if any associated with the IP…
Read MoreTo view network traffic and then locate certain traffic that is hogging bandwidth, use the iftop utility. This is a great way to see what is going on in your network. Just install iftop. jason@Yog-Sothoth » ~ » $ sudo apt install iftop Then run it with this one-liner. jason@Yog-Sothoth…
Read MoreThis is yet another way to get the actual IP address of your Linux machine on a LAN. This returns just the IP address of your Linux computer. jason@jason-Lenovo-H50-55:~$ ip a | awk ‘/inet / { print $2 }’ | sed -n 2p 192.168.1.4/24jason@jason-Lenovo-H50-55:~$ ip a | awk ‘/inet /…
Read MoreTo get just the IP address of your Internet facing Linux machine, use this command. jason@jason-desktop:~/Documents/ipinfo/src$ curl icanhazip.comjason@jason-desktop:~/Documents/ipinfo/src$ curl icanhazip.com This will return just your IP address. This is another way to get this information. jason@jason-desktop:~/Documents$ curl ipinfo.io/ipjason@jason-desktop:~/Documents$ curl ipinfo.io/ip To get information about a DNS server, use the dig…
Read MoreThere are a few commands available in Red Hat Linux to get information about your network adapter. Here are a couple. The ifstat command returns information about the network throughput of your adapter. [jason@darknet ~]$ ifstat #kernel Interface RX Pkts/Rate TX Pkts/Rate RX Data/Rate TX Data/Rate RX Errs/Drop TX Errs/Drop…
Read MoreThis command in interface configuration mode will change the MAC address for a specific interface on the router. R1(config-if)#mac-address DE.AD.BER1(config-if)#mac-address DE.AD.BE And this is what I get when I use the show run command and view the properties of the interface. interface FastEthernet0/0 mac-address 00de.00ad.00be ip address 192.168.0.1 255.255.255.0 ip…
Read More