mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
Merge pull request #690 from shariqmalik/fixes
Fixed bh_owned error on non-existing values
This commit is contained in:
@@ -75,7 +75,10 @@ class CMEModule:
|
||||
result = tx.run(
|
||||
"MATCH (c:Computer {{name:\"{}\"}}) SET c.owned=True RETURN c.name AS name".format(host_fqdn))
|
||||
record = result.single()
|
||||
value = record.value()
|
||||
try:
|
||||
value = record.value()
|
||||
except AttributeError:
|
||||
value = []
|
||||
if len(value) > 0:
|
||||
context.log.success("Node {} successfully set as owned in BloodHound".format(host_fqdn))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user