Skip to content

Commit cc6761d

Browse files
committed
python2-3 compatible
1 parent edb07f2 commit cc6761d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

check_for_sqlite_files.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
# Description : Scans directories to check if there are any sqlite files in there
1010

11+
from __future__ import print_function
1112
import os
1213

1314
def isSQLite3(filename):
@@ -31,9 +32,10 @@ def isSQLite3(filename):
3132
for r,d,f in os.walk(r'.'):
3233
for files in f:
3334
if isSQLite3(files):
34-
print files
35-
print "[+] '%s' **** is a SQLITE database file **** " % os.path.join(r,files)
35+
print(files)
36+
print("[+] '%s' **** is a SQLITE database file **** " % os.path.join(r,files))
3637
log.write("[+] '%s' **** is a SQLITE database file **** " % files+'\n')
3738
else:
3839
log.write("[-] '%s' is NOT a sqlite database file" % os.path.join(r,files)+'\n')
3940
log.write("[-] '%s' is NOT a sqlite database file" % files+'\n')
41+

0 commit comments

Comments
 (0)