PY
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
# ⚠️ The code itself isn't harmful, but it does reveal sensitive system information, including files and folders. This means that anyone could potentially open any folder and even read files, even if that capability isn't immediately obvious. This creates a security risk, as it allows unauthorized access to folders and files for malicious purposes. There's even a chance that sensitive data from SoloLearn could be exposed! ⚠️
# Sololearn should fix this issue
# Coder: Ferdous
import os, time
print(f'''▶ User: {os.popen("whoami").read().strip()}
▶ Current time (system): {time.strftime("%Y-%m-%d %H:%M:%S")}
▶ OS Info: {os.popen("uname -a").read().strip()}
▶ RAM Info: {os.popen("free -h").read().strip()}
▶ CPU Info: {os.popen("lscpu").read().strip()}
▶ Disk Usage: {os.popen("df -h").read().strip()}
▶ Uptime: {os.popen("uptime").read().strip()}
▶ Files and Folders List:
=================
''')
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run