Explorar el Código

password dialog added and console_bottombar updated

master
Dirk Alders hace 1 año
padre
commit
9b2141ff55
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 1
    1
      console_bottombar
  2. 2
    1
      mqtt_sniffer.py

+ 1
- 1
console_bottombar

@@ -1 +1 @@
1
-Subproject commit ff0434370a4229019a2cefcb01bb159325ff96b2
1
+Subproject commit fa26893496c744f416a1ee0193824075b3709330

mqtt-sniffer.py → mqtt_sniffer.py Ver fichero

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

Loading…
Cancelar
Guardar