Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Wednesday, June 24, 2015

[Funny Bash] Remove wife package and install sexy secretary



This is a very funny post. A general story takes the form of being written in bash shell code. I found this on Pastebin long ago and modified it a bit. This post is to taken as a hilarious joke and not in a serious way. Thank you.


Continue Reading →

Monday, June 22, 2015

Create and Split drive image into multiple parts using dd

In my previous tutorial here I showed you how to use "dd" to create an image of a drive, but in this post I will discuss how to create multiple parts of the same drive image. That is split it into multiple parts rather than just a single large file. 

So you might be thinking what is the utility of this ?

Well the main reason being that if want to create an image of a drive or partition whose size is huge then you will have a problem when you load the image using any forensic tool or hex editor for analysing it. Therefore, it is convenient to create multiple parts of the same and then analysing each one of them. In this tutorial I will tell you how to do so.

Like in my previous tutorial on "dd" we will first find out the device path for the partition or physical drive. We can simply do so by using fdisk. Have a look at the following image :-

[Image: L0dVSTQ.png]

As you can see we have the flash drive mounted already and the device path being /dev/sdb. Now the command format to create multiple parts of the same image is :- 

sudo dd if=<device-path> | split -b <Split-Size> - <Image-File-Name>.

So an example command would look something like :- 

sudo dd if=/dev/sdb | split -b 1000m - usbflash_image.

if = Input file
<device-path> = /dev/sdb
<Split-Size> = Size of Image Parts (either mb or gb etc.)

What we are doing is we read the data and PIPE it to another command that is split which will split the data and create new file with the file name and numbered in a serialized form like aa, ab, ac etc. What split does here is, it takes read the data and when the size is 1000 megabytes (in the command 1000m) it creates a new file with the file name usbflash_image.aa and the next file being named as usbflash_image.ab and so on. The following image will clear it all :-

[Image: yjTZAx9.png]

If you have read this post where I applied similar technique to copy a Very large file to a flash drive in Linux. So I hope you like this short tutorial and if you have any doubts then please comment.

Have a nice day and Keep Coding and Keep Learning. Keep Sharing the posts.

Thank you,
Sincerely,
Psycho_Coder.
Continue Reading →

Using dd to create an image of a Physical Drive

Tux, the Linux penguin
Tux, the Linux penguin (Photo credit: Wikipedia)
Hello Guys/Gals

Today I will show you how to use "dd" to create a raw image of a Physical drive on Linux. dd is a tool that comes in built with almost all or many well known Linux diastros. I am on kali Linux and will show you how to use here. Before we proceed make sure that you have mounted your Physical Drive. If not and you don't know then watch my other video and blog post on Mounting a drive.

We will use fdisk to get the device path first. To see the device path we write :- 

sudo fdisk -l

As you can see our device path is "/dev/sdb1", in your case most likely it would be something similar. Now we use the dd tool to create the copy.

The Syntax is :-

sudo dd if=<device-path> of=<file-name>

So the complete command is :- 

sudo dd if=/dev/sdb of=usbflash_image.dd
Now let me explain what is happening. Here if means input file and of means output file. input file is the complete drive storage and we just need to give the device path.

The drawback of dd is that we are not able to see the progress or status as this doesn't updates the image creation progress. Also we are unable to create the md5 or sha1 hashes of the image during the process is running. Later we will use another tool which can do all of these properly.

For more clarity watch the video.



Continue Reading →

Thursday, June 18, 2015

Cryptography | Identify Different types of Hashes

Cryptographically secure pseudorandom number g...
Cryptographically secure pseudorandom number generator (Photo credit: Wikipedia)
Hello Everyone,

If you are a hacker or a computer Geek or programmer or a general enthusiast regarding computing then you might have come across the term hash or cryptographic hash functions. Many a times even people call hashes as encryption which is absolutely wrong. This is going to be a short tutorial and we will be dealing with how to identify the various types of hashes that we come across. I hope after reading this tutorial you will have some idea that how to identify hashes.

Reader's Note:-

I assume the following while making this tutorial:-

1. You know basics of cryptography. If you don't then read this.
2. You have some experience with programming (though not required much in this tutorial bit its good to know as they will help you understand better).
3. You know basics of PHP [optional].

Let's Begin


Identifying MD5

MD5 hash : It is one of the most common type of hash function and it is used in many sites and is applied in different fields. Used in phpBB v2.x, Joomla version below 1.0.13 and many other forums and CMS.

Reasons for a hash to be MD5

Length: 32 characters.
Description: They are always 32 characters in length (16 Bytes).They are always hexadecimal (Only use characters 0-9 and A-F)
Algorithm: Same as the md5() function in PHP.

Example :- f5d1278e8109edd94e1e4197e04873b9
 
MD5 (UNIX) : Used in Linux and other similar OS.

Length: 34 characters.
Description: The hash begins with the $1$ signature, then there goes the salt (up to 8 random characters; in our example the salt is the string "12345678"), then there goes one more $ character, followed by the actual hash.
Algorithm: Actually that is a loop calling the MD5 algorithm 2000 times.

Example:- $1$12345678$XM4P3PrKBgKNnTaqG9P0T/
 
MD5 (APR) : Used in Linux and other similar OS.

Length: 37 characters.
Description: The hash begins with the $apr1$ signature, then there goes the salt (up to 8 random characters; in our example the salt is the string "12345678"), then there goes one more $ character, followed by the actual hash.
Algorithm: Actually that is a loop calling the MD5 algorithm 2000 times.

Example:- $apr1$12345678$auQSX8Mvzt.tdBi4y6Xgj.
 
MD5 (phpBB3) : Used in phpBB 3.x.x.

Length: 34 characters.
Description: The hash begins with the $H$ signature, then there goes one character (most often the number '9'), then there goes the salt (8 random characters; in our example the salt is the string "12345678"), followed by the actual hash.
Algorithm: Actually that is a loop calling the MD5 algorithm 2048 times.

Example: $H$9123456785DAERgALpsri.D9z3ht120
 
MD5(Wordpress) : Used in Wordpress sites.

Length: 34 characters.
Description: The hash begins with the $P$ signature, then there goes one character (most often the number 'B'), then there goes the salt (8 random characters; in our example the salt is the string "12345678"), followed by the actual hash.
Algorithm: Actually that is a loop calling the MD5 algorithm 8192 times.

Example:- $P$B123456780BhGFYSlUqGyE6ErKErL01

Identifying Salted MD5

Salted MD5 - Used in a large amount of applications to increase hash parity and to increase the time it takes to crack.

General Description : They consist of two blocks connected by a colon, the first is the hash the second is the salt. The first part of the salted hash is hexadecimal, the second is variable case alphanumeric. They first part will always be 32 characters long. The second part can be any length.

md5($pass.$salt) :Used in WB News, Joomla version 1.0.13 and higher.
Length: 16 bytes.

Example:- 6f04f0d75f6870858bae14ac0b6d9f73:1234
 
md5($salt.$pass) : Used in osCommerce, AEF, Gallery and other CMS.
Length: 16 bytes.

Example:- f190ce9ac8445d249747cab7be43f7d5:12
 
md5(md5($pass)) : Used in e107, DLE , AVE, Diferior, Koobi and other CMS.
Length: 16 bytes.

Example:- 28c8edde3d61a0411511d3b1866f0636
 
md5(md5($pass).$salt) :Used in vBulletin, IceBB.
Length: 16 bytes.

Example:- 6011527690eddca23580955c216b1fd2:wQ6
 
md5(md5($salt).md5($pass)) : Used in IPB.
Length: 16 bytes. 
 
Example:- 81f87275dd805aa018df8befe09fe9f8:wH6_S

md5(md5($salt).$pass) : Used in MyBB.
Length: 16 bytes. 
 
Example:- 816a14db44578f516cbaef25bd8d8296:1234
 
md5($salt.$pass.$salt) : Used in TBDev.
Length: 16 bytes.

Example:- a3bc9e11fddf4fef4deea11e33668eab:1234
 
md5($salt.md5($salt.$pass)) : Used in DLP (More info. :- Here).
Length: 16 bytes. 
 
Example:- 1d715e52285e5a6b546e442792652c8a:1234
Identifying SHA

SHA-1 : Used frequently on the internet and is one of a large family of Secure Hash Algorithms.Used in many forums and CMS.
Length: 20 bytes.
Description :They are always 40 Characters in length (160 bits).They are always hexadecimal (Only use characters 0-9 and A-F).
Algorithm: Same as the sha1() function in PHP. 
 
