mnakada / atomcam_tools

Hack tool for atomcam and wyzecam.
Other
183 stars 22 forks source link

Many requests to google.com #57

Closed thematrixdev closed 2 years ago

thematrixdev commented 2 years ago

I have just found there are many google.com requests coming from the cameras. There are more than 30000 requests in last 24 hours. image image

I have briefly searched in the source code. I cannot find anything related to google.com

Does anyone have the same issue?

mnakada commented 2 years ago

It's in iCamera_app.

# grep google /atom/system/bin/*
/atom/system/bin/iCamera_app:www.google.com
thematrixdev commented 2 years ago

The line looks like this

^@^@^@www.google.com^@^@[%s,%04d][%s] net_service init fail...

So the official firmware thinks my network is problematic?

mnakada commented 2 years ago

No, looking at the dis-compile of iCamra_app, it looks like they are throwing something to www.google.com to check the network.

undefined * FUN_004427f0(void)

{
  int iVar1;
  undefined *puVar2;
  char acStack384 [20];
  undefined4 local_16c;
  undefined2 local_168;
  undefined local_166;
  undefined4 local_15c;
  undefined2 local_158;
  undefined local_156;
  undefined auStack332 [64];
  undefined auStack268 [64];
  undefined4 local_cc;
  undefined4 local_c8;
  undefined4 local_c4;
  undefined auStack176 [64];
  char local_70 [64];
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_1c;
  undefined4 local_18 [3];

  memset(local_70,0,0x40);
  memset(auStack176,0,0x40);
  local_30 = 0;
  local_2c = 0;
  local_28 = 0;
  local_24 = 0;
  local_20 = 0;
  local_18[0] = 0;
  memset(acStack384,0,0xd0);
  local_1c = 0;
  FUN_004426f4();
  iVar1 = curl_global_init(3);
  if (iVar1 == 0) {
    FUN_0044ff70(&local_30);
    strcpy(acStack384,(char *)&local_30);
    local_16c = 0x2e382e38;
    local_15c = 0x2e382e38;
    local_168 = 0x2e38;
    local_158 = 0x2e34;
    local_166 = 0x38;
    local_156 = 0x34;
    memcpy(auStack332,"www.google.com",0xe);
    memcpy(auStack268,"device-api.atomtech.co.jp",0x19);
    local_cc = 0x50;
    local_c8 = 0x1bb;
    local_c4 = 1;
    iVar1 = FUN_0044d014(acStack384);
    if (iVar1 == 0) {
      iVar1 = FUN_0044c2e4(FUN_00441a80);
      if (iVar1 == 0) {
        FUN_0044f8f0(local_70);
        FUN_0044f958(auStack176);
        FUN_0044f9c0(local_18);
        FUN_0044fa0c(&local_1c);
        if (local_70[0] == '\0') {
          FUN_0045098c("[%s,%04d]No SSID, waitting here...\n","init.c",0x3b0);
          puVar2 = (undefined *)0x0;
        }
        else {
          FUN_0045098c("[%s,%04d]wifi sta mode....\n","init.c",0x3a3);
          FUN_0045098c("[%s,%04d]ssid: %s\n","init.c",0x3a4,local_70);
          FUN_0045098c("[%s,%04d]passwd: %s\n","init.c",0x3a5,auStack176);
          iVar1 = FUN_0044cc74(local_70,auStack176,local_18[0],0);
          puVar2 = (undefined *)0x0;
          if (iVar1 != 0) {
            FUN_0045098c("[%s,%04d][%s] netserv_mode_switch_station fail...\n","init.c",0x3aa,
                         "init_net");
            puVar2 = (undefined *)0x1;
          }
        }
      }
      else {
        FUN_0045098c("[%s,%04d][%s] net_state_set_callback fail...\n","init.c",0x397,"init_net");
        puVar2 = (undefined *)0xffffffd5;
      }
    }
    else if (iVar1 == -3) {
      FUN_00451bd4(FUN_0043865c,0,"Factoryt-timing");
      FUN_0045098c("[%s,%04d][%s] net_service init fail, No MAC, to add AGING_TIME...\n","init.c",
                   0x38f,"init_net");
      puVar2 = (undefined *)0x0;
    }
    else {
      FUN_0045098c("[%s,%04d][%s] net_service init fail...\n","init.c",0x388,"init_net");
      puVar2 = (undefined *)0xffffffd6;
    }
  }
  else {
    FUN_0045098c("[%s,%04d]err: curl_global_init() fail:%d\n","init.c",0x36d,iVar1);
    puVar2 = &DAT_ffffffd8;
  }
  return puVar2;
}
thematrixdev commented 2 years ago

Okay. It is the official firmware problem. I am going to block uncessary Internet requests from the cameras. Thank you very much.