diff --git a/docs/assets/apiclient.py b/docs/assets/apiclient.py index 35f52af1b0..05a1969b71 100644 --- a/docs/assets/apiclient.py +++ b/docs/assets/apiclient.py @@ -1,3 +1,19 @@ +# Copyright 2025 Specter Ops, Inc. +# +# Licensed under the Apache License, Version 2.0 +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + """ To utilize this example please install requests. The rest of the dependencies are part of the Python 3 standard library. diff --git a/docs/assets/deployment.yaml b/docs/assets/deployment.yaml index e365b382de..dff9ea8d43 100644 --- a/docs/assets/deployment.yaml +++ b/docs/assets/deployment.yaml @@ -1,3 +1,19 @@ +# Copyright 2025 Specter Ops, Inc. +# +# Licensed under the Apache License, Version 2.0 +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/docs/assets/docker-compose.yaml b/docs/assets/docker-compose.yaml index a43f3ad6f4..8d9de4dd7a 100644 --- a/docs/assets/docker-compose.yaml +++ b/docs/assets/docker-compose.yaml @@ -1,3 +1,19 @@ +# Copyright 2025 Specter Ops, Inc. +# +# Licensed under the Apache License, Version 2.0 +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + version: "3.8" services: azurehound: @@ -10,4 +26,4 @@ services: - PUID=${PUID} - PGID=${PGID} volumes: - - ${ROOT}/azurehound:/config \ No newline at end of file + - ${ROOT}/azurehound:/config diff --git a/packages/go/cypher/models/pgsql/test/translation_test.go b/packages/go/cypher/models/pgsql/test/translation_test.go index 8221b2ab7a..cdf8c0644d 100644 --- a/packages/go/cypher/models/pgsql/test/translation_test.go +++ b/packages/go/cypher/models/pgsql/test/translation_test.go @@ -55,12 +55,11 @@ func TestTranslate(t *testing.T) { ) if updateCases, varSet := os.LookupEnv("CYSQL_UPDATE_CASES"); varSet && strings.ToLower(strings.TrimSpace(updateCases)) == "true" { - if err := UpdateTranslationTestCases(kindMapper); err != nil { + if err := UpdateTranslationTestCases(kindMapper); err != nil { fmt.Printf("Error updating cases: %v\n", err) } } - if testCases, err := ReadTranslationTestCases(); err != nil { t.Fatal(err) } else { diff --git a/packages/go/cypher/models/pgsql/translate/building.go b/packages/go/cypher/models/pgsql/translate/building.go index 11694c6073..874a96587f 100644 --- a/packages/go/cypher/models/pgsql/translate/building.go +++ b/packages/go/cypher/models/pgsql/translate/building.go @@ -18,6 +18,7 @@ package translate import ( "errors" + "github.com/specterops/bloodhound/cypher/models/pgsql" ) diff --git a/packages/go/cypher/models/pgsql/translate/expansion.go b/packages/go/cypher/models/pgsql/translate/expansion.go index b4456b73a0..ead549e821 100644 --- a/packages/go/cypher/models/pgsql/translate/expansion.go +++ b/packages/go/cypher/models/pgsql/translate/expansion.go @@ -18,6 +18,7 @@ package translate import ( "fmt" + "github.com/specterops/bloodhound/cypher/models" "github.com/specterops/bloodhound/cypher/models/pgsql" "github.com/specterops/bloodhound/cypher/models/pgsql/format" diff --git a/packages/go/cypher/models/pgsql/translate/format.go b/packages/go/cypher/models/pgsql/translate/format.go index f234a35568..4bb46021cb 100644 --- a/packages/go/cypher/models/pgsql/translate/format.go +++ b/packages/go/cypher/models/pgsql/translate/format.go @@ -19,6 +19,7 @@ package translate import ( "bytes" "context" + "github.com/specterops/bloodhound/cypher/models/cypher" cypherFormat "github.com/specterops/bloodhound/cypher/models/cypher/format" "github.com/specterops/bloodhound/cypher/models/pgsql" diff --git a/packages/go/dawgs/drivers/pg/query/sql/bidirectional_bfs_test.sql b/packages/go/dawgs/drivers/pg/query/sql/bidirectional_bfs_test.sql index a6d3c4d560..98f4524305 100644 --- a/packages/go/dawgs/drivers/pg/query/sql/bidirectional_bfs_test.sql +++ b/packages/go/dawgs/drivers/pg/query/sql/bidirectional_bfs_test.sql @@ -1,3 +1,19 @@ +-- Copyright 2025 Specter Ops, Inc. +-- +-- Licensed under the Apache License, Version 2.0 +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- SPDX-License-Identifier: Apache-2.0 + -- insert into next_front (root_id, next_id, depth, satisfied, is_cycle, path) select e.start_id, e.end_id, 1, e.end_id = 2579859, e.start_id = e.end_id, array [e.id] from edge e where e.start_id = 6746823; -- insert into next_front (root_id, next_id, depth, satisfied, is_cycle, path) select r.root_id, e.end_id, 1, e.end_id = 2579859, e.id = any (r.path), r.path || e.id from root_front r join edge e on e.start_id = r.next_id; -- insert into next_front (root_id, next_id, depth, satisfied, is_cycle, path) select e.end_id, e.start_id, 1, e.start_id = 6746823, e.start_id = e.end_id, array [e.id] from edge e where e.end_id = 2579859; diff --git a/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToADCS/General.tsx b/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToADCS/General.tsx index a18610aa78..290d654efd 100644 --- a/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToADCS/General.tsx +++ b/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToADCS/General.tsx @@ -30,8 +30,8 @@ const General: FC = () => { - Click on Relay Targets to view the certificate templates and vulnerable enterprise CA servers that enable - certificate enrollment for the target computer. + Click on Relay Targets to view the certificate templates and vulnerable enterprise CA servers that + enable certificate enrollment for the target computer. ); diff --git a/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToLDAP/CoerceAndRelayNTLMToLDAP.tsx b/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToLDAP/CoerceAndRelayNTLMToLDAP.tsx index 14654925fb..22a5e5dc26 100644 --- a/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToLDAP/CoerceAndRelayNTLMToLDAP.tsx +++ b/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToLDAP/CoerceAndRelayNTLMToLDAP.tsx @@ -28,7 +28,6 @@ const CoerceAndRelayNTLMToLDAP = { linuxAbuse: LinuxAbuse, opsec: Opsec, references: References, - }; export default CoerceAndRelayNTLMToLDAP; diff --git a/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToLDAPS/CoerceAndRelayNTLMToLDAPS.tsx b/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToLDAPS/CoerceAndRelayNTLMToLDAPS.tsx index ecf520bbf4..2cc4a3b675 100644 --- a/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToLDAPS/CoerceAndRelayNTLMToLDAPS.tsx +++ b/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToLDAPS/CoerceAndRelayNTLMToLDAPS.tsx @@ -27,7 +27,7 @@ const CoerceAndRelayNTLMToLDAPS = { windowsAbuse: WindowsAbuse, linuxAbuse: LinuxAbuse, opsec: Opsec, - references: References + references: References, }; export default CoerceAndRelayNTLMToLDAPS; diff --git a/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToSMB/CoerceAndRelayNTLMToSMB.tsx b/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToSMB/CoerceAndRelayNTLMToSMB.tsx index f845f082be..26976b3b71 100644 --- a/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToSMB/CoerceAndRelayNTLMToSMB.tsx +++ b/packages/javascript/bh-shared-ui/src/components/HelpTexts/CoerceAndRelayNTLMToSMB/CoerceAndRelayNTLMToSMB.tsx @@ -28,7 +28,6 @@ const CoerceAndRelayNTLMToSMB = { linuxAbuse: LinuxAbuse, opsec: Opsec, references: References, - }; export default CoerceAndRelayNTLMToSMB;