def create_db():
 con = lite.connect('db.db')
 with con:
  cur = con.cursor()
  cur.execute("SELECT count(*) FROM sqlite_master WHERE type = 'table' AND name = 'XXE'")
  tbl_exists = cur.fetchone()[0]
  if (tbl_exists == 0):
   cur.execute('CREATE TABLE XXE(payload TEXT, ts timestamp)')
   con.commit()
  cur.execute("SELECT count(*) FROM sqlite_master WHERE type = 'table' AND name = 'SSRF'")
  tbl_exists = cur.fetchone()[0]
  if (tbl_exists == 0):
   cur.execute('CREATE TABLE SSRF(ip TEXT, ts timestamp)')
   con.commit()

def create_db ( ) : con = lite . connect ( 'db.db' ) with con : cur = con . cursor ( ) cur . execute ( "SELECT count(*) FROM sqlite_master WHERE type = 'table' AND name = 'XXE'" ) tbl_exists = cur . fetchone ( ) [ 0 ] if ( tbl_exists == 0 ) : cur . execute ( 'CREATE TABLE XXE(payload TEXT, ts timestamp)' ) con . commit ( ) cur . execute ( "SELECT count(*) FROM sqlite_master WHERE type = 'table' AND name = 'SSRF'" ) tbl_exists = cur . fetchone ( ) [ 0 ] if ( tbl_exists == 0 ) : cur . execute ( 'CREATE TABLE SSRF(ip TEXT, ts timestamp)' ) con . commit ( )
create database .