Skip to content
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

WARNING: The requested image's platform (linux/amd64) does not match the detected #333

Open
ulist opened this issue Nov 3, 2023 · 12 comments
Labels

Comments

@ulist
Copy link

ulist commented Nov 3, 2023

.../files/home # docker run -t ullaakut/cameradar
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
time="2023-11-03T14:45:33.833041176Z" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
time="2023-11-03T14:45:33.833167374Z" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
time="2023-11-03T14:45:33.833232218Z" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
time="2023-11-03T14:45:33.834040239Z" level=info msg="starting signal loop" namespace=moby path=/data/data/com.termux/files/usr/var/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/f7891ad2f76413e1f182e934545d4986cf2687f2d60632dbae9e77424e2542e8 pid=13535 runtime=io.containerd.runc.v2
exec /app/cameradar/cameradar: exec format error
time="2023-11-03T14:45:34.047052843Z" level=warning msg="error from *cgroupsv2.Manager.EventChan" error="failed to add inotify watch for \"/sys/fs/cgroup/docker/f7891ad2f76413e1f182e934545d4986cf2687f2d60632dbae9e77424e2542e8/memory.events\": no such file or directory"
INFO[2023-11-03T14:45:34.088628103Z] shim disconnected                             id=f7891ad2f76413e1f182e934545d4986cf2687f2d60632dbae9e77424e2542e8
WARN[2023-11-03T14:45:34.088690916Z] cleaning up after shim disconnected           id=f7891ad2f76413e1f182e934545d4986cf2687f2d60632dbae9e77424e2542e8 namespace=moby
INFO[2023-11-03T14:45:34.088721280Z] cleaning up dead shim
INFO[2023-11-03T14:45:34.088753885Z] ignoring event                                container=f7891ad2f76413e1f182e934545d4986cf2687f2d60632dbae9e77424e2542e8 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
WARN[2023-11-03T14:45:34.137310447Z] cleanup warnings time="2023-11-03T14:45:34Z" level=info msg="starting signal loop" namespace=moby pid=13586 runtime=io.containerd.runc.v2
.../files/home #
@ulist
Copy link
Author

ulist commented Nov 3, 2023

Fixed by docker run -t ullaakut/cameradar:arm64
Why are the packages on docker hub 2 yaers old?

Now It takes a long time on Scanning the network...
and dns problem

.../files/home # docker run  -t ullaakut/cameradar:arm64  -t 192.168.0.0/24       time="2023-11-03T15:05:33.501071292Z" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1                                                                               time="2023-11-03T15:05:33.501218375Z" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
time="2023-11-03T15:05:33.501279990Z" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
time="2023-11-03T15:05:33.501856969Z" level=info msg="starting signal loop" namespace=moby path=/data/data/com.termux/files/usr/var/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/019fe9cc7932becc05fc6b8ce264737e71341239bdee8c6eaa316571ab9cb5c5 pid=18834 runtime=io.containerd.runc.v2                            time="2023-11-03T15:05:33.745280614Z" level=warning msg="error from *cgroupsv2.Manager.EventChan" error="failed to add inotify watch for \"/sys/fs/cgroup/docker/019fe9cc7932becc05fc6b8ce264737e71341239bdee8c6eaa316571ab9cb5c5/memory.events\": no such file or directory"
Loading credentials...ok
Loading routes...ok                                                               Scanning the network...ok
  > [Nmap Warning] mass_dns: warning: Unable to open /etc/resolv.conf. Try using --system-dns or specify valid servers with --dns-servers
  > [Nmap Warning] mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled. Try using --system-dns or specify valid servers with --dns-servers                                                                                ✖ no stream found
INFO[2023-11-03T15:07:17.500191773Z] shim disconnected                             id=019fe9cc7932becc05fc6b8ce264737e71341239bdee8c6eaa316571ab9cb5c5
WARN[2023-11-03T15:07:17.500323856Z] cleaning up after shim disconnected           id=019fe9cc7932becc05fc6b8ce264737e71341239bdee8c6eaa316571ab9cb5c5 namespace=moby                                                                                 INFO[2023-11-03T15:07:17.500376096Z] cleaning up dead shim
INFO[2023-11-03T15:07:17.500465054Z] ignoring event                                container=019fe9cc7932becc05fc6b8ce264737e71341239bdee8c6eaa316571ab9cb5c5 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"       WARN[2023-11-03T15:07:17.545331252Z] cleanup warnings time="2023-11-03T15:07:17Z" level=info msg="starting signal loop" namespace=moby pid=18988 runtime=io.containerd.runc.v2

@Ullaakut
Copy link
Owner

Ullaakut commented Nov 9, 2023

The packages on Docker Hub are 2 years old because there hasn't been a new release since then, unfortunately.
As for the warning, I've never seen that before. Does your machine not have an /etc/resolv.conf file? If it does, try running Cameradar with the following extra argument: -v /etc/resolv.conf:/etc/resolv.conf to mount that file and make it accessible to the container.

@ulist
Copy link
Author

ulist commented Nov 9, 2023

That is because I'm running it on termux
Golang gives me a headache

@ulist
Copy link
Author

ulist commented Nov 9, 2023

I ran it somehow a while back with golang and it bugged horribly , can't you guys just use python or something ?
Golang is kinda hard
Screenshot_٢٠٢٣١٠٢٠-٠٧١٧٥٧_Termux

Screenshot_٢٠٢٣١٠٢٠-٠٧١٧٤٨_Termux

@ulist
Copy link
Author

ulist commented Nov 9, 2023

The packages on Docker Hub are 2 years old because there hasn't been a new release since then, unfortunately. As for the warning, I've never seen that before. Does your machine not have an /etc/resolv.conf file? If it does, try running Cameradar with the following extra argument: -v /etc/resolv.conf:/etc/resolv.conf to mount that file and make it accessible to the container.

.../files/home # docker run -v $HOME/../Ubuntu/etc/resolv.conf:/etc/resolv.conf -t ullaakut/cameradar:arm64  -t 192.168.0.0/24
time="2023-11-09T10:13:15.390210315Z" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
time="2023-11-09T10:13:15.390262086Z" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
time="2023-11-09T10:13:15.390281252Z" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
time="2023-11-09T10:13:15.390697398Z" level=info msg="starting signal loop" namespace=moby path=/data/data/com.termux/files/usr/var/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/82a1d31f66bea368e132b19ece25e65eb34a9556ba04e8a845b893658d10b97e pid=23646 runtime=io.containerd.runc.v2
time="2023-11-09T10:13:15.600033825Z" level=warning msg="error from *cgroupsv2.Manager.EventChan" error="failed to add inotify watch for \"/sys/fs/cgroup/docker/82a1d31f66bea368e132b19ece25e65eb34a9556ba04e8a845b893658d10b97e/memory.events\": no such file or directory"
Loading credentials...ok
Loading routes...ok
Scanning the network...ok
✖ no stream found
INFO[2023-11-09T10:28:37.198657856Z] ignoring event                                container=82a1d31f66bea368e132b19ece25e65eb34a9556ba04e8a845b893658d10b97e module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
INFO[2023-11-09T10:28:37.200122596Z] shim disconnected                             id=82a1d31f66bea368e132b19ece25e65eb34a9556ba04e8a845b893658d10b97e
WARN[2023-11-09T10:28:37.200461085Z] cleaning up after shim disconnected           id=82a1d31f66bea368e132b19ece25e65eb34a9556ba04e8a845b893658d10b97e namespace=moby
INFO[2023-11-09T10:28:37.200696450Z] cleaning up dead shim
WARN[2023-11-09T10:28:37.279598229Z] cleanup warnings time="2023-11-09T10:28:37Z" level=info msg="starting signal loop" namespace=moby pid=24219 runtime=io.containerd.runc.v2
.../files/home # docker run -v $HOME/../Ubuntu/etc/resolv.conf:/etc/resolv.conf -t ullaakut/cameradar:arm64  -t 192.168.0.0/24
time="2023-11-09T10:31:54.210858770Z" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
time="2023-11-09T10:31:54.210932416Z" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
time="2023-11-09T10:31:54.210960749Z" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
time="2023-11-09T10:31:54.211506635Z" level=info msg="starting signal loop" namespace=moby path=/data/data/com.termux/files/usr/var/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/779568cd2438169bf83921bb6cf8721bd39a9049d496f692d349ec50cfe2267d pid=24682 runtime=io.containerd.runc.v2
Loading credentials...ok
Loading routes...ok
Scanning the network...time="2023-11-09T10:31:54.435493844Z" level=warning msg="error from *cgroupsv2.Manager.EventChan" error="failed to add inotify watch for \"/sys/fs/cgroup/docker/779568cd2438169bf83921bb6cf8721bd39a9049d496f692d349ec50cfe2267d/memory.events\": no such file or directory"


