Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > Web программирование > JavaScript, Ajax
Регистрация

Восстановить пароль
Повторная активизация e-mail

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 03.11.2021, 15:32   #1
pregianza
Новичок
Джуниор
 
Регистрация: 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?
pregianza вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
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