Build your desktop application using Tkinter

Image
Use tkinter to build your first GUI application very quickly.  What you'll learn;   ðŸ”° Build windows applications  ðŸ”° Learn how to use GUI with python  ðŸ”° Learn how to use Tkinter library  ðŸ”° Transform an idea to an app  ðŸ”° Using some sqlite  ðŸ”° Using the pillow library  ðŸ”° Import pictures in an application  ðŸ”° Convert pictures from png to jpg  ðŸ”° Convert picture from jpg to png Link : https://www.udemy.com/course/build-your-first-desktop-application-using-tkinter/?couponCode=FGPTKINTER Enjoy! 

Linux Basics for the Aspiring Ethical Hacker, Episode 4 (Finding Files)

Linux beginners are often faced with the issue of how to find files and programs, especially considering the radically different directory structure as compared to Mac OS or Windows. Beginners sometimes get frustrated trying to find the necessary files or binaries, so I'm dedicating this tutorial to finding stuff in Linux.



Before we dive in, make sure to check out the previous guides on Linux basics (12, and 3) to get current on our lessons.


Step 1Finding Files in a Directory (Find)

The first command I want to show you is find. As you probably guessed, find is able to find stuff by looking in a directory for the file you're hunting for. By default, it's recursive, which means it will look in all sub-directories and display a list of everywhere it finds the file. For instance, if we are looking for aircrack-ng, we could type:

  • kali > find -name aircarck-ng


Note that we need to tell Linux that we want to search by name (-name) and then the name of the file we're searching for.

It then returns the full path of every place where it finds aircrack-ng. We can be more specific and ask Linux to only tell us where it finds aircrack-ng in the /pentest directory. We can do this by typing:

  • kali > find /pentest -name aircrack-ng

This command says, "look in the pentest directory and all its sub-directories and tell me where you find something called aircrack-ng".

Now, Linux only returns those paths to files that are in the directory /pentest or its sub-directories, such as /pentest/wireless/aircrack-ng and the others.


Step 2Finding Binaries in Path Variables (Which)

The next searching command we want to look at is which. This command allows us to search for binaries that are in our path variable.

Binaries are the files that are the equivalent of executables in Windows. These are files that do something like echolscdmv, etc. Our path variable is the variable that keeps the directory path to our binaries. Usually, our binaries are in the /bin (bin is short for binaries) or /sbin directory and that's reflected in our path variable. Our path variable setting can be checked by asking Linux to echo the value in the variable. We do this by typing:

  • kali > echo $PATH

Linux responds with the value in our path variable. These are the places that which will search for binaries. So when we type:

  • kali > which ls


It returns the path to that binary. If we use which to search for aircrack-ng:

  • kali > which aircrack-ng


Then we can see that Linux returns /usr/bin/aircrack-ng. If aircrack-ng were not in a directory that was in our path, it would not be able to help us.


Step 3Finding Any File in Any Directory (Whereis)

Unlike whichwhereis is not limited to finding binaries in our path. It can locate files in any directory, and in addition, it also locates the files manual or man pages. So, when we type:

  • kali > whereis aircrack-ng


We can see above that whereis returns the path to multiple locations of aircrack-ng including the man pages.


Step 4Finding Files Using the Database (Locate)

The locate command can also be used to find files and usually is much faster than either which or whereis. The difference is that locate uses a database of all the files in the file system and searches therefore take place much faster.

The drawback to locate is that new files will NOT be found by locate as the database is typically only updated daily, usually scheduled in the middle of the night when activity on the system is light as updating this database can be CPU intensive.

  • locate aircrack-ng

You can see in the screenshot above that locate returns a path every time it encounters any file with aircrack-ng in it, binary or not.

Hope this helps you in finding what you need in Kali or any Linux distro, therefore making you more skillful. Make sure to check out the first three parts of this series and if you have any questions, ask right away in the comments below for more help.

Come back for the next Linux tutorial! 


Comments

Post a Comment

Popular posts from this blog

How Hackers Grab Encrypted Passwords and Crack Them

What is Required to Become a Master Ethical Hacker

How to Use Maltego for Network Reconnaissance