summaryrefslogtreecommitdiff
path: root/hostinfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'hostinfo.py')
-rw-r--r--hostinfo.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/hostinfo.py b/hostinfo.py
new file mode 100644
index 0000000..88c2535
--- /dev/null
+++ b/hostinfo.py
@@ -0,0 +1,12 @@
+import uuid
+import platform
+
+def get_mac_address():
+ mac=uuid.UUID(int = uuid.getnode()).hex[-12:]
+ return ":".join([mac[e:e+2] for e in range(0,11,2)])
+
+def get_operate_sys():
+ return platform.platform()
+
+
+