H4ckForJob/dirmap

IndexError: string index out of range

shmilylty opened this issue · 0 comments

dirmap.conf中配置有如下:

conf.blast_mode = 1
conf.blast_mode_custom_charset = ""

PS D:\工具\dirmap> python .\dirmap.py -i http://www.xxxx.com -t 60 -lcf

                 #####  # #####  #    #   ##   #####
                 #    # # #    # ##  ##  #  #  #    #
                 #    # # #    # # ## # #    # #    #
                 #    # # #####  #    # ###### #####
                 #    # # #   #  #    # #    # #
                 #####  # #    # #    # #    # #   v1.0

[] Initialize targets...
[+] Load targets from: http://www.xxxx.com
[+] Set the number of thread: 60
[+] Coroutine mode
[+] Current target: http://www.xxxx.com /
[
] Launching auto check 404
[+] Checking with: http://www.xxxx.com/wjsnuaryagrdxsephppbmamqeiuacyeskmmvrfkjlb
[] Use recursive scan: No
[
] Use blast mode
[] Use char set:
[
] Use paylaod min length: 0
[*] Use paylaod max length: 6
Traceback (most recent call last):
File "D:\工具\dirmap\lib\controller\engine.py", line 44, in scan
bruter(target)
File "D:\工具\dirmap\lib\controller\bruter.py", line 558, in bruter
payloads.all_payloads = scanModeHandler()
File "D:\工具\dirmap\lib\controller\bruter.py", line 369, in scanModeHandler
payloadlists.extend(generateBlastDict())
File "D:\工具\dirmap\lib\controller\bruter.py", line 268, in generateBlastDict
generateLengthDict(length)
File "D:\工具\dirmap\lib\controller\bruter.py", line 296, in generateLengthDict
temp += conf.blast_mode_custom_charset[j]
IndexError: string index out of range

建议加一个异常处理