Example: 356a192b7913b04c54574d18c28d46e6395428ab

sha1(strtolower($username).$pass) : Used in SMF.
Length: 20 bytes.

Example:- Admin:6c7ca345f63f835cb353ff15bd6c5e052ec08e7a
 
SHA-256(Unix) : Used in Linux and other similar OS.
Length: 55 characters.
Description: The hash begins with the $5$ signature, then there goes the salt (up to 8 random characters; in our example the salt is the string "12345678"), then there goes one more $ character, followed by the actual hash.
Algorithm: Actually that is a loop calling the SHA-256 algorithm 5000 times.

Example: $5$12345678$jBWLgeYZbSvREnuBr5s3gp13vqiKSNK1rkTk9zYE1v0

SHA-512(Unix) :Used in Linux and other similar OS.
Length: 98 characters.
Description: The hash begins with the $6$ signature, then there goes the salt (up to 8 random characters; in our example the salt is the string "12345678"), then there goes one more $ character, followed by the actual hash.
Algorithm: Actually that is a loop calling the SHA-512 algorithm 5000 times. 
 
Example:- $6$12345678$U6Yv5E1lWn6mEESzKen42o6rbEmFNLlq6Ik9X3reMXY3doKEuxrcDohKUx0Oxf44aeTI​xGEjssvtT1aKyZHjs

Identifying Salted SHA

sha1($salt.sha1($salt.sha1($pass))) : Used in Woltlab BB.
Length: 20 bytes.

Example: cd37bfbf68d198d11d39a67158c0c9cddf34573b:1234
Identifying Other hash types

MySQL < 4.1 : These aren't used very often but still come up on very often because people have no idea what to do with them, they are used in older versions of MySQL.

Length : 16 characters(8 bytes)
Description :They are always hexadecimal (Only use characters 0-9 and A-F).

Example:- 606727496645bcba
MYSQL5 : Used in newer versions of MYSQL to store database user passwords.
Length: 41 characters
Description :They are always capitalized. They always begin with an asterisk .
 
Example:- *C8EB599B8E8EE7BE9F1A5691B7BC9ECCB8DE1C75
DES(Unix) : Used in Linux and other similar OS.
Length: 13 characters.
Description: The first two characters are the salt (random characters; in our example the salt is the string "Iv"), then there follows the actual hash.

Example:- IvS7aeT4NzQPM

Domain Cached Credentials :Used for caching passwords of Windows domain.
Length: 16 bytes.
Algorithm: MD4(MD4(Unicode($pass)).Unicode(strtolower($username)))

Example:- Admin:b474d48cdfc4974d86ef4d24904cdd91

I hope this information is useful to you and I belief that this post will help many others. 

References : Here
Continue Reading →

Using Dban to Securely Wipe data from hard disk

"DBAN is free erasure software designed for the home user. It automatically deletes the contents of any hard disk that it can detect. This method can help prevent identity theft before recycling a computer. DBAN is also a commonly used solution to remove viruses and spyware from Microsoft Windows installations. "
--- Original Site < http://dban.org/ >

About its short commings and drawbacks read the info from the original site (link given above)

So lets move directly into how to use it. The tool comes in a iso format and you can either write it on CD/DVD or on flash drive. I would recommenend you to use it on a flash drive since its on 15 mb in size and if you use a CD or DVD then its wasted.

I will first show you how to use dban by creating a Virtual machine for ir. I am using Virtual Box which comes by default in fedora 19 (I am using fedora 19 at present).

So first download the iso file from here : http://sourceforge.net/projects/dban/files/dban/dban-2.2.8/dban-2.2.8_i586.iso/download

The file is only ~15 MB in size and so the download will be quick.  I downloaded it here :-

[Image: oGeI1wu.png]

Now download and install virtual box or VMware Player which ever you wish to use. I am using Virtual Box. If you don't have them already then you can download them from the following :-

Virtual Box : https://www.virtualbox.org/wiki/Downloads

VMware Player:
https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/6_0

The application I am using is called Boxes and is more like Virtual Box and comes installed with Fedora 21. So open Boxes and click new.

[Image: YvYj2c4.png]

You will get the following screen :-

[Image: PN56jos.png]

Click on Continue and the following screen will appear :-

