Showing posts with label operating systems. Show all posts
Showing posts with label operating systems. Show all posts

Kali Linux Virtualbox Pentest Lab

The cornerstone to learning how to penetration test and hack is to have your own lab set up. In this scenario we will set up our own Kali Linux Virtualbox lab. If you are serious about learning then it is the very first thing you should do. The reason being is that once you get your lab set up you will be able to start running sample tests to see how they work. Every pentester has one, and reading about how to conduct penetration tests won’t get you anywhere; you will actually need to get your hands dirty.
Initially we are going to quickly put together the most rudimentary network that you can use to learn and sharpen your skills. Simplicity is key. Eventually you can add new machines to attack after we initially get set up together. The idea here is that we don’t want to become overwhelmed, so starting small and expanding is the way to go.
For now we are going to start with three machines: Kali Linux (which will be our attacking platform), Metasploitable 2 and OWASP WebGoat. We want to create a network where we have one platform for penetration testing, one platform that was built to be vulnerable and one web application that was built to be vulnerable.
Kali Linux Virtualbox
Kali Linux if you don’t know is the gold standard open source penetration testing operating system created by Offensive Security. Operating systems don’t make the penetration tester, but if you are serious, Kali Linux was developed solely for this purpose and will make your life a whole lot easier. Many of the tools are built right into it.
Metasploitable 2
Metasploitable 2 is a vulnerable Ubuntu Linux operating system created by the Rapid7 Metasploit Team that was designed for training purposes just like this. This will make it much easier for us to find vulnerabilities in the target machine and will allow us to get some good experience in penetration testing. We will also be much less frustrated at the beginning because we weren’t able to find any issues right away.
webgoat
WebGoat is a project created by OWASP and is in the same vein as Metasploitable 2. The difference is that it allows us to test our skills out on a web application instead of an operating system. It is an amazing application because there are lessons within it and it allows you to run the tests right in the application as well. This will allow us to broaden our skills and be more ready to meet the demands of the increasing need of pentesters that can work on web apps.
After we are done our virtual network will look something like this (note that this is just an example as everyone’s network is unique):
Lab Network Design
As you can see this is very simple but is all we need for right now. As stated earlier, as our skills improve so will our network.
This tutorial is going to focus on setting up this virtual lab using VirtualBox because it is free and anyone can set it up this way. There are also many other tutorials you should be able to find with a quick Google search on how to install virtual machines on any operating system or virtual setup that you might be using.
The first thing we need to do here is download VirtualBox. You can pick this Oracle product up here: https://www.virtualbox.org/wiki/Downloads
After you have installed VirtualBox we need to create a DHCP server and network within VirtualBox that we will use later.
Browse to where you have virtual box installed at the command line and type: vboxmanage dhcpserver add –netname mydhcpnetwork –ip 10.10.10.1 –netmask 255.255.255.0 –lowerip 10.10.10.2 –upperip 10.10.10.10 –enable
(Note: If you are on windows you have to append the extension “vboxmanage.exe”)
This gives us a DHCP server and 9 other IPs to play with. However, you can increase the number to whatever you like.
Now that you have VirtualBox installed we need to install our platforms (Kali Linux, Metasploitable, OWASP WebGoat).
Kali Linux
You can get your Kali Linux virtual machine from https://www.kali.org/downloads/ I suggest torrenting the download over the direct download as it is faster and I’ve had instances where the direct download was corrupted. If you’ve never torrented just go with the direct download and hope it works. When this finishes make sure that the Sha1sum matches what you see on the Kali Linux webpage. You can check this by:
Microsoft’s tool: http://www.microsoft.com/en-us/download/details.aspx?id=11533
For Mac simply type in the terminal: openssl sha1 <path to file>
Linux: sha1sum <filename>
Going forward you should always check for SHA or MD5 hashes and compare those to what they should be, as this is a prudent step to prevent malware on your computer.
The first thing we will want to do after verifying our hash is to install Kali Linux on VirtualBox. Click on New.
New Virtualbox
You can make the name of it anything you want, but will need to select Linux as the “Type”. The version you choose will either be Debian (32 bit) or Debian (64 bit) depending on what version of the Kali Linux OS you downloaded. For this example I downloaded the 32-bit version.
Name and Operating System
Set your memory size. While 512 is the default and you may get away with this, it is possible that you’ll get into some trouble later running certain applications so I suggest you increase it to something higher. Nothing is worse than being right in the middle of something and your Linux platform freezes. However, the beauty of VirtualBox is that you can go back into the settings and simply readjust this at any time.
Memory Size
We will be creating a virtual hard drive so select that and click Create.
Create a virtual hard drive now
For this example we will be using the VirtualBox Disk Image.
VirtualBox Disk Image
We want a Dynamically allocated hard drive for this example.
Dynamically allocated
For the size you probably want to increase it to at least 15GB. I’ve had issues with the installation when going with the standard size of 8GB.
hard drive size
Now that we have created our new Kali Linux virtual machine we need to configure it, so select settings and then Storage.
settings
storage
We now need to add the ISO that we previously downloaded. We do that by highlighting the area you see selected below. At first this should say “Empty”. After “Empty” is highlighted you then need to click the CD where you see the arrow below and browse/select where you have your ISO located.
kalisetup9
For Adapter 1 we will be using the DHCP server and network that we created earlier for our internal VirtualBox network.
kalidhcpnetwork
We also need our Kali Linux platform to reach the Internet, so for that we will be using Adapter 2. Attach it to NAT and then hit OK.
NATkalisetup9b
Highlight and now start your new virtual machine.
kalisetup9b

You could actually use Live below and boot right into the system, but I suggest that you actually install Kali Linux on to the virtual machine. Choose the Install or Graphical Install below and follow the steps.
kalisetup11

Depending on how you are installing your system and what version of the install you are using, you may encounter the following error when starting up the install:

If you get this error go back to settings, System, Processor and select “Enable PAE/NX”.
kalipae
During the setup you will be asked to configure the network as well. Because we created two adapters you will see something like eth0 and eth1 below. What you will need to do here is select the interface that allows you out to the Internet. In my case this is the NAT interface we created earlier and is eth1.
ethernetcontroller
After logging into your fresh Kali Linux install the first thing you will want to do is verify that you can reach the internet by opening up your web browser. If you cannot browse the web you need to enable DHCP from your command prompt with: dhclient -v
Now that everything has been set up properly we need to update Kali Linux so that we KNOW that we have the most recent distribution and tools. You can do that with the following at the command prompt: apt-get update && apt-get upgrade
Metasploitable:
Installing your vulnerable Metasploitable 2 operating system is very similar to how you installed Kali, just with fewer steps.
To start you will need to download the files from here: https://information.rapid7.com/metasploitable-download.html
Again, create a new virtual machine:
metasploitable1
Again, set your memory size.
metasploitable2
This is slightly different than the Kali Linux setup because we will be using an existing virtual hard drive as you can see below. Just select where you see the arrow and then browse to where you saved the highlighted file.
metasploitable3
Like we did for the Kali Linux setup we will need to click on settings once again. We need to make a modification in the network section as we did for our Kali Linux platform.
Metasploitable2dhcpnetwork
Start your new Metasploitable 2 virtual machine.
Metasploitable5
The Default username and password after you run your machine will be:
Username: msfadmin
Password: msfadmin
OWASP WebGoat
To get the latest version of WebGoat just go to https://github.com/WebGoat/WebGoat-Legacy/releases and download the latest release at the bottom of the page.
To get started on this you will have to have the Java Platform installed on your computer first if you don’t already. You can get that here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
You also need Apache Tomcat for this as well. You can find a stable release here: http://tomcat.apache.org/whichversion.html
Copy the latest version of WebGoat to your working directory and in your terminal type: java -jar WebGoat-6.0.1-war.exec.jar
(note that depending on which version of WebGoat you get at the time of reading this it could be slightly different)
To get to the login screen browse to http://localhost:8080/WebGoat with your web browser. On the login screen you will see both the guest login and admin login and password. After you log in you will be able to see all of the lesson plans:
WebGoatlogin
If you installed all three of these platforms then you have plenty to get you started on your journey of learning how to hack in to the information security and pentesting space.
This network is now the perfect venue for a student like yourself to test out their skills and techniques without the fear of permanently damaging or destroying your own network/systems, or someone else’s for that matter.
I’ve provided some bonus content that will help you customize this pentest lab to start the DHCP server every time, creat a share drive to share files between the lab and your computer, enabling sound, securing your kali linux virtualbox machine and few other things.
Share:

