superhacker777 / hikka

IP camera bruteforcer
156 stars 64 forks source link

Problem - "hikka: command not found" #33

Open Browder96 opened 2 years ago

Browder96 commented 2 years ago

Hey, so I did everything what is in description but i still get this, i tried it again, on different computer and still nothing. I'm using Ubuntu. Any ideas how to fix it? Sending you log after opening hikka and make

cd hikka && make
GOOS=linux CGO_CFLAGS="-I/home/xxxx/hikka/include" CGO_LDFLAGS="-L/home/xxx/hikka/lib/Linux -Wl,-rpath=/home/xxxx/hikka/lib/Linux -lhcnetsdk" go build -ldflags "-s -w" -o build/Linux/hikka src/hikka.go
# command-line-arguments
cgo-gcc-prolog: In function ‘_cgo_e19d878389bf_Cfunc_NET_DVR_CaptureJPEGPicture’:
cgo-gcc-prolog:56:68: warning: passing argument 3 of ‘NET_DVR_CaptureJPEGPicture’ from incompatible pointer type [-Wincompatible-pointer-types]
In file included from src/hikka.go:4:
/home/xxxx/hikka/include/HCNetSDK.h:13330:103: note: expected ‘LPNET_DVR_JPEGPARA’ {aka ‘struct <anonymous> *’} but argument is of type ‘struct <anonymous> *’
13330 | NET_DVR_API BOOL __stdcall NET_DVR_CaptureJPEGPicture(LONG lUserID, LONG lChannel, LPNET_DVR_JPEGPARA lpJpegPara, const char *sPicFileName);
      |                                                                                    ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
cgo-gcc-prolog: In function ‘_cgo_e19d878389bf_Cfunc_NET_DVR_Login’:
cgo-gcc-prolog:160:79: warning: passing argument 5 of ‘NET_DVR_Login’ from incompatible pointer type [-Wincompatible-pointer-types]
In file included from src/hikka.go:4:
/home/xxxx/hikka/include/HCNetSDK.h:13117:150: note: expected ‘LPNET_DVR_DEVICEINFO’ {aka ‘struct <anonymous> *’} but argument is of type ‘struct <anonymous> *’
13117 | NET_DVR_API LONG __stdcall NET_DVR_Login(const char *sDVRIP, const WORD wDVRPort, const char *sUserName, const char *sPassword, LPNET_DVR_DEVICEINFO lpDeviceInfo);
      |                                                                                                                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
cp lib/Linux/libhcnetsdk.so build/Linux/
cp lib/Linux/libHCCore.so build/Linux/
cp lib/Linux/libhpr.so build/Linux/
cp -r lib/Linux/HCNetSDKCom/ build/Linux/
cp dist/hosts build/Linux
cp dist/logins build/Linux
cp dist/passwords build/Linux
CGO_CFLAGS="-I/home/xxxx/hikka/include" CGO_LDFLAGS="-L/home/xxxx/hikka/lib/Windows -Wl,--enable-stdcall-fixup,-rpath=/home/xxxx/hikka/lib/Windows -lHCNetSDK" GOOS=windows CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ go build -ldflags "-s -w" -o build/Windows/hikka.exe src/hikka.go
# command-line-arguments
cgo-gcc-prolog: In function ‘_cgo_e19d878389bf_Cfunc_NET_DVR_CaptureJPEGPicture’:
cgo-gcc-prolog:56:68: warning: passing argument 3 of ‘NET_DVR_CaptureJPEGPicture’ from incompatible pointer type [-Wincompatible-pointer-types]
In file included from src/hikka.go:4:
/home/xxxx/hikka/include/HCNetSDK.h:13330:103: note: expected ‘LPNET_DVR_JPEGPARA’ {aka ‘struct <anonymous> *’} but argument is of type ‘struct <anonymous> *’
13330 | NET_DVR_API BOOL __stdcall NET_DVR_CaptureJPEGPicture(LONG lUserID, LONG lChannel, LPNET_DVR_JPEGPARA lpJpegPara, const char *sPicFileName);
      |                                                                                    ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
cgo-gcc-prolog: In function ‘_cgo_e19d878389bf_Cfunc_NET_DVR_Login’:
cgo-gcc-prolog:160:79: warning: passing argument 5 of ‘NET_DVR_Login’ from incompatible pointer type [-Wincompatible-pointer-types]
In file included from src/hikka.go:4:
/home/xxxx/hikka/include/HCNetSDK.h:13117:150: note: expected ‘LPNET_DVR_DEVICEINFO’ {aka ‘struct <anonymous> *’} but argument is of type ‘struct <anonymous> *’
13117 | NET_DVR_API LONG __stdcall NET_DVR_Login(const char *sDVRIP, const WORD wDVRPort, const char *sUserName, const char *sPassword, LPNET_DVR_DEVICEINFO lpDeviceInfo);
      |                                                                                                                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
cp lib/Windows/HCNetSDK.dll build/Windows/
cp lib/Windows/HCCore.dll build/Windows/
cp -r lib/Windows/HCNetSDKCom/ build/Windows/
cp dist/hosts build/Windows/hosts
cp dist/logins build/Windows/logins
cp dist/passwords build/Windows/passwords
hikka
hikka: command not found
nosajlb commented 1 year ago

Cd to directory with script and try adding ./ before hikka

e.g. $ ./hikka -threads 200 -shoots pics/