Skip to content

Instantly share code, notes, and snippets.

@Nereuxofficial
Nereuxofficial / main.rs
Created September 14, 2023 22:16
ESP32 bare-metal Rust display code
#![no_std]
#![no_main]
extern crate alloc;
use core::mem::MaybeUninit;
use embedded_graphics::geometry::Dimensions;
use embedded_graphics::mono_font::ascii::FONT_6X10;
use embedded_graphics::mono_font::MonoTextStyleBuilder;
use embedded_graphics::pixelcolor::BinaryColor;
use embedded_graphics::prelude::*;
@Nereuxofficial
Nereuxofficial / flashmq.log
Created August 10, 2023 10:22
flashmq_log
[2023-08-10 00:32:34] [NOTICE] User '' access denied
[2023-08-10 00:32:34] [ERROR] Protocol error: An unauthenticated client sends a packet of 1 MB or bigger? Probably it's just random bytes.. Removing client.
[2023-08-10 00:32:34] [NOTICE] Removing client '[ClientID='', username='', fd=131, keepalive=0s, transport='TCP/Non-SSL', address='127.0.0.1', prot=none, clean=0]'. Reason(s): An unauthenticated client sends a packet of 1 MB or bigger? Probably it's just random bytes.
[2023-08-10 00:32:34] [ERROR] Protocol error: An unauthenticated client sends a packet of 1 MB or bigger? Probably it's just random bytes.. Removing client.
[2023-08-10 00:32:34] [NOTICE] Removing client '[ClientID='Hello MQTT Broker', username='', fd=130, keepalive=0s, transport='TCP/Non-SSL', address='127.0.0.1', prot=3.1.1, clean=0]'. Reason(s): Access denied
[2023-08-10 00:32:34] [NOTICE] Removing client '[ClientID='', username='', fd=132, keepalive=0s, transport='TCP/Non-SSL', address='127.0.0.1', prot=none, clean=0]'. Reason(s): An u
2023-08-09T22:32:17.494927Z INFO rusty_fume::mqtt: New behavior discovered: Packets([[16, 60, 0, 4, 77, 81, 84, 84, 4, 4, 0, 0, 0, 17, 72, 101, 108, 108, 111, 32, 77, 81, 84, 84, 32, 66, 114, 111, 107, 101, 114, 0, 5, 116, 111, 112, 105, 99, 0, 22, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 72, 255, 50, 0, 0, 0], [], [], [], [], [], [], [], [], []])
2023-08-09T22:32:17.495012Z INFO rusty_fume::mqtt: New behavior discovered: Packets([[16, 60, 4, 77, 81, 84, 84, 4, 4, 0, 0, 17, 72, 101, 108, 108, 111, 32, 77, 81, 84, 32, 145, 114, 111, 107, 101, 114, 0, 5, 116, 111, 112, 105, 99, 0, 22, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 17, 155, 177, 72, 59, 159, 145, 99, 239, 242, 229, 148, 80, 33, 166, 2, 138, 29, 145, 100, 154, 92, 222, 44, 218, 69, 171, 15, 95, 70, 203, 108, 122, 1, 92, 182, 44, 139, 187, 39, 122, 211, 9, 157, 123, 58, 7, 104, 243, 82, 232, 17, 163, 90, 213, 239, 227, 212, 59, 18, 210, 40, 100, 213, 217, 7, 253, 176, 55, 153, 242, 168, 144, 192, 204, 189, 4, 21, 254, 125, 176, 240, 1,
cargo run -r -- --broker-command "./../nanomq/build/nanomq/nanomq start" fuzz
warning: unused import: `trace`
--> src/process_monitor/mod.rs:6:28
|
6 | use tracing::{debug, info, trace};
| ^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: variable does not need to be mutable
Running `target/release/rusty-fume --broker-command 'nanomq start' replay`
2023-08-07T13:02:36.894341Z INFO rusty_fume: Replaying thread number 0
2023-08-07T13:02:37.696280Z ERROR rusty_fume::mqtt: Timeout: Elapsed(())
2023-08-07T13:02:38.397854Z ERROR rusty_fume::mqtt: Timeout: Elapsed(())
2023-08-07T13:02:38.398627Z INFO rusty_fume::runtime: Thread 878195166773143652 finished!
2023-08-07T13:02:38.398730Z INFO rusty_fume: Replaying thread number 1
2023-08-07T13:02:39.200658Z ERROR rusty_fume::mqtt: Timeout: Elapsed(())
2023-08-07T13:02:39.903288Z ERROR rusty_fume::mqtt: Timeout: Elapsed(())
2023-08-07T13:02:40.605286Z ERROR rusty_fume::mqtt: Timeout: Elapsed(())
2023-08-07T13:02:40.605379Z INFO rusty_fume::runtime: Thread 2528892852593983727 finished!
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>Broker benchmarks</title><style>
/* cspell:disable-file */
/* webkit printing magic: print all background colors */
html {
-webkit-print-color-adjust: exact;
}
* {
box-sizing: border-box;
-webkit-print-color-adjust: exact;
}
2023-02-21 10:53:11 [31086] TRACE /mnt/SSD/ClionProjects/MQTT-broker-fuzzing/nanomq/nng/src/core/taskq.c:289 nni_taskq_sys_init: result is 32
2023-02-21 10:53:11 [31086] INFO /mnt/SSD/ClionProjects/MQTT-broker-fuzzing/nanomq/nng/src/supplemental/nanolib/conf.c:914 print_conf: This NanoMQ instance configured as:
2023-02-21 10:53:11 [31086] INFO /mnt/SSD/ClionProjects/MQTT-broker-fuzzing/nanomq/nng/src/supplemental/nanolib/conf.c:916 print_conf: enable tcp: true
2023-02-21 10:53:11 [31086] INFO /mnt/SSD/ClionProjects/MQTT-broker-fuzzing/nanomq/nng/src/supplemental/nanolib/conf.c:918 print_conf: tcp url: nmq-tcp://0.0.0.0:1883
2023-02-21 10:53:11 [31086] INFO /mnt/SSD/ClionProjects/MQTT-broker-fuzzing/nanomq/nng/src/supplemental/nanolib/conf.c:919 print_conf: enable websocket: true
2023-02-21 10:53:11 [31086] INFO /mnt/SSD/ClionProjects/MQTT-broker-fuzzing/nanomq/nng/src/supplemental/nanolib/conf.c:921 print_conf: websocket url: nmq-ws://0.0.0.0:8083/mqtt
2023-02
@Nereuxofficial
Nereuxofficial / Unstuck.md
Last active January 20, 2023 19:29
The book of unwritten Tales unstuck character vieh/critter

How to get your character unstuck In The Book of Unwritten Tales

This may work similarly in the other games and other scenes. In our case critter(or "vieh" in german) was stuck at the tower of evil

To unstuck him we had to access the save file and change this line:

            <item idref="characters_vieh" visualisation="ketten" interactionmode="talk" mouseoverref="texts_vieh_mo_talk_mit_1-4" nameref="none" currentscene="scenes_turm_des_boesen___strasse">

to:

 
@Nereuxofficial
Nereuxofficial / decrypt_jigsaw.py
Created October 22, 2022 21:59
Decrypt Jigsaw encrypted files since a github Project was absolute garbage
import base64
from Crypto.Cipher import AES
def readFile(inputFile):
inFile = open(inputFile, 'rb')
encryptedData = inFile.read()
inFile.close()
@Nereuxofficial
Nereuxofficial / cargo-update.hook
Created August 16, 2021 12:10
Pacman hook for cargo-update
[Trigger]
Operation = Upgrade
Type = Path
Target = /home/[USER]/.cargo/bin/
[Action]
Description = Updates Cargo Binaries
When = PostTransaction
Exec = cargo install-update -a