-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zsh: segmentation fault sudo hcxdumptool -i wlan0 -o output.pcapng --enable_status=15 #231
Comments
I can't reproduce the segmentation fault, too, but I have an idea. It may related to the combination zsh & sudo. |
Hello , thank you for your feedback , below is the output : Sudo version : zsh version : └─$ zsh --version |
Thanks. |
Started another test. This time hcxdumptool is compiled with debug options (Makefile: -ggdb -fsanitize=address):
still no segmentation fault. |
Please do a fresh git clone: |
Thank you, for the first command i got this error : can i proceed with Makefile replacement ? |
Ok, there is already a git clone on your system so you can proceed with the replacement. |
Just rename the old Makefile to Makefile.old |
Thank you for your feedback , ──(dimitri㉿kali)-[~/hcxdumptool] ┌──(dimitri㉿kali)-[~/hcxdumptool] since i got the above error , so i put make clean └─$ make clean then make ─$ make same issue : ┌──(dimitri㉿kali)-[~/hcxdumptool] start capturing (stop with ctrl+c) TIME FREQ/CH MAC_DEST MAC_SOURCE ESSID [FRAME TYPE] zsh: segmentation fault sudo ./hcxdumptool -i wlan0 -o output.pcapng --enable_status=15 |
Ok,thanks. |
Thank for your feedback and support : ┌──(dimitri㉿kali)-[~] i don't know the password's root ..so i have executed the command sudo su ┌──(dimitri㉿kali)-[~] then : ┌──(root㉿kali)-[/home/dimitri] Thanks |
Ok, please try this: |
Now I'm sure your issue is related to sudo/su (not to hcxdumptool or zsh) like this issue, mentioned here: |
Thank you , ┌──(dimitri㉿kali)-[~] ┌──(dimitri㉿kali)-[~] |
Ok, but ls is a short command. Maybe it take awhile until the segmentation fault occurs. Can you provide a dmesg log? BTW: |
Hi, mine also have the same problem, run for 2-5 minute and segmentation fault ┌──(root㉿kali)-[/home/kali] start capturing (stop with ctrl+c) TIME FREQ/CH MAC_DEST MAC_SOURCE ESSID [FRAME TYPE] |
Hello , thank you for feedback , below is the dmesg log
|
Thanks. |
@poliang95 thanks. Also please move to su and than run hcxdumptool without sudo. |
I'm not able to reproduce that issue running this (recommended) environment (no VM):
running as expected
|
Tried again to force the "segmentation error" - no luck:
By latest commit, I added uncommented debug options. $ make clean |
If the error is caused by hcxdumptool, you'll see something similar to this (example code to force an error):
|
|
Thanks. Unfortunately nothing inside that can help us. Looks like we need to take a look at gdb.txt log to figure out whats going on. |
Thank you for your feedback , below is my comment : ` i got "Segmentation fault" , please refer to attached file.. PS : i have changed the values of "MAC_SOURCE" " ESSID" in the file ..so please ignore this .. |
Thanks. We need the exact position where the segmentation error occur. BTW: Now, as you changed the password, you can run gdb as described here: |
Just dived into KALI documentation and noticed that bash is still present. |
Thank you for your feedback , ` 2.Take backup of Makefile ` ┌──(root㉿kali)-[/home/dimitri/Lab/hcxdumptool] `
$ make clean This is the output : ` For help, type "help". Copying output to gdb.txt. start capturing (stop with ctrl+c) TIME FREQ/CH MAC_DEST MAC_SOURCE ESSID [FRAME TYPE]
|
Thank you , same error Segmentation fault |
Great, thanks. Now I'm able to reproduce the segmentation fault:
|
Ok, pushed an update. |
Found some more problems when detecting weak EAPOL and fixed them. |
Thank you , it works fine but now i am not able to found dumpfile.pcapng , file has not been generated ... hcxdumptool -i wlan0 dumpfile.pcapng --active_beacon --enable_status=15 my directory has generated the below files... -rw------- 1 dimitri dimitri 4751 Nov 24 16:17 .zsh_history |
Hello , also i would like to keep only one hcxdumptool directory , i have noticed that i have created 2 since i was doing some testing with Makefile and bash scripts ..., Please how to clean and keep only one ...or how to remove all then i can install the fresh one ... directory : /home/dimitri -rw------- 1 dimitri dimitri 20 Nov 23 09:04 .lesshst directory : /home/dimitri/Lab -rw-r--r-- 1 dimitri dimitri 1560 Nov 24 04:00 log.tmp |
Dump files are always stored int that directory from which you started hcxdumptool. This applies to all hcxtools. |
Thank you , but how to remove all hcxdumptool git clones ? |
Please cofirm : rm -r hcxdumptool , is it enough to remove all hcxdumptool git clones ? |
$ rm -r hcxdumptool |
Thank you so much, for your excellent support.
So below are my observations related to hcxdumptool command : 1) - I got error -> failed to read packet: Network , please refer to the attached file (Network is down.txt) 2)- after this error , I have sent again the command without rebooting the system , i got error --> Operation not permitted , please refer to the attached file (Operation not permitted.txt) 3)-after that , I have rebooted the system with command " reboot " and now i am not able to receive data means NO (TIME FREQ/CH MAC_DEST MAC_SOURCE ESSID [FRAME TYPE] ) ,I run this command for more than 5 min . please refer to the attached file (No_TIME_FREQ_MAC_DEST _MAC_SOURCE_ESSID.txt) No_TIME_FREQ_MAC_DEST _MAC_SOURCE_ESSID.txt 4: finally , I shutdown the system and restart again VM , and start Kali ..and executed the same command , it works fine BUT the dumpfile.pcapng file is not generated , i run this command for more than 4 mins , please refer to the attached file (dumpfile.pcapng file is not generated.txt) dumpfile.pcapng file is not generated.txt Thank you |
This is a system message:
|
Thank you so much for your excellent support and help, it works fine , please you can close this thread. |
You're welcome. |
Hello
I am using the below command and it works fine , i can get the beacon, ESSID ...but i am getting the below error
zsh: segmentation fault sudo hcxdumptool -i wlan0 -o output.pcapng --enable_status=15
Do you have any idea ?
Thanks
The text was updated successfully, but these errors were encountered: