INNER CODE UNIT · Python

getos

idnahacks/GoodHound · goodhound/ghutils.py:12

def getos():
    os = platform
    return os

def banner():
    print("""   ______                ____  __                      __""")
    print("""  / ____/___  ____  ____/ / / / /___  __  ______  ____/ /""")
    print(""" / / __/ __ \/ __ \/ __  / /_/ / __ \/ / / / __ \/ __  / """)
    print("""/ /_/ / /_/ / /_/ / /_/ / __  / /_/ / /_/ / / / / /_/ /  """)
    print(  "\____/\____/\____/\__,_/_/ /_/\____/\__,_/_/ /_/\__,_/   """)

def checkifoutfileexists(file):
        while Path(file).exists():
            stem = Path(file).stem
            newfile = str(Path(file).with_stem(stem + '-' + (datetime.now()).strftime("%Y-%m-%d-%H-%M")))
            file = newfile
        return file

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…