ok
✖ no stream found
INFO[2023-11-09T10:33:37.982204993Z] ignoring event                                container=779568cd2438169bf83921bb6cf8721bd39a9049d496f692d349ec50cfe2267d module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
INFO[2023-11-09T10:33:37.982255358Z] shim disconnected                             id=779568cd2438169bf83921bb6cf8721bd39a9049d496f692d349ec50cfe2267d
WARN[2023-11-09T10:33:37.982310879Z] cleaning up after shim disconnected           id=779568cd2438169bf83921bb6cf8721bd39a9049d496f692d349ec50cfe2267d namespace=moby
INFO[2023-11-09T10:33:37.982323274Z] cleaning up dead shim
WARN[2023-11-09T10:33:38.017634997Z] cleanup warnings time="2023-11-09T10:33:37Z" level=info msg="starting signal loop" namespace=moby pid=25876 runtime=io.containerd.runc.v2

@Ullaakut
Copy link
Owner

What is your OS? Your screenshots look like they're coming from a mobile device. If you are not running a desktop OS, it is not surprising that Docker is not able to run correctly. The issue you have is not related to Cameradar, it's related to doing network scanning on Docker on a mobile device. At least that's what it looks like to me.

You very likely do not have a /etc/resolv.conf or you have one that won't help. The error with memory.events is also foreign to me.

@ulist
Copy link
Author

ulist commented Nov 21, 2023

I ran it somehow a while back with golang and it bugged horribly , can't you guys just use python or something ? Golang is kinda hard Screenshot_٢٠٢٣١٠٢٠-٠٧١٧٥٧_Termux

Screenshot_٢٠٢٣١٠٢٠-٠٧١٧٤٨_Termux

This is the golang version , it ran but not correctly

@Ullaakut
Copy link
Owner

Indeed, it looks like Cameradar won't run on mobile without Docker, and even with Docker though it has been known to work, it doesn't seem to in your case, but there's nothing I can do to help you with that unfortunately. It requires knowledge about mobile OSes and how their networking is configured.

@ulist
Copy link
Author

ulist commented Nov 22, 2023

As the screenshot I tell it the camera ip and it instead tried to curl a bssid that's clearly a bug that's need to be debugged
Docker Is a container so yeah it's acting up but the golang version it should work fine but it doesn't
I'll do a clean install and try it again the golang version

@ulist
Copy link
Author

ulist commented Nov 23, 2023

Trying to install it on termux

~ $ go install github.com/Ullaakut/cameradar/v5/cmd/cameradar@latest
# github.com/Ullaakut/go-curl
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:                                                                                    ./compat.h:8:9: warning: 'CURL_VERSION_BROTLI' macro redefined [-Wmacro-redefined]
    8 | #define CURL_VERSION_BROTLI 0
      |         ^
../usr/include/curl/curl.h:3150:9: note: previous definition is here
 3150 | #define CURL_VERSION_BROTLI       (1<<23) /* Brotli features are present. */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:                                                                                    ./compat.h:13:9: warning: 'CURL_VERSION_MULTI_SSL' macro redefined [-Wmacro-redefined]
   13 | #define CURL_VERSION_MULTI_SSL 0
      |         ^
../usr/include/curl/curl.h:3149:9: note: previous definition is here
 3149 | #define CURL_VERSION_MULTI_SSL    (1<<22) /* Multiple SSL backends available */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:                                                                                    ./compat.h:24:9: warning: 'CURLAUTH_GSSAPI' macro redefined [-Wmacro-redefined]
   24 | #define CURLAUTH_GSSAPI 0
      |         ^
../usr/include/curl/curl.h:819:9: note: previous definition is here
  819 | #define CURLAUTH_GSSAPI CURLAUTH_NEGOTIATE
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:                                                                                    ./compat.h:54:9: warning: 'CURL_VERSION_HTTPS_PROXY' macro redefined [-Wmacro-redefined]
   54 | #define CURL_VERSION_HTTPS_PROXY 0
      |         ^
../usr/include/curl/curl.h:3148:9: note: previous definition is here
 3148 | #define CURL_VERSION_HTTPS_PROXY  (1<<21) /* HTTPS-proxy support built-in */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:                                                                                    ./compat.h:68:9: warning: 'CURLE_TELNET_OPTION_SYNTAX' macro redefined [-Wmacro-redefined]
   68 | #define CURLE_TELNET_OPTION_SYNTAX -1
      |         ^
../usr/include/curl/curl.h:667:9: note: previous definition is here
  667 | #define CURLE_TELNET_OPTION_SYNTAX CURLE_SETOPT_OPTION_SYNTAX
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:                                                                                    ./compat.h:75:9: warning: 'CURL_VERSION_PSL' macro redefined [-Wmacro-redefined]
   75 | #define CURL_VERSION_PSL 0
      |         ^
../usr/include/curl/curl.h:3146:9: note: previous definition is here
 3146 | #define CURL_VERSION_PSL          (1<<20) /* Mozilla's Public Suffix List, used
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:97:9: warning: 'CURL_VERSION_KERBEROS5' macro redefined [-Wmacro-redefined]
   97 | #define CURL_VERSION_KERBEROS5 0
      |         ^
../usr/include/curl/curl.h:3144:9: note: previous definition is here
 3144 | #define CURL_VERSION_KERBEROS5    (1<<18) /* Kerberos V5 auth is supported */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:98:9: warning: 'CURL_VERSION_UNIX_SOCKETS' macro redefined [-Wmacro-redefined]
   98 | #define CURL_VERSION_UNIX_SOCKETS 0
      |         ^
../usr/include/curl/curl.h:3145:9: note: previous definition is here
 3145 | #define CURL_VERSION_UNIX_SOCKETS (1<<19) /* Unix domain sockets support */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:104:9: warning: 'CURL_VERSION_GSSAPI' macro redefined [-Wmacro-redefined]
  104 | #define CURL_VERSION_GSSAPI 0
      |         ^
../usr/include/curl/curl.h:3143:9: note: previous definition is here
 3143 | #define CURL_VERSION_GSSAPI       (1<<17) /* Built against a GSS-API library */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:105:9: warning: 'CURLAUTH_NEGOTIATE' macro redefined [-Wmacro-redefined]
  105 | #define CURLAUTH_NEGOTIATE 0
      |         ^
../usr/include/curl/curl.h:815:9: note: previous definition is here
  815 | #define CURLAUTH_NEGOTIATE    (((unsigned long)1)<<2)
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:125:9: warning: 'CURL_VERSION_HTTP2' macro redefined [-Wmacro-redefined]
  125 | #define CURL_VERSION_HTTP2 0
      |         ^
../usr/include/curl/curl.h:3142:9: note: previous definition is here
 3142 | #define CURL_VERSION_HTTP2        (1<<16) /* HTTP2 support built-in */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:153:9: warning: 'CURL_VERSION_NTLM_WB' macro redefined [-Wmacro-redefined]
  153 | #define CURL_VERSION_NTLM_WB 0
      |         ^
../usr/include/curl/curl.h:3140:9: note: previous definition is here
 3140 | #define CURL_VERSION_NTLM_WB      (1<<15) /* NTLM delegation to winbind helper
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:154:9: warning: 'CURLAUTH_NTLM_WB' macro redefined [-Wmacro-redefined]
  154 | #define CURLAUTH_NTLM_WB 0
      |         ^
../usr/include/curl/curl.h:822:9: note: previous definition is here
  822 | #define CURLAUTH_NTLM_WB      (((unsigned long)1)<<5)
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:168:9: warning: 'CURL_VERSION_TLSAUTH_SRP' macro redefined [-Wmacro-redefined]
  168 | #define CURL_VERSION_TLSAUTH_SRP 0
      |         ^
../usr/include/curl/curl.h:3139:9: note: previous definition is here
 3139 | #define CURL_VERSION_TLSAUTH_SRP  (1<<14) /* TLS-SRP auth is supported */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:171:9: warning: 'CURLAUTH_ONLY' macro redefined [-Wmacro-redefined]
  171 | #define CURLAUTH_ONLY 0
      |         ^
