mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-15 14:16:08 -06:00
renamed config file
This commit is contained in:
parent
44dbf92cdb
commit
1dbfb4f5fe
3 changed files with 27 additions and 3 deletions
|
|
@ -25,7 +25,18 @@ if __name__ == '__main__':
|
|||
else:
|
||||
raise IOError('File not found: \'{0}\''.format(options.config))
|
||||
else:
|
||||
conf_files = ['/etc/burp/buiagent.cfg', os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'share', 'burpui', 'etc', 'buiagent.cfg')]
|
||||
root = os.path.join(
|
||||
os.path.dirname(os.path.realpath(__file__)),
|
||||
'..',
|
||||
'share',
|
||||
'burpui',
|
||||
'etc'
|
||||
)
|
||||
conf_files = [
|
||||
'/etc/burp/buiagent.cfg',
|
||||
os.path.join(root, 'buiagent.cfg'),
|
||||
os.path.join(root, 'buiagent.sample.cfg')
|
||||
]
|
||||
for p in conf_files:
|
||||
if os.path.isfile(p):
|
||||
conf = p
|
||||
|
|
|
|||
|
|
@ -74,7 +74,21 @@ def init(conf=None, debug=False, logfile=None, gunicorn=True):
|
|||
else:
|
||||
raise IOError('File not found: \'{0}\''.format(conf))
|
||||
else:
|
||||
conf_files = ['/etc/burp/burpui.cfg', os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', '..', '..', 'share', 'burpui', 'etc', 'burpui.cfg')]
|
||||
root = os.path.join(
|
||||
os.path.dirname(os.path.realpath(__file__)),
|
||||
'..',
|
||||
'..',
|
||||
'..',
|
||||
'..',
|
||||
'share',
|
||||
'burpui',
|
||||
'etc'
|
||||
)
|
||||
conf_files = [
|
||||
'/etc/burp/burpui.cfg',
|
||||
os.path.join(root, 'burpui.cfg'),
|
||||
os.path.join(root, 'burpui.sample.cfg')
|
||||
]
|
||||
for p in conf_files:
|
||||
app.logger.debug('Trying file \'%s\'', p)
|
||||
if os.path.isfile(p):
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ CONFIG = {
|
|||
'--worker-class=eventlet',
|
||||
'--access-logfile=/var/log/gunicorn/burp-ui_access.log',
|
||||
'--error-logfile=/var/log/gunicorn/burp-ui_error.log',
|
||||
'--log-level=debug',
|
||||
'burpui:init(conf="/etc/burp/burpui.cfg",logfile="/var/log/gunicorn/burp-ui_info.log")',
|
||||
),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue