Skip to content

Commit

Permalink
[werk] sploit fix for victimAddress passing
Browse files Browse the repository at this point in the history
  • Loading branch information
rkhapov committed Nov 7, 2023
1 parent 848b08a commit a24ccc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sploits/werk/werk.sploit.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func GetBaseHash(data string) string {
return base64.URLEncoding.EncodeToString(hasher.Sum(nil))
}

func bruteforce(username string, salts map[string]bool) {
func bruteforce(victimAddress, username string, salts map[string]bool) {
for salt := range salts {
// attempt to /get_info with token = sha1(username + salt)

Expand All @@ -55,6 +55,7 @@ func bruteforce(username string, salts map[string]bool) {
func main() {
// get intrested minute and username from cs by public flag id
username := "some user to attack"
victimAddress := "10.10.10.10"
intrestedMinuteStart := time.Now().UnixMilli()
salts := make(map[string]bool)

Expand Down

0 comments on commit a24ccc0

Please sign in to comment.