UbuntuForums / wireless-info

This script gathers the infos necessary for troubleshooting a wireless connection and saves them in a text file, wrapping it in an archive if it exceeds the 19.5 kB size limit for '.txt' attachments on the Ubuntu Forums.
153 stars 36 forks source link

Netplan config section contains critical information #16

Closed danielr0815 closed 1 month ago

danielr0815 commented 3 months ago

By using Ubuntu 24.04 the script creates critical infos which conains also the wifi password. I had to replace the password manually by **

##### NetworkManager profiles ###########

##### Netplan config ####################

[/etc/netplan/01-network-manager-all.yaml]
network:
  version: 2
  renderer: NetworkManager

[/etc/netplan/50-cloud-init.yaml]
network:
    ethernets:
        enx843a5b2bc7f3:
            dhcp4: true
    version: 2
    wifis: {}

[/etc/netplan/90-NM-94104522-29f2-4254-8c06-7c03988b7b85.yaml]
network:
  version: 2
  wifis:
    NM-94104522-29f2-4254-8c06-7c03988b7b85:
      renderer: NetworkManager
      match:
        name: "wlo1"
      dhcp4: true
      dhcp6: true
      access-points:
        "LOUNGE":
          auth:
            key-management: "psk"
            password: "************"
          networkmanager:
            uuid: "94104522-29f2-4254-8c06-7c03988b7b85"
            name: "LOUNGE"
            passthrough:
              wifi-security.auth-alg: "open"
              ipv6.addr-gen-mode: "default"
              ipv6.ip6-privacy: "-1"
              proxy._: ""
      networkmanager:
        uuid: "94104522-29f2-4254-8c06-7c03988b7b85"
        name: "LOUNGE"
jeremyb31 commented 1 month ago

Did you run the command using sudo?

danielr0815 commented 1 month ago

Did you run the command using sudo?

Yes exactly. If I run the script without sudo, passwords are not included.

jeremyb31 commented 1 month ago

And where did you see that recommended to run the script using sudo? The script has sudo built in where it is needed and those results are filtered. I do have a pending commit that should fix

jeremyb31 commented 1 month ago

Try a fresh download of the script and see if the issue still exists

danielr0815 commented 1 month ago

Yes, the line with the password is not included anymore... the problem is fixed.

Thanks!