Mar 31st, 2011 @ 09:34 pm › Robert Longworth
In Windows I would normally be driven to either format a drive through the Disk Management console or by right-clicking on a drive in Windows Explorer and selecting the "Format…" option, but there can be advantages to formatting a driver through Command Prompt. For example if you are reformatting a drive which previously had an Operating System on the drive you can find there are System Partitions on the drive which can't be seen in Windows Explorer and refuse to format in the Disk Management console.
Note this is only a quick guide for Formatting Drives from Command Line, there are many more options available at your disposal. For a detailed insight to the options available for the DiskPart tool visit Microsofts Technet. In the example I have formatted an external hard drive for use of file storage in a Windows Operating System environment.
In order to format a drive through Command Prompt firstly lets open the prompt.
Click Start > Run and type "CMD", pressing Enter should open a new terminal.
Start CMD
We need to next start the Disk Part tool, type "DISK PART" into the Command Line and press Enter.
Start Disk Part
Next let's display and identify which volume we would like to format. Type "list volume" and press Enter. You should see a list of available volumes. Identify the one which you wish to format, be careful selecting the wrong volume will spell disaster!
List Volume
Type "select volume <x>" and press Enter, where <x> is the volume you wish to focus on.
Select Volume
Type "clean" and press Enter. This removes any and all partition or volume formatting from the disk in focus.
Clean
Type "create partition primary" and press Enter. This creates a primary partition on the current disk. After you create the partition, the focus automatically shifts to the new partition. It is possible to create multiple partitions if you like. To do this you would add the option size=<x> where <x> is the size in megabytes (MB) you would like the partition to be. If no size is specified, like in my example, the partition continues until there is no more unallocated space.
Create Partition
Type "format fs=ntfs quick label=test" and press Enter. This will now perform a quick format, using a ntfs file system and labelling the drive "test". You may wish to use the file system fat32 in place of ntfs if you would like to use the drive with other operating systems.
Format
Lastly type "assign letter <x>" and press Enter, where <x> is the letter you would like to assign the drive.
Assign Drive Letter
You can close the Disk Part tool and Command Prompt using the "exit" command. You should now see your freshly formatted drive in My Computer, ready to use.
Categories: Windows, Windows 7
Tags: cmd, command line, command prompt, format
Mobile Theme
Sent from my BlackBerry wireless device from MTN
How to format or repair a harddrive using command.exe
More like this
Note: For this demo I’m using a lab environment network that is not routed to the internet. I will be using the Fern WiFi Cracker open source wireless security tool included in the Kali Linux and Backtrack 5 r3 security distros. Before attempting to use Fern or any other utility in Kali or Backtrack please make sure to read the help and MAN pages for a complete description of the program options and switches. This demo is for wireless pentesting educational purposes and to emphasize the insecurities of using a weak or common dictionary word for wireless network authentication and encryption security key or passphrase.
Fern Wi-fi Cracker can crack WEP, WPA, and WPA2 secured wireless networks. Fern basically takes the command line utilities to crack these networks and puts them in a GUI. Very simple to use… scary easy! Fern also provides some extra functionality for hijacking sessions and locating a computers geolocation via its Mac address, but I have not tested with these features.For this demo I will be using Backtrack 5 r3 running in VMware Workstation on a Win 7 host.
Originally I was using Fern in Kali and ran into some issues with my wireless adapter and with the program freezing or not opening after updating it. I have the fixes I discovered in another blog post for anyone else that may have these same problems.
Router Setup
I’m using an old Cisco/Linksys 802.11g wireless router for this demo and all the settings are defaulted except the security settings, which I set to WPA Personal with a Shared Key passphrase of “password”. The word password should never be used for a real password or passphrase and I’m using it here since I know the Fern program will quickly crack it. In real world situations a WPA/WPA2 passphrase should be completely random and not a common dictionary word. For help on creating a secure WPA/WPA2 passphrase please read my earlier blog post.
Setup the Wireless Adapter
Plug in the USB wireless adapter (I’m using the Alfa AWUS036H 802.11b/g USB wireless adapter) and open the Terminal and run iwconfig to verify the USB adapter interface.
On occasions I have had to bring the wireless adapter interface up using the following command.
#ifconfig wlan0 upStarting the Fern Program
To start Fern from the Terminal type in the following commands
#cd /pentest/wireless/fern-wifi-cracker #python execute.pyor start Fern via the GUI using the Backtrack menu
Applications/Backtrack/Exploitation Tools/Wireless Exploitation Tools/WLAN Exploitation/fern-wifi-cracker
Using the Fern Program
Select the Interface and Fern enables monitor mode. If your wireless interface does not show in the list hit the Refresh button and try again.
Before starting the scan double-click on any blank area of the Fern home screen to bring up the Access Point Scan Preferences screen. You can set the channel option to scan a single channel or leave it at the default All Channels. One nice feature is to check the Enable XTerms option which will have Fern open up the Terminal windows during its usage to see what the program is doing in the background. Click OK when done.
On Ferns home screen the networks being detected will start populating next to the WiFi WEP or WiFi WPA buttons. (I have been seeing less and less WEP enabled networks, so that is a good thing!)
Clicking on the WiFi WEP or WiFi WPA button will bring up the Attack screen and the top pane will list the networks found. Select the AP to crack, but before clicking the Attack button to the right let’s go over a couple of settings.
I will use the Regular Attack option, but there is a WPS Attack option and I believe Fern uses the Reaver utility to launch the WPS attack. You can read more about Reaver by clicking here.
Common.txt is the wordlist that comes with the Fern program, but any wordlist you download or have created on your own can be used by hitting the Browse button and pointing Fern to the alternative wordlist file.
With the Regular Attack and the wordlist selected hit the Attack button.
Fern will start the attack and on the left side of the screen the attack steps will turn yellow as Fern works through the various steps. The most important step is capturing the 4-way handshake and Fern will open an aireplay-ng Terminal window showing the progress of deauthentication (if XTerms is checked in the preferences) of the connected client.
It may take several attempts to deauth a client and capture the 4-way handshake.
Back on the Fern main screen is a Key Database button and it now shows one entry.
Cracking WPA using Fern WiFi Cracker
More like this
This came after a meeting with the striking lecturers and Vice-President, Namadi Sambo in Abuja on Thursday.
The meeting, which held behind closed doors had in attendance the supervising Minister of Education, Nyesom Wike and the Executive Secretary of National Universities Commission, Prof. Julius Okojie.
ASUU was led by its National President, Dr. Nasir Faggae, as well as two former Presidents of ASUU; Dr. Dipo Fasina and Dr. Abdullahi Sule-Kano.
Others at the meeting were the Vice-Chancellors of Bayero University Kano, Prof. Abdulrasheed Abubakar; Prof. Isaac Adewole of the University of Ibadan; and Prof. Muhammed Hamisu of the Abubakar Tafawa Balewa University, Bauchi.
The two parties did not disclose the outcome of the meeting, which lasted for almost two hours to newsmen.
Fagge, however, told State House Correspondents that the union would make its position known after the National Executive Council meeting.
Wike had assured Nigerians that students would soon return to school as the federal government was ready to shift ground.
However, an insider source who does not want his name mentioned said that going by the new offers made by the Federal Government, the strike might be called off within the next two weeks.
This, the source said, was because the Federal Government had agreed to release fund to revitalize the university system.
The source said, "The meeting went well, the vice-president made some new offers that were different from what was on ground before. For instance, the Federal Government had agreed to start the injection of revitalisation fund into the university system starting with N100bn this year and N150bn in 2014 and this will continue until the university system is solid enough to stand."
The source, however, said that the ASUU team promised to get back to the vice-president after its NEC meeting, which is schedule for tomorrow, Saturday.
Sent from my BlackBerry wireless device from MTN
More like this
welcome to Teleloaded - Lodge Blog: How To Activate Nokia Asha For MTN Free!
More like this
ABOUT AUTHOR
LATEST POSTS
-
Love, care, friendship and togetherness make the Christmas time all the more unique. Christmas also means spreading the affection of o...
Categories
- browsing 1
- free 1
- free browsing 1
- freebies 1