Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Ares cannot decode base64 -> caesar #89

Closed
bee-san opened this issue Nov 17, 2022 · 1 comment
Closed

[BUG] Ares cannot decode base64 -> caesar #89

bee-san opened this issue Nov 17, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@bee-san
Copy link
Owner

bee-san commented Nov 17, 2022

In PR #88 Ares cannot decode it in this order:

cargo run -- -t 'nTIfoT8tq29loTD='
    Finished dev [unoptimized + debuginfo] target(s) in 0.15s
     Running `target/debug/ares -t nTIfoT8tq29loTD=`
FAILED 😭

cargo run -- -t 'dXJ5eWIgamJleXE='
    Finished dev [unoptimized + debuginfo] target(s) in 0.18s
     Running `target/debug/ares -t dXJ5eWIgamJleXE=`
I think the plaintext is a English.txt.
Possible plaintext: 'hello world' (y/N):
y
SUCCESSFUL 😁
PLAINTEXT: "hello world"
DECODERS USED: base64 → Caesar Cipher

Log Analysis

[2022-11-17T15:09:24Z TRACE ares::checkers::english] Checking word aGVsbG8gd29ybGQ= with words_found 0 and input length: 16

Ares decodes the caesar cipher (rot13) to the correct Base64 string:
image

To succeed all it needs to do is run base64 on it.

On the next round of breadth first search Ares reports it does not have any decoders:

[2022-11-17T15:09:24Z TRACE ares::searchers::bfs] Refreshed the vector, []
@bee-san bee-san added the bug Something isn't working label Nov 17, 2022
@bee-san
Copy link
Owner Author

bee-san commented Nov 17, 2022

This is because the caesar decode returns nothing unless the checkers succeed.

We need to return an array of all decoded text so our BFS can work through them all ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant