Added web-api-pentest prototype#47
Merged
andreashappe merged 13 commits intoipa-lab:mainfrom May 16, 2024
Merged
Conversation
…get better results for documentation
usecases/web/simple.py
Outdated
| class MinimalWebTesting(RoundBasedUseCase): | ||
| llm: OpenAILib | ||
| host: str = parameter(desc="The host to test", default="http://localhost") | ||
| host: str = parameter(desc="The host to test", default="https://api.restful-api.dev/objects") |
Member
There was a problem hiding this comment.
using localhost would be nice, so to not attack third-parties
Member
There was a problem hiding this comment.
I would move openapi_spec into the docs directory to make it clear, that this is just an example
usecases/web/simple.py
Outdated
| result = response.execute() | ||
| self.console.print(Panel(result, title="tool")) | ||
| self._prompt_history.append(tool_message(result, tool_call_id)) | ||
| for i in self._prompt_history: |
Member
There was a problem hiding this comment.
this looks like forgotten debug prints, maybe remove?
andreashappe
approved these changes
May 16, 2024
Member
andreashappe
left a comment
There was a problem hiding this comment.
thank you for implementing the change suggestions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I added two use-cases (SimpleWebAPIDocumentation and SimpleWebAPITesting) and a Prompt Engineer.
The Prompt Engineer is responsible for generating prompts based on three different prompt strategies (In-context learning, chain-of-thought, tree-of-thought)