Skip to content

Instantly share code, notes, and snippets.

@Siss3l
Siss3l / beta.py
Created May 19, 2024 19:47
MAC Address Wii conversion
m = bytes.fromhex((_ := "01-23-45-67-89-99").replace("-", "").replace(" ", ""))
f = "".join([["L", "R", "U", "D"][(int.from_bytes(
__import__("hashlib").sha1(m+b"\x19\xa5\x7f\x15").digest()[:2] +
__import__("hashlib").sha1(m+b"\x03\x8f\xa5g\x00\x00").digest()[:2]) >> (30-2*i)) & 3]
for i in range(16)]); print(f) # https://mac.lc/company/nintendo-co-l-t-d
@Siss3l
Siss3l / 0524.md
Created May 8, 2024 18:39
Intigriti's May 2024 Web Challenge thanks to @stealthcopter

Intigriti May Challenge

  • Category: Web
  • Impact: Medium
  • Solves: 20

Challenge

Description

@Siss3l
Siss3l / stt.py
Created May 3, 2024 17:15
Multi-lingual multi-tasking NVIDIA models for TTS & STT
asr_model = __import__("nemo").collections.asr.models.EncDecMultiTaskModel.from_pretrained("nvidia/canary-1b")
asr_model.encoder.change_attention_model("rel_pos_local_attn", [128, 128])
asr_model.encoder.change_subsampling_conv_chunking_factor(1)
asr_model.to(__import__("torch").device("cuda:0")) # cpu
print(asr_model.transcribe(audio="long_audio.wav", batch_size=4*4))
@Siss3l
Siss3l / bb84.py
Created April 18, 2024 01:42
Weird Qtest
from qiskit import Aer, ClassicalRegister, QuantumCircuit, QuantumRegister, execute
from qiskit.tools.monitor import job_monitor
from random import choice, randint # from qiskit.circuit.library import U3Gate
chunk_size = 16
expected_key_length = 10
delta = 2 * chunk_size
roundtrips = (4 * expected_key_length + delta) // chunk_size
alice_qubits = QuantumRegister(chunk_size, name="q")
alice_bases = ClassicalRegister(chunk_size, name="b")
@Siss3l
Siss3l / fcsc24.md
Last active April 18, 2024 19:53
France Cybersecurity Challenge 2024

French Cybersecurity Challenge 2024

As for every years, several (non-)European countries are organizing their own cybersecurity event like the CSCG, ACSC or ICSC.

Web

Web category

Here is a selection from the web category.
Please note that some challenges have been modified over time without necessarily paying attention to it.

@Siss3l
Siss3l / 0424.md
Last active April 18, 2024 01:43
Intigriti's April 2024 Web Challenge thanks to @kiredevsandhacks

Intigriti April Challenge

  • Category: Web
  • Impact: Medium
  • Solves: 12

Challenge

Description

@Siss3l
Siss3l / 0324.md
Last active April 15, 2024 18:29
Intigriti's March 2024 Web Challenge thanks to @M0Z

Intigriti March Challenge

  • Category: Web
  • Impact: Medium
  • Solves: 30

Challenge

Description

@Siss3l
Siss3l / 0224.md
Created February 20, 2024 01:13
Intigriti's February 2024 Web Challenge thanks to @BillyNoGoat

Intigriti February Challenge

  • Category: Web
  • Impact: Medium
  • Solves: 20

Challenge

Description

@Siss3l
Siss3l / sealed.md
Last active April 28, 2024 22:12
Sealed Note - 1337UP Capture The Flag 2023 (thanks to @aszx87410)

Sealed Note

  • Category: Web
  • Alone: (0 solve)

Challenge

Description

We have access to a web challenge allowing us to create, read and send notes to a Puppeteer bot:

@Siss3l
Siss3l / 0124.md
Last active April 15, 2024 18:30
Intigriti's January 2024 Web Challenge thanks to @kevin-mizu

Intigriti January Challenge

  • Category: Web
  • Impact: Medium
  • Solves: 15

Challenge

Description