Ullaakut / cameradar

Cameradar hacks its way into RTSP videosurveillance cameras
MIT License
4.03k stars 513 forks source link

Cameradar not loading dictionaries ?? #315

Closed IdrisBouar closed 3 weeks ago

IdrisBouar commented 1 year ago

First, make sure that none of the open and closed issues is about the same issue as you are describing, and make sure to check the frequently asked questions in the README file. Then, replace the parts of this template that are between with the data relative to your issue.

If you're reporting a bug, use the template below. Otherwise, delete this template and write your issue normally.

Context

Please select one:

Please select one:

Environment

My operating system:

OS version: <Kernel Linux 6.0.0-12parrot1-amd64 x86_64> OS architecture:

Issue

When starting cameradar, i do not get prompted with the dictionaries loading process while using default dictonaries or loading custom ones (as showing in the image mounted)

What was expected

The display of the 'Loading Credentials dictionaries' process and 'Loading routes dictionaries' process when using default or custom dictionaries

### What happened ``` docker run -t -v /tmp/dictionaries/:/tmp/ cameradar -r /tmp/routes -c /tmp/credentials.json -t (target) -p (port) Loading credentials...ok Loading routes...ok Scanning the network...ok ✖ no stream found ``` ### Logs If your issue is with Cameradar's binary or docker image, please run it with `-v` to print verbose logs, and paste them here: ``` ``` ![CameradarV4](https://user-images.githubusercontent.com/102695491/226101594-68cda50a-8f51-4068-8ebb-8148583a6bec.png)
Ullaakut commented 1 year ago

Hi @IdrisBouar.

The screenshot you provided indeed does load the default dictionaries, but in this screenshot no -c option was given to override the default path. Could you produce a screenshot where you run your own command (docker run -t -v /tmp/dictionaries/:/tmp/ cameradar -r /tmp/routes -c /tmp/credentials.json -t (target) -p (port)) and the logs say that it loaded the wrong dictionary?

As the issue template states, also please make sure you use the -v option so that we can see exactly what happens internally. Thank you

IdrisBouar commented 1 year ago

Hello again @Ullaakut,

Sorry for the delay.

Here is a Screenshot of the executionon :

Linux parrot 6.1.0-0.deb11.5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.12-1~bpo11+1 (2023-03-05) x86_64 GNU/Linux

As i mentioned, i receive the same message when passing a custom dictionaries to the program. (Setting custom dictionaries Path is correct)

Screenshot at 2023-04-06 01-24-41

Ullaakut commented 1 year ago

But in this case you do not set any dictionaries, so it's normal that it does not load any. I want to see a screenshot where the command has a dictionnary path given to it, the -v option, and see the result.

A copy paste of the output also works instead of a screenshot.

IdrisBouar commented 1 year ago

There you go:

#docker run -t -v /home/davinci/dependencies/libraries/cameradar/dictionaries/:/tmp/ cameradar -r /tmp/routes -c /tmp/credentials.json -t localhost
Loading credentials...ok
Loading routes...ok
Scanning the network...ok
✖ no stream found
Ullaakut commented 1 year ago

Please add the -v parameter to the cameradar command (not only the docker command) so that we get debug output and can see what goes wrong 🙏

Ullaakut commented 3 weeks ago

Stale