From Security Weekly Wiki
Jump to navigationJump to search

Announcements & Shameless Plugs

PaulDotCom Security Weekly - Episode 265 Hackers for Charity Twelve hour podcast for Friday October 28th, 2011.

Breast Cancer Research Foundation
Breast Cancer Fund

Click the images to donate now!

Watch the show live below or at http://securityweekly.com/live August 31, 2012 10AM-6PM EDT

Error in widget UStreamLive: Unable to load template 'wiki:UStreamLive'

NOTE: The video will play the most recent show up until we are live!

The HFC group:

  • Feeds children through a "food for work" program.
  • Builds computer labs to help students learn skills and land jobs that are key to disrupting poverty's vicious cycle.
  • Provides technical assistance to charities that can't afford IT services.
  • Provides job experience and references to the Ugandan volunteers.

You can donate or get more involved via the Hackers for Charity website.

Kick off with Johnny Long


Johnny calls in to update us on his Hackers for Charity project.


Marcus Ranum Interview

11:00 AM

  1. Marcus, what's the latest on cyberwar? Has stuxnet changed some of your views on Cyberwar?
  2. Speaking of SCADA, what can we do to improve the security of SCADA systems? It seems every month there is a new "SCADA hack" and vendors and organizations that aren't paying attention to security.
  3. Penetration tests are successful, and one of the primary ways in which we are gaining access to systems is through "client-side attacks". Essentially, we are tricking the user into running code, no vulnerabilities or "exploits" required. What can organizations do to protect against this threat?
  4. Speaking of vulnerabilities, there still seems to be a mindset in the community of "become vulnerable, exploit, apply patch, rinse, repeat". What can we do to shift people away from the "patch mindset" to defensive measures that actually work?
  5. Speaking of defensive measures, what are your thoughts on "smart firewalls"? Are they still the stop-gap measure that is masking the real problems?

The Stogie Geeks Podcast

Hosts: Paul Asadoorian & Tim "Bugbear" Mugherini

Noon - 1PM

Paul & Tim will smoke some cigars and tell you all about them, talk about what they's been smoking, and feature a "Stogie How-To" segment titled "The Top Ten Things You Should Not To Do With Your Humidor".

Stogie Geeks Web Site, Show Notes, Cigar Reviews, Cigar Porn.

Ron Gula Interview

1:15 PM

10 Things You Shouldn’t Do For Cyber-Security Awareness Month - According to the Department of Homeland Security, October 2011 is national CyberSecurity Awareness month. With the best intentions, I’ve laid out ten items that you shouldn’t do in an attempt to raise awareness. I’ve seen these items backfire, cause disruption and raise awareness of how security can make our life less convenient and questionably more secure.

Ron's Top Ten List:

10 – Perform a Client Side Penetration Test

9 – Switch to IPv6

8 – Learn Government Compliance Standards

7 – Read Computer Security Related Books of Fiction and Fact

6 – Engage in a religious debate about the most secure OS, phone or Web Browser

5 – Run a Honeypot

4 – Blame any attacks or viruses outbreaks on China

3 - Publish lists of People’s Cracked Passwords

2 – Patch all of those systems that haven’t been patched in a long while

1 - Turn off your Anti-Virus Product

Tech Segment: Concealing Storage in Windows Volume Shadow Copy Service

2:00 PM

Authors: Mark Baggett and Tim "LaNMaSteR53" Tomes

Robert Graham Interview

3:00 PM

  1. How did you get your start in information security?
  2. Tell us about what you learned about Occupy Wall Street
  3. What is your policy on disclosure and what are the merits to Digital Bond's policy?
  4. What can Apple do to improve the security of its products?

Tech Segment: Ruby honeyports and the new anti-kit for android

4:00 PM

Author: John Strand

Tech Segment: Busting Directories: Dirbuster and Alternatives


Author: Larry Pesce

Ok, we've covered DirBuster before. Depending on options this could take a long time. One advantage with Dirbuster, is a GUI. (Yeah, Girls Use It). Another is the ability to brute force directories and files without a wordlist…and have it take forever.

So what happens if you want to do it form the command line?

Well, we can still use DirBuster from the command line, but it is not documented terribly well. Let's get some better documentation:

java -jar DirBuster-0.12.jar -h

Usage: java -jar DirBuster-1.0-RC1 -u <URL http://example.com/> [Options]

	 -h : Display this help message
	 -H : Start DirBuster in headless mode (no gui), report will be auto saved on exit
	 -l <Word list to use> : The Word list to use for the list based brute force. Default: /Users/larry/Desktop/DirBuster-1.0-RC1/directory-list-2.3-small.txt
	 -g : Only use GET requests. Default Not Set
	 -e <File Extention list> : File Extention list eg asp,aspx. Default: php
	 -t <Number of Threads> : Number of connection threads to use. Default: 10
	 -s <Start point> : Start point of the scan. Default: /
	 -v : Verbose output, Default: Not set
	 -P : Don't Parse html, Default: Not Set
	 -R : Don't be recursive, Default: Not Set
	 -r <location> : File to save report to. Default: /Users/larry/Desktop/DirBuster-1.0-RC1/DirBuster-Report-[hostname]-[port].txt

