Skip to content

Commit

Permalink
[+]添加一些配置提示信息,增加用户体验
Browse files Browse the repository at this point in the history
  • Loading branch information
H4ckForJob committed Apr 14, 2019
1 parent 94eb152 commit 3afdfae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/controller/bruter.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@Author: xxlin
@LastEditors: xxlin
@Date: 2019-03-14 09:49:05
@LastEditTime: 2019-04-14 11:52:12
@LastEditTime: 2019-04-14 12:05:52
'''

import configparser
Expand Down Expand Up @@ -327,6 +327,9 @@ def ScanModeHandler():
sys.exit()
elif conf.blast_mode:
outputscreen.warning('[*] Use blast mode')
outputscreen.warning('[*] Use char set: {}'.format(conf.blast_mode_custom_charset))
outputscreen.warning('[*] Use paylaod min length: {}'.format(conf.blast_mode_min))
outputscreen.warning('[*] Use paylaod max length: {}'.format(conf.blast_mode_max))
return generateBlastDict()
#TODO:递归爬取url
elif conf.crawl_mode:
Expand Down Expand Up @@ -490,6 +493,7 @@ def bruter(url):
#FIXME:设置后缀名。当前以拼接方式实现,遍历一遍payload。
try:
if conf.file_extension:
outputscreen.warning('[+] Use file extentsion: {}'.format(conf.file_extension))
for i in range(len(payloads.all_payloads)):
payloads.all_payloads[i] += conf.file_extension
except:
Expand Down

0 comments on commit 3afdfae

Please sign in to comment.