-
Notifications
You must be signed in to change notification settings - Fork 4
Replace Only Placeholder #24
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
Conversation
|
hi @man715 , can you provide clarity about what changes you are looking to introduce and the problem statement here please? |
I updated the PR with more information. Please let me know if anything else is missing or there needs to be more clarification. @GangGreenTemperTatum |
|
thanks @man715 , following now. can you please provide an example of a robopage function you are running to replicate the example and the output? does it only happen with one function? |
|
It happens with all of the functions. It looks like it may have been a known issue because the templates I've looked at that you all provide have the The |
|
ah thanks @man715 , i see now. checking the this is not an error with the CLI (this repo), its a bug in your additionally, i took your example and merged this into the robopages repo -> dreadnode/robopages#34 try running with: robopages run --function subjack_enum_host_subdomains
>> enter value for argument 'target': www.example.comi tested on my end and LGTM (note, also named the function |
@man715 i believe your hypothesis here is correct on the last statement. however, the information in this PR has been continually vague and your initial robopage which i'd asked for, is different from your latest robopage function example and the issue seems to be moving into different territories due to this lack of information i appreciate you reaching out and providing feedback. but in order to proceed further, please provide the full robopage example as well as the CLI command you are running |



Replace Only Placeholder
Key Changes:
The biggest change is to only replace the place holder instead of the entire line of an argument. For example if the placeholder is ${target} the current code will replace the entire line that the pattern is found. My proposition is that only the placeholder be replaced.
This change allows for using that in other parts of an argument such as a tool's output. Since in the output you need to specify the location /data/example-output.txt. If you use the ${target} inside of that output, it will wipe out everything you put on that line and just have the result of ${target}
Let's say ${target} == google.com and you want to have the output of a tool be saved as tool-google.com.txt. You would put in the cmdline arguments section of the yml file.
-o /data/tool-${target}.txt. This will currently outputgoogle.com. You lose the-o /data/tool-with the current way robopages-cli replaces the text.