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

Error in input handling #786

Closed
rizwansiddiqu1-recon opened this issue Feb 27, 2024 · 2 comments
Closed

Error in input handling #786

rizwansiddiqu1-recon opened this issue Feb 27, 2024 · 2 comments

Comments

@rizwansiddiqu1-recon
Copy link

my module: [{ "command":"bash /home/op/my-tool/test.sh input", "ext":"none" }]

Axiom command : axiom-scan input_file.txt -m test
input_file :

test.com
example.com

test.sh content:

#!/bin/bash

if [ ! -f "$domains_file" ]; then
    echo "Error: Please provide a valid input file."
    exit 1
fi

while read -r domain || [[ -n "$domain" ]]; do
    echo $domain
done < "${1:-/dev/stdin}"

ERROR: Error: Please provide a valid input file.

sometime before it is running without any problem with same script.

@0xtavian
Copy link
Collaborator

@rizwansiddiqu1-recon running this code snippet locally produces the same error.

$ cat input
test.com
example.com
$ cat test.sh
#!/bin/bash

if [ ! -f "$domains_file" ]; then
    echo "Error: Please provide a valid input file."
    exit 1
fi

while read -r domain || [[ -n "$domain" ]]; do
    echo $domain
done < "${1:-/dev/stdin}"
$ ./test.sh input
Error: Please provide a valid input file.

I suspect there is something wrong with ur script?

@rizwansiddiqu1-recon
Copy link
Author

yup got the issue.

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

No branches or pull requests

2 participants