INNER CODE UNIT · Python
getlistindex
idnahacks/GoodHound · goodhound/ghutils.py:7
def getlistindex(lst, key, value):
for index, dic in enumerate(lst):
if dic[key] == value:
return index
def getos():
os = platform
return os
def banner():
print(""" ______ ____ __ __""")
print(""" / ____/___ ____ ____/ / / / /___ __ ______ ____/ /""")
print(""" / / __/ __ \/ __ \/ __ / /_/ / __ \/ / / / __ \/ __ / """)
print("""/ /_/ / /_/ / /_/ / /_/ / __ / /_/ / /_/ / / / / /_/ / """)
print( "\____/\____/\____/\__,_/_/ /_/\____/\__,_/_/ /_/\__,_/ """)
def checkifoutfileexists(file):
while Path(file).exists():