Skip to content

Commit

Permalink
BED-5328 prepare for code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mvlipka committed Mar 3, 2025
1 parent ac30014 commit 93f6487
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 7 deletions.
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 93f6487

Please sign in to comment.