예제 #1
0
def main():
    coffesploit = Console()
    coffesploit.main.config_from(__basedir, SQLALCHEMY_DATABASE_URI)  # config for sqlalchemy usage
    # when coffesploit run
    # check db file
    # if db not exists then create db
    if not path.exists(DATABASE_URI):
        db = sqlite3.connect(DATABASE_URI)
        db.close()
    coffesploit.start()
예제 #2
0
def main():
    coffesploit = Console(config.__basedir)
    coffesploit.start()