Преглед изворни кода

drk: script kiddies be gone

skoupidi пре 2 година
родитељ
комит
8c8db819f2
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      bin/drk/src/main.rs

+ 6 - 0
bin/drk/src/main.rs

@@ -486,6 +486,12 @@ impl Drk {
         endpoint: Url,
         ex: Arc<smol::Executor<'static>>,
     ) -> Result<Self> {
+        // 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() {