Thursday, 4 February 2016

GoLismero Tool

GoLismero 

GoLismero is an open source framework for web auditing which has been recently presented atAppSec EU de OWAP  en Hamburgo. It has been developed by Daniel Garcia Garcia a.k.a cr0hn (@ggdaniel) and Mario Vilas (@Mario_Vilas).

This tool allows you to map a web application and detect vulnerabilities of it. 

Also you can manage a lot of security tools like OpenVas, Nikto, DNS recon, robot analyzer... and take their results merged in a single report automatically.

GoLismero has been tested on Windows, Linux, BSD and OS X and it doesn’t have library dependencies, you only need to have Python 2.7.5 installed.

It's really easy to install. Just execute the command below in your Linux machine.
git clone https://github.com/golismero/golismero.git

Also, this project has created a GoLismero VM (based in Kali Linux). You can download here:http://golismero-project.com/downloads/kali-golismero.ova

This VirtualBox Machine includes:

  • OpenVAS installations pre-configured.
  • VirtualBox tools.
  • GoLismero updater.
  • GoLismero stable and develop version.


We have a lot of options to set in order to run GoLismero. Have a look at the picture below. If you want more information about an option, just type this command.
python golismero.py --help

Like the one mentioned above, GoLismero can manage some well known applications like Nikto. With the command below, we can see all the plugins available to use.
python golismero.py --plugin-list

Here, I'm going to describe all plugins included with this tool.

-= Import plugins =-
  • csv:  Import the results of a Nikto scan in CSV format.
  • xml:  Import the results of an OpenVAS scan.

-= Recon plugins =-
  • default_error_page:  Identifies default error pages for most commonly used web servers.
  • dns_analyzer:  Tries to find hidden subdomains by enumerating them using the DNS protocol.
  • dns_subdomains_bruteforcer:  Tries to find hidden subdomains by brute force.
  • dns_zone_transfer:  Tries to make a DNS zone transfer.
  • fingerprint_os:  Fingerprinter of server operating systems.
  • fingerprint_web:  Fingerprinter of web servers.
  • robots:  Analyzes robots.txt files and extracts their links.
  • spider:  Web spider plugin. Without it, GoLismero can't crawl web sites.
  • suspicious_url:  Flags suspicious words in URLs.
  • theharvester:  Integration with theHarvester (https://code.google.com/p/theharvester/).

-= Scan plugins =-
  • brute_directories:  Tries to discover hidden folders by brute force:  www.site.com/folder/ -> www.site.com/folder2 www.site.com/folder3 ...
  • brute_extensions:  Tries to discover hidden files by brute force:  www.site.com/index.php -> www.site.com/index.php.old
  • brute_permutations:  Tries to discover hidden files by bruteforcing the extension:  www.site.com/index.php -> www.site.com/index.php2
  • brute_predictables:  Tries to discover hidden files at predictable locations. For example: (Apache) www.site.com/error_log
  • brute_prefixes:  Tries to discover hidden files by bruteforcing prefixes:  www.site.com/index.php -> www.site.com/~index.php
  • brute_suffixes:  Tries to discover hidden files by bruteforcing suffixes:  www.site.com/index.php -> www.site.com/index2.php
  • nikto:  Run the Nikto scanner and import the results.
  • openvas:  Run the OpenVAS scanner and import the results

-= Report plugins =-
  • html:  Plugin to generate HTML reports.
  • text:  Creates text reports in files or on screen.

-= UI plugins =-
  • console:  Console user interface.
  • disabled:  Empty user interface.

Also you can create your own plugins. You can obtain more information about its plugin's API here.

If you want to know more details about some plugins you can get it typing --plugin-info plugin_name.Have a look at the commands and pictures below:
python golismero.py --plugin-info openvas
If you would like to integrate GoLismero with OpenVAS you should set the correct IP, port, user and password of your OpenVAS installation.

python golismero.py --plugin-info nikto

After this brief introduction of the GoLismero's details, I want to show you an example of how to work with this tool.

First of all,  take care with this tool. If you launch it with the default options, the tool begins to search other subdomains and try to attack them. You might want to audit all your infraestructure and if it's your goal, that is ok, if not, use the "--forbid-subdomains" option.

Ok. Let's go.
sudo python golismero.py -d theharvester,openvas,dns* --forbid-subdomains --audit-name MyProject -o MyProject.html www.example.es

Details about this command: 

  • With "-d" option, we are telling to GoLismero that we don't want to use theharvester, openvasand the rest of plugins which begin with "dns".
  • With "--forbid-subdomains" we avoid attacking other subdomains. We are going to focus in only one target.
  • With "--audit-name MyProject" we are going to save the results in a database named MyProject.db.
  • With "-o MyProject.html" we are going to generate a HTML report.

Note: If you want to set which plugins you want use instead of which plugins you don't want to use, you can use "-e" option.

 

Then, you only need to wait until the scan is finished. Depending on the website you are auditing or the command you have typed, you need to wait more or less time. Be warned, getting the report can take some time, so, I recommend launching the scans, then doing something else like having a relaxing cup of coffee while the scan is working ... ;)

When the scan is finished, just open the HTML report with your favourite web browser.


We can see the details of the report filtered by Vulnerability...



... or filtered by resource. 


The picture below shows us a vulnerability found on the web site we have just audited.



In my opinion GoLismero is a great tool which is currently growing.

Tuesday, 2 February 2016

Dnsmap

Dnsmap

Dnsmap is a passive network mapper and normally known as subdomain brute forcer. it used by pentesters during the information gathering/enumeration phase of infrastructure security assessments. The tool enables to discover all sub domains associated to a given domain. We can find remote access servers, misconfigured servers, new domain names which allowing you to assign network block non-obvious.

Some Features
·         IPv6 support
·         Obtain all IP addresses (A records) associated to each successfully bruteforced subdomain, rather than just one IP address per subdomain.
·         Discover embedded devices configured with dynamic DNS services
·         Bruteforcing by using a user-supplied wordlist
·         Saving the results in human-readable and CSV format for easy processing.

1.  How to open dnsmap
   a. GUI method –
       Application → Information gathering → DNS Analysis → dnsmap
                                                                       

   b. open terminal and type dnsmap and hit enter


2. now type dnsmap domainname this will start brute force the domain
    EX : - dnsmap google.com


3. To save your results in a text file, type dnsmap domain name –r path
     EX- dnsmap google.com –r /root/


3a. You can see your saved file here


4. To save results in csv file, type dnsmap domainname –c path
     Ex – dnsmap google.com –c /root/


4a. You can see your saved file here


5. If you want to bruteforce subdomains by your own wordlist, type dnsmap domainname –w mywordlist.txt
Ex – dnsmap google.com –w mywordlist.txt

Dnsrecon

Dnsrecon

Dnsrecon is a tool for enumeration, coded in python. It enables to gather DNS-oriented information on a given target. 

1.  How to open dnsrecon
      A. GUI Method –
                Application → Kali Linux → Information gathering  → DNS Analysis → dnsrecon
                                                                                   

B. Open Terminal and type dnsrecon and hit enter. Read all command for Skill.


2. There was a bug in kali linux. When we open dnsrecon tool with GUI method there you will see an error as image shown. But this bug has been fixed by Kali Team on new update. More click here


3.  Standard Record Enumeration – As result we can get SOA record, Name Server(NS), mail Host (MX), IP ranges that the company is using and what servers can send emails (SPF).
Syntax - dnsrecon -t std -d domain 
Ex- dnsrecon -t std -d google.com


4.  Srv Records Enumeration - we enumerated the SRV (Service) records.  we know that they are using a jabber (XMPP). We also obtained the IP and the ports that these services are running.
Syntax - dnsrecon -t srv -d domain
Ex- dnsrecon -t srv -d google.com


