Created
June 22, 2021 20:39
-
-
Save iamramahibrah/09eea871f788767f54c254ad83c2404f 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
def int(): | |
import netifaces | |
interface = netifaces.gateways()['default'][netifaces.AF_INET] | |
print("===[Network Information]===") | |
print ("==>", *interface) | |
int() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment