Sponsored By:


www.tenablesecurity.com


http://twitter.com/pauldotcom


http://www.facebook.com/group.php?gid=6678027341


www.youtube.com/pauldotcom




May 2009 Archives

Special Live Podcast - Monday June 1st 8PM *Vegas Time*

|

PLEASE NOTE: For this week's podcast, we stream live from Las Vegas at SANS' Pentest Summit with all five members in attendance! The stream should be active around 20:00 PDT (11:00 PM Eastern), Monday, June 1st. Please keep in mind that these times are estimates.

Don't forget to join in on the IRC channel during the stream - we can take live comments and discussion from the channel! Find us on IRC at irc.freenode.net #pauldotcom.

When active, the live stream(s) can be found at:

Ustream: PaulDotCom UStream Channel

Icecast: PaulDotCom Radio

Please join us, and thanks for listening!

Larry4fingerPesce.jpg


- Paul, Larry, John, Mick and Carlos (a.k.a.) Dark0perator

PaulDotCom Security Weekly - Episode 153 Part 2 - May 21, 2009

|

A tutorial on winenum, a Metasploit meterpreter script that performs post-exploitation information gathering by "Dark0perator". A video tutorial can be viewed below:

Full Show Notes

Direct Audio Download

Hosts: Larry Pesce, Paul Asadoorian, John Strand, Mick Douglas, & Carlos Perez

Email: psw@pauldotcom.com

Audio Feeds:

PaulDotCom Security Weekly - Episode 153 Part 1 - May 21, 2009

|

Interview with Steve Sims talking about breaking software!

Full Show Notes

Direct Audio Download

6a00d8341c4f5f53ef00e5501b16a58834-500wi.jpg

Hosts: Larry Pesce, Paul Asadoorian, John Strand, Mick Douglas, & Carlos Perez

Email: psw@pauldotcom.com

Audio Feeds:

For Episode No. 153 , the stream should be active around 18:45 EDT (6:45 PM Eastern), Thursday, May 21st. We should begin recording the live show around 19:00 EDT. Please keep in mind that these times are estimates.

Our guest this episode is Stephen Sims. Steve will discuss Fuzzing for Bug Discovery.
Our very own Carlos "Dark0perator" Perez will demonstrate his tool WinEnum. You can find Carlos's video presentation and step-by-step guide in the show notes.

Don't forget to join in on the IRC channel during the stream - we can take live comments and discussion from the channel! Find us on IRC at irc.freenode.net #pauldotcom.

When active, the live stream(s) can be found at:

Ustream: PaulDotCom UStream Channel

Icecast: PaulDotCom Radio

Please join us, and thanks for listening!

- Mick, John, Larry, Paul & Carlos

