This file contains 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; |
This file contains 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 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 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
class Trie { | |
public: | |
Trie() { | |
memset(children, 0, sizeof(children)); | |
valid = false; | |
} | |
void insert(string word) { | |
// from trie root | |
auto node = this; |
This file contains 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
[*] ELF sections summary: | |
+-------+--------------------+----------+-------+-------+-----------------+ | |
| index | name | vaddr | size | perms | type | | |
+-------+--------------------+----------+-------+-------+-----------------+ | |
| 0x0 | | 0x0 | 0x0 | --- | SHT_NULL | | |
| 0x1 | .interp | 0x400238 | 0x1c | r-- | SHT_PROGBITS | | |
| 0x2 | .note.ABI-tag | 0x400254 | 0x20 | r-- | SHT_NOTE | | |
| 0x3 | .note.gnu.build-id | 0x400274 | 0x24 | r-- | SHT_NOTE | | |
| 0x4 | .gnu.hash | 0x400298 | 0x38 | r-- | SHT_GNU_HASH | | |
| 0x5 | .dynsym | 0x4002d0 | 0xf0 | r-- | SHT_DYNSYM | |
This file contains 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
KERNEL=4.10.3 | |
NPROC=$(nproc) | |
HERE=$(dirname $(readlink -f "$0")) | |
function log | |
{ | |
printf "[+] $1\n" | |
} |
This file contains 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
""" | |
IOCTL decoding into an IOCTL dataclass | |
See also: | |
* https://www.osronline.com/article.cfm%5Earticle=229.htm | |
* http://www.ioctls.net/ | |
* https://github.com/h0mbre/ioctl.py | |
* https://github.com/nccgroup/DriverBuddy/blob/master/DriverBuddy/ioctl.py | |
* https://social.technet.microsoft.com/wiki/contents/articles/24653.decoding-io-control-codes-ioctl-fsctl-and-deviceiocodes-with-table-of-known-values.aspx |
This file contains 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 os | |
import re | |
import sys | |
import logging | |
import argparse | |
import subprocess | |
import requests | |
This file contains 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
// | |
// Windows x86 Interrupt Descriptor Table (IDT) hook test | |
// | |
// Barakat Soror (https://twitter.com/barakatsoror) | |
// | |
#include <Windows.h> | |
int main(void) | |
{ |
This file contains 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
<# | |
Update 2021-05-22 | |
https://raw.githubusercontent.com/MattiasC85/Scripts/master/OSD/Download-AppxFromStore.ps1 | |
https://github.com/microsoftfeedback/WinDbg-Feedback/issues/19 | |
https://www.microsoft.com/en-us/p/windbg-preview/9pgjgd53tn86 | |
Update 2020-02-18 | |
Thanks @BruceDawson0xB for pointing out the flaw in the regex pattern. if %tmp% began with a lowercase char the script would fail. |
NewerOlder