Recover deleted files from hard drive

Have you accidentally deleted an important file?.Then you need not to worry even if you have deleted the file from recycle bin.If you realize that you have accidentally deleted a file from hard drive then you must act immediately to recover it.In this post you will find a detailed information on how to recover the deleted files from your Windows PC or Mac.





If you search for "data recovery service" or "data recovery software" you will come across hundreds of softwares claiming to recover deleted files but they don't.Their purpose is just to take your money.These data recovery software's are either neither effective nor capable of recovering your files in its original condition.I have tested lots of data recovery softwares and found the following software as the best data recovery software.

1. Stellar Phoenix Data Recovery (for Windows)

2. Stellar Phoenix Mac Data Recovery (for Mac)

What is Stellar Phoenix?

Stellar Phoenix Windows Data Recovery Software is a comprehensive windows partition recovery solution for data loss due to partition corruption, partition resizing, file system damage, boot sector corruption, MBR damage, virus infection and human errors.

Will I be able to recover the files back?
Since the operating system doesn’t immediately re-use the space from the deleted files, it is most certainly possible to recover the deleted files back in 100% original condition.


How to recover lost files with Stellar phoenix data recovery software?

Files & folders are also deleted using Shift+Delete key. By using Shift+Delete key, files are deleted permanently and its contents will not be stored in the recycle bin. An ordinary computer user will assume that using Shift+Delete key will permanently delete a file from the system. If the data which has got deleted is important then it becomes very essential to recover that data as quickly as possible. It needs to be recovered using data recovery software to locate, recover and restore all the important files and folders.

Stellar Phoenix Windows Data Recovery Software is an ideal solution to all your Windows related data loss problems. This software is an advanced recovery software designed for safe and non-destructive data recovery from hard drive or any other removable storage media. It also supports recovery of raw data from badly corrupted storage media. Additionally, it also offers data recovery from formatted drives.

Features:

With Stellar phoenix data recovery software you can:

1.Recover FAT16, FAT32, VFAT, NTFS, and NTFS5 file system partitions
2.Recover deleted emails
3.Recover deleted documents
4.Recover deleted photos
5.Recover deleted music
6.Formatted Hard-Drive recovery
7.Recover files from USB Drives, CDs, DVDs and memory cards
8.Recover almost all the camera format files

and much more.

Visit the following links for more information on Stellar Data Recovery


1. Stellar Phoenix Data Recovery (for Windows)

Share:

How to Hack and change the Start Menu Button in Windows 7

hack-windows-7-start-menuHave you ever wanted to customize your operating system just to suit your style or even to show off in front of  your buddies. Well here is a small trick that lets you change and customize the windows 7 Orb start button to the icon you want it to be.

