Skip to content

Commit

Permalink
just prepare-for-codereview
Browse files Browse the repository at this point in the history
  • Loading branch information
iustinum committed Mar 6, 2025
1 parent 4f6e227 commit 28ff5d5
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 8 deletions.
16 changes: 16 additions & 0 deletions docs/assets/apiclient.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
16 changes: 16 additions & 0 deletions docs/assets/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
18 changes: 17 additions & 1 deletion docs/assets/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -10,4 +26,4 @@ services:
- PUID=${PUID}
- PGID=${PGID}
volumes:
- ${ROOT}/azurehound:/config
- ${ROOT}/azurehound:/config
3 changes: 1 addition & 2 deletions packages/go/cypher/models/pgsql/test/translation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions packages/go/cypher/models/pgsql/translate/building.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package translate

import (
"errors"

"github.com/specterops/bloodhound/cypher/models/pgsql"
)

Expand Down
1 change: 1 addition & 0 deletions packages/go/cypher/models/pgsql/translate/expansion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions packages/go/cypher/models/pgsql/translate/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 16 additions & 0 deletions packages/go/dawgs/drivers/pg/query/sql/bidirectional_bfs_test.sql
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const General: FC<EdgeInfoProps> = () => {
</Typography>

<Typography variant='body2'>
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.
</Typography>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const CoerceAndRelayNTLMToLDAP = {
linuxAbuse: LinuxAbuse,
opsec: Opsec,
references: References,

};

export default CoerceAndRelayNTLMToLDAP;
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const CoerceAndRelayNTLMToLDAPS = {
windowsAbuse: WindowsAbuse,
linuxAbuse: LinuxAbuse,
opsec: Opsec,
references: References
references: References,
};

export default CoerceAndRelayNTLMToLDAPS;
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const CoerceAndRelayNTLMToSMB = {
linuxAbuse: LinuxAbuse,
opsec: Opsec,
references: References,

};

export default CoerceAndRelayNTLMToSMB;

0 comments on commit 28ff5d5

Please sign in to comment.