Skip to content

Commit

Permalink
adding additional checks for operator status
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Nov 5, 2024
1 parent 4d95dc8 commit badb562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythic-docker/src/rabbitmq/util_request_opsec_bypass.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func RequestOpsecBypass(input RequestOpsecBypassMessage) RequestOpsecBypassMessa
FROM operatoroperation
JOIN operator ON operatoroperation.operator_id = operator.id
WHERE operatoroperation.operation_id=$1 AND operatoroperation.view_mode!=$2
AND operator.account_type!=$3`,
AND operator.account_type!=$3 AND operator.active=true AND operator.deleted=false`,
input.OperatorOperation.CurrentOperation.ID,
database.OPERATOR_OPERATION_VIEW_MODE_SPECTATOR,
databaseStructs.AccountTypeBot); err != nil {
Expand Down Expand Up @@ -144,7 +144,7 @@ func RequestOpsecBypass(input RequestOpsecBypassMessage) RequestOpsecBypassMessa
FROM operatoroperation
JOIN operator ON operatoroperation.operator_id = operator.id
WHERE operatoroperation.operation_id=$1 AND operatoroperation.view_mode!=$2
AND operator.account_type!=$3`,
AND operator.account_type!=$3 AND operator.active=true AND operator.deleted=false`,
input.OperatorOperation.CurrentOperation.ID,
database.OPERATOR_OPERATION_VIEW_MODE_SPECTATOR,
databaseStructs.AccountTypeBot); err != nil {
Expand Down

0 comments on commit badb562

Please sign in to comment.