forked from rndinfosecguy/Scavenger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatus.py
37 lines (27 loc) · 1.62 KB
/
status.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import sys
import os
import time
raw_pastes_folder = "data/raw_pastes"
raw_pastes_folder_pasteorg = "data/raw_pastes_pasteorg"
password_files_folder = "data/files_with_passwords"
archive_folder = "archive"
while True:
print("""
\t\t ___|
\t\t\___ \ __| _` |\ \ / _ \ __ \ _` | _ \ __|
\t\t | ( ( | \ \ / __/ | | ( | __/ |
\t\t_____/ \___|\__,_| \_/ \___|_| _|\__, |\___|_|
\t\t |___/
""")
print("-----------------------------------------------------")
numfiles_raw_pastes = len([f for f in os.listdir(raw_pastes_folder) if os.path.isfile(os.path.join(raw_pastes_folder, f)) and f[0] != '.'])
numfiles_raw_pastes_pasteorg = len([f for f in os.listdir(raw_pastes_folder_pasteorg) if os.path.isfile(os.path.join(raw_pastes_folder_pasteorg, f)) and f[0] != '.'])
numfiles_password_files = len([f for f in os.listdir(password_files_folder) if os.path.isfile(os.path.join(password_files_folder, f)) and f[0] != '.'])
numfiles_archives = len([f for f in os.listdir(archive_folder) if os.path.isfile(os.path.join(archive_folder, f)) and f[0] != '.'])
print("|\tNumber of raw pastes (Pastebin.com): " + str(numfiles_raw_pastes))
print("|\tNumber of raw pastes (Paste.org): " + str(numfiles_raw_pastes_pasteorg))
print("|\tNumber of files with passwords: " + str(numfiles_password_files))
print("|\tNumber of archives: " + str(numfiles_archives))
print("-----------------------------------------------------")
time.sleep(3)
os.system("clear")