Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyangXYZ committed May 9, 2018
1 parent b718f7f commit 8da3d0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,11 @@ Just for learn.
- [x] Friendly PoC Interface
- [x] Web GUI(using WebSocket)

## Extension

You only need to implement these interfaces when extending function or poc.

```go
type Gatherer interface {
// Set params.
Set(...interface{})
// Run your function.
Run()
// Report your result.
Report() map[string]interface{}
}
```
## Design Pattern

It's almost same for Attacker and PoC.
I choose **Composite Pattern** to extend function and poc easily.

But I think PoC should also implement `Info() string` interface to return a short brief of the vulnerability.
![](./design-pattern.png)

## Installation

Expand Down
Binary file added design-pattern.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8da3d0a

Please sign in to comment.