./env/bin/python Console.py --auth admin:XXXXXX --rhost 192.168.124.196 --proto dhip --rport 80 -d
[*] [Dahua Debug Console 2019-2021 bashis ]
[*] logon type "default" with proto "dhip" at 192.168.124.196:80
[+] Opening connection to 192.168.124.196 on port 80: Done
[-] Dahua Debug Console: Trying
[+] Login: Success
[BEGIN SEND (192.168.124.196)] <------------------1801------------------>
20000000|44484950|00000000|00000000|91000000|00000000|91000000|00000000
{"method": "global.login", "params": {"userName": "admin", "password": "", "clientType": "Web3.0", "loginType": "Direct"}, "id": 0, "session": 0}
[ END SEND (192.168.124.196)] <------------------1801------------------>
[BEGIN RECV (192.168.124.196)] <------------------1917------------------>
20000000|44484950|d9649aa9|00000000|eb000000|00000000|eb000000|00000000
{"result":false,"params":{"realm":"Login to EB2711F0F250EAB5","random":"80480036-1e1f-4669-812b-70d7470d6025","encryption":"Default"},"error":{"code":268632079,"message":"Component error: login challenge!"},"id":0,"session":2845467865}
[ END RECV (192.168.124.196)] <------------------1917------------------>
[BEGIN SEND (192.168.124.196)] <------------------1801------------------>
20000000|44484950|d9649aa9|01000000|09010000|00000000|09010000|00000000
{"method": "global.login", "params": {"userName": "admin", "ipAddr": "127.0.0.1", "loginType": "Direct", "clientType": "Console", "authorityType": "Default", "passwordType": "Default", "password": "5D62F915E62F3BC989F6A31E27C"}, "id": 1, "session": 2845467865}
[ END SEND (192.168.124.196)] <------------------1801------------------>
[BEGIN RECV (192.168.124.196)] <------------------1917------------------>
20000000|44484950|d9649aa9|01000000|4d000000|00000000|4d000000|00000000
{"result":true,"params":{"keepAliveInterval":30},"id":1,"session":2845467865}
[ END RECV (192.168.124.196)] <------------------1917------------------>
[BEGIN SEND (192.168.124.196)] <------------------1801------------------>
20000000|44484950|d9649aa9|02000000|5e000000|00000000|5e000000|00000000
{"method": "userManager.getActiveUserInfoAll", "params": null, "id": 2, "session": 2845467865}
[+] keepAlive thread: Started
[ END SEND (192.168.124.196)] <------------------1801------------------>
[BEGIN RECV (192.168.124.196)] <------------------1917------------------>
20000000|44484950|d9649aa9|02000000|c4000000|00000000|c4000000|00000000
{"result":true,"params":{"users":[{"Id":1,"Name":"admin","Group":"admin","ClientType":"RemoteRPC","ClientAddress":"192.168.123.10","LoginTime":"2022-05-13 19:00:25"}]},"id":2,"session":2845467865}
[ END RECV (192.168.124.196)] <------------------1917------------------>
[*] [Active Users]
[email protected] since 2022-05-13 19:00:25 with "RemoteRPC" (Id: 1)
[BEGIN SEND (192.168.124.196)] <------------------1801------------------>
20000000|44484950|d9649aa9|06000000|4c010000|00000000|4c010000|00000000
{"method": "system.multicall", "params": [{"method": "magicBox.getDeviceType", "params": null, "id": 3, "session": 2845467865}, {"method": "magicBox.getDeviceClass", "params": null, "id": 4, "session": 2845467865}, {"method": "global.getCurrentTime", "params": null, "id": 5, "session": 2845467865}], "id": 6, "session": 2845467865}
[ END SEND (192.168.124.196)] <------------------1801------------------>
[BEGIN RECV (192.168.124.196)] <------------------1917------------------>
20000000|44484950|d9649aa9|06000000|da000000|00000000|da000000|00000000
{"result":true,"params":[{"result":true,"id":3,"params":{"type":"IPC-A22E-B"}},{"result":true,"id":4,"params":{"type":"IPC"}},{"result":true,"id":5,"params":{"time":"2022-05-13 19:00:25"}}],"id":6,"session":2845467865}
[ END RECV (192.168.124.196)] <------------------1917------------------>
[*] Remote Model: IPC-A22E-B, Class: IPC, Time: 2022-05-13 19:00:25
[BEGIN SEND (192.168.124.196)] <------------------1801------------------>
20000000|44484950|d9649aa9|07000000|50000000|00000000|50000000|00000000
{"method": "system.listService", "params": null, "id": 7, "session": 2845467865}
[ END SEND (192.168.124.196)] <------------------1801------------------>
[BEGIN RECV (192.168.124.196)] <------------------1917------------------>
20000000|44484950|d9649aa9|07000000|65000000|00000000|65000000|00000000
{"result":false,"error":{"code":268632064,"message":"InterfaceNotFound"},"id":7,"session":2845467865}
[ END RECV (192.168.124.196)] <------------------1917------------------>
[Console]# services
[-] Invalid command: 'help' for help
[Console]# service
Traceback (most recent call last):
File "/home/msw/soft/DahuaConsole/Console.py", line 852, in
main()
File "/home/msw/soft/DahuaConsole/Console.py", line 846, in main
DebugConsole(dargs=dargs)
File "/home/msw/soft/DahuaConsole/Console.py", line 28, in init
self.main_console()
File "/home/msw/soft/DahuaConsole/Console.py", line 239, in main_console
exec(tmp)
File "", line 1, in
File "/home/msw/soft/DahuaConsole/dahua.py", line 97, in list_service
self.check_for_service('dump')
File "/home/msw/soft/DahuaConsole/net.py", line 1163, in check_for_service
if not len(self.RemoteServicesCache):
TypeError: object of type 'bool' has no len()
[*] Closed connection to 192.168.124.196 port 80