../usr/include/curl/curl.h:825:9: note: previous definition is here
  825 | #define CURLAUTH_ONLY         (((unsigned long)1)<<31)
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:200:9: warning: 'CURLOPT_RTSPHEADER' macro redefined [-Wmacro-redefined]
  200 | #define CURLOPT_RTSPHEADER 0
      |         ^
../usr/include/curl/curl.h:2259:9: note: previous definition is here
 2259 | #define CURLOPT_RTSPHEADER CURLOPT_HTTPHEADER
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:213:9: warning: 'CURL_VERSION_CURLDEBUG' macro redefined [-Wmacro-redefined]
  213 | #define CURL_VERSION_CURLDEBUG 0
      |         ^
../usr/include/curl/curl.h:3138:9: note: previous definition is here
 3138 | #define CURL_VERSION_CURLDEBUG    (1<<13) /* Debug memory tracking supported */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:224:9: warning: 'CURLAUTH_DIGEST_IE' macro redefined [-Wmacro-redefined]
  224 | #define CURLAUTH_DIGEST_IE 0
      |         ^
../usr/include/curl/curl.h:821:9: note: previous definition is here
  821 | #define CURLAUTH_DIGEST_IE    (((unsigned long)1)<<4)
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:251:9: warning: 'CURLOPT_POST301' macro redefined [-Wmacro-redefined]
  251 | #define CURLOPT_POST301 0
      |         ^
../usr/include/curl/curl.h:2223:9: note: previous definition is here
 2223 | #define CURLOPT_POST301 CURLOPT_POSTREDIR
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:262:9: warning: 'CURLOPT_FTP_RESPONSE_TIMEOUT' macro redefined [-Wmacro-redefined]
  262 | #define CURLOPT_FTP_RESPONSE_TIMEOUT 0
      |         ^
../usr/include/curl/curl.h:2239:9: note: previous definition is here
 2239 | #define CURLOPT_FTP_RESPONSE_TIMEOUT CURLOPT_SERVER_RESPONSE_TIMEOUT
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:266:9: warning: 'CURLE_OBSOLETE10' macro redefined [-Wmacro-redefined]
  266 | #define CURLE_OBSOLETE10 -1
      |         ^
../usr/include/curl/curl.h:653:9: note: previous definition is here
  653 | #define CURLE_OBSOLETE10 CURLE_FTP_ACCEPT_FAILED
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:267:9: warning: 'CURLE_OBSOLETE12' macro redefined [-Wmacro-redefined]
  267 | #define CURLE_OBSOLETE12 -1
      |         ^
../usr/include/curl/curl.h:654:9: note: previous definition is here
  654 | #define CURLE_OBSOLETE12 CURLE_FTP_ACCEPT_TIMEOUT
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:268:9: warning: 'CURLE_OBSOLETE16' macro redefined [-Wmacro-redefined]
  268 | #define CURLE_OBSOLETE16 -1
      |         ^
../usr/include/curl/curl.h:650:9: note: previous definition is here
  650 | #define CURLE_OBSOLETE16 CURLE_HTTP2
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:316:9: warning: 'CURLE_CONV_FAILED' macro redefined [-Wmacro-redefined]
  316 | #define CURLE_CONV_FAILED -1
      |         ^
../usr/include/curl/curl.h:707:9: note: previous definition is here
  707 | #define CURLE_CONV_FAILED CURLE_OBSOLETE75
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:317:9: warning: 'CURLE_CONV_REQD' macro redefined [-Wmacro-redefined]
  317 | #define CURLE_CONV_REQD -1
      |         ^
../usr/include/curl/curl.h:706:9: note: previous definition is here
  706 | #define CURLE_CONV_REQD CURLE_OBSOLETE76
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:319:9: warning: 'CURL_VERSION_CONV' macro redefined [-Wmacro-redefined]
  319 | #define CURL_VERSION_CONV 0
      |         ^
../usr/include/curl/curl.h:3137:9: note: previous definition is here
 3137 | #define CURL_VERSION_CONV         (1<<12) /* Character conversions supported */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:332:9: warning: 'CURLE_TFTP_DISKFULL' macro redefined [-Wmacro-redefined]
  332 | #define CURLE_TFTP_DISKFULL -1
      |         ^
../usr/include/curl/curl.h:692:9: note: previous definition is here
  692 | #define CURLE_TFTP_DISKFULL CURLE_REMOTE_DISK_FULL
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:335:9: warning: 'CURLE_TFTP_EXISTS' macro redefined [-Wmacro-redefined]
  335 | #define CURLE_TFTP_EXISTS -1
      |         ^
../usr/include/curl/curl.h:693:9: note: previous definition is here
  693 | #define CURLE_TFTP_EXISTS CURLE_REMOTE_FILE_EXISTS
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:343:9: warning: 'CURL_VERSION_SSPI' macro redefined [-Wmacro-redefined]
  343 | #define CURL_VERSION_SSPI 0
      |         ^
../usr/include/curl/curl.h:3136:9: note: previous definition is here
 3136 | #define CURL_VERSION_SSPI         (1<<11) /* Built against Windows SSPI */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:370:9: warning: 'CURL_VERSION_IDN' macro redefined [-Wmacro-redefined]
  370 | #define CURL_VERSION_IDN 0
      |         ^
../usr/include/curl/curl.h:3134:9: note: previous definition is here
 3134 | #define CURL_VERSION_IDN          (1<<10) /* Internationized Domain Names are
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:375:9: warning: 'CURL_VERSION_LARGEFILE' macro redefined [-Wmacro-redefined]
  375 | #define CURL_VERSION_LARGEFILE 0
      |         ^
../usr/include/curl/curl.h:3133:9: note: previous definition is here
 3133 | #define CURL_VERSION_LARGEFILE    (1<<9)  /* Supports files larger than 2GB */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:381:9: warning: 'CURLOPT_FTP_SSL' macro redefined [-Wmacro-redefined]
  381 | #define CURLOPT_FTP_SSL 0
      |         ^
../usr/include/curl/curl.h:2231:9: note: previous definition is here
 2231 | #define CURLOPT_FTP_SSL CURLOPT_USE_SSL
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:382:9: warning: 'CURLE_FTP_SSL_FAILED' macro redefined [-Wmacro-redefined]
  382 | #define CURLE_FTP_SSL_FAILED -1
      |         ^
../usr/include/curl/curl.h:695:9: note: previous definition is here
  695 | #define CURLE_FTP_SSL_FAILED CURLE_USE_SSL_FAILED
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:386:9: warning: 'CURLE_LDAP_INVALID_URL' macro redefined [-Wmacro-redefined]
  386 | #define CURLE_LDAP_INVALID_URL -1
      |         ^
../usr/include/curl/curl.h:705:9: note: previous definition is here
  705 | #define CURLE_LDAP_INVALID_URL CURLE_OBSOLETE62
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:391:9: warning: 'CURL_VERSION_SPNEGO' macro redefined [-Wmacro-redefined]
  391 | #define CURL_VERSION_SPNEGO 0
      |         ^
../usr/include/curl/curl.h:3132:9: note: previous definition is here
 3132 | #define CURL_VERSION_SPNEGO       (1<<8)  /* SPNEGO auth is supported */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:396:9: warning: 'CURL_VERSION_ASYNCHDNS' macro redefined [-Wmacro-redefined]
  396 | #define CURL_VERSION_ASYNCHDNS 0
      |         ^
../usr/include/curl/curl.h:3131:9: note: previous definition is here
 3131 | #define CURL_VERSION_ASYNCHDNS    (1<<7)  /* Asynchronous DNS resolves */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:401:9: warning: 'CURL_VERSION_NTLM' macro redefined [-Wmacro-redefined]
  401 | #define CURL_VERSION_NTLM 0
      |         ^
../usr/include/curl/curl.h:3127:9: note: previous definition is here
 3127 | #define CURL_VERSION_NTLM         (1<<4)  /* NTLM auth is supported */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:402:9: warning: 'CURL_VERSION_GSSNEGOTIATE' macro redefined [-Wmacro-redefined]
  402 | #define CURL_VERSION_GSSNEGOTIATE 0
      |         ^
