Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ac0d3r committed Jul 30, 2022
1 parent 5888bbf commit 09797b5
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 deletions.
6 changes: 0 additions & 6 deletions .github/dependabot.yml

This file was deleted.

4 changes: 1 addition & 3 deletions .github/workflows/release.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# 更新说明
- 优化 cmd parse
- 优化 Runner & Worker
- 添加通知机器人(dingdingbot)
- 支持 window.Storage 来源检测
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@
.vscode/
.DS_Store
chrome/xss/dom/intercepted_test.go
notifier.yaml
notifier.yaml
# notes:
xss.md
xss.pdf
2 changes: 1 addition & 1 deletion cmd/xssfinder/xssfinder.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/Buzz2d0/xssfinder/internal/app"
)

const version = "v0.1.0"
const version = "v0.1.2"

func main() {
a := app.New(version)
Expand Down
8 changes: 4 additions & 4 deletions pkg/chrome/xss/dom/dom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ func TestMain(m *testing.M) {
}

func TestDom(t *testing.T) {
url := "http://localhost:8080/dom_test.html#123232"
url := "https://public-firing-range.appspot.com/dom/toxicdom/localStorage/function/eval"
opts := append(chromedp.DefaultExecAllocatorOptions[:],
chromedp.Flag("headless", true),
// chromedp.ProxyServer("http://127.0.0.1:7890"),
chromedp.Flag("headless", false),
chromedp.ProxyServer("http://127.0.0.1:7890"),
)

var (
Expand All @@ -39,7 +39,7 @@ func TestDom(t *testing.T) {
}()

vuls := make([]VulPoint, 0)
if err := chromedp.Run(ctx, GenTasks(url, &vuls, time.Second*8)); err != nil {
if err := chromedp.Run(ctx, GenTasks(url, &vuls, time.Minute*1)); err != nil {
t.Log(err)
}

Expand Down
11 changes: 11 additions & 0 deletions pkg/chrome/xss/dom/hookparse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ const sum = new Function('a', 'b', 'return a + b');
t.Log(HookParse(code))
}

func TestExpression(t *testing.T) {
code := `// document.cookie = '1123';
var payload = location.hash.substr(1);
window.status = payload;
var retrieved_payload = window.status;
eval(retrieved_payload);
`

t.Log(HookParse(code))
}

func TestJsParser(t *testing.T) {
code := `
// a=={"a":"1.2", b:2.2};
Expand Down

0 comments on commit 09797b5

Please sign in to comment.