MCPcopy Create free account
hub / github.com/Drac0nids/SeeyonExploit / GenerateTestFile

Function GenerateTestFile

utils/GenerateTestFile.go:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6)
7
8func GenerateTestFile() string {
9 timeUnixNano := time.Now().String()
10 md5str := GetMd5(string(timeUnixNano))
11 err := ioutil.WriteFile(md5str+".txt.txt", []byte(md5str), 0644)
12 PanicErr(err)
13 return md5str
14}

Callers 1

VulScanFunction · 0.92

Calls 2

GetMd5Function · 0.85
PanicErrFunction · 0.85

Tested by

no test coverage detected