-
Notifications
You must be signed in to change notification settings - Fork 35
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
fingerprint for telegram #118
Comments
Hello bosoft-ESP, A quick and dirty solution could be a config file stored in a internet connected server (no https or another protocol like FTP) where you keep updated the fingerprint. Cheers, Stefano |
Yes, I have tried the 2 ways with the same result. Now I have a server mounted on a ESP01s, that when I call it, it answers the telegram fingerprint. But that makes me keep an eye on the change and recompile the server when it changes. Thanks shurillu and greetings |
Mmmm do you have an ESP32? With little changes, I believe you can run the same code and it doesn't have the fingerprint issue. Stefano |
I hadn't thought about it. I think I have one, but it will take me a few days to test it. I'll tell you something Regards |
Hello, at last, although it was not expected. But there is something else: it fails (empty String) sometimes if date is not updated. `const char* GRC_host = "https://www.grc.com/fingerprints.htm?domain=api.telegram.org"; #include <WiFi.h> const char* ssid = "yor ssid"; // only works well with client->setInsecure(); // Not sure if WiFiClientSecure checks the validity date of the certificate. void setClock() { Serial.print(F("Waiting for NTP time sync: ")); Serial.println(); WiFiMulti WiFiMulti; void setup() { WiFi.mode(WIFI_STA); // wait for WiFi connection setClock(); void loop() {
} Greetings and thanks |
Hi bosoft-ESP, Stefano |
But fingerprint has not worked with grc.com on an ESP01s either. Regards |
but... why does ctbot work with fingerprint for telegram on a 8266?, and, why does fingerprint NOT work with grc.com? That's the dilemma. Regards |
Hi bosoft-ESP, Stefano |
I have no words to express your great work. Greetings, and thanks for your great work |
Hello bosoft-ESP, Cheers Stefano |
Yes, of course. Regards |
Hello shurillu. I am using: If you need more tests, let me know. I'll let you know. |
Hello bosoft-ESP,
Thank you very much for your test! Stefano |
Thanks for the note on date/time. Greetings and many thanks |
Hello shurillu. Check Wikipedia's 'List of UTC offsets'. Regards Translated with DeepL.com (free version) |
Hello bosoft-ESP,
with your local time zone/daylight saving: doing that, the time is synchronized to the time where you live and the library still works. Cheers Stefano |
ok, I will follow your directions, although I have already installed my modification on an ESP01s, and it seems to work both things correctly. We will see in the next few days Regards |
Hello, Stefano `D:\arduino\libraries\CTBot\src\CTBotSecureConnection.cpp: In constructor 'CTBotSecureConnection::CTBotSecureConnection()': D:\arduino\libraries\CTBot\src\CTBotSecureConnection.cpp:11:2: error: 'm_cert' was not declared in this scope m_cert.append(m_CAcert); Greetings PS: Compiling echoBot for ESP32, results in the same error |
I have solved the problem. m_cert.append(m_CAcert); #endif` With that there is no problem with ES32 Regards |
Hello bosoft-ESP, thank you so much! Bug corrected and I drafted a new release with your changes. Stefano |
Hello, is it running ok? All my ESP8266 don´t run, don´t connect. Thank you. |
The fingerprint has changed few days ago. uint8_t m_fingerprint[20]{ 0x1F, 0x77, 0x5F, 0x20, 0xC5, 0xD3, 0xBD, 0x67, 0xDE, 0xE8, 0x07, 0x9B, 0x59, 0x1D, 0x22, 0xE9, 0xC0, 0xE4, 0x52, 0x4B }; You can find the fingerprint at this page: https://www.grc.com/fingerprints.htm?domain=api.telegram.org |
Hello Nevnevnev1, as already said by DumahBrazorf, the new library version (2.1.13) fix the fingerprint problem for the ESP8266 SOC. Cheers, Stefano |
Hello.
These last years, every 11 months, the fingerprint has been suddenly changed leaving our ESPs disconnected.
I am trying to implement a fingerprint server, but for that I need the ESP that acts as a server to read correctly the https://www.grc.com/fingerprints.htm?domain=api.telegram.org page for my ESPs to download it from the server, implemented in an ESP01s.
My idea is to read every 24H the Telegram finger on grc.com for when the ESPs need to update the finger. But there is no way to read correctly the page from grc. https.GET() results in HTTP_CODE_OK, but reading the web gives an empty String.
Any idea?
`/**
BasicHTTPSClient.ino
*/
// search telegram finger
//https://www.grc.com/fingerprints.htm?domain=api.telegram.org
// data: 27/03/23 to .... 27/02/24????
//const char* finger="8A:10:B5:B9:B1:57:AB:DA:19:74:5B:AB:62:1F:38:03:72:FE:8E:47"; //telegram
//#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClientSecureBearSSL.h>
//data https://www.grc.com
const char* GRC_host = "https://www.grc.com/fingerprints.htm?domain=api.telegram.org";
const char fingerprint_GRC_com [] PROGMEM = "A6:8F:8C:47:6B:D0:DE:9E:1D:18:4A:0A:51:4D:90:11:31:93:40:6D";
#ifndef STASSID
#define STASSID "your ssid"
#define STAPSK "your pass"
#endif
ESP8266WiFiMulti WiFiMulti;
void setup() {
Serial.begin(115200);
// Serial.setDebugOutput(true);
Serial.println();
Serial.println();
Serial.println();
WiFi.mode(WIFI_STA);
WiFiMulti.addAP(STASSID, STAPSK);
Serial.println("setup() done connecting to ssid '" STASSID "'");
}
void loop() {
// wait for WiFi connection
if ((WiFiMulti.run() == WL_CONNECTED)) {
}
Serial.println("Wait 20s before next round...");
delay(20000);
}
`
Thank you
The text was updated successfully, but these errors were encountered: