top of page
  • Writer's pictureJosh Stroschein

Finding Usernames with Burp Extensions

Updated: Feb 11

What Does this Extension Do?


This is a relatively simple Burp extension that I created a while back to learn more about how to actually create extensions. The functionality is straight-forward: it parses the HTML looking for email addresses. Additionally, it can generate usernames from the list of emails found. The ideal use case is when an website (or organization) uses first.last@organization.com format – as some combination of the first and last name will also serve as their username. For example, jane.doe@example.com may have the following usernames:

  1. jane.doe

  2. jdoe

  3. doej

  4. doe


You can find a demonstration of this extension in action on YouTube:




What Can’t it Do?

Well, there is quite a bit it doesn’t do and plenty of room for improvement. The email parsing is done by simple regular expression – which means that it can likely be improved upon. It only parses a single HTTP response, harvesting emails from an entire website would be far more useful. The output is only directed to the output tab in Burp – it could be saved to a file for use with other tools. I mainly developed this for my own edification on Burp extensions and made it available in the hopes that someone else mind find it useful for their own learning.

It’s also worth noting that the logic contained within the extension could be easily adapted to look for other data. In fact, this may be a feature that Burp already contains, I was just too lazy to go looking for it 🙂


Thank You's

The original idea for creating this extension, along with the knowledge to get started came from Black Hat Python by Justin Seitz. In this book, it covers creating Burp extensions to expand Burp functionality and automate tasks.


Test Data for the Demo….

  1. First.Last@email.com

  2. Last.First@email.com

  3. Joe.User@email.com

  4. Jane.User@email.com

9 views

Comments


Want to know when my latest content drops? Sign-up to receive email notications and access to other exclusive content!

bottom of page