mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-21 06:45:24 -06:00
fix executable
This commit is contained in:
parent
d411b92ae5
commit
9b0ba4482c
3 changed files with 33 additions and 30 deletions
32
bin/burp-ui
Executable file
32
bin/burp-ui
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf8 -*-
|
||||
import sys
|
||||
import os
|
||||
from optparse import OptionParser
|
||||
|
||||
sys.path.append('{0}/..'.format(os.path.join(os.path.dirname(os.path.realpath(__file__)))))
|
||||
|
||||
from burpui import app, bui
|
||||
|
||||
if __name__ == '__main__':
|
||||
"""
|
||||
Main function
|
||||
"""
|
||||
parser = OptionParser()
|
||||
parser.add_option('-v', '--verbose', dest='log', help='verbose output', action='store_true')
|
||||
parser.add_option('-c', '--config', dest='config', help='configuration file', metavar='CONFIG')
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
d = options.log
|
||||
app.config['DEBUG'] = d
|
||||
|
||||
if options.config:
|
||||
conf = options.config
|
||||
else:
|
||||
conf = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'burpui.cfg')
|
||||
|
||||
app.config['CFG'] = conf
|
||||
|
||||
bui.setup(conf)
|
||||
bui.run(d)
|
||||
|
||||
29
burp-ui.py
29
burp-ui.py
|
|
@ -1,29 +0,0 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf8 -*-
|
||||
import os
|
||||
from optparse import OptionParser
|
||||
|
||||
from burpui import app, bui
|
||||
|
||||
if __name__ == '__main__':
|
||||
"""
|
||||
Main function
|
||||
"""
|
||||
parser = OptionParser()
|
||||
parser.add_option('-v', '--verbose', dest='log', help='verbose output', action='store_true')
|
||||
parser.add_option('-c', '--config', dest='config', help='configuration file', metavar='CONFIG')
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
d = options.log
|
||||
app.config['DEBUG'] = d
|
||||
|
||||
if options.config:
|
||||
conf = options.config
|
||||
else:
|
||||
conf = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'burpui.cfg')
|
||||
|
||||
app.config['CFG'] = conf
|
||||
|
||||
bui.setup(conf)
|
||||
bui.run(d)
|
||||
|
||||
1
burp-ui.py
Symbolic link
1
burp-ui.py
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
bin/burp-ui
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf8 -*-
|
||||
__title__ = 'burp-ui'
|
||||
__version__ = '0.0.1'
|
||||
__author__ = 'Benjamin SANS (Ziirish)'
|
||||
__license__ = 'BSD 3-clause'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue