Fetch the repository succeeded.
This action will force synchronization from 好雨科技/rainbond-console, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
import hashlib
import platform
import socket
import uuid
def get_system_info():
# 获取CPU信息
cpu_info = platform.processor()
# 获取IP地址
try:
hostname = socket.gethostname()
ip_address = socket.gethostbyname(hostname)
except socket.gaierror:
ip_address = "N/A"
# 获取MAC地址
mac_address = ':'.join(['{:02x}'.format((uuid.getnode() >> elements) & 0xff) for elements in range(5, -1, -1)])
return f"CPU: {cpu_info}\nIP: {ip_address}\nMAC: {mac_address}"
def calculate_md5(data):
md5_hash = hashlib.md5()
md5_hash.update(data.encode('utf-8'))
return md5_hash.hexdigest()
def get_hash_mac():
system_info = get_system_info()
return calculate_md5(system_info)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。