[Image: N5i0iAw.png]

As you can see Virtual Box have already listed the ISO's but if it doesn't shows up then you can Click on Select File and Choose the DBAN ISO file

[Image: dDvKPrV.png]

After you choose open the following screen will appear :-

[Image: gigq28H.png]

If you wanna customize then click on customize. After you do so you will :-

[Image: tkCeThd.png]

But in our case there is nothing to customize we are wiping data. You will probably perform it on your complete HDD and so it unnecessary. If you have done this much then click on Create on Top right corner (in case of Virtual Box)

[Image: 3tSKzdi.png]

The following screen will appear showing the different DBAN options and its main interface:-

[Image: aDlyG64.png]

Click on the blue screen to enter the VM. If you press Enter autonuke setting will start which is the default and the recommended option. To see the other cmmands available press F3. You will see the following :-

[Image: RXNHezV.png]

We will go with the default option and we will press enter on the first screen screen that appears. After we do so will see the following :-

[Image: 4HFvDVv.png]

[Image: YofN2FX.png]

Now its will list all your HDD or flash drives attached. Now select the drive you want to wipe and press SPACE to select it. You can use UP and DOWN keys to select other drives (if any). After you have done this press F10 to start the process.

[Image: ughSSHV.png]

You will be able to see the time remaining to complete, no. of rounds or number of steps etc etc.Once the process s complet a black screen will come with the confirmation that the data has been wiped clean :)


Install using Flash Drive

To use dban using a flash drive you first need to write it onto the drive itself.

To write the ISO in flash drive I would recommened you to use Universal USB Installer if you're on Windows Since it comes with a pre loaded config for DBAN ISO and so it will be better imho. Linux users can use Unetbootin.

After you have done so simply boot your system and from Boot Options run using the flash drive and the rest i like I explained above after you create the VM.

Thats all for today and I hope you like the tutorial.
 
 
Continue Reading →

Wednesday, June 17, 2015

100 Best Open Source Security Tools

English: A candidate icon for Portal:Computer ...
English: A candidate icon for Portal:Computer security (Photo credit: Wikipedia)
Whether you’re a network administrator, security professional, or an end user, it’s important that you keep your system clean and secure. There are a variety of high quality open source security tools available, and many of them are free. Check out this list to find 100 of the best of them.

 
General

These tools offer a variety of useful security functions.
  1. Untangle: Untangle will provide you with spam, virus, and spyware protection, as well as Web filtering, firewall, and more.
  2. Network Security Toolkit: This tool combines a variety of open source apps that will help you stay on top of traffic, intrusions, and more.
  3. Bastille Linux: With this tool, you’ll answer questions about your security, and will get a custom lockdown for your machine.
  4. OSSIM: OSSIM brings together a number of open source security tools to give you network details and stay on top of intrusions.
  5. ProShield: Use Proshield to get a scan of your system for up to date software and malware.
  6. Hardened Linux: This Linux distribution will help you improve your security.
  7. eBox Platform: Use this network management framework for content filtering, proxy, firewalls, and more.sa
  8. Kismet: Kismet offers wireless network detection, intrusion detection, and packet sniffing, all in one.
Monitoring

With these tools, you’ll get constant monitoring of your security.
  1. Nessus: Use this free scanner to stay on top of your vulnerabilities.
  2. Nagios: This host and network monitoring tool will let administrators handle outages before clients and users are affected.
  3. AWStats: Use AWStats to get a look at attacks on your server.
  4. Honeytrap: With this tool, you’ll get advanced warning about attacks.
  5. The Multi Router Traffic Grapher: Use this tool to monitor your SNMP network devices.
  6. Snort: Snort is an incredibly effective intrusion detection system.
  7. BASE: This tool works well with Snort to make your intrusion detection data more easy to understand.
  8. Internet Secure Access Kit: This suite will help you restrict and monitor access on your network.
  9. Afick: Afick will help you stay on top of changes to your system.
  10. Network Security Analysis Tool: Use this tool to scan your network for vulnerabilities.
  11. Nagios: This program will monitor your enterprise network services, environmental factors, host resources, and point out potential vulnerabilities.
  12. JbroFuzz: With this tool, you can test the integrity of your network.
  13. Yet Another Security Monitoring Interface: This web based application will help you take a look at the data flow in your router.
  14. ettercap: Ettercap will monitor your LAN, staying on top of content, live connections, and other potential attacks.
  15. Metasploit: Often used by hackers, you can test your system with this tool.
  16. SNARE: Make use of this tool that collects and analyzes your event log data.
  17. Nikto: Nikto will scan your web servers for problems and dangerous files.

