Skip to content

Commit

Permalink
added a new db table to save target queue
Browse files Browse the repository at this point in the history
  • Loading branch information
gokulapap committed Sep 25, 2021
1 parent 21c05e1 commit 6514b25
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions initialise.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
conn = psycopg2.connect(DATABASE_URL, sslmode='require')
cur = conn.cursor()

# to save the result of recon on target
cur.execute('''
create table output (
Expand All @@ -27,7 +28,20 @@
);
''')
conn.commit()

# to save targets in queue
cur.execute('''
create table queue (
id varchar(5),
target varchar(50)
);
''')
conn.commit()

cur.close()
conn.close()

0 comments on commit 6514b25

Please sign in to comment.