lookyloo icon indicating copy to clipboard operation
lookyloo copied to clipboard

[Feature] Find telegram IDs in rendered page

Open Rafiot opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

Capture example: https://lookyloo.circl.lu/tree/3cd25890-62a4-4f88-b431-822c7aed7b39

Content

            // Telegram bot config
            const chatId = '7437481970';
            const botId = 'bot7235710937:AAHv_r7LE4wnbu8VrTtsQ4CISJrgRhKCoVA';
            const telegramUrl = `https://api.telegram.org/${botId}/sendMessage`;

TODO: add identifier in har2tree parser (https://github.com/Lookyloo/har2tree/blob/cc6dfbf0aecb36f24d1f5955b7a43df45aded74b/har2tree/helper.py#L259) - regex: bot<digits>:<alphanum> (+ a few other characters to alphanum)

Probably same as there: https://core.telegram.org/bots/api#setwebhook

Only characters A-Z, a-z, 0-9, _ and - are allowed.

Describe the solution you'd like

Index that.

Rafiot avatar Sep 02 '24 13:09 Rafiot