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

Fixed Region bug #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

specters312
Copy link

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

@specters312
Copy link
Author

specters312 commented Oct 15, 2023

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 👍🏽

Good Input

nuclearpond run -t example.com --region us-east-2 -f function-example -a $(echo -ne "-t dns" | base64) -o cmd -b 1

returns good result but now I need to fix template

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

Bad Input - Do not mess up region

nuclearpond run -t example.com -r not-real-region -f function-example -a $(echo -ne "-t dns" | base64) -o cmd -b 1

Response

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

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.

1 participant