Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to get MacAddesses and Vendor information in surroundings Wifi signals?

How to get MacAddesses and Vendor information in surroundings Wifi signals?

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 4 Posters 712 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MijazM Offline
    MijazM Offline
    Mijaz
    wrote on last edited by
    #1

    Respected all;
    Please guide me to find out the mac addresses and their vendors' information using the qt creator application in the surrounding area. After finding this information I want to store them in the list.
    Thanks in advance!

    raven-worxR 1 Reply Last reply
    0
    • MijazM Mijaz

      Respected all;
      Please guide me to find out the mac addresses and their vendors' information using the qt creator application in the surrounding area. After finding this information I want to store them in the list.
      Thanks in advance!

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Mijaz
      Wifi management is outside of the scope of Qt.
      You also didnt mention what OS you are on.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • MijazM Offline
        MijazM Offline
        Mijaz
        wrote on last edited by
        #3

        Hi @raven-worx ;
        Your reply is appreciated! I am using Linux OS where I want to build the application and basically design the WiFi scanner for in which i will show the MacAddress(es) and SSIDs and Vendor of wifi this extracted information will be stored in tabulated form.
        Thanks in advance!

        raven-worxR 1 Reply Last reply
        0
        • MijazM Mijaz

          Hi @raven-worx ;
          Your reply is appreciated! I am using Linux OS where I want to build the application and basically design the WiFi scanner for in which i will show the MacAddress(es) and SSIDs and Vendor of wifi this extracted information will be stored in tabulated form.
          Thanks in advance!

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @Mijaz
          "Linux OS" is still not precise enough.
          If your distribution uses NetworkManager you can use it's D-Bus interface using Qt's dbus classes

          Alternatively parse the output of iw dev wlan0 scan

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          2
          • MijazM Offline
            MijazM Offline
            Mijaz
            wrote on last edited by
            #5

            @raven-worx Hi;
            Thanks for your reply! Kindly give me any source code example.

            1 Reply Last reply
            0
            • MijazM Offline
              MijazM Offline
              Mijaz
              wrote on last edited by
              #6

              Hi @raven-worx ;
              Is it possible to run any other application to run behind the qt application of packet sniffer like wireshark etc.

              artwawA 1 Reply Last reply
              0
              • MijazM Mijaz

                Hi @raven-worx ;
                Is it possible to run any other application to run behind the qt application of packet sniffer like wireshark etc.

                artwawA Offline
                artwawA Offline
                artwaw
                wrote on last edited by
                #7

                @Mijaz you can run whatever you like (within accounts permission bonduary), please see https://doc.qt.io/qt-5/qprocess.html

                For more information please re-read.

                Kind Regards,
                Artur

                1 Reply Last reply
                2
                • MijazM Offline
                  MijazM Offline
                  Mijaz
                  wrote on last edited by
                  #8

                  Hi @artwaw;
                  Thanks for your kind reply! I didn't understand the accounts permission boundary, please elaborate on your reply. Wireshark is another application build in different environments I have only its .exe file which will be run in the qt application behind a button in the qt app. When I press the button the Wireshark application should open.
                  Thanks in Advance!

                  mrjjM artwawA 2 Replies Last reply
                  0
                  • MijazM Mijaz

                    Hi @artwaw;
                    Thanks for your kind reply! I didn't understand the accounts permission boundary, please elaborate on your reply. Wireshark is another application build in different environments I have only its .exe file which will be run in the qt application behind a button in the qt app. When I press the button the Wireshark application should open.
                    Thanks in Advance!

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @Mijaz

                    • accounts permission boundary
                      Meaning any app that currently login user can run.
                      Anything that requires an elevated level might not work.

                    You can try starting Wireshark.exe with QProcess and see if it can just run.

                    1 Reply Last reply
                    0
                    • MijazM Mijaz

                      Hi @artwaw;
                      Thanks for your kind reply! I didn't understand the accounts permission boundary, please elaborate on your reply. Wireshark is another application build in different environments I have only its .exe file which will be run in the qt application behind a button in the qt app. When I press the button the Wireshark application should open.
                      Thanks in Advance!

                      artwawA Offline
                      artwawA Offline
                      artwaw
                      wrote on last edited by
                      #10

                      @Mijaz like @mrjj said.

                      I don't know if you are aware but on Windows you have basic three accounts levels:

                      • Administrator: Administrator accounts are special accounts that are used for making changes to system settings or managing other people's accounts. They have full access to every setting on the computer. Every computer will have at least one Administrator account, and if you're the owner you should already have a password to this account.
                      • Standard: Standard accounts are the basic accounts you use for normal everyday tasks. As a Standard user, you can do just about anything you would need to do, such as running software or personalizing your desktop.
                      • Standard with Family Safety: These are the only accounts that can have parental controls. You can create a Standard account for each child, then go to the Family Safety settings in your Control Panel to set website restrictions, time limits, and more.

                      I haven't used Wireshark on Windows for quite some time but one of the problems you might expect is enabling promiscuous mode on the network adapter. If memory serves that requires elevated (admin) privileges.

                      I strongly suggest levelling up on your system administration skills and general knowledge before diving deep into creating programs that make use of complex system integrations. One has to learn to walk before one will learn to run.

                      For more information please re-read.

                      Kind Regards,
                      Artur

                      1 Reply Last reply
                      3
                      • MijazM Offline
                        MijazM Offline
                        Mijaz
                        wrote on last edited by
                        #11

                        Hi @artwaw @mrjj ;
                        Your suggestions helped me a lot! Now I want to come on to my initial point. Can I scan and access the Wifi MAC Layer in qt-creator like its header information.
                        Thanks in advance!

                        mrjjM 1 Reply Last reply
                        0
                        • MijazM Mijaz

                          Hi @artwaw @mrjj ;
                          Your suggestions helped me a lot! Now I want to come on to my initial point. Can I scan and access the Wifi MAC Layer in qt-creator like its header information.
                          Thanks in advance!

                          mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @Mijaz

                          Hi
                          the mac layer is on driver level and Qt has nothing for that as far as i know.

                          Most likely you would need to use a library like
                          https://www.tcpdump.org/ (Libpcap )

                          to be able to get such information.

                          1 Reply Last reply
                          1

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved