gpt4 book ai didi

go - Fuzzer in go 复制 Python 一个

转载 作者:IT王子 更新时间:2023-10-29 01:59:04 26 4
gpt4 key购买 nike

<分区>

我正在为本教程重新创建一个模糊器(实际的模糊器在链接上,它是用 python 编写的):

Link for the tutorial

well actually the objective is to do all of the code but using Go.

**我的问题更多是关于正确的做事方式,在代码中达到大增量数字的过程越来越慢。如果有执行此操作的接口(interface)/库,任何人都有任何想法。或者我在 Go 中忘记的任何可以用来做得更好的功能。:

package main

import (
"fmt"
"net"
"strings"
)

const payload = "\x41"

func main() {
//Banner
fmt.Printf("\nLauching Fuzzer..\n")
payL := strings.Repeat(payload, 50)

for {
payL += strings.Repeat(payload, 50)
conn, err := net.Dial("tcp", "localhost:21")
if err != nil {
fmt.Println("Crash Error: ", err)
}
final_payload := fmt.Sprint("User " + payL + "\r\n")
_, err = conn.Write([]byte(final_payload))
if err != nil {
fmt.Println("Error: ", err)
break
} else {
fmt.Println("Sending buffer with length: ", final_payload)
conn.Close()
}

}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com