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

Return early if the input is the plaintext #115

Merged
merged 6 commits into from
Nov 30, 2022
Merged

Conversation

bee-san
Copy link
Owner

@bee-san bee-san commented Nov 30, 2022

Currently Ares doesn't check the initial input with its checkers. This causes weird printing like this:

cargo run -- -t '192.168.0.1'
I think the plaintext is a Internet Protocol (IP) Address Version 4.
Possible plaintext: '192.168.0.1' (y/N):
y
Ares has decoded 111 times
SUCCESSFUL 😁
PLAINTEXT: ["192.168.0.1"]
DECODERS USED: Reverse → Reverse

With this PR Ares returns early if the input passes any of our checkers.

This is enabled in lib.rs which is used both by the API and the CLI.

src/lib.rs Show resolved Hide resolved
@SkeletalDemise SkeletalDemise merged commit 5476c69 into main Nov 30, 2022
@SkeletalDemise SkeletalDemise deleted the bee-early-exit branch November 30, 2022 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants