QCSuper | tool communicating with Qualcomm-based phones | Wifi library

 by   P1sec Python Version: 2.0.1 License: GPL-3.0

kandi X-RAY | QCSuper Summary

kandi X-RAY | QCSuper Summary

QCSuper is a Python library typically used in Networking, Wifi applications. QCSuper has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has medium support. However QCSuper build file is not available. You can install using 'pip install QCSuper' or download it from GitHub, PyPI.

QCSuper is a tool communicating with Qualcomm-based phones and modems, allowing to capture raw 2G/3G/4G radio frames, among other things. It will allow you to generate PCAP captures of it using either a rooted Android phone, an USB dongle or an existing capture in another format.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              QCSuper has a medium active ecosystem.
              It has 819 star(s) with 186 fork(s). There are 46 watchers for this library.
              There were 2 major release(s) in the last 12 months.
              There are 68 open issues and 13 have been closed. On average issues are closed in 56 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of QCSuper is 2.0.1

            kandi-Quality Quality

              QCSuper has 0 bugs and 0 code smells.

            kandi-Security Security

              QCSuper has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              QCSuper code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              QCSuper is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              QCSuper releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              QCSuper has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.
              QCSuper saves you 948 person hours of effort in developing the same functionality from scratch.
              It has 3450 lines of code, 113 functions and 36 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed QCSuper and discovered the below as its top functions. This is intended to give you an instant insight into QCSuper implemented functionality, and help decide if they suit your requirements.
            • Called when a channel is received
            • Remove a module
            • Build a GSMTIP packet
            • Build NRRC packet
            • Called when a message is received
            • Decode a GSM packet
            • Add a new segment and decode it
            • Execute an OPENDIR command
            • Send a received request
            • Execute a command
            • Execute a remote file
            • Read packets from the adb bridge
            • Start the program
            • Read data from the serial port
            • Execute a DEV_INFO command
            • Read loop
            • Execute the MD5 command
            • Log a JSON record
            • Send the EFS handshake
            • Execute RENAME command
            • Execute a symlink command
            • Read the diag log
            • Parse command line arguments
            • Add a module
            • Adds a module
            • Send a packet payload to the device
            • Send a packet to the server
            Get all kandi verified functions for this library.

            QCSuper Key Features

            No Key Features are available at this moment for QCSuper.

            QCSuper Examples and Code Snippets

            No Code Snippets are available at this moment for QCSuper.

            Community Discussions

            QUESTION

            Is it possible to make WIFI scanner on android with API level 29+?
            Asked 2022-Apr-05 at 08:31

            Even with all the permissions granted the startScan() function still returns false. So my question is: is there a way to scan access points on android 29 or higher?

            ...

            ANSWER

            Answered 2022-Apr-05 at 08:31

            The problem was in asking the user for permission. My working code

            -Manifest:

            -And for asking user for permissions I used EasyPermissions:

            Source https://stackoverflow.com/questions/71591990

            QUESTION

            How to check Wi-Fi switch state 'ON' or 'OFF' even if not connected to a WiFi network on Android
            Asked 2022-Apr-04 at 20:41

            I need to develop a feature that is required checking Wi-Fi settings state 'ON' or 'OFF' even if not connected to a WiFi network on Android! I need to display a pop up!

            ...

            ANSWER

            Answered 2022-Apr-01 at 19:12

            I think you should to use ConnectivityManager.

            Source https://stackoverflow.com/questions/71709442

            QUESTION

            Low signal strength in 5Ghz wifi
            Asked 2022-Mar-24 at 12:30

            I've got a router Mikrotik hAP AC2. Recently I've updated RouterOS to version 7.1.3 and have found that 5GHz access point has issues.

            My notebook sometimes disconnects from 5GHz wlan, and one of smartphones in my family doesn't connect to 5GHz at all.

            Here is the plot of wifi signal strength, that I've collected using my notebook located in direct visibility of the router at the distance of about 5-6m.

            Cyan line shows 2.4GHz signal and red line shows 5GHz signal. Numbers are -42dbm for 2.4GHz and -68dbm for 5GHz.

            My impression is that generally this is not normal. I repeat, there were no obstacles between the notebook and the router, only thin air.

            I've tried to reset configuration for 5GHz wlan, change its region, but without success.

            How can I fix this?

            Here are current settings:

            ...

            ANSWER

            Answered 2022-Mar-24 at 12:30

            5GHz Wifi is always lower strength than 2.4GHz, it's physics. 5GHz originally improved performance due to moving away from the then congested 2.4GHz band, however, now 5GHz is just as common so despite having a wider range of frequencies it still ends up congested.

            5GHz allows for higher throughput while having the disadvantage of being attenuated quicker due to the higher frequency

            2.4GHz has a lower data throughput but isn't attenuated as easily.

            Source https://stackoverflow.com/questions/71457688

            QUESTION

            Is the Android Wifi-API really so broken on Android 10+?
            Asked 2022-Mar-22 at 11:19

            I'm working on a Wifi auto connect feature and I am shocked how broken that API is.

            I'm using now 5 different APIs and I still don't get it in a way the user would expect it.

            I have a setting to enable wifi auto connection on Android 10+ I'll try this:

            1. Check if I hold the ACCESS_WIFI_STATE permission with: ...

            ANSWER

            Answered 2022-Mar-22 at 11:19

            Well just a half answer, but it might help anyway. Here is how I get the current SSID of the user (you need to hold the location permission):

            Source https://stackoverflow.com/questions/71549864

            QUESTION

            Is it possible to get mac addresses when scanning networks? ESP32
            Asked 2022-Mar-14 at 10:38

            I need to get the RSSI of the networks and they MAC addresss to a IPS (indoor position system) program. I was able to get ssid, signal strength and security using the sample code, but not mac addresses. I tryed to use this, but itsn't working:

            ...

            ANSWER

            Answered 2021-Oct-06 at 12:02

            Maybe the Arduino framework doesn't give this information up easily, but the underlying ESP IDF framework certainly does. The AP-s MAC is called BSSID. Adapting this example scan.c:

            Source https://stackoverflow.com/questions/69464843

            QUESTION

            Is there a way to generate a wifi qr code with pillow and qrcode library in python?
            Asked 2022-Feb-18 at 02:16

            I think there's a way to generate a wifi qr with pillow and qrcode library in python. I had searched in the internet and there's no information.

            I will apreciate your help. Thank's

            -Zateward

            ...

            ANSWER

            Answered 2022-Feb-18 at 02:16

            Yes there is. QR codes are just images that are easy for a computer to decode via taking a picture into something useful.

            QR codes are just text/strings encoded into an image.

            Python has a library called qrcode.

            Mobile phone support a specific format of text that tells it to try and connect to a wifi network. This wiki shows an example of what that connection string would look like.

            So here is the steps.

            1. Create a wifi connection string that mobile phones support.
            2. Pass that string into qrcode to generate a PIL image.
            3. Do what you want with that PIL image.

            Source https://stackoverflow.com/questions/71167553

            QUESTION

            Why is 802.11 to 802.3 conversion impossible in monitoring mode?
            Asked 2022-Jan-31 at 00:39

            When I use Wireshark to capture traffics with my wlan card with monitor mode already set, it only displays 802.11 frames. However, if I use Wireshark with managed mode wlan(promiscuous mode), it certainly displays 802.3 frames.

            I searched for some related information and found out that 'network bridging' allows devices to convert 802.11 wireless packets to 802.3 packets. In case of packet capturing, pcap allows conversion.
            (link: How to real time convert wireless packet(802.11) to Ethernet packet(802.3) in windows?)

            So, Why is 802.11 to 802.3 frame conversion impossible when using monitor mode(not associated to the wireless network)?

            Below are pictures of the situation. Thank you in advance.

            Promiscuous mode packet capture
            Monitor mode packet capture

            ...

            ANSWER

            Answered 2022-Jan-31 at 00:39

            For one thing, not all 802.11 packets have Ethernet equivalents; only data packets do. In monitor mode, in addition to data packets, control and management packets can be captured - you're seeing those types of packets in your monitor-mode capture.

            For another thing, when capturing in monitor mode on a "protected" network (WEP, WPA), data packets are encrypted (to protect them from being sniffed), and can't be converted to Ethernet packets until they're decrypted. Under some circumstances, Wireshark can decrypt them, but Wireshark doesn't do any conversion from 802.11 to 802.3 in any circumstances - when not capturing in monitor mode, the 802.11 adapter converts data packets to 802.3 packets after decrypting them, and doesn't show non-data packets to the host.

            Source https://stackoverflow.com/questions/70916098

            QUESTION

            B.A.T.M.A.N ad-hoc WiFi nodes cannot ping each other
            Asked 2022-Jan-24 at 00:31

            I am working to connect 2 linux machines, each with this USB Dongle: https://www.tp-link.com/us/home-networking/usb-adapter/archer-t2u-nano/, to an ad-hoc WiFi network managed by B.A.T.M.A.N ( batman-adv ).

            When run, this scripts show that both devices are joined to the same ad-hoc/IBSS network.

            I statically assigned ip addresses and routes to both 'bat0' devices. However, I cannot ping or otherwise use the connection between the two devices.

            What am I doing wrong and how can I use the mesh network in Linux between the connected client and server? Thanks.

            My 'server' node is configured with this script:

            ...

            ANSWER

            Answered 2022-Jan-24 at 00:31

            The answer really is that you need a WiFi radio that actually correclty implements Ad-Hoc/IBSS networking in the driver stack.

            Source https://stackoverflow.com/questions/70311287

            QUESTION

            Multipeer Connectivity - Get file transfer(Internet) speed and File Size in Swift 5
            Asked 2022-Jan-13 at 13:19

            I am transferring photo peer to peer. All things works fine but I am not able to get the photo(file) transfer speed i.g internet speed. Like MB the file is transferred. Second I want to fetch the size of that file.

            We are passing photo in data format using MCSession

            Due to privacy I cannot add the project code here but I will share the refrence github project that I followed. In project I am passing string and In my case its Photo. All things are same.

            I checked in Stackoverflow but not found any accurate answer!

            Reference Project Link: https://github.com/YogeshPateliOS/MultipeerConnectivity-.git

            Thank You!

            ...

            ANSWER

            Answered 2022-Jan-13 at 13:19

            TLDR: If you do not want to read the long explanation and get straight to the code, all the ideas below are brought together and can be tested by downloading my public repository which has comments to explain all of this.

            So here are my suggestions on how you can achieve this

            After reviewing your code, I see that you are using the following function to send data

            Source https://stackoverflow.com/questions/70643079

            QUESTION

            Is there an method to convert wifi frame to ethernet frame?
            Asked 2022-Jan-01 at 13:40

            I've searched for some information about frame structure in wifi and ethernet in the Data Link layer and found out that the two frames look quite different. I am wondering if there is some method in the router that converts wifi frame to ethernet frame in a such network where wireless network is connected to wired network, like WLAN. Since I'm really new to this field, I may have some misunderstanding issues. Thank you.

            ...

            ANSWER

            Answered 2022-Jan-01 at 13:40

            Connecting different or similar networks on the data link layer (L2) is done by a network bridge - you extract relevant data from an ingress frame (esp. source and destination MAC addresses), create a new frame for egress and copy the relevant data into it.

            A bridge also examines each frame's source MAC address to learn where each node is located, so it only copies a frame to the other side when its destination is located there.

            However, a router works on the network layer (L3): it forwards by IP destination address between IP networks/subnets. It uses data link layer (L2) encapsulation for reaching the next hop but doesn't convert anything. (It removes the encapsulating frame from a received packet, decides where to forward the packet, and then creates a new frame for that packet.)

            You might be referring to a consumer-grade Wi-Fi router which effectively contains a NAT router, an Ethernet switch, a wireless access point (mostly bridged), DHCP and DNS servers, etc, blurring the distinction between all those functions.

            Source https://stackoverflow.com/questions/70501968

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install QCSuper

            QCSuper was tested and developed on Ubuntu 16.04, 18.04 and Windows 7. It depends on a few Python modules. To use it, your phone must be rooted or expose a diag service port over USB. In order to check for compatibility with your phone, look up the phone's model on a site like GSMArena and check whether it has a Qualcomm processor. In order to open PCAP files produced by QCSuper, you can use any Wireshark 2.x for 2G/3G frames, but you need at least Wireshark 2.5.x for 4G frames (and 2.6.x for individual NAS messages decrypted out of 4G frames). Ubuntu currently provides a recent enough build for all versions.
            On Windows, you will need to download and install your phone's USB drivers from your phone model. There is no generic way, search for your phone's model + "USB driver" or "ADB driver" on Google for instructions. Then, you need to ensure that you can reach your device using adb. You can find a tutorial on how to download and setup adb here. The adb shell command must display a prompt to continue.
            Install Python 3.7 or more recent (be sure to check options to include it into PATH, install it for all users and install pip)
            Install Wireshark 2.6 or more recent
            Download and extract QCSuper

            Support

            QCSuper supports capturing a handful of mobile radio protocols. These protocols are put after a GSMTAP header, a standard header (encapsulated into UDP/IP) permitting to identify the protocol, and GSMTAP packets are put into a PCAP file that is fully analyzable using Wireshark. 2G/3G/4G protocols can be broken into a few "layers": layer 1 is about the digital radio modulation and multiplexing, layer 2 handles stuff like fragmentation and acknowledgement, layer 3 is the proper signalling or user data. QCSuper allows you most often to capture on layer 3, as it is the most pratical to analyze using Wireshark, and is what the Diag protocol provides natively (and some interesting information is here). By default, the IP traffic sent by your device is not included, you see only the signalling frames. You can include the IP traffic you generate using the --include-ip-traffic option (IP being barely the layer 3 for your data traffic in 2G/3G/4G, at the detail that its headers may be compressed (ROHC) and a tiny PPP header may be included). The data traffic you send uses a channel different from the signalling traffic, this channed is setup through the signalling traffic; QCSuper should thus show you all details relevant to how this channel is initiated.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install qcsuper

          • CLONE
          • HTTPS

            https://github.com/P1sec/QCSuper.git

          • CLI

            gh repo clone P1sec/QCSuper

          • sshUrl

            git@github.com:P1sec/QCSuper.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Wifi Libraries

            esp8266_deauther

            by SpacehuhnTech

            itlwm

            by OpenIntelWireless

            whereami

            by kootenpv

            create_ap

            by oblique

            Try Top Libraries by P1sec

            pycrate

            by P1secPython

            pysctp

            by P1secPython

            hermes-dec

            by P1secPython

            SigFW

            by P1secJava