Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,208,280 members, 8,002,137 topics. Date: Thursday, 14 November 2024 at 03:32 AM |
Nairaland Forum / Science/Technology / Computers / Hack Like A Pro: Linux Basics The Aspiring Hacker, Part 2 (1162 Views)
New Method Yahoo Boys Are Using To Hack Your Facebook Account / [exclusive] How To Hack Your Girlfriend Or Boyfriend's Whatsapp Account / Hack Like A Pro: Networking Basics For The Aspiring Hacker, Part 1 (2) (3) (4)
Hack Like A Pro: Linux Basics The Aspiring Hacker, Part 2 by jimklef(m): 12:22pm On Jan 21, 2016 |
Step 1: Change Directory (Cd)
We can change directories in multiple ways
with cd. As I showed you in my previous
article, we can use cd .. to move up one level
in the directory tree. We can also move
directly to the root directory by typing cd /
or move to our home directory by cd ~.
More often, we will use cd to move to a
directory by using the absolute path of the
directory. This mean that we write out the
entire path of the directory we want to
move to after cd. We can also move to the
directory by using the relative path of the
directory. This means that we don't need to
write the entire path, but simply use the
path that we're currently in and append to
it. Let's look at some examples.
Let's say we're in our root user directory in
BackTrack and we want to move to the
aircrack-ng directory (we'll be doing some
aircrack tutorials soon). We can simply type:
bt > cd /pentest/wireless/aircrack-ng
This will take us directly to the aircrack-ng
directory.
Now let's say we want to go to the scripts
sub-directory within aircrack-ng. We could
type out the full path to the sub-directory,
but it's much simpler to type the relative
path from where we are. We know we are /
pentest/wireless/aircrack-ng, so type:
bt > cd scripts
And that takes us to the scripts sub-
directory within aircrack-ng or /pentest/
wireless/aircrack-ng/scripts.
Once again, it's critical to emphasize that
Linux is case sensitive, so typing the
directory without the proper case will result
in the error message, "no such file or
directory".
Step 2: Listing Command (Ls)
Once of most used and important
commands in Linux is ls or list. This
command is used to list the contents of a
directory or sub-directory so that we can
see the contents. It's very similar to the dir
command in Windows. So let's use it in the
aircrack-ng directory;
bt > ls
We can see that Linux listed all the files and
directories within the aircrack-ng directory.
Linux allows us to modify its commands by
using switches; these are usually letters
preceded by the dash (-). With ls, it's helpful
to use two of theses switches, -a and -l.
The -a switch means all, so when we use it,
Linux will list all files and directories, even
those that are hidden. When we use the -l
switch, it gives us a long listing, meaning it
gives us info on the security permissions,
the size, the owner, the group of the file or
directory, when it was created, etc.
Let's type:
bt > ls -la
We'll examine more closely the security
permissions in a later tutorial, but you must
know that you need execute (x) permission
on any file you want to execute. So, if you
download a new tool, you must make
certain that you have execute permission on
it.
Step 3: Create a File (Touch)
The create a file in Linux, it's a bit different
from Windows. In Linux, we use the touch
command. So, let's create a new file called
newfile:
bt > touch newfile
Now we can check to see if that file exists by
doing a directory listing:
bt > ls -la
We can see that new file has been created!
Step 4: Create a Directory (Mkdir)
Similar to Windows, we can create a
directory by using the make directory
command (mkdir). Let's now make a new
directory.
bt > mkdir newdirectory
Now type ls and we can see that a new
directory has been created .
Step 5: Getting Help (Man)
Linux has a very useful utility called man.
Man is the manual for nearly every
command. If you should forget what a
command does, simply type man and the
name of the command and it will display the
manual with all the info you need about that
command, its switches, and arguments. For
instance, type:
bt > man touch
With most commands, you can also use
either the -h switch or the --help switch
after the command to obtain "help" about a
particular command. In the case of "touch",
we must use the --help to obtain help on the
touch command.
bt > touch --help
And that's it for this brief tutorial on Linux
for aspiring hackers. Make sure to check out
the first part if you haven't already.
I'll be going more into depth in my next
tutorial, so keep coming back! |
Re: Hack Like A Pro: Linux Basics The Aspiring Hacker, Part 2 by jimklef(m): 12:23pm On Jan 21, 2016 |
if u miss the first part click here........www.nairaland.com/2852402/hack-like-pro-networking-basics |
Re: Hack Like A Pro: Linux Basics The Aspiring Hacker, Part 2 by airsaylongcon: 1:56pm On Jan 21, 2016 |
Dude, I'm against this post. It's nothing personal and I will tell you why. Learning hacking should be done in a controlled environment, a localised lab where things can be carefully managed. You teaching script kiddies how to use BT is like someone teaching an untrained hunter how to shoot a high precision assault rifle... at Oshodi. The fatalities will be high and the mob will catch and kill him Meanwhile BT is old school Kali ruling the roost. I've got the latest version (3gb plus) available 1 Like |
Re: Hack Like A Pro: Linux Basics The Aspiring Hacker, Part 2 by persius555(m): 4:01pm On Jan 21, 2016 |
airsaylongcon:I have a saying; to be the best whitehat, dine and wine with the best blackhats out there. How fa, can i get kali 64bit version or whichever? |
Re: Hack Like A Pro: Linux Basics The Aspiring Hacker, Part 2 by airsaylongcon: 5:23pm On Jan 21, 2016 |
persius555: Sure. The Logistics of getting it to you is what we need to workout. |
Re: Hack Like A Pro: Linux Basics The Aspiring Hacker, Part 2 by persius555(m): 8:21pm On Jan 21, 2016 |
airsaylongcon:Okay. Anywhere in lagos will do for me. You? |
Re: Hack Like A Pro: Linux Basics The Aspiring Hacker, Part 2 by airsaylongcon: 10:05am On Jan 22, 2016 |
persius555: If you are on Telegram then we can chat. I'm in Lagos myself |
Re: Hack Like A Pro: Linux Basics The Aspiring Hacker, Part 2 by persius555(m): 4:33pm On Jan 23, 2016 |
airsaylongcon:, 08166893416. |
(1) (Reply)
Discover The Business Applications Of Ms-excel, Access And Powerpoint / Which Games To Play With Hp 650 / In Need Of Hp Elitebook Charger
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 24 |