Skip to content

Commit

Permalink
add output to screen that the account is not a dba
Browse files Browse the repository at this point in the history
  • Loading branch information
milo2012 committed Sep 11, 2013
1 parent bf87bb0 commit 7ea63c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oracle_pillage/ora_pillage.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def dataExtract(username,password,hostname,sid,sample):
print e
tableNames = []
if "table or view does not exist" in str(e):
print colored("\n[!] Account is not a DBA","blue",attrs=['bold'])
orcl2 = cx_Oracle.connect(username+"/"+password+"@"+hostname+":1521/"+sid)
curs2 = orcl2.cursor()
curs2.execute("SELECT table_name FROM user_tables")
Expand Down

0 comments on commit 7ea63c0

Please sign in to comment.