P1sec / QCSuper

QCSuper is a tool communicating with Qualcomm-based phones and modems, allowing to capture raw 2G/3G/4G radio frames, among other things.
GNU General Public License v3.0
1.33k stars 238 forks source link

problem when running on wireshark #40

Open yupirhavi opened 4 years ago

yupirhavi commented 4 years ago

i have problem when ruuning with ./qcsuper.py --adb --wireshark-live on wireshark send error message: Could not create profiles directory "/root/.config/wireshark"

Could not open common recent file "/root/.config/wireshark/recent_common": Permission denied.

Could not open recent file "/root/.config/wireshark/recent": Permission denied.

You don't have permission to read the file "hosts".

You don't have permission to read the file "subnets".

You don't have permission to read the file "subnets".

You don't have permission to read the file "ss7pcs".

You don't have permission to read the file "init.lua".

Could not open recent file "/root/.config/wireshark/recent_common": Permission denied.

Error loading table 'Display expressions': Permission denied

Error loading table 'SMI Paths': Permission denied

Error loading table 'SMI Modules': Permission denied

Error loading table 'MaxMind Database Paths': Permission denied

Error loading table 'OID Tables': Permission denied

Error loading table 'Custom BootP/DHCP Options (Excl. suboptions)': Permission denied

Error loading table 'BTMesh Network keys': Permission denied

Error loading table 'Force Decode by Channel': Permission denied

Error loading table 'Decryption Table': Permission denied

Error loading table 'Node bodytypes': Permission denied

Error loading table 'DMP Security Classifications': Permission denied

Error loading table 'DPS Security Mode Templates': Permission denied

Error loading table 'DPS Session Keys': Permission denied

Error loading table 'DPS Identity Secrets': Permission denied

Error loading table 'DTLS RSA Keylist': Permission denied

Error loading table 'Device-Specific Profiles': Permission denied

Error loading table 'NodeID-Specific Profiles': Permission denied

Error loading table 'ESS Category Attributes': Permission denied

Error loading table 'Custom HTTP Header Fields': Permission denied

Error loading table 'Custom HTTP2 Header Fields': Permission denied

Error loading table 'WEP and WPA Decryption Keys': Permission denied

Error loading table 'Static Addresses': Permission denied

Error loading table 'Keys': Permission denied

Error loading table 'Custom IMF headers': Permission denied

Error loading table 'ESP SAs': Permission denied

Error loading table 'IKEv1 Decryption Table': Permission denied

Error loading table 'IKEv2 Decryption Table': Permission denied

Error loading table 'K12 Protocols': Permission denied

Error loading table 'LBMPDM-TCP tag definitions': Permission denied

Error loading table 'LBMR tag definitions': Permission denied

Error loading table 'LBT-RM tag definitions': Permission denied

Error loading table 'LBT-RU tag definitions': Permission denied

Error loading table 'LBT-TCP tag definitions': Permission denied

Error loading table 'Custom LDAP AttributeValue types': Permission denied

Error loading table 'LoRaWAN Encryption Keys': Permission denied

Error loading table 'Static LCID -> drb Table': Permission denied

Error loading table 'Message Decoding': Permission denied

Error loading table 'Security Contexts': Permission denied

Error loading table 'PDCP UE security keys': Permission denied

Error loading table 'PRES Users Context List': Permission denied

Error loading table 'Kind-ID Table': Permission denied

Error loading table 'SCCP Users Table': Permission denied

Error loading table 'Chunk types for the statistics dialog': Permission denied

Error loading table 'Custom SIP Header Fields': Permission denied

Error loading table 'SIP authorization users': Permission denied

Error loading table 'Secret session key to use for decryption': Permission denied

Error loading table 'SNMP Users': Permission denied

Error loading table 'SNMP Enterprise Specific Trap Types': Permission denied

Error loading table 'SSL Decrypt': Permission denied

Error loading table 'RSA Keys': Permission denied

Error loading table 'XTEA Keys': Permission denied

Error loading table 'NM User Data Fields Table': Permission denied

Error loading table 'User DLTs Table': Permission denied

Error loading table 'Bitstream Channel Table': Permission denied

Error loading table 'Pre-configured Keys': Permission denied

Error loading table 'ZigBee GP Security Keys': Permission denied

Error loading table 'Display Filter Macros': Permission denied

Error loading table 'Expert Info Severity Level Configuration': Permission denied

Error loading table 'Packet Lengths': Permission denied

Can't open your preferences file "/root/.config/wireshark/preferences": Permission denied.

Could not open your disabled protocols file "/root/.config/wireshark/disabled_protos": Permission denied.

Could not open your enabled protocols file "/root/.config/wireshark/enabled_protos": Permission denied.

Could not open your heuristic dissectors file "/root/.config/wireshark/heuristic_protos": Permission denied.

Could not open your capture filter file "/root/.config/wireshark/cfilters": Permission denied.

Could not open your display filter file "/root/.config/wireshark/dfilters": Permission denied.

Could not open filter file "/root/.config/wireshark/colorfilters": Permission denied.

and couldn't run /usr/bin/dumpcap in child process: permission denied

please help me

shashankhacker730 commented 3 years ago

run script without Root.

sag163 commented 2 years ago

I have same problem when I running command: os.system(f"""tshark -r {path_pcap_file} -T json >{path_json_file}""") in the my project. Project is working by a supervisord, that blocked my command. I solved this problem, when I added parametr chmod=0777 in supervisord.ini.

trxstudio commented 1 year ago

run script without Root.

You need "Root" to run QCSuper, it is in the documentation. Any chance of a sensible answer please?

p1-mmr commented 1 year ago

Hello,

QCSuper needs to be run as root only when using the --usb-modem data source (which allows to communicate directly with an USB dongle-like device).

When using --adb it is better to run as non-root.

QCSuper attempts to drop the privilege for the child Wireshark instance, in order to avoid certain other issues, but using the --wireshark-live option along with the root user may lead to unpredictable behavior. Maybe you may try to adjust the HOME environment variable (and run sudo with the -E option, if using it) in order to overcome the issue?

Regards,