MCPcopy Create free account
hub / github.com/Hackmanit/Web-Cache-Vulnerability-Scanner / randInt

Function randInt

pkg/utils.go:263–277  ·  view source on GitHub ↗

* Create a random long integer */

()

Source from the content-addressed store, hash-verified

261
262/* Create a random long integer */
263func randInt() string {
264 min := int64(100000000000)
265 max := int64(999999999999)
266 // Range size
267 rangeSize := max - min + 1
268
269 n, err := rand.Int(rand.Reader, big.NewInt(rangeSize))
270 if err != nil {
271 Print(err.Error(), Red)
272 return "999999999999"
273 }
274
275 result := n.Int64() + min
276 return strconv.FormatInt(result, 10)
277}
278
279func waitLimiter(identifier string) {
280 err := Config.Limiter.Wait(context.Background())

Callers 15

GenerateHeaderStringFunction · 0.85
addCachebusterParameterFunction · 0.85
cachebusterCookieFunction · 0.85
cachebusterHeaderFunction · 0.85
GetWebsiteFunction · 0.85
ScanCookiesFunction · 0.85
ScanForwardingHeadersFunction · 0.85
ForwardHeadersTemplateFunction · 0.85
ScanHeadersFunction · 0.85
ScanParametersFunction · 0.85
ScanFatGETFunction · 0.85
ScanParameterCloakingFunction · 0.85

Calls 1

PrintFunction · 0.85

Tested by

no test coverage detected