官术网_书友最值得收藏!

Password profiling with CeWL

With every penetration test, reconnaissance must include a profiling phase in which we analyze the application, department or process names, and other words used by the target organization. This will help us to determine the combinations that are more likely to be used when the need to set a user name or password comes to the personnel.

In this recipe, we will use CeWL to retrieve a list of words used by an application and save it for when we try to brute-force the login page.

How to do it...

  1. As the first step, we will look at CeWL's help to have a better idea of what it can do. In the terminal, type:
    cewl --help
    
  2. We will use CeWL to get the words on the WackoPicko application from vulnerable_vm. We want words with a minimum length of five characters; show the word count, and save the results to cewl_WackoPicko.txt:
    cewl -w cewl_WackoPicko.txt -c -m 5 http://192.168.56.102/WackoPicko/
    
  3. Now, we open the file that CeWL just created and see a list of "word count" pairs. This list still needs some filtering in order to discard words that have a high count but are not very likely to be used as passwords; for example, "Services", "Content", or "information".
  4. Let's delete some words to have a first version of our word list. Our word list, after having removed some words and the count, should look similar to the following example:
    WackoPicko
    Users
    person
    unauthorized
    Login
    Guestbook
    Admin
    access
    password
    Upload
    agree
    Member
    posted
    personal
    responsible
    account
    illegal
    applications
    Membership
    profile

How it works...

CeWL is a tool in Kali Linux that crawls a website and extracts a list of inpidual words; it can also provide the number of repetitions for each word, save the results to a file, use the page's metadata, and so on.

See also

There are other tools for similar purposes; some of them generate word lists based on rules or other word lists and some crawl a website looking for the most used words:

  • Crunch: This is a generator based on a character set provided by the user. It uses this set to generate all the possible combinations. Crunch is included in Kali Linux.
  • Wordlist Maker (WLM): WLM has the feature of generating a word list based on the character sets and it can also extract words from text files and web pages (http://www.pentestplus.co.uk/wlm.htm).
  • Common User Password Profiler (CUPP): This tool can use a word list to profile the possible passwords for common user names and download word lists and default passwords from a database (https://github.com/Mebus/cupp).
主站蜘蛛池模板: 图片| 阿坝县| 汤原县| 万年县| 莆田市| 皋兰县| 中江县| 保康县| 信阳市| 双江| 浦江县| 宁乡县| 冀州市| 黄陵县| 通城县| 高青县| 东明县| 修水县| 通渭县| 连州市| 古田县| 闽侯县| 云和县| 洮南市| 西平县| 临西县| 和静县| 昆山市| 闵行区| 迁安市| 潜江市| 江口县| 奉贤区| 雅江县| 宜春市| 清远市| 宕昌县| 沙田区| 惠东县| 丘北县| 名山县|