|
|
Регистрация Восстановить пароль |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
Опции темы | Поиск в этой теме |
03.11.2021, 15:32 | #1 |
Новичок
Джуниор
Регистрация: 29.10.2021
Сообщений: 1
|
reverse engeenering for encodig green pass
Hi,
I would like to preface this by saying that I have tried searching for private messages to ask for permission from the mods before posting. In the very probaile case that this post is against the rules there is no problem to delete it or a possible ban . My idea, as the title implies, is to do a reverse engeennering of a script that decodes the green pass. The script I start from is this : https://github.com/rodolphe37/qrcode...e-qr/decode.js My idea was to take the output of this script, modify it and then use it to recreate a string like this: HC1:6BFOXM%TS3DHPVO13J /G-/2YKVA.R/K86PP2FC1J9M$DI9C3 [....] CS62GMVR +B1YM K5MJ1K:K:2JZLT6KM+DTVKPDUG$E7F06FA3 O6I-VA6Y05C712G then with an online converter turn it into qrcode . my script is : const base45 = require("base45"); const cbor = require("cbor"); const fs = require("fs"); const pako = require("pako"); const greenpassData = cbor.encodeAllSync(cbor_data); [headers1, headers2, cbor_data, signature] = results[0].value; const results = cbor.encodeAllSync(output); const output = pako.inflate(encodedData); const encodedData = base45.encode(greenpassBody); const greenpassBody = encodedGreenpass.data.substr(4); console.log( "Decrypted Result :", JSON.stringify(greenpassData[0].get(-260).get(1), null, 2) ); of course it is very rough but I work on it in my spare time . I tried to do a first debug and obviously the input is missing. What can I use? VAR or something else? |
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Reverse | b0nny | C# (си шарп) | 4 | 30.03.2015 23:19 |
reverse | grimm_jow | Общие вопросы C/C++ | 3 | 27.01.2010 20:32 |
login@domain.com;pass она должна брать сначала только "login" потом "domain.com" и на последок "pass" | AquaKlaster | Общие вопросы Delphi | 4 | 05.04.2009 17:31 |