Hack Like a Pro Linux Basics for the Aspiring Hacker, Part 1 (Getting Started)
Forum
Metasploit Basics
Facebook Hacks
Password Cracking
Top Wi-Fi Adapters
Wi-Fi Hacking
Linux Basics
Mr. Robot Hacks
Hack Like a Pro
Forensics
Recon
Social Engineering
Networking Basics
Antivirus Evasion
Spy Tactics
MitM
Advice from a Hacker
Hack Like a Pro Linux Basics for the Aspiring Hacker, Part 1 (Getting Started)
A number of you have written me regarding which operating system is best for hacking. I'll start by saying that nearly every professional and expert hacker uses Linux or Unix. Although some hacks can be done with Windows and Mac OS, nearly all of the hacking tools are developed specifically for Linux.
When these Linux apps are developed in Linux and then ported over to Windows, they often lose some of their capabilities. In addition, there are capabilities built into Linux that simply are not available in Windows. That is why hacker tools are in most cases ONLY developed for Linux.
Step 1Boot Up Linux
Once you've booted up BackTrack, logged in as "root" and then type:- bt > startx
Step 2Open a Terminal
To become proficient in Linux, you MUST master the terminal. Many things can be done now in the various Linux distributions by simply pointing and clicking, similar to Windows or Mac OS, but the expert hacker must know how to use the terminal to run most of the hacking tools.So, let's open a terminal by clicking on the terminal icon on the bottom bar. That should give us a screen that looks similar to this.
It's important to keep in mind that unlike Windows, Linux is case-sensitive. This means that "Desktop" is different from "desktop" which is different from "DeskTop". Those who are new to Linux often find this challenging, so try to keep this in mind.
Step 3Examine the Directory Structure
Let's start with some basic Linux. Many beginners get tripped up by the structure of the file system in Linux. Unlike Windows, Linux's file system is not linked to a physical drive like in Windows, so we don't have a c:\ at the beginning of our Linux file system, but rather a /.To visualize the file system, let's take a look at this diagram below.
- The /bin directory is where binaries are stored. These are the programs that make Linux run.
- /etc is generally where the configuration files are stored. In Linux, nearly everything is configured with a text file that is stored under /etc.
- /dev directory holds device files, similar to Windows device drivers.
- /var is generally where log files, among other files, are stored.
Step 4Using Pwd
When we open a terminal in BackTrack, the default directory we're in is our "home" directory. As you can see from the graphic above, it's to the right of the "root" directory or one level "below" root. We can confirm what directory we are in by typing:- bt > pwd
Step 5Using Cd Command
We can change the directory we're working in by using the cd (change directory) command. In this case, let's navigate "up" to the top of the directory structure by typing:- bt > cd ..
- bt > pwd
Step 6Using the Whoami Command
In our last lesson of this tutorial, we'll use the whoami command. This command will return the name of the user we're logged in as. Since we're the root user, we can log in to any user account and that user's name would be displayed here.- bt > whoami
Related
129 Comments
seriously, does anyone know how to linux?
it's not supposed to be a quote of NaugtyCriss
Th3skYf0x
If you want to learn to hack, start with BackTrack. There really is very little difference between BackTrack and other Linux distro's other than the hacking software installed on BackTrack.
Thank you very much, hope to learn a lot here at Null Bytes!
Jared
OTW
OTW
If you want to learn to hack, I would go with BackTrack. BackTrack is built on Ubuntu, so no need for both. Also, any operating system runs better directly off the bare metal than in a virtual machine, but if you have to run in a virtual machine, VMWare is best.
OTW
You can create a dual boot system with your thumb drive, so let's get hacking!
Also, you could create a VM with Virtual Box or VMWare. That might be simplest.
OTW
When hacking in the real world, dual boot is best. When hacking for learning, VM is best as you can hack your other VM's without breaking the law.
OTW
I'm sorry if I wasn't clear about this matter. I guess I should have said that a dual boot system is superior to a VM. There is no advantage of a dual boot over using the whole hard drive for Linux. The options that people were discussing were whether to do dual boot or VM and in that context, dual boot is superior.
I really hate asking all of these silly questions, but which vmware product(s) should I download...there are a ton...do you have lessons which covers building partitions and installing BT/Linux into it?
No problem asking questions! That what we are here for.
I really like VMWare workstation, but is not free. Virtual Box from Oracle is good and getting better.
OTW
P.S. Welcome to Null Byte!
good info in this article and great job
BackTrack is a Linux distribution with hundreds of hacker tools. It doesn't need its own hard drive. You can run it in a virtual machine or a dual boot system.
OTW
Welcome to Null Byte!
OTW
I have three questions:
What are the drawbacks in running Backtrack in a VM such as Virtual Box?
and...
A rather trivial question :) ... what is the command to shut down Backtrack, besides holding down the power button on your computer. :)
Jared
The drawbacks to running BT from a VM are;
- Its a bit slower
- You need to know a bit about running Vms
- You can't do wifi hacking without an external adapter
To shutdown BT, you can either type shutdown at the command line or if you have the GUI, there is an icon for shutting down on the menu bar.
OTW
But about the shut down, I did try those, but the computer would just freeze on the backtrack logo and never shut down, just sit there. I don't know if that has anything to do with me running BT on a VM or not, but I appreciate any advice. Thank you for your ridiculously prompt replies! :)
Jared
Yes, it is a function of you running BT in a VM. When run on a physical machine, it simply closes.
Often times, if you give the physical machine more RAM and then allocate more memory to your VM, it will run much more smoothly.
can you help me in downloading kali linux
i went to its download page but got confused about what to download
there were many options so i couldn't figure right one
i want to know your recommendation
please help......
Download the 64 bit or 32 bit ISO.
OTW
I wholeheartedly thank you, maestro, for this joie de vivre.
A few pointers and clarifications, maestro, if you please.
- This tutorial is 6 months old. Does all of this still hold true today, including the BT version, etc. You know what I mean.
- Where's the 'var' directory? It's not visible in the diagram. It may be nothing but I'm just curious.
- Could you please explain or better still, do a tutorial, on what's vmware.
- Right now as I don't have access to a laptop or a PC, can I start off practicing right from my Android mobile (Samsung Galaxy Grand Quattro) or should I wait till I get one?
- Maestro, could you please suggest any laptop or pc that'd be ideal for this noble enterprise.
- If it's not too much to ask, maestro, could you please collate all these wonderful tutorials in a chronological or logical order (whichever you deem best). This will be a boon for tyros like me to wade through and grasp this highly interesting subject.
Thanks for your work OTW
Do i really need hundred of tools to get started ?
I have a dual boot with Kubuntu 13.10 and win7.
Can I have those tools on ubuntu ?
Thank you for your time and sorry for my random english ;P
As for your questions, you could download each of these tools into Ubuntu, but it would be very time consuming. I can't really think of any risks to learning hacking this way. There is no risk to your machine or data. After all, you aren't hacking yourself.
OTW
Can't wait to know more about all this ! Keep going on !
actually i wanted to know is it fine if I use Kali
while following your posts to learn linux commands
its actually because i don't know anything about programming not
even DOS I've just started with JAVA so i don't want to do mistakes right at beginning. So basically i just want to know if its alright using Kali while referring to your posts
Yes, of course. You can use Kali. I'm using Kali now.
OTW
ave not used linux before,hopes i wil understand it better and be able to learn hacking
I have a quick question to ask. When I input 'pwd' I get back /home/clayton. I didn't think much of it, but is this okay? Also, when I input 'cd ..' it went from /home/clayton to /home. I input 'cd ..' again then it went to /. What am I doing wrong? Was it a setup problem?
That is what is supposed to happen. In the first case, you are in clayton's home directory. The second case, you went up one level in the directory structure to /home and then finally to the top of the directory structure at / or "root".
OTW
it takes time to strive sth through this, I believe you have time to keep us dedicated with u!
Most of the tools for hackers are developed for Linux for good reason. You can hack Linux to Linux, but many of the capabilities we need are not available from a Windows system.
You might want to read this post from me about why every hacker should know and use Linux.
I recommend you download Kali Linux ISO and then install it as a dual boot on your Mac or install it as a virtual machine inside your Mac. Either will work, but as a beginner, I would recommend installing it as a virtual machine.
OTW
I've got both a Kali VM and a WinXP VM installed with VMWare Player. How can I use one to hack the other?
Thanks,
Nathan
Welcome to Null Byte!
Check out this article on installing Kali Linux.
I am new to linux and wanted to know if I could start with ubuntu.
It is perfectly legal for me to try hacking my own home network and my own computer, right? I want to practice and see how secure my network is, but I don't want to get in trouble.
I can't tell if that was a joke or not. lol
i am searching for how to crunch and found your website and decide to follow the lessons to know the basic and more.
thanks a lot.
I have not installed a Linux OS and i would like to do so but i know almost nothing.
thanx a lot
I'm so glad you found us.
First, learn Linux. Then you should follow my article "How to Use Null Byte to Study to Become a Professional Hacker".
You made a very good work, OTW!
i need proper info about both which is better.
Please help.
whenever you read this please reply me soon.
>The Linux Command Line by William E. Shotts, Jr.
don't forget to use manual pages to see all the commands utilities
>man command -> ex: mas ls
tell the difference
I'm new here and know a bit about programming but surely nothing still regarding the world of hacking.
I want to thank all of u in advance for guiding me, and answering my questions that for sure I will have.
For now I've one;
Once again many thanks and awesome community!!
will i get all the features of kali linux on vmware
P.S
Once you download the Kali Iso look up a youtube video on how to create a live USB.
- Hot
- Latest
-
Android for Hackers
How to Backdoor Windows 10 & Livestream the Desktop (Without RDP)
-
How To
Use Photon Scanner to Scrape Web OSINT Data
-
How To
4 Ways to Crack a Facebook Password & How to Protect Yourself from Them
-
How to Hack Wi-Fi
Get Anyone's Wi-Fi Password Without Cracking Using Wifiphisher
-
How To
Mine Twitter for Targeted Information with Twint
-
How To
Get Unlimited Free Trials Using a "Real" Fake Credit Card Number
-
Android for Hackers
How to Turn an Android Phone into a Hacking Device Without Root
-
Hack Like a Pro
How to Hack Facebook (Facebook Password Extractor)
-
How To
Crack Wi-Fi Passwords with Your Android Phone and Get Free Internet!
-
How to Hack Wi-Fi
Cracking WPA2 Passwords Using the New PMKID Hashcat Attack
-
How To
Buy the Best Wireless Network Adapter for Wi-Fi Hacking in 2019
-
How to Hack Wi-Fi
Cracking WPA2-PSK Passwords Using Aircrack-Ng
-
How to Hack Wi-Fi
Breaking a WPS PIN to Get the Password with Bully
-
How To
Top 10 Things to Do After Installing Kali Linux
-
How To
The Hacks Behind Cracking, Part 1: How to Bypass Software Registration
-
Hack Like a Pro
How to Crack Online Web Form Passwords with THC-Hydra & Burp Suite
-
Hack Like a Pro
How to Exploit and Gain Remote Access to PCs Running Windows XP
-
How To
Catch an Internet Catfish with Grabify Tracking Links
-
How To
Hack Android Using Kali (Remotely)
-
How To
Discover & Attack Raspberry Pis Using Default Credentials with Rpi-hunter








Share Your Thoughts