commit
3540574f91
@ -0,0 +1,13 @@ |
||||
diff --git i/main.go w/main.go
|
||||
index bf80f3d..632f7d6 100644
|
||||
--- i/main.go
|
||||
+++ w/main.go
|
||||
@@ -174,7 +174,7 @@ func handleAuthRequest(res http.ResponseWriter, r *http.Request) {
|
||||
case plugins.ErrNoValidUserFound:
|
||||
// No valid user found, check whether special anonymous "user" has access
|
||||
// Username is set to 0x0 character to prevent accidental whitelist-match
|
||||
- if mainCfg.ACL.HasAccess(string(0x0), nil, r) {
|
||||
+ if mainCfg.ACL.HasAccess(string(rune(0x0)), nil, r) {
|
||||
mainCfg.AuditLog.Log(auditEventValidate, r, map[string]string{"result": "anonymous access granted"}) // #nosec G104 - This is only logging
|
||||
res.WriteHeader(http.StatusOK)
|
||||
return
|
@ -0,0 +1,32 @@ |
||||
{ lib, fetchFromGitHub, rustPlatform, gitUpdater, testers, fsrx }: |
||||
|
||||
rustPlatform.buildRustPackage rec { |
||||
pname = "fsrx"; |
||||
version = "1.0.0"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "coloradocolby"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-pKdxYO8Rhck3UYxqiWHDlrlPS4cAPe5jLUu5Dajop/k="; |
||||
}; |
||||
|
||||
cargoSha256 = "sha256-5h+ou9FLCG/WWMEQPsCTa1q+PovxUJs+6lzQ0L2bKIs="; |
||||
|
||||
passthru = { |
||||
updateScript = gitUpdater { |
||||
inherit pname version; |
||||
rev-prefix = "v"; |
||||
}; |
||||
tests.version = testers.testVersion { |
||||
package = fsrx; |
||||
}; |
||||
}; |
||||
|
||||
meta = with lib; { |
||||
description = "A flow state reader in the terminal"; |
||||
homepage = "https://github.com/coloradocolby/fsrx"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ MoritzBoehme ]; |
||||
}; |
||||
} |
@ -1,4 +1,4 @@ |
||||
# frozen_string_literal: true |
||||
source "https://rubygems.org" |
||||
|
||||
gem "metasploit-framework", git: "https://github.com/rapid7/metasploit-framework", ref: "refs/tags/6.2.1" |
||||
gem "metasploit-framework", git: "https://github.com/rapid7/metasploit-framework", ref: "refs/tags/6.2.2" |
||||
|
Loading…
Reference in new issue