Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding color #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions iis_shortname_Scan.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _scan_worker(self):
url, ext = self.queue.get(timeout=1.0)
status = self._get_status(url + '*~1' + ext + '/1.aspx')
if status == 404:
self.msg_queue.put('[+] %s~1%s\t[scan in progress]' % (url, ext))
self.msg_queue.put('\033[92m[+]\033[00m %s~1%s\t\033[93m[scan in progress]\033[00m' % (url, ext))

if len(url) - len(self.path)< 6: # enum first 6 chars only
for c in self.alphanum:
Expand All @@ -109,11 +109,11 @@ def _scan_worker(self):

if ext == '':
self.dirs.append(url + '~1')
self.msg_queue.put('[+] Directory ' + url + '~1\t[Done]')
self.msg_queue.put('\033[92m[+]\033[00m Directory ' + url + '~1\t\033[92m[Done]\033[00m')

elif len(ext) == 5 or (not ext.endswith('*')): # .asp*
self.files.append(url + '~1' + ext)
self.msg_queue.put('[+] File ' + url + '~1' + ext + '\t[Done]')
self.msg_queue.put('\033[92m[+]\033[00m File ' + url + '~1' + ext + '\t\033[92m[Done]\033[00m')

else:
for c in 'abcdefghijklmnopqrstuvwxyz0123456789':
Expand Down