Panelists:

  • Ron Gula, Tenable Network Security

  • Mandeep Khera, Cenzic

  • Martin McKeay, Network Security Podcast

  • Rich Mogull, Network Security Podcast/Securosis

  • Anton Chuvakin, Qualys
  • Full Show Notes
    Direct Audio Download

    Audio Feeds:

    PaulDotCom Security Weekly - Episode 152 - May 14, 2009

    |

    Getting Started In Information Security How-To

    |

    One of the most asked questions we have gotten since we started PaulDotCom is: "How do I get started in information security?". This is a great question, and the following guide will get you started:

    1. Be curious - The first and most important characteristic you need to succeed in information security is curiosity. I have to say that I started by being curious. I was 7 years old apple-iie.jpgand I took a class on how to use an Apple IIe computer (back then you had to write programs to make the computer do anything). I remember sitting in front of the Apple IIe (my parents eventually bought one) and staring at the glowing screen and the green flashing cursor, just wondering what I could make it do. I watched the movie "War Games" and wanted a modem so bad, but my parents forbid it, saying that I would cause global thermo-nuclear war (I told them I only wanted to play chess, but they didn't believe me). I guess that's part of your homework, go back and watch two of the best hacker movies on the planet, "War Games" and "Sneakers".
    2. Work in information technology - Most people I encounter who want to get into information security want to know, "How do I become a hacker?". I don't think its something that you become, I think its something that you are, coupled with something that you are shaped into. The best information security professionals are those that have been "In The Trenches", working as a help desk technician, systems administrator, or network engineer. Working in these positions will gain you an understanding of how things work, which lays the foundation to learn how to break them and make them do things they were not intended to do.
    3. Setup a home network/lab - First, setup a home lab. VMware makes free versions of their software, and there are thousands of pre-configured virtual hosts available on their web site. Don't just focus on setting up security tools either, try to setup a file server using Samba and lock it down (for example). This exercise can provide valuable experience. For example, I was on an interview once for one of my first UNIX systems administrator jobs and they asked me if I had experience with NFS. I said, "Sure do! I run it at home." They looked puzzled at first, but when I could answer all their technical questions about NFS, they, well, hired me. I also brought pictures of my computers at home to the interview. Now, I don't recommend that, but its one of those funny interview stories and it happened to work for me. However, it could have very easily had the opposite effect.
    4. mycomputers.png
      Actual picture Paul brought to his interview

    5. Get involved with local groups - This is a great place to meet people in the field, exchange ideas, and ask questions. Its important to network as this is most likely how you will get a job in the field! Local groups in my area, for example, include 2600, defcon (DC401), Linux user groups, and several others. Also, there may be a "Hacker Space" in your area as well, so be certain to find one and participate in it. If there is no group of any kind in your area, then create one!
    6. Go to conferences - Defcon is one of the larget conferences on the West Coast, and Shmoocon is a popular conference on the East Coast. This is another great place to network and there are several smaller conferences all across the country (such as NOTACON). SANS is a great place to learn and network, but most starting out in the field may not have an employer who will pay for training. There are many options, such as SANS @home online training or becoming a facilitator for SANS.
    7. Read blogs & listen to podcasts/webcasts - There is so much information on the web about our field that it is overwhelming. While you may specialize on certain systems or technologies, you need to have some level of understanding in all areas on technology. Keeping up with all this can be a full-time job in and of itself. My suggestion is to use an RSS news reader and subscribe to as many technology and security related resources as possible. Need some help getting started? You can download all the feeds from here and import them into your RSS news reader. Podcasts are free, and iPods are very cheap now, so you should be listening to podcasts. Of course we produce our own weekly show called PaulDotCom Security Weekly, and this thread in our forum discusses many of the other great podcasts on the net. Webcasts are free ways to get good information, and are available from SANS, Whitehat World, and many others.
    8. mycomputers.png
      Hacking Naked Helps Too

    9. Take training classes and get certification - We've talked about SANS already, and there are several other places to get great training. Backtrack is a great security live CD distribution (also a great place to start for beginners) and its associated training classes have gotten great reviews. Don't shy from certification, but don't spend too much time getting certifications to pad the resume. Strike a balance - get a few certifications and see where it takes you, then spend some time and resources getting real-world experience. Get involved with an open-source project - even if you may not feel like you have the technical chops to participate in many open source projects. That's okay, if you are good at writing documentation and/or testing, you can be a valuable resource. This tack gets you familiar with the technology and gets you networked in the field.
    10. Socially Network - Not only are social networks fun to hack, but they are one of the best ways to network in the field. Twitter has become a great tool for this, and even has the "Security Twits" group consisting of security people using Twitter. They have meetups at various conferences. Facebook and LinkedIN can also be valuable networking tools to help you meet people and find a job.
    11. Write about stuff - A great addition to your resume are publications. Find a topic that you like and write something on it and submit it to various magazines and online resources to get published. This is looked upon favorably by employers, and gives them writing samples as well. Also, have a blog. Blog about stuff that you do, what you think about security, etc... If you keep it focused on security, you'll be in good shape. If you start blogging about farm animals and creamed corn, it may not be as useful. For examples of some of the things we have written, you can check out the papers page. For examples of presentations, see the presentations page.
    12. Manage a machine that gets hacked - I know this sounds strange, but many people we interview say they got their start when their machine got hacked. This is not to say that you would let a machine get hacked (be careful if you plan to do this and setup honeypots/honeynets), but this can provide valuable experience and further motivate you to explore the field of information security.
    13. I want to thank the members of the PaulDotCom mailing list for sharing their ideas and thoughts on this subject. You can read the full thread in the archives that inspired this post.

      Paul Asadoorian
      PaulDotCom

    Here at PaulDotCom Security Weekly we have this thing for wireless of all kinds. Wireless cards, cables, antennas, 802.11, RFID...the list goes on. We're always on the lookout for something neat and useful. We found that in the Asus EEE line of netbooks. They are small, usually feature Atheros wireless cards, and have a huge modding community. The small form factor is also something that works well for wireless assessments, whether covert or sanctioned. The size is conducive to easy transport in a small space or as a second laptop while traveling.

    To those aims, the Asus 4G Surf (amongst others in the EEE family) works well, however the small internal wireless antennas don't offer much flexibility or range. We need to take some cues from the EEE modding community and extend the hardware to support a better antenna. So, here's how to add an external RP-TNC antenna connector to the Asus EEE 4G Surf.

    Tools and parts you will need:

  • A small Phillips screwdriver

  • Electrical tape

  • A drill and appropriately sized drill bits

  • A flat instrument for gently prying the case apart (such as a plastic putty knife or a fingernail)

  • A u.FL to RP-TNC pigtail (about 6 inches works well)
  • First, we need to get this little machine open. To do that we need to remove the memory door cover on the underside by removing two small Philips screws.

    IMG_5888.jpg
    Memory door screws

    Then we need remove the rest of the screws on the underside of the case. While we are there, remove the battery and set it aside.

    IMG_5884.jpg
    6 screws on the outside edge

    Once removed, we need to remove the keyboard to access the screws underneath. To do this, loft the rear of the keyboard and push in the 3 small retaining tabs (near the screen). The keyboard should lift up from the rear allowing you to carefully disconnect the ribbon cable in the front.

    IMG_5885.jpg
    Be careful!

    Removing the keyboard will reveal several screws on the metal plate underneath the keyboard.

    IMG_5883.jpg
    9 screws. This will void your warranty.

    Separate the top section of the case from the bottom; start at the bottom right and work your way around to the screen and down the left hand side. Once you reach the left hand side, rotate the top of the case slightly in a counter clockwise direction in order for the case to make it past the ethernet and sound ports.

    Once the top has been separated, remove the main board from the case to access the underside of the board and wireless card. Next, remove the several small cables to separate it from the case.

    IMG_5879.jpg
    Display connector
    IMG_5880.jpg
    Fan connector
    IMG_5881.jpg
    Last but not least, the speaker

    Last but not least, remove the microphone from the case. It should pop out easily and stay attached to the board.

    IMG_5878.jpg
    Speak to me!

    All that is left holding the board hostage in the case are three small clips at the front edge of the laptop. Pushing the tabs aside with your finger will liberate the board.

    IMG_5877.jpg
    There are 3 of these tabs along the front edge...

    In order round the corner on our hack, we will also need to separate the display from the base. This will allow for safety while drilling the hole for the RP-TNC connector and allow us to wedge it all back together. The display can be removed by removing one screw from the outer edge of each hinge and then it should lift straight out.

    I found an interesting place for the RP-TNC connector. At the right hand edge of the laptop, what appears to be the "hinge", there is a small silver disc. This disc is just a sticker; peel it off and we are left with a spot that looks as if it was made for the connector. I used my handy drill press in the workshop to create an appropriate hole where the sticker used to be (I believe that it was 5/16ths of an inch). This could certainly be accomplished with a hand drill as well.

    IMG_5870.jpg
    Episode IV - A New Hole

    Due to the cramped quarters in this section of the case, I had to route the pigtail connector for the external RP-TNC connector through the right hand display hinge. Fortunately, this is also how cables are passed into the display form the main compartment.

    IMG_5871.jpg
    Pigtail through the hinge

    At this point we can start the reassembly process. I found that it was easiest to attach the RP-SMA external connector to the case first, and then reinstall the display.

    IMG_5868.jpg
    Almost like it was meant to be there...
    IMG_5873.jpg
    Display reinstalled

    The final step before reassembly is to attach the u.FL end of our pigtail to the wireless card. I elected to leave one of the internal antennas attached, and placed a small piece of electrical tape over the other, and disconnected internal antenna connector. We don't want this nice conductive connector inside of the case causing a short!

    IMG_5874.jpg
    Connected and ready to rock

    In order to complete the reassembly (just follow the disassembly steps in reverse, yes it is that easy), we need to modify the top half of the case in order to accommodate the internal parts of the RP-TNC connector. On the underside of the hinge cover, we need to remove a small bit of plastic. I did this with my Dremel and a small grinding stone.

    IMG_5882.jpg
    Remove this little bit right here

    Reassemble, and we are done! Attach an appropriate RP-SMA antenna of your choice and begin your assessments, now with more power!

    IMG_5887.jpg
    All done! Now we need an antenna...

    As a bit of an update, I quickly discovered that the location of the external connector was just a bit too tight. It pushed out the side of the case a little bit and as a result, compromised the connection on the inside of the connector. This quickly failed.

    I added some additional space to the outside of the case with a new connector, utilizing the same location. I added a spare dome shaped piece, with an extra large hole drilled on the inside to accommodate the flange on the external connector. Fasten the connector to the dome, and a little two part epoxy later and we have a solid connector with plenty of room. Here's a look at the final result:

    IMG_5959.jpg
    Almost looks like it belongs...
    IMG_5958.jpg
    It doesn't change the footprint too much.

    Now, any idea where the dome shaped piece came from? Glad you asked! It was a plastic foot that was supposed to be affixed to the bottom of some piece of furniture. It met with all sorts of power tools in the workshop for holes, trimming and finishing. Now, what to use the three other feet on...?

    Enjoy! Let us know how your hacks turn out.

    - L

    Resources

  • EEE 4G Surf from Asus: http://eeepc.asus.com/global/product700-spec.html
  • EEE User Forums: http://forum.eeeuser.com/
  • FAB Corp u.FL to RP-TNC Pigtail http://www.fab-corp.com/product.php?productid=2680

  • SQL Injection with sqlmap

    |

    One of the questions that we get on a regular basis is "Are there any good tools for SQL Injection?"

    There are a number of great tools that do this commercially like Core Impact and Cenzic Hailstorm. However, many tools will simply alert you that a SQL Injection vulnerability exists then leave it at that.

    We are penetration testers so proof is kind of important. Simply stating that you found a SQL injection vulnerability because your tool said so is not enough.

    To that end, I would like to introduce you to sqlmap.

    First up, I would like to say thanks to the developers Bernardo Damele A. G. and Daniele Bellucci.

    Now I would like to show you a short video of the tool.

    Why does this tool rock?

    Glad you asked.

    First, it has the ability to process results from burpsuite and webscarab with the -l option:

    Like..

    # ./sqlmap.py -l /tmp/webscarab.log/conversations/

    It also has the ability automatically dump data. For example it can dump the database version and the tables in the database.

    To do this you would use the --dump-all switch like:

    # ./sqlmap.py --dump-all -u "testurl.com"

    Next, it has the ability to use googledork search strings. Yep, thats right googledorking and SQL Injection... Honestly, does it get any better?

    # ./sqlmap.py --dump-all -g "site:testsite.com ext:php"

    The above command will have google crawl a website and pull all pages with a php extension. After sqlmap has a nice list of targets it tries to attack them.

    Finally, and in my humble opinion most importantly, it can get you a SQL shell.

    To do this use the --sql-shell option and it will try to give you a shell.

    # ./sqlmap.py --sql-shell -g "site:testsite.com ext:php"

    borat-high-five.jpg

    Very nice!!!

    Once again, I want to drive home the importance of proof. Our jobs as testers is to demonstrate risk. To do that we need to act like a threat and interact with a vulnerability. Simply stating that a tool said there is a vulnerability is not enough. Also, we should be after what the attackers are after.... Data! What better place to get data then a SQL database?

    strandjs

    PaulDotCom Security Weekly - Episode 151 - May 7, 2009

    |

    Special guest Harlan Carvey talks Windows forensics, W3af Part II.

  • Sponsored by Core Security, listen for the new customer discount code at the end of the show
  • Sponsored by Tenable Network Security, creators of Nessus and makers of the Tenable Security Center, software that extends the power of Nessus through sophisticated reporting, remediation workflow, IDS event correlation and much more.
  • Want to register for any SANS conference? Please visit http://www.pauldotcom.com/sans/ for our referral program
  • Be sure to check out "Maltego" from Paterva, try the community edition for free!
  • Quench your thirst for knowledge at www.syngress.com and use the discount code "PaulDotCom" to save 20% of all security book titles!
  • Don't forget to sign up for our Mailing List, Forums, and log into our IRC Channel!
  • Full Show Notes

  • 3500073949_8a716261d8.jpg

    "PaulDotCom Foresics Exam"

    Hosts: Larry "HaxorTheMatrix" Pesce, Paul "PaulDotCom" Asadoorian, John Strand, Mick Douglas

    Email: psw@pauldotcom.com

    Direct Audio Download

    Audio Feeds:

    We have been promising for a few week a write-up on SSLStrip and now we have finished it!!!!

    SSLStrip from John Strand on Vimeo.

    SSLStrip basically strips the SSL session between the attacker and the victim. This allows the attacker (or tester) to see all of the data that is being sent to the user in clear text. As far as the server is concerned it is a valid encrypted session. There are a few interesting things going on with this attack. First from a pen-test perspective it only articulates even more how dangerous man in the middle attacks are when leveraged correctly. Funny thing about that... arp cache poisoning is just as effective as it was 5 years ago. It is getting clearer and clearer to me that if an attacker gets access to an internal network it is pretty close to being over. So if you are doing pen-testing and you don't Man in the Middle... Get on board and start doing it. Now for the second issue. User training. We tell our users that they need to be careful to not click on links for strangers and be carefull what websites they should not go to, but we rarely demonstrate that risk. Why do organizations do pen-tests? The do it to demonstrate risk. Otherwise they tend to do nothing. Is there any reason why we would expect anything less from our users? The reason I bring this up is that when we do user education we really need to be doing some live demonstrations. For example, we need to demonstrate a browser being compromised. We can also use tools like SSLStrip to demonstrate why that HTTPS is so important. We can also use tools like Web Monkey in the Middle from Dsniff to demonstrate why those certificate pop-ups are kind of important. I know I am tilting at windmills with user education. Just a hopeless romantic I guess. strandjs

    PLEASE NOTE: This week, the live stream will be done earlier to accommodate our guest. The stream should be active around 18:20 EDT (6:20 PM Eastern), Thursday, May 7th. We should begin recording the live show around 18:30 EDT. Please keep in mind that these times are estimates.

    Seth Misenar will update his talk from Episode 144 on the Web Application Attack and Audit Framework (w3af) . Our guest for this episode is Harlan Carvey.
    Harlan is a researcher in forensic analysis and incident response, as well as Windows Registry and physical memory analysis.

    Don't forget to join in on the IRC channel during the stream - we can take live comments and discussion from the channel! Find us on IRC at irc.freenode.net #pauldotcom.

    When active, the live stream(s) can be found at:

    Ustream: PaulDotCom UStream Channel

    Icecast: PaulDotCom Radio

    Please join us, and thanks for listening!

    - Mick, John, Paul, & Larry

    PaulDotCom Security Weekly - Episode 150 - April 30, 2009

    |

    The PaulDotCom crew are over 9 hours into the 12 hour marathon and talking to Stephen Northcutt! We also have a great segment on Google Hacking. This is just the "show" portion of the episode, look for the other segments in the coming weeks.

  • Sponsored by Core Security, listen for the new customer discount code at the end of the show
  • Sponsored by Tenable Network Security, creators of Nessus and makers of the Tenable Security Center, software that extends the power of Nessus through sophisticated reporting, remediation workflow, IDS event correlation and much more.
  • Want to register for any SANS conference? Please visit http://www.pauldotcom.com/sans/ for our referral program
  • Be sure to check out "Maltego" from Paterva, try the community edition for free!
  • Quench your thirst for knowledge at www.syngress.com and use the discount code "PaulDotCom" to save 20% of all security book titles!
  • Don't forget to sign up for our Mailing List, Forums, and log into our IRC Channel!
  • Full Show Notes

  • 3500076881_062314f87a.jpg

    Hosts: Larry "HaxorTheMatrix" Pesce, Paul "PaulDotCom" Asadoorian, John Strand, Mick Douglas

    Email: psw@pauldotcom.com

    Direct Audio Download

    Audio Feeds: