Created
March 30, 2021 05:56
-
-
Save iamramahibrah/abdfc09e051a09700a39ba0e74e4ab31 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket, getmac | |
#user_info_function | |
def userinfo(): | |
host = socket.gethostname() | |
ip = socket.gethostbyname(host) | |
mac = getmac.get_mac_address() | |
print("Host name : ",host) | |
print("Ip Address : ",ip) | |
print("Mac Address : ",ip) | |
userinfo() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment