Skip to content

Commit

Permalink
feat(hyperborea-legends): update sploit proto file
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMoshkov committed Nov 1, 2023
1 parent 2347bb1 commit 584779a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
10 changes: 7 additions & 3 deletions sploits/hyperborea-legends/ancestor_grpc/ancestor_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions sploits/hyperborea-legends/ancestor_grpc/ancestor_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,13 @@ class AddDirectAncestorResponse(_message.Message):
SUCCESS_FIELD_NUMBER: _ClassVar[int]
success: bool
def __init__(self, success: bool = ...) -> None: ...

class EmptyRequest(_message.Message):
__slots__ = []
def __init__(self) -> None: ...

class AncestorsCountResponse(_message.Message):
__slots__ = ["count"]
COUNT_FIELD_NUMBER: _ClassVar[int]
count: int
def __init__(self, count: _Optional[int] = ...) -> None: ...
2 changes: 1 addition & 1 deletion sploits/hyperborea-legends/hyperborea-legends.sploit.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def sploit():
# wait for ancestors list transfer to redis
time.sleep(65)

# now we have "reverse" "reverse" uuid => uuid of flag, so we can see burial place of ancestor
# now we have "reverse" of "reverse" uuid => uuid of flag, so we can see burial place of ancestor
ancestor: AncestorData = ancestor_stub.GetAncestor(GetAncestorRequest(id=PUBLIC_FLAG_ID), metadata=metadata)
print(ancestor.burial_place)

Expand Down
10 changes: 9 additions & 1 deletion sploits/hyperborea-legends/protos/ancestor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ service AncestorServ {
rpc GetAncestor(GetAncestorRequest) returns (AncestorData);
rpc CreateAncestor(AncestorData) returns (CreateAncestorResponse);
rpc AddDirectAncestor(AddDirectAncestorRequest) returns (AddDirectAncestorResponse);
rpc GetAncestorsCount(EmptyRequest) returns (AncestorsCountResponse);
}

message GetAncestorRequest {
Expand All @@ -30,4 +31,11 @@ message AddDirectAncestorRequest {

message AddDirectAncestorResponse {
bool success = 1;
}
}

message EmptyRequest {}

message AncestorsCountResponse {
int64 count = 1;
}

0 comments on commit 584779a

Please sign in to comment.