Skip to content

Instantly share code, notes, and snippets.

@iamramahibrah
Created June 22, 2021 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamramahibrah/09eea871f788767f54c254ad83c2404f to your computer and use it in GitHub Desktop.
Save iamramahibrah/09eea871f788767f54c254ad83c2404f to your computer and use it in GitHub Desktop.
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