From 8c8db819f24ff46ba4cc5137e64d4dbecc4b0f88 Mon Sep 17 00:00:00 2001 From: skoupidi Date: Thu, 25 Jan 2024 18:55:47 +0200 Subject: [PATCH] drk: script kiddies be gone --- bin/drk/src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/drk/src/main.rs b/bin/drk/src/main.rs index cae719b1b..e731e4b12 100644 --- a/bin/drk/src/main.rs +++ b/bin/drk/src/main.rs @@ -486,6 +486,12 @@ impl Drk { endpoint: Url, ex: Arc>, ) -> Result { + // Script kiddies protection + if wallet_pass == "changeme" { + eprintln!("Please don't use default wallet password..."); + exit(2); + } + // Initialize wallet let wallet_path = expand_path(&wallet_path)?; if !wallet_path.exists() {