You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# function returns false if no auth is required, else the challenge string
15
+
sock.put("auth #{Rex::Text.rand_text_alphanumeric(64)}\n")# Cause a login fail to get the challenge. Length is correct, but this has upper chars, subtle diff
16
+
res=sock.get_once(-1,3)# grab challenge
17
+
ifres && res =~ @@AUTH_REQUIRED_REGEX
18
+
return $1
19
+
end
20
+
returnfalse
21
+
end
12
22
13
23
deflogin(pass)
14
24
# based on https://www.varnish-cache.org/trac/wiki/CLI
0 commit comments