Browse Source

password dialog added and console_bottombar updated

master
Dirk Alders 1 year ago
parent
commit
9b2141ff55
2 changed files with 3 additions and 2 deletions
  1. 1
    1
      console_bottombar
  2. 2
    1
      mqtt_sniffer.py

+ 1
- 1
console_bottombar

1
-Subproject commit ff0434370a4229019a2cefcb01bb159325ff96b2
1
+Subproject commit fa26893496c744f416a1ee0193824075b3709330

mqtt-sniffer.py → mqtt_sniffer.py View File

1
 import argparse
1
 import argparse
2
 from console_bottombar import BottomBar
2
 from console_bottombar import BottomBar
3
+import getpass
3
 import json
4
 import json
4
 import mqtt
5
 import mqtt
5
 import os
6
 import os
58
     if not args.no_credentials:
59
     if not args.no_credentials:
59
         if args.username == None:
60
         if args.username == None:
60
             args.username = input("Username: ")
61
             args.username = input("Username: ")
61
-        password = ""
62
+        password = getpass.getpass(prompt='Password: ', stream=None) 
62
     else:
63
     else:
63
         password = None
64
         password = None
64
 
65
 

Loading…
Cancel
Save