Ok, so now we can begin to put together some command line options:

java -jar DirBuster-1.0-RC1 -u http://www.somesite.com -H -r output.txt

In this case we have started it with -H for headless operation (don't start the GUI). In order to save some typing, we have also omitted the -l switch (to use the default wordlist). What if we want to brute force filenames as well?

java -jar DirBuster-1.0-RC1 -u http://www.somesite.com -H -r output.txt -e asp,aspx,html,htm

Now there are a few interesting caveats with this. First off, DirBuster is Java, which can be a little heavy. I haven't been able to make it work well/successfully. Sure, It will run anywhere, but it is java. Also, no command line realtime feedback, and seeing soemthing about having to parse XML to do some reporting on. Yuck. How about a different command line option?

Enter DIRB

It is command line only and has most of the functionality of DirBuster, but without the overhead of java or a GUI. It retains most of the functionality of DirBuster - the only thing I cannot find is the ability to do brute forcing without a wordlist.

It should compile on just about any posix system that has access to libcurl. It installed without issue on my OSX systems and Ubuntu. I believe libcurl were already installed in both cases for other projects.

So, lets see how it works

$ ./dirb http://www.somesite.com ./wordlists/big.txt,./wordlists/vulns/sharepoint.txt,./wordlists/vulns/iis.txt
DIRB v2.03    
By The Dark Raver

START_TIME: Wed Oct 26 10:18:42 2011
URL_BASE: http://www.somesite.com/
WORDLIST_FILES: ./wordlists/big.txt,./wordlists/vulns/sharepoint.txt,./wordlists/vulns/iis.txt


GENERATED WORDS: 4712                                                          
---- Scanning URL: http://www.somesite.com/ ----
+ http://www.somesite.com//                                                  
    (FOUND: 200 [Ok] - Size: 29435)
+ http://www.somesite.com/Admin/                                             
+ http://www.somesite.com/aspnet_client                                      
    (FOUND: 403 [Forbidden] - Size: 218)
+ http://www.somesite.com/components/                                        
+ http://www.somesite.com/config/                                            
+ http://www.somesite.com/controls/                                          

Pretty simple, eh?

We can also use it to brute force filenames, and we give the extensions we want to test with the -X switch, based on the words in the wordlists specified:

$ ./dirb http://www.somesite.com ./wordlists/big.txt,./wordlists/vulns/sharepoint.txt,./wordlists/vulns/iis.txt -X .asp,.aspx,.html,.htm
DIRB v2.03    
By The Dark Raver

START_TIME: Wed Oct 26 10:25:52 2011
URL_BASE: http://www.somesite.com/
WORDLIST_FILES: ./wordlists/big.txt,./wordlists/vulns/sharepoint.txt,./wordlists/vulns/iis.txt
EXTENSIONS_LIST: (.asp,.aspx,.html,.htm) | (.asp)(.aspx)(.html)(.htm) [NUM = 4]


GENERATED WORDS: 4712                                                          
---- Scanning URL: http://www.somesite.com/ ----
--> Testing: http://www.somesite.com/2002.htm                                      

$ ./dirb http://www.somesite.com ./wordlists/big.txt,./wordlists/vulns/sharepoint.txt,./wordlists/vulns/iis.txt -o outfile.txt -S

We need the -S for silent to make the report readable….of course this can be combines with this command as well:

$ ./dirb http://www.somesite.com ./wordlists/big.txt,./wordlists/vulns/sharepoint.txt,./wordlists/vulns/iis.txt -X .asp,.aspx,.html,.htm -o outfile.txt -S

The -S is really needed. Why? If it is not included the log includes EVERY test that was against the host, successful or not. If the -S silent switch is added, it only includes (at the terminal and the log) the successful finds. Oh, and the report is in plain text, great for additional reporting and or post processing with unix text processing.

As far as real time feed back, that happens too, including status codes, and size of the pages returned. That's helpful for knocking out unusual pages from standard responses such as "Directory Listing not allowed" or 30x Moves.

One other helpful switch that I found would be to use the -i switch. Thsi will launch a case insensitive search and can cut down on the amout of requests, especiually when headed to an IIS system or apache on Windows (yeah, windows is case insensitive, unlike posix OSes). One way that I like to determine Webserver type is to use a firefox plugin "Header Spy", which places it on the bottom bar of the browser. This of course does not accutatley identify Apache on Windows all of the time. nor is it completely accurate.

So, lets find another way around that and using command line tools.

Yay nmap, and thanks to Ron Bowes for the http-headers NSE script. Let's fire this off like so:

Hiroshige:~ lpesce$ nmap -sV --script=http-headers -p 80 www.healthcomp.com

Starting Nmap 5.51 ( http://nmap.org ) at 2011-10-27 16:44 EDT
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.06 seconds
Hiroshige:~ lpesce$ nmap -sV --script=http-headers -p 80 www.somesite.com

Starting Nmap 5.51 ( http://nmap.org ) at 2011-10-27 16:46 EDT
Nmap scan report for www.somesite.com (
Host is up (0.067s latency).
rDNS record for 208-87-35-101.securehost.com
80/tcp open  http    Apache httpd 2.2.17 ((Ubuntu))
| http-headers: 
|   Date: Thu, 27 Oct 2011 20:46:42 GMT
|   Server: Apache/2.2.17 (Ubuntu)
|   X-Powered-By: PHP/5.3.5-1ubuntu7.2
|   Set-Cookie: uid=www4ea9c332892637.06471309; expires=Sat, 26-Nov-2011 20:46:42 GMT
|   Vary: Accept-Encoding
|   Connection: close
|   Content-Type: text/html
|   Set-Cookie: WEB=W3; path=/
|_  (Request type: HEAD)

Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 6.73 seconds

In this case we've got Apache on Ubuntu. No need for the DIRB -i switch here.

$ nmap -sV --script=http-headers -p 80 www.someothersite.org

Starting Nmap 5.51 ( http://nmap.org ) at 2011-10-27 16:49 EDT
Nmap scan report for www.carene.org (
Host is up (0.019s latency).
rDNS record for www.someothersite.org
80/tcp open  http    Microsoft IIS httpd 7.0
| http-headers: 
|   Content-Type: text/html; charset=UTF-8
|   Server: Microsoft-IIS/7.0
|   Set-Cookie: CFID=54754419;expires=Sat, 19-Oct-2041 20:49:14 GMT;path=/
|   Set-Cookie: CFTOKEN=42783161;expires=Sat, 19-Oct-2041 20:49:14 GMT;path=/
|   X-Powered-By: ASP.NET
|   Date: Thu, 27 Oct 2011 20:49:14 GMT
|   Connection: close
|_  (Request type: HEAD)
Service Info: OS: Windows

Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 7.12 seconds

This one would be a good candidate for the -i swtich.

$ nmap -sV --script=http-headers -p 80

Starting Nmap 5.51 ( http://nmap.org ) at 2011-10-27 17:56 EDT
Nmap scan report for
Host is up (0.0042s latency).
80/tcp open  http    Apache httpd 2.2.21 ((Win32))
| http-headers: 
|   Date: Thu, 27 Oct 2011 21:56:31 GMT
|   Server: Apache/2.2.21 (Win32)
|   Last-Modified: Sat, 20 Nov 2004 18:16:24 GMT
|   ETag: "200000001bcee-2c-3e9549efc6e00"
|   Accept-Ranges: bytes
|   Content-Length: 44
|   Connection: close
|   Content-Type: text/html
|   X-Pad: avoid browser bug
|_  (Request type: HEAD)

Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 7.60 seconds

As would this one.

Ok, so the only thing that I'm finding to be an issue with DIRB is the lack of ability to do directory discover, then to filename with extension discovery in the new directories. It appears to only be one or the other.

That is all I've got, have fun busting directories.

Tech Segment: Practical Password Brute Forcing

5:00 PM

Author: Paul Asadoorian

Learn how to use CeWL and Hydra to password brute force web-based logins.

Tech Segment: New ways to Persist with Metasploit


Author: Carlos "DarkOperator" Perez

HackNaked TV/ PaulDotCom Espanol /Dinner Break


Tech Segment: Google Hacking Diggity Project

7:00 PM

Author: with Jack "Tenacious" D.aniel

Ancient alien beings, hypervisors and virtualization

7:30 PM

Your host for this journey will be none other than Eric Fitterman!

"Researchers in Central America recently discovered an ancient underground lake containing many new discoveries about the Mayan civilization. Among these discoveries were many mysterious glyphs depicting what appear to be other-worldy beings handing compact disks to Mayan priests. Excavation unearthed some ancient, but usable, compact disks, containing what appeared to be bootable Linux environments designed to reset passwords in VMware's ESX hypervisor. Eric Fiterman, of Rogue Networks, has extensively studied the artifacts from the project, and has learned that ancient alien beings may have given humans knowledge of hypervisors and virtualization long ago.


Eric believes that virtualization and computing were ancient technologies used by the Mayans, and that among this lost knowledge were the secrets of how to recover VMware hypervisor systems without a password. Eric will be discussing this recently discovered artifact, and is releasing a bootable ISO that allows users to restore ESX systems without re-installing the hypervisor."

Kevin Mitnick Interview

8:15 PM


Pen Testing War Stories with Kevin Fiscus

9:00 PM

Drunken Security News

(This segment can go anywhere during the 12 hours, it should last an hour)

Paul's Stories

Larry's Stories

Darren's Stories

Jack's Stories

10PM show over.