loader

KL016 – Kali Linux as a DNS Client

Domain Name Service (DNS) As we covered in our networking course here, in order to send your message to a destination over a routed infrastructure, you need to encapsulate your message into a TCP/IP Layer-3 header. We have also covered that headers include source and destination addresses. In case of Layer-3 with TCP/IP model, we […]

KL015 – Traffic Capture and Port Scan

tcpdump tcpdump is a text-based network sniffer. Let’s capture some traffic. We have used switch -i to indicate the interface on Kali Linux which we want to sniff on. Then we have specified our filer to match the traffic. If we don’t specify any filter, we capture all the traffic passing through that interface. The […]

KL014 – Kali Linux Networking

hostnamectl and timedatectl To query and change the system hostname and related settings use hostnamectl command. timedatectl may be used to query and change the system clock and its settings, and enable or disable time synchronization services. ip vs ifconfig Ethernet networks are called ethx (old fashion) or things like enp0s25 (nowadays). Traditionally, ifconfig was the tool to configure […]

KL012 – Downloading Files

wget wget is a utility for download of files from the Web. It supports HTTP, HTTPS, and FTP protocols. curl curl is a tool for transferring data from or to a server. It supports these protocols. Switch -o along with a string saves the file under the name of that string. As an exercise download […]

KL010 – Working With Text

Regular Expressions A Regular Expression (regex) is a text string which describes a pattern to find text. You can visit https://www.regular-expressions.info/tutorial.html to learn more about Regular Expressions. However, I will teach you the minimum you need to take from this course. Literal Characters Consider This is a test. sentence. Consider the most basic regular expression […]

KL009 – MAC Flood With MACOF

At this point, I prefer to present my networking students a practical tool which Floods CAM Table of a Cisco Catalyst switch. It is unrelated to the previous and next posts. macof The command macof is the tool with which we are going to flood a LAN switch (In our example a Cisco Catalyst switch) […]

KL008 – Piping and Redirecting

Stream, Piping, and Redirecting On a Unix-like system, the shell uses streams (a list of characters) for input and output: Stream Name Comment File Descriptor Standard Input (STDIN) provides input to commands 0 Standard Input (STDOUT) displays output from commands 1 Standard Input (STDERR) displays error output from commands 2 Streams in CLI Redirection They […]

KL007 – Searching Files in Kali Linux

find The find command – which is the most complex and powerful in this category – searches for files in a directory hierarchy. Its capabilities go beyond a simple file search. You can search by file age, timestamp, permissions, size, owner, and many more. Look at these: find / – At minimum, find gets a path to […]