This trick involves just the basic hack of changing the icon of the start menu using a tool called Resource hacker which some of you might be familiar with. The trick goes through the steps of replacing the icon with your own preferred icon of your choice, which could be your symbol ,button with your sign etc.
So here are the steps to go through with the process.
Step 1 : Download and install the Resource Hacker tool using the link given.
Step 2 : Keep your buttons ready with the following properties
It must be a 54 x 128 .bmp image.
Order of buttons in image
First- Default Idle button view
Second- Button on Mouse Over
Third- Button when Clicked
eg:
windowstartbutton
Step 3 : Using the Resource Hacker Tool, open the Explorer.exe file located inside the C:\Windows folder as a administrator.
Step 4 : Expand the Bitmap->6801 folder tree.
Step 5 : Right click on the 1033 file and select Replace Resource and navigate to the target image and Click Replace using Open file with new bitmap option.
Step 6 : Repeat the steps 4 and 5 for the Subtrees  Bitmap->6805 and Bitmap->6809 folders.
Step 7 : GO to File->  Save and the resource Hacker will automatically generate a backup file called  Explorer_Original.exe if anything goes wrong.
Step 8 : Restart or log in again to view the changes to your start button.
Do share your feedback in the comment section below .Cheers :D
Share:

How to Browse and get Linux Partition files in Windows

What if you wanted to get some files from the linux partition while in windows and you don not find a way to get it.Or what if your linux boot failed and you need to get some important files from the linux partition.Well here is a solution.Many of the linux distributions use the ext4 partition during the installation and  the older versions used the ext2 and ext3 partitions.
While separate tools are available to access these kind of partitions.A simple yet powerful tool can combine this feature to access any kind of linux partitions.
This software is called Ext2explore which is a open source and free software that lets you browse through the linux partition from your windows operating system.You can run this software in windows XP3, Windows Vista ad Windows 7. Just download the software from the sourceforge website and unzip in any folder and this doesn’t require any kind of installation.
After you unzip it you will need to set up some compatibility issues.So Right click on  ext2explorer.exe file and go to properties.Under compatibility tab ,select windows xp (service pack 3) and under privilege level check the Run this program as an administrator option.

Now double click on the .exe file to run it and you will see the linux partitions in the disk scanned and listed.And remember to run this software as a administrator to view the files.
To save any file just browse to the file and right click to select save option and it will ask for the location to save the file on the disk outside the linux partition.
So there you have it, and easy and a free way to get your files from the linux partition from windows.Cheers..:)
Share:

How to Hack and change the Start Menu Button in Windows 7


hack-windows-7-start-menu
Have you ever wanted to customize your operating system just to suit your style or even to show off in front of  your buddies. Well here is a small trick that lets you change and customize the windows 7 Orb start button to the icon you want it to be.


This trick involves just the basic hack of changing the icon of the start menu using a tool called Resource hacker which some of you might be familiar with. The trick goes through the steps of replacing the icon with your own preferred icon of your choice, which could be your symbol ,button with your sign etc.
So here are the steps to go through with the process.
Step 1 : Download and install the Resource Hacker tool using the link given.
Step 2 : Keep your buttons ready with the following properties
It must be a 54 x 128 .bmp image.
Order of buttons in image
First- Default Idle button view
Second- Button on Mouse Over
Third- Button when Clicked
eg:
windowstartbutton
Step 3 : Using the Resource Hacker Tool, open the Explorer.exe file located inside the C:\Windows folder as a administrator.
Step 4 : Expand the Bitmap->6801 folder tree.
Step 5 : Right click on the 1033 file and select Replace Resource and navigate to the target image and Click Replace using Open file with new bitmap option.
Step 6 : Repeat the steps 4 and 5 for the Subtrees  Bitmap->6805 and Bitmap->6809 folders.
Step 7 : GO to File->  Save and the resource Hacker will automatically generate a backup file called  Explorer_Original.exe if anything goes wrong.
Step 8 : Restart or log in again to view the changes to your start button.
Do share your feedback in the comment section below .Cheers :D
Share:

DISCLAIMER

The information provided on hottechtips.blogspot.com is to be used for educational purposes only. The website creator is in no way responsible for any misuse of the information provided. All of the information in this website is meant to help the reader develop a hacker defense attitude in order to prevent the attacks discussed. In no way should you use the information to cause any kind of damage directly or indirectly. The word “Hack” or “Hacking” on hottechtips.blogspot.com should be regarded as “Ethical Hack” or “Ethical hacking” respectively. You implement the information given at your own risk.