Commits

Tim Tomes  committed 8b50927

changed the name of the status function.

  • Participants
  • Parent commits f435bce

Comments (0)

Files changed (1)

File peepingtom.py

     try:
         for target in targets:
             #print '[*] %s' % (target)
-            status(cnt, tot)
+            printProgress(cnt, tot)
             filename = '%s.png' % re.sub('\W','',target)
             filepath = '%s/%s' % (directory, filename)
             getCapture(target, filepath, timeout)
             cnt += 1
-            status(cnt, tot)
+            printProgress(cnt, tot)
             target_data = {}
             target_data['url'] = target
             target_data['path'] = filename
             target_data['headers'] = getHeaders(target, timeout)
             db['targets'].append(target_data)
             cnt += 1
-        print status(1,1)
+        print printProgress(1,1)
     except Exception as e:
         print '[!] %s' % (e.__str__())
     
     if stderr: response += str(stderr)
     return proc.returncode, response.strip()
 
-def status(cnt, tot):
+def printProgress(cnt, tot):
     percent = 100 * float(cnt) / float(tot)
     sys.stdout.write('[%-40s] %d%%\r' % ('='*int(float(percent)/100*40), percent))
     sys.stdout.flush()