../usr/include/curl/curl.h:3128:9: note: previous definition is here
 3128 | #define CURL_VERSION_GSSNEGOTIATE (1<<5)  /* Negotiate auth is supported
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:403:9: warning: 'CURL_VERSION_DEBUG' macro redefined [-Wmacro-redefined]
  403 | #define CURL_VERSION_DEBUG 0
      |         ^
../usr/include/curl/curl.h:3130:9: note: previous definition is here
 3130 | #define CURL_VERSION_DEBUG        (1<<6)  /* Built with debug capabilities */
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:404:9: warning: 'CURLAUTH_NONE' macro redefined [-Wmacro-redefined]
  404 | #define CURLAUTH_NONE 0
      |         ^
../usr/include/curl/curl.h:812:9: note: previous definition is here
  812 | #define CURLAUTH_NONE         ((unsigned long)0)
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:405:9: warning: 'CURLAUTH_BASIC' macro redefined [-Wmacro-redefined]
  405 | #define CURLAUTH_BASIC 0
      |         ^
../usr/include/curl/curl.h:813:9: note: previous definition is here
  813 | #define CURLAUTH_BASIC        (((unsigned long)1)<<0)
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:406:9: warning: 'CURLAUTH_DIGEST' macro redefined [-Wmacro-redefined]
  406 | #define CURLAUTH_DIGEST 0
      |         ^
../usr/include/curl/curl.h:814:9: note: previous definition is here
  814 | #define CURLAUTH_DIGEST       (((unsigned long)1)<<1)
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:407:9: warning: 'CURLAUTH_GSSNEGOTIATE' macro redefined [-Wmacro-redefined]
  407 | #define CURLAUTH_GSSNEGOTIATE 0
      |         ^
../usr/include/curl/curl.h:817:9: note: previous definition is here
  817 | #define CURLAUTH_GSSNEGOTIATE CURLAUTH_NEGOTIATE
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:408:9: warning: 'CURLAUTH_NTLM' macro redefined [-Wmacro-redefined]
  408 | #define CURLAUTH_NTLM 0
      |         ^
../usr/include/curl/curl.h:820:9: note: previous definition is here
  820 | #define CURLAUTH_NTLM         (((unsigned long)1)<<3)
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:409:9: warning: 'CURLAUTH_ANY' macro redefined [-Wmacro-redefined]
  409 | #define CURLAUTH_ANY 0
      |         ^
../usr/include/curl/curl.h:826:9: note: previous definition is here
  826 | #define CURLAUTH_ANY          (~CURLAUTH_DIGEST_IE)
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:410:9: warning: 'CURLAUTH_ANYSAFE' macro redefined [-Wmacro-redefined]
  410 | #define CURLAUTH_ANYSAFE 0
      |         ^
../usr/include/curl/curl.h:827:9: note: previous definition is here
  827 | #define CURLAUTH_ANYSAFE      (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE))
      |         ^
In file included from go/pkg/mod/github.com/!ullaakut/go-curl@v0.0.0-20190525093431-597e157bbffd/const.go:5:
./compat.h:423:2: error: your version is TOOOOOOOO low
  423 | #error your version is TOOOOOOOO low
      |  ^
46 warnings and 1 error generated.
~ $

@Ullaakut
Copy link
Owner

Hi again @ulist . The last error you got there is because as indicated by the error, you have the wrong version of curl installed when trying to compile Cameradar. Please check the README file for details on the topic.

As for the error you got, it is not a bug in Cameradar once again, it is an issue with the OS you use not allowing do use network mapping or not having the proper capabilities in the way Cameradar needs them. There is therefore nothing to debug in Cameradar, the device just needs to be configured differently or use a different OS.

I don't plan on supporting mobile devices with Cameradar so the only supported option at the moment would be using Docker (since that guarantees to me that there is one unique release that is cross platform) but if that doesn't work for you, it's simply not my problem.

If you use the Docker image on Linux, or that you build it manually but with the proper version of the curl library (as indicated in the README), it will work.

Have a nice day!

@seisdr
Copy link

seisdr commented Dec 8, 2023

So I successfully build curl and installed cameradar but it doesn't work well
I have a camera with username "root" and
password "root"
I add the username and password to credentials.json
Then ran the tool and these are the results
Screenshot_٢٠٢٣١٢٠٨-٢٠٣٧٢٨

It said ✔ Successful attack: one device was accessed but it didn't give me the username and password and no RTSP routes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants