diff --git a/sqlmap.py b/sqlmap.py index a0cee99c1..c7c84083b 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -76,10 +76,10 @@ def main(): try: init(cmdLineOptions) - if not conf.profile: - start() - else: + if conf.profile: profile() + else: + start() except exceptionsTuple, e: e = str(e) logger.error(e)