Email & Spam

Use these tools to keep your email secure.
  1. Spam Assassin: This anti-spam tool will help you keep your email neat and clean.
  2. Tiger Envelopes: This email encryption tool works with a variety of programs, including Thunderbird and Outlook.
  3. Anti-Spam SMTP Proxy Server: Use this application to filter out spam and viruses.
  4. Spamato: With this client-side spam filter, you can keep the junk out of your Outlook, Thunderbird, and other popular email clients.
  5. phPOP3clean: Use this scanner to look for worms, spam, blacklisted words, as well as blacklisted domains.
  6. Thunderbird: This open source email program has a variety of tools for keeping spam and viruses at bay.
  7. Mailsaurus: This email client will encrypt all of your data so that no one can read your email.
  8. MailCleaner: With this filtering application, you can keep the spam and viruses out.
  9. Web Stat: Want to know how much spam you’re blocking? Use this tool that will display your level of blocked spam graphically.
Anti-Virus

With these tools, you can protect your computer and network from viruses.
  1. FullControl: This software will stay on top of all the programs running on your computer and verify their integrity.
  2. ClamAV: Make use of this excellent antivirus tool to keep your machine free of viruses.
  3. ClamWin: If you want to take advantage of ClamAV on your Windows machine, make use of this tool.
  4. Moon Secure Antivirus: This antivirus scanner also features a firewall.
  5. Winpooch Watchdog: Winpooch will stay on top of spyware, trojans, and viruses.
  6. Softlabs AntiVirus: Using this antivirus tool, you can scan your email for phishing and viruses.

Firewall

Use these firewall tools to keep unwanted intruders and items out of your system.
  1. SELinux: Using SELinux, you can set mandatory access control features for Linux.
  2. m0n0Wall: This tool offers both firewall and VPN.
  3. ShellTer: ShellTer offers a firewall with SSH protection.
  4. Endian Firewall Community: Use this tool to turn an old PC into an appliance that provides a variety of security functions.
  5. FirewallPAPI: This system will stay on top of your network traffic.
  6. SmoothWall Express: Use SmoothWall to turn a PC into a firewall appliance for your network.
  7. WIPFW: Use this tool to monitor and filter packets entering your network.
  8. Fail2Ban: Fail2Ban will stay on top of log files and look for failure prone IPs, which will be blacklisted.
  9. Vyatta: Turn to Vyatta to get an enterprise class firewall for free.
  10. ISP-FW: With this server side firewall application, you can get packet filtering and monitoring.
  11. Firewall Builder: This tool will make it easy to establish rules for your firewall.
  12. AppArmor: Create policy-based profiles to control access to applications with AppArmor.
  13. Firestarter: Make use of this firewall if you want to get your firewall security up and running in a hurry.
  14. Linux Embedded Appliance Firewall: This firewall tool will help you shore up your security.
  15. IPCop: With this tool, you can turn any PC into a firewall appliance to get your network secure.
Files & Data

Keep your files, data, and transfers secure with these tools.
  1. Darik’s Boot and Nuke: If you want to wipe out a hard drive, just boot up with a disk containing this tool.
  2. Packet Generator: Use this tool to optimize the routing schematics for your network.
  3. Paros: Paros intercepts data, offering a way to evaluate web application security.
  4. Cyberduck: With this tool, you can transfer files to remote computers and networks.
  5. WinSCP: Use this SFTP and FTP client for secure file transfes.
  6. Eraser: This tool will eliminate files by overwriting them several times, so that they can’t be read using digital forensic tools.
Encryption & Cryptography

Make use of these encryption and cryptography tools to stay secure.
  1. KeyCzar: Use this toolkit to make cryptography easier to use in applications.
  2. Cameloid: Keep your voice connections safe with this encryption tool.
  3. GNU Privacy Guard: This encryption tool uses a number of different encryption algorythms.
  4. TrueCrypt: Use TrueCrypt to encrypt a partition or drive, or create a virtual encrypted disk within a file.
  5. Cryptonit: Secure your files and address books with this encryption tool.
  6. Checkpoint Commander: This tool will both encrypt and completely erase your files.
  7. AxCrypt: AxCrypt is a simple encryption tool that will allow you to encrypt files with just a few clicks.
  8. Magikfs: You can hide your files using this tool with a steganographic filesystem.
  9. FreeOTFE: This tool will create secure virtual drives on your PC.
  10. Cryptology: Cryptology offers encyption that integrates into Windows Explorer right-click menus.
Passwords

With these tools, you can keep your passwords handy and secure.
  1. KeePass: Use this password safe to keep all of your passwords safe and encrypted.
  2. CiphSafe: This tool will encrypt your usernames and passwords for popular Internet websites.
  3. Password Safe: Password Safe will help you create strong passwords and can store multiple password databases.
  4. Keep It Secret! Keep It Safe!: With this tool, you can store your important usernames and passwords in an encrypted file.
Remote Access

Use these tools for secure remote access.
  1. OpenSSH: With this tool, you can safely operate a remote host.
  2. Stunnel: Stunnel will encrypt your TCP connections inside SSL connections.
  3. OpenVPN: Get safe VPN access using this tool.
  4. SSL-Explorer: This web-based VPN server will allow you to use a standard browser.
  5. Open SSL: This tool uses Transport Layer Security and Secure Socets Layer protocols to keep you safe.
  6. strongSwan: strongSwan offers an IPsec-based VPN tool for Linux.
  7. PuTTy: Get remote access with this telnet/SSH client.
  8. UltraVNC: Use this tool to get safe and secure remote access.
Networking

These tools will help you operate a more secure network.
  1. Nmap: Nmap will help you stay informed of all of the hardware that is connected to your network.
  2. Wireshark: Using Wireshark, you can take a look at all of the traffic that passes over your Ethernet network.
  3. Bro: Bro offers network intrusion detection that will passively monitor your network traffic for anomalous traffic behavior.
  4. Network Simulator and Network Animator: With this tool, you can test your network flow to prevent bottlenecks and promote better routing.
  5. OCS Inventory NG: This tool will provide you with a list of hardware and software on your network.
  6. Netcat: Netcat is a simple utility that will help you read and write data across UDP or TCP network connections.
  7. Angry IP Scanner: This tool will scan IP adresses and ports on your network.
  8. Ossec HIDS: With this intrusion detection system, you’ll find out when your network is being attacked.
  9. TcpDump: If you’re looking for a light, secure packet sniffer, check out this tool.
  10. The Network Visualizer: Get graphic information on your network activity using this tool.
Miscellaneous

Check out these tools for even more open source security applications.
  1. Tripwire: Find out when changes are made to your system by using this tool.
  2. Firefox: A very popular web browser, Firefox offers a variety of secure options and add ons.
  3. The Sleuth Kit: With this kit, you can recover deleted files.
  4. JAP: This tool will allow you to browse the Internet anonymously.
  5. iSAK: Using this tool, you can filter out specific types of websites.
  6. Advisory Check: This tool will read RSS and XML security feeds to monitor the security of the software you’re using.
  7. Babel: Babel will let you know about all of the security flaws that you have in your system.
 
Continue Reading →

Sunday, June 14, 2015

Generate Wordlists in Backtrack 5 R3 using Crunch

 
In this post I will discuss How to generate wordlists in Backtrack 5 R3 using Crunch. Though this video was made long ago but the procedure is same for the latest version of backtrack which is known as Kali Linux now. Watch the Video and I hope that you will find this useful.

Okay! Here's a bit of Explanation :-

Crunch is a tool that is pre-installed with backtrack. It is a very usefull tool  that helps you to generate wordlists for bruteforcing, according to your need. So, How we do it?

Follow the steps below :-

Step 1:
 
Open Backtrack terminal and write the following:-

cd /pentest/passwords/crunch

Now to use crunch we will first move to the folder above.

Step 2:
 
Write in the terminal :-

./crunch 7 7 acbd143 -t EHF@@@@ -o EHFlist.lst

Step 3:
 
Enter in the above will give you the message that the wordlist has been created (when 100% is written on the terminal screen)

Step 4:
 
Navigate to the /pentest/passwords/crunch folder and you will find the file EHFlist.lst, rename this to EHF.txt and open it and you will see the resultant words of Step 2

Explanation:-

"7 7 acbd143" - this means that the password length will be 7 charecters and it will contain the charecters a,c,b,d,1,4,3

"EHF@@@@" - It means that the passwords will contain the first three charecters same that is EHF, and the rest of the charecters @@@@ will be repeated with the charecters "a,c,b,d,1,4,3"
This will generate the while of the list.

So , using crunch you have a lot better flexibility and you have the option to make it the way you want

Watch the Video for more Clear Description 
 


Continue Reading →

How To Mount and Unmount a drive on Linux

Mounting and Unmounting a drive is a very essential thing for any Linux user. Today we will learn how to Mount and unmount a drive on Linux.

Mounting is an act of making a Physical Drive accessible to an Operating System. The reverse of Mounting is Un-mounting, which means removing the physical drive from the operating system and hence making them inaccessible.

Okay! So now we will learn how to mount a drive.

Mount a Flash Drive

By default whenever you insert physical drive then your OS mount it and also provides you the ability to unmount it graphically. But we will learn how to do it using a terminal or from command line.

First we will list all the drives and partitions on your OS and the device paths. To do so we write the following on the Terminal :-

sudo fdisk -l

fdisk is a tool built into linux (Almost all the versions) which can be used to see all the partitions. You will see something like the following (based on your partitions table) :-

[Image: d6ae6Sw.png]

As you can see we have a physical drive attached to the PC which is about 8 GB in size and the device path being /dev/sdb1
 
Knowing the device path is essential.

To mount point the drive we have to first create a mount point. A mount point is a physical location in the partition used as a root filesystem. We have to create a folder and then mount it there, where the files will be shown. We create a folder mnt_pnt and then mount the drive there.

Commands :-

mkdir mnt_pnt
sudo mount -t vfat /dev/sdb1 ./mnt_pnt

In the above commands we create a folder named mnt_pnt using mkdir. You also need to specify the type of the file system of the physical drive that you want to mount. We do this by passing an argument "-t vfat"  which means that the type of file system is FAT.

Now open the folder using your system file manager or simple changing the directory to mnt_pnt folder using "cd" command and then listing the directory will show you the content of the drive.

Un-Mounting a Drive

Un-mounting a drive is the easiest thing to do. You just need the device path which you can get by using fdisk as shown above. The command to do so is "umount <device-path>".

Example :-

umount /dev/sdb1

 
Video Demonstration
 
 


I hope you liked this Simple Tutorial. Stay Tuned for More. Share this tutorial among your friends and on Social Networks :)

Thank you.
Continue Reading →

How To copy a Very large file to a flash drive in Linux

 

Say that you have a very large file say 6GB and you want to copy the entire file into a flash drive with FAT32 file system where the maximum size for each file can be around 4 GBS ((2^32) - 1 bytes). If you want to copy them then you have got two choice :-

1. Format the USB with some other file system which will allow files of size greater than 4 gb, like NTFS.
2. Split the Large file into smaller sizes and write to USB and then concatenate them into a single file.

I prefer the second method and so we will learn how to do this.

Step 1

Split the file into smaller sizes and write it to flash drive. (Make sure you have mounted your flash drive already)

split --bytes=2G VeryLargeFIle.txt /media/38B9-D21F/VeryLargeFile.txt. 

In th above command we are splitting a text file (it could be any file) into smaller files of size 2GB and storing in the location where our flash drive was mounted.

Now if look into your mounted drive folder you will see smaller files with sequential extensions were created like VeryLargeFile.txt.aa, VeryLargeFile.txt.ab ......

Step 2

Now we concatenate the smaller files into a single file. We can do this using the cat command. Simply copy the three smaller files from usb to another location in a different pc (Do whatever you want). Move to that location using terminal and then execute the following command. 

cat VeryLargeFile.txt.aa VeryLargeFile.txt.ab VeryLargeFile.txt.ac > VeryLargeFile.txt


Taddah! You now have your very large file moved to another system and in another location in one piece. You can remove the smaller sized files which were created earlier in the USB.

I hope you like this little piece of advice or trick. This technique will work on any file with any format.

Share this post among your social networks.

Thank you.
Sincerely,
Psycho_Coder
Continue Reading →

Follow Me!

Followers

Visitor Map