Enumeration

Enumeration

  • /robots.txt

    File to tell search engines not to index certain files or directories.

  • Mac / Macintosh / Apple Hidden Files .DS_Store DS_Store_crawler

    On Mac, there is a hidden index file .DS_Store listing the content of the directory. Useful if you have a LFI vulnerability.

    python3 dsstore_crawler.py -i <url>
  • Bazaar .bzr directory

    Contains the history of the project. Can be used to find old versions of the project. Can be fetched with https://github.com/kost/dvcs-ripper

    Download the bzr repository:

    bzr branch <url> <out-dir>
  • GitDumper - GitHub

    A command-line tool that will automatically scrape and download a git repository hosted online with a given URL.

    When /.git is reachable, there is a git repo that contains the history of the project. Can be used to find old versions of the project and to maybe find credentials in sources. Use git commands (from your favorite git cheatsheet) to navigate the history.

    gitdumper <url>/.git/ <out-dir>
  • Mac AutoLogin Password Cracking with /etc/kcpassword

    /etc/kcpassword is a file that contains the password for the Mac OS X auto-login user. It is encrypted with a key that is stored in the kernel, but sometimes it can be decrypted with the following python script:

    def kcpasswd(ciphertext):
        key = '7d895223d2bcddeaa3b91f'
        while len(key) < (len(ciphertext)*2):
            key = key + key
        key = binasciiunhexlify(key)
        result = ''
        for i in range(len(ciphertext)):
            result += chr(ord(ciphertext[i]) ^ (key[i]))
        return result