Open specters312 opened 1 year ago
Did a local build and as expected this accepts any string type and just continues so should probably actually validate if proper region but this assumes you have some knowledge of aws and how to specify the proper region. so please do not pass bad region 👍🏽
nuclearpond run -t example.com --region us-east-2 -f function-example -a $(echo -ne "-t dns" | base64) -o cmd -b 1
2023/10/14 17:32:43 Running nuclei against the target example.com
2023/10/14 17:32:43 Running with 1 threads
2023/10/14 17:32:46 Scan complete with output:
__ _
____ __ _______/ /__ (_)
/ __ \/ / / / ___/ / _ \/ /
/ / / / /_/ / /__/ / __/ /
/_/ /_/\__,_/\___/_/\___/_/ v2.8.7
projectdiscovery.io
[INF] nuclei-templates are not installed, installing...
[ERR] Could not update templates: Version string empty
[ERR] Could not read nuclei-ignore file: open /tmp/.config/nuclei/.nuclei-ignore: no such file or directory
[ERR] Could not find template 'dns': could not find template file: no such path found: dns
[INF] Using Nuclei Engine 2.8.7
[INF] Using Nuclei Templates
[INF] Targets loaded for scan: 1
[INF] No results found. Better luck next time!
[FTL] Could not run nuclei: no valid templates were found
2023/10/14 17:32:46 Completed all parallel operations, best of luck! Completed in 3.586876938s
nuclearpond run -t example.com -r not-real-region -f function-example -a $(echo -ne "-t dns" | base64) -o cmd -b 1
2023/10/14 17:29:54 Running nuclei against the target example.com
2023/10/14 17:29:54 Running with 1 threads
2023/10/14 17:29:55 Failed to invoke lambda function: RequestError: send request failed
caused by: Post "https://lambda.not-real-region.amazonaws.com/2015-03-31/functions/function-example/invocations": dial tcp: lookup lambda.not-real-region.amazonaws.com on 172.30.64.1:53: no such host
Hi yeah I just didn't like the hardcoding of region so this should fix it. Their isn't any exception handling if you mess up the region but like just don't do that :D