5. Zone Transfer - The security problem with DNS zone transfer is that it can be used to decipher the topology of a company’s network.Specifically when a user is trying to perform a zone transfer it sends a DNS query to list all DNS information like name servers,host names,MX and CNAME records,zone serial number,Time to Live records etc.Due to the amount of information that can be obtained DNS zone transfer cannot be easily found.
Syntax - dnsrecon -t axfr -d domain
Ex- dnsrecon -t axfr -d durgapurcity.co.in


6. Top Level Enumeration – It shows top level domain name with their Ip address.
Syntax - dnsrecon -t tld -d domain
Ex - dnsrecon -t tld -d facebook.com


7.  Reverse Lookup - Reverse DNS lookup is the determination of a domain name with the associated IP address. DNSRecon can perform a reverse lookup for PTR (Pointer) records against IPv4 and IPv6 address ranges.
Syntax - dnsrecon -r start IP-end IP
Ex - dnsrecon -r 173.192.114.86-173.192.114.96


8. Saving Enumeration Result - To save all enumeration result we would you following command.
Syntax - dnsrecon -d google.com --xml filename
Ex- dnsrecon -d google.com --xml mr


9. you can find your saved file here

Fierce

Fierce

Fierce is a semi-lightweight scanner that helps locate non-contiguous IP space and hostnames against specified domains.  It's really meant as a pre-cursor to nmap, unicornscan, nessus, nikto, etc, since all of those require that you already know what IP space you are looking for. This does not perform exploitation and does not scan the whole internet indiscriminately.  It is meant specifically to locate likely targets both inside and outside a corporate network.  Because it uses DNS primarily you will often find mis-configured networks that leak internal address space. That's especially useful in targeted malware.

1. How to open Fierce
    A. GUI Method

     Application → Kali Linux → Information gathering → DNS Analysis → Fierce

                                                                  

      B. Open terminal type fierce –h this command will open fierce with help option. Please read all commands
Syntax - fierce -h


2.  Using this we can find NS, zone transfer etc information about a target domain. In this example we are getting successfully zone transfer.
Syntax – fierce –dns domain
Ex – fierce –dns mcdonlds.com


3.  At present many domain do not allow zone transfer . When fierce can not get zone transfer then its automatically doing brute force to target domain but as you can see fierce is not able to start brute force. This is a Kali bug and many person has reported about it. I hope developers will solve this issue soon.

Dnstracer

Dnstracer

dnstracer determines where a given Domain Name Server ( DNS) gets its information from, and follows the chain of DNS servers back to the servers knows the data. The tool works by sending the specified name-server a non-recursive request for the name. If the name server does returns an authoritative answer for the name, the next server is queried. If it returns an non-authoritative answer for the name, the name servers in the authority records will be queried. The program stops if all name-servers are queried. This tool objective is to map the target till we reach the root name servers.
1.  How to open dnstracer

A. GUI Method
Application → Kali Linux → Information gathering → DNS Analysis → dnstracer

                                                                               

B. Open terminal type dnstracer and hit enter. Kindly read all commands carefully as I always say this is good for skill.


2.  This command is used to  get name server for the target url.
Syntax – dnstracer domain
Ex- dnstracer www.mcdonalds.com


3. This command is used to disable local caching. It is by default ‘enable.’
Syntax – dnstracer –c domain
Ex – dnstracer –c facebook.com
Note - Here c is small c


4. This command is used to enable negative caching. It is by default ‘disable.’
Syntax – dnstracer –C domain
Ex – dnstracer –C  facebook.com
Note – here C is capital C



5. This command is used to enable overview of received answer. It is by default ‘disable.’
Syntax – dnstracer –o domain
Ex – dnstracer –o facebook.com


6. This command is used to see in verbose mode.
Syntax – dnstracer –v domain
Ex – dnstracer –v facebook.com


7. This is command is used to inform dnstracer which server to start the trace from.
Syntax – dnstracer -0 –s server domain
Ex – dnstracer –o –s j.gtld-servers.net www.mcdonalds.com


8. This command is used to increase the verbose by adding a query class.
Syntax – dnstracer –q soa –o domain
Ex – dnstracer –q soa –o www.mcdonalds.com