File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ def print_callback(message, context):
107107 session .commit ()
108108
109109 # Debug line
110- print (subdomain )
110+ print ("[+] " + subdomain )
111111
112112 # It does exist
113113 if subdomain_exists :
@@ -118,6 +118,9 @@ def print_callback(message, context):
118118 session .query (Subdomain ).filter (Subdomain .id == subdomain_exists .id ).\
119119 update ({'count' : counter })
120120 session .commit ()
121+
122+ if (counter % 50 == 0 ):
123+ print ("[#] " + subdomain + " (seen " + str (counter ) + " times)" )
121124
122125
123126def dump ():
@@ -128,7 +131,7 @@ def dump():
128131 Session .configure (bind = engine )
129132 session = Session ()
130133
131- # Get all the subdomains from the DB
134+ # Get all the subdomains from the DB and sort them by popularity
132135 subdomains = session .execute ("SELECT * FROM subdomains ORDER BY count DESC" ).fetchall ()
133136
134137 # Assuming there's anything in the list...
You can’t perform that action at this time.
0 commit comments