The Chief Posted December 26, 2019 Share #226 Posted December 26, 2019 1 минуту назад, GrafAtRuss сказал: Это под ARM5. Я его только вечером оттестирую Исправленный x86-64 работает? Сколько лицензий у вас показывает? Quote Link to comment Share on other sites More sharing options...
UrriTim Posted December 26, 2019 Share #227 Posted December 26, 2019 (edited) Комрады, нужна консультейшн. Имеем квартиру с живущей в одиночестве бабушкой жены. Бабушка в силу почтенного возраста страдает старческой деменцией и чутка не в себе. Нужно поставить пару-тройку камер для постоянного наблюдения, ибо находиться у неё дома для постоянного за ней ухода нет никакой возможности. В квартире у бабушки есть интернет и роутер. Есть удалённый Сино в другом конце города (у нас дома). Можно-ли установить SurveillanceStation для удалённого подключения камер в Сино? Или, быть может, какой другой вариант. Буду очень признателен за любой совет по установке и настройке девайсов. Edited December 26, 2019 by UrriTim Quote Link to comment Share on other sites More sharing options...
The Chief Posted December 26, 2019 Share #228 Posted December 26, 2019 (edited) 1 час назад, elitef сказал: poprobival etot, no kogda pitaus obratno zayti, polychau msg "Sorry, the page you are looking for is not found" Зачем вы пытаетесь ставить .so не от вашей платформы? Этот — для ARM. Вам нужен .so из этого сообщения и два демона из этого.. Edited December 26, 2019 by The Chief Quote Link to comment Share on other sites More sharing options...
elitef Posted December 26, 2019 Share #229 Posted December 26, 2019 1 hour ago, The Chief said: Зачем вы пытаетесь ставить .so не от вашей платформы? Этот — для ARM. Вам нужен .so из этого сообщения и два демона из этого.. Ne te faili ispolzival. vso rabotaet teper, spasibo bolshoe Quote Link to comment Share on other sites More sharing options...
GrafAtRuss Posted December 26, 2019 Share #230 Posted December 26, 2019 3 часа назад, The Chief сказал: Исправленный x86-64 работает? Сколько лицензий у вас показывает? Количество 67, раз в 2 часа камеры отключаются, но не слетают из списка. Quote Link to comment Share on other sites More sharing options...
Agisofttm Posted December 26, 2019 Share #231 Posted December 26, 2019 11 hours ago, The Chief said: 3 hours ago, The Chief said: Исправленный x86-64 работает? Сколько лицензий у вас показывает? Камер 67 и у меня уже, но через 2 часа сервис останавливается и не идет, сейчас ставлю новый libssutils, и скажу через 2 часа Quote Link to comment Share on other sites More sharing options...
elitef Posted December 26, 2019 Share #232 Posted December 26, 2019 (edited) ya tolka 3 chasa nazad ystanovil, no poka ne vizju chto otklychaesta chtoto. Odna kamera bila dobavlenna 11:35AM, seychas 1:54PM i vse video v Recordings po 30 minute tak kak i dolzjni bit bez promezjudkov Tolka zametil chto ostanovilis kameri - 11:35AM do 2:25PM EST perezapystil vse kameri seychas v 3:13PM, posmotrim skolka proderzjytsa Edited December 26, 2019 by elitef Quote Link to comment Share on other sites More sharing options...
The Chief Posted December 26, 2019 Share #233 Posted December 26, 2019 Понятно. Я пока изучаю вопрос. Вроде нашёл, почему отвалы, но ещё буду тестировать у себя. Quote Link to comment Share on other sites More sharing options...
montagnic Posted December 26, 2019 Author Share #234 Posted December 26, 2019 5 часов назад, UrriTim сказал: Комрады, нужна консультейшн. Имеем квартиру с живущей в одиночестве бабушкой жены. Бабушка в силу почтенного возраста страдает старческой деменцией и чутка не в себе. Нужно поставить пару-тройку камер для постоянного наблюдения, ибо находиться у неё дома для постоянного за ней ухода нет никакой возможности. В квартире у бабушки есть интернет и роутер. Есть удалённый Сино в другом конце города (у нас дома). Можно-ли установить SurveillanceStation для удалённого подключения камер в Сино? Или, быть может, какой другой вариант. Буду очень признателен за любой совет по установке и настройке девайсов. Можно конечно. Один белый ип. Поднять впн на домашнем. От бабульки подключиться к впну домашнему и прицепить камеры к ss Quote Link to comment Share on other sites More sharing options...
montagnic Posted December 26, 2019 Author Share #235 Posted December 26, 2019 Да, камеры действительно отваливаются через 2 часа. 8 штук. Остановились, но не удалились. Quote Link to comment Share on other sites More sharing options...
The Chief Posted December 27, 2019 Share #236 Posted December 27, 2019 6 часов назад, montagnic сказал: через 2 часа Через 3. Quote Link to comment Share on other sites More sharing options...
montagnic Posted December 27, 2019 Author Share #237 Posted December 27, 2019 1 час назад, The Chief сказал: Через 3. через 2. запустил в 0:00 в 1:58 последняя запись Quote Link to comment Share on other sites More sharing options...
GrafAtRuss Posted December 27, 2019 Share #238 Posted December 27, 2019 Дело судя по всему не в sbin-нах, а именно в so или еще каком-то его проверяльщике, т.к. его замена на оригинал решает проблему, но сбивает лицензии до 2-х... Quote Link to comment Share on other sites More sharing options...
Agisofttm Posted December 27, 2019 Share #239 Posted December 27, 2019 Несколько лет назад кто-то опубликовал объяснение стартапа, но я не уверен, что это может помочь сейчас. Это все еще старо, но если это может помочь, вот оно: // Synology surveillance station license key generator // // update address of GenerateKey symbol in libsynoss_1.so: // nm -D /var/packages/SurveillanceStation/target/lib/libsynoss_1.so | grep GenerateKey // // install gcc on synology machine: // ipkg install crosstool-native optware-devel // // compile by calling: // g++ synogen.cpp -ldl -o synogen // // run: // ./synogen // // Do not misuse this tool, use it only for testing purposes and then delete the // key from your machine. // // How does this tool work? After entering license key in Key manager, disk station calls // function VerifyKey from libsynoss_1.so to validate new key. Every key is composed from // 4 bits determining how many cameras will be activated (1, 4, 8), unique 32 bit key and // remaining part of the sequence is just SHA1 hash of the previous part. Binary value of // this block is encoded into human readable form using this alphabet: 'BCDFGHJKMPQRTVWXY2346789' // Unique 32 bit number is in range <15000000, 20000000> for normal license or in range // <20000000, 20100000> for trial key. Every license is also sent with your diskstation // serial number to synology servers (synosurveillance.synology.com) to verify whether someone // is not already using this key. // // Some engineer at synology forgot to remove function GenerateKey from the libsynoss_1.so library // which takes two numbers (camera count and unique id) and generates the string with license key. // This is pretty funny fail from synology side, so instead of reverse engineering all the // bit manipulation done in VerifyKey function, we just call GenerateKey(8, random number, strCode) // to get valid activation code for 8 cameras. The GenerateKey function is not exported and cannot // be loaded using dlsym, but due to benefits of ELF shared objects and wrong linker configuration // we can determine the function's offset by calling nm -D command. This code was tested on // PowerPc based diskstations, but I have found function with the same name also on x86 synology // machine. #include <iostream> #include <string> #include <dlfcn.h> #include <link.h> const int nGenerateKeyRelativeAddr = 0x537dc; int main() { std::cout << "Synology license key generator by valky.eu" << std::endl; std::string arr[] = { "libpq.so.5", "libstdc++.so.5", "libsynosdk.so.4", "libcrypt.so.1", "libicui18n.so.22", "libicuuc.so.22", "libicudata.so.22", "libxml2.so.2", "libm.so.6", "libdl.so.2", "libpam.so.0", "libpthread.so.0", "librt.so.1", "libjson.so", "libsynobandwidth.so", "libsynowimax.so", "libcurl.so.4", "libdsm.so.4", "libsynoutils.so.1", "libsynoddnsclient.so", "libsynowimax.so", "libbackup.so", "libsynoacl.so", "libcurl.so.4", "libsynoldap.so.4", "libcrypto.so.1.0.0", "libssl.so.1.0.0", "libsynosmtp.so", "libjpeg.so.62", "libfindhost.so.1", "libncurses.so.5", "libsqlite3.so.0", "libsynodb.so", "/var/packages/SurveillanceStation/target/lib/libsynoss_1.so" }; typedef void (*TGenerateKey)(int, int, std::string &); TGenerateKey GenerateKey; void* handle; for (int i=0; i<sizeof(arr)/sizeof(arr[0]); i++) { std::cout << "Loading library=" << arr << "..."; handle = dlopen (arr.c_str(), RTLD_NOW | RTLD_GLOBAL); if (!handle) { std::cout << " Error" << std::endl; fputs (dlerror(), stderr); return 1; } std::cout << " Ok." << std::endl; } struct link_map *lm = (struct link_map*) handle; GenerateKey = (TGenerateKey)(lm->l_addr + nGenerateKeyRelativeAddr); for (int i=0; i<100; i++) { int nCameras = 8; int nKeyMin = 15000000; int nKeyMax = 20000000; int nKeyMaxTrial = 20100000; int nKey = nKeyMin + (rand() & 0xffff); std::string str; (*GenerateKey)(nKey, nCameras, str); std::cout << " Key = " << str << std::endl; } return 0; } Quote Link to comment Share on other sites More sharing options...
sania-owner Posted December 27, 2019 Share #240 Posted December 27, 2019 Всем привет У меня есть патч для armada38x. Стоит выкладывать ? Quote Link to comment Share on other sites More sharing options...
GrafAtRuss Posted December 27, 2019 Share #241 Posted December 27, 2019 Стоит. Моло ли кому пригодится... Quote Link to comment Share on other sites More sharing options...
sania-owner Posted December 27, 2019 Share #242 Posted December 27, 2019 Armada38x_SS8.1.4.5498 Гугл диск https://drive.google.com/open?id=1dKUIHOPN0atI-k5idkUd4vc1qWw-vZJg Яндекс диск https://yadi.sk/d/92shg_xMyvCPIA Quote Link to comment Share on other sites More sharing options...
The Chief Posted December 27, 2019 Share #243 Posted December 27, 2019 (edited) Вот же дивный народ! Они даже самогенерированные дефолтные лицензии раз в два часа проверяют на валидность через сайт! Т.е. если у DS запрещён интернет, то проблем не было, а если разрешён — отваливалось. Нет, не работает. Отваливается, но позже, через 3 часа. Edited December 27, 2019 by The Chief Quote Link to comment Share on other sites More sharing options...
The Chief Posted December 27, 2019 Share #244 Posted December 27, 2019 3 часа назад, Agisofttm сказал: we just call GenerateKey(8, random number, strCode) // to get valid activation code for 8 cameras. И через 2 часа он будет проверен онлайн и уйдёт в блэклист. Quote Link to comment Share on other sites More sharing options...
Agisofttm Posted December 27, 2019 Share #245 Posted December 27, 2019 И не поможет ли в этом случае перезапуск СС каждые 2 часа? Как и в случае с бомбой замедленного действия в предыдущей версии ... перезапуск СС, 4 раза в день и никаких проблем. Quote Link to comment Share on other sites More sharing options...
The Chief Posted December 27, 2019 Share #246 Posted December 27, 2019 2 минуты назад, Agisofttm сказал: И не поможет ли в этом случае перезапуск СС каждые 2 часа? Поможет, но это ужасно неудобно, коряво и я хочу найти все закладки довести хак до ума. Quote Link to comment Share on other sites More sharing options...
Agisofttm Posted December 27, 2019 Share #247 Posted December 27, 2019 Я согласен с вами, что это не удобно, но в крайнем случае это будет некоторый вариант, потому что другой вариант состоит в том, чтобы заблокировать SS от отправки информации по сети. Quote Link to comment Share on other sites More sharing options...
GrafAtRuss Posted December 27, 2019 Share #248 Posted December 27, 2019 А под АРМ5 новый комплект исправленных файлов? Quote Link to comment Share on other sites More sharing options...
GrafAtRuss Posted December 27, 2019 Share #249 Posted December 27, 2019 Заменил so после нового патча. Камеры снова выключились. Но менял только SO! Остальные из под нового патча менять не нужно? Quote Link to comment Share on other sites More sharing options...
GrafAtRuss Posted December 30, 2019 Share #250 Posted December 30, 2019 Всем привет! Пока новостей нет? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.