Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SkelSec committed Jul 2, 2024
1 parent fd74aac commit b3ecc7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions msldap/examples/msldapbloodhound.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import asyncio
from msldap.bloodhound import MSLDAPDump2Bloodhound

async def amain():
args = parser.parse_args()
msldap = MSLDAPDump2Bloodhound(args.url)
async def amain(url):
msldap = MSLDAPDump2Bloodhound(url)
await msldap.run()

def main():
Expand All @@ -13,7 +12,8 @@ def main():
print("""
WARNING: This script is still in development. It is not guaranteed to provide the same results as the original Bloodhound collector.
""")
asyncio.run(amain())
args = parser.parse_args()
asyncio.run(amain(args.url))

if __name__ == '__main__':
main()

0 comments on commit b3ecc7a

Please sign in to comment.