cr0mll / deserter

A targeted DNS cache poisoner
MIT License
109 stars 11 forks source link

Segmentation Fault on debain 11 #1

Closed 10maurycy10 closed 2 years ago

10maurycy10 commented 2 years ago

Reproduction:

  1. install all required tools
    sudo apt install cmake
  2. follow build instructions
    cd scripts/
    chmod +x install.sh
    ./install.sh
  3. run
    sudo ./deserter -t 169.1.1.35 -b 93.184.216.34 -i wlp3s0
  4. observe segfault
10maurycy10 commented 2 years ago

image

cr0mll commented 2 years ago

Thank you. It's a known issue, which I am working on fixing. I suspect it has to do with the fact that the tool lacks proper packet filtering at the moment (the library was giving errors, so I had to find a workaround). Right now, your only option is unfortunately to run deserter a few times until it works.

cr0mll commented 2 years ago

@10maurycy10 oddly enough, making the packet capturing asynchronous seems to have resolved the issue for me. Can you pull the latest commit and try again? Tell me what results you get :)

cr0mll commented 2 years ago

Fixed the segmentation fault which was caused by parsing non-dns packets. The program was dereferencing nullptrs for the DNS layer if the packet wasn't a DNS one which caused it to crash.