Skip to content

Instantly share code, notes, and snippets.

View Siss3l's full-sized avatar
🦊

Sissel Siss3l

🦊
View GitHub Profile
@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 / 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 / beta.py
Last active February 11, 2025 00:33
MAC Address Wii conversion
def sh1(z):
h, l, p = ([0x67452301,0xEFCDAB89,0x98BADCFE,0x10325476,0xC3D2E1F0],lambda n,b:((n<<b)|(n>>(32-b)))&0xFFFFFFFF,lambda m:m+b"\x80"+b"\x00"*((55-len(m))%int(64))+(int(8)*len(m)).to_bytes(8,"big"))
for g in [p(z)[i:i+64]for i in range(0,len(p(z)),64)]:
w = [int.from_bytes(g[i:i+4],"big")for i in range(0, 64, 4)]
[w.append(l(w[i-3].__xor__(w[i-8]).__xor__(w[i-14]).__xor__(w[i-16]), 1))for i in range(16,80)]; a, b, c, d, e = h
for i in range(80):e,d,c,b,a=d,c,l(b,30),a,l(a,5)+(b&c|~int(b)&(d),b.__xor__(c).__xor__(d),b&c|b&d|c&d,b.__xor__(c).__xor__(d))[i//20]+e+(0x5A827999,0x6ED9EBA1,0x8F1BBCDC,0xCA62C1D6)[i//20]+w[i]&0xFFFFFFFF
h = [(h[i]+[a, b, c, d, e][i])&0xFFFFFFFF for i in range(5)]
return int(sum(x<<(32*i)for i, x in enumerate(h[::-1]))).to_bytes(20,"big")
print("".join("LRUD"[int.from_bytes(sh1(bytes.fromhex("012345678999")+b"\x19\xa5\x7f\x15")[:2]+sh1(bytes.fromhex("012345678999")+b"\x03\x8f\xa5g\x00\x00")[:2],"big")>>30-2*i&3]for i in range(16))) # ULLDRLLUDLRLDDDL
@Siss3l
Siss3l / 0724.md
Last active February 11, 2025 00:33
Intigriti's July 2024 Web Challenge thanks to @amit-laish and @dkonis

Intigriti July Challenge

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

Challenge

Description

@Siss3l
Siss3l / 0824.md
Created August 10, 2024 22:44
Intigriti's August 2024 Web Challenge thanks to @Crypto-Cat

Intigriti August Challenge

  • Category: Web
  • Impact: Medium
  • Solves: 10

Challenge

Description

@Siss3l
Siss3l / ctf.md
Last active February 11, 2025 00:32
1337UP Capture The Flag 2024 - Writeups

1337UP Capture The Flag 2024 - OSINT

  • Category: OSINT
@Siss3l
Siss3l / 1224.md
Last active March 29, 2025 16:49
Intigriti December 2024 Web Challenge @JorianWoltjer

Intigriti December 2024 XSS Challenge

Challenge

Description

The solution:

  • Should leverage a cross site scripting vulnerability on this domain;
  • Should work on the latest version of Chrome and FireFox;
@Siss3l
Siss3l / thm24.md
Last active February 11, 2025 00:26
TryHackMe Advent of Cyber 2024 SideQuests

TryHackMe - Advent of Cyber 2024 Side Quests

In addition to the Advent of Cyber 2024 room, we have an annex Side Quest task.

Side

Description

Five tasks need to be completed to finish the side quests.
The keycards to the machines will be scattered around the main Advent of Cyber 2024 room, hidden in some of the core event challenges.

@Siss3l
Siss3l / 0125.md
Created January 9, 2025 20:09
Intigriti's January 2025 Web Challenge thanks to @0xGodson

Intigriti's January Challenge

Challenge

Description

The solution:

  • Should work on the latest version of Chrome and FireFox;
  • Should leverage a cross site scripting vulnerability on this domain;
@Siss3l
Siss3l / gen10.py
Created January 31, 2025 14:38
Genuary Art 2025 #genuary10 #genuary
"""JAN Ten (credit: Darien Brito) | You can only use TAU in your code, no other number allowed."""
from flask import Flask, Response, request
app = Flask(__name__)
@app.route("/", methods=["GET"])
def start() -> Response:
return Response("""
<!DOCTYPE html>
<html>
<head>
<script src="./p.js"></script>