Skip to content

Commit 4e23c19

Browse files
committed
Bumped bhopengraph>=1.3.0
1 parent 989edf5 commit 4e23c19

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
argcomplete
22
impacket
3-
bhopengraph>=1.1.0
3+
bhopengraph>=1.3.0
44
sectools>=1.5.1
55
pycryptodome>=3.23.0
66
lark

sharehound/collector/opengraph_context.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ def add_path_to_graph(self) -> None:
7272
# Set base host and share nodes
7373
if self.host is None:
7474
return None
75-
self.graph.add_node(self.host)
75+
self.graph.add_node_without_validation(self.host)
7676

7777
share_node, share_rights = self.share
7878
if share_node is None:
7979
return None
80-
self.graph.add_node(share_node)
80+
self.graph.add_node_without_validation(share_node)
8181
self.add_rights_to_graph(share_node.id, share_rights)
8282

8383
# Add edge [HasNetworkShare] from host to share
84-
self.graph.add_edge(
84+
self.graph.add_edge_without_validation(
8585
Edge(
8686
start_node=self.host.id,
8787
end_node=share_node.id,
@@ -96,9 +96,9 @@ def add_path_to_graph(self) -> None:
9696
parent_id = share_node.id
9797
for directory in self.path:
9898
directory_node, directory_rights = directory
99-
self.graph.add_node(directory_node)
99+
self.graph.add_node_without_validation(directory_node)
100100
self.add_rights_to_graph(directory_node.id, directory_rights)
101-
self.graph.add_edge(
101+
self.graph.add_edge_without_validation(
102102
Edge(
103103
start_node=parent_id,
104104
end_node=directory_node.id,
@@ -115,10 +115,10 @@ def add_path_to_graph(self) -> None:
115115
element_node, element_rights = self.element
116116
if element_node is None:
117117
return None
118-
self.graph.add_node(element_node)
118+
self.graph.add_node_without_validation(element_node)
119119
self.add_rights_to_graph(element_node.id, element_rights)
120120

121-
self.graph.add_edge(
121+
self.graph.add_edge_without_validation(
122122
Edge(
123123
start_node=parent_id,
124124
end_node=element_node.id,

0 commit comments

Comments
 (0)