add: listing internal wordlist

This commit is contained in:
cr0hn
2016-03-18 14:07:21 +01:00
parent 2d2b5f89ce
commit 6aa4bd0c91

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
import os
import logging
log = logging.getLogger()
# ----------------------------------------------------------------------
def cmd_list_wordlists(config):
"""
Get all internal wordlist
"""
base_wordlists = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "resources", "wordlist"))
log.error(" - Available wordlists:")
for w in os.listdir(base_wordlists):
if "readme" not in w.lower():
log.error(" > %s" % w[:w.find(".txt")])