This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime | |
| import hashlib | |
| import random | |
| import struct | |
| def dga(tlds: [str], seed: int, seq_init: int, seq_len: int, dt: int = None) -> str: | |
| if dt is None: | |
| dt = datetime.datetime.today().toordinal() | |
| hash_str = str(dt).encode("ascii") + str(seed).encode("ascii") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git applications/main/nfc/nfc.c applications/main/nfc/nfc.c | |
| index 4540f5d9..16d5837e 100644 | |
| --- applications/main/nfc/nfc.c | |
| +++ applications/main/nfc/nfc.c | |
| @@ -290,8 +290,6 @@ int32_t nfc_app(void* p) { | |
| } else if(nfc->dev->format == NfcDeviceSaveFormatMifareClassic) { | |
| scene_manager_next_scene(nfc->scene_manager, NfcSceneMfClassicEmulate); | |
| DOLPHIN_DEED(DolphinDeedNfcEmulate); | |
| - } else if(nfc->dev->format == NfcDeviceSaveFormatBankCard) { | |
| - scene_manager_next_scene(nfc->scene_manager, NfcSceneDeviceInfo); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use bytes::Buf; | |
| use tokio_util::codec; | |
| use super::BeEncode; | |
| pub struct StringDecoder; | |
| impl codec::Decoder for StringDecoder { | |
| type Item = BeEncode; |
OlderNewer