Skip to content

Instantly share code, notes, and snippets.

View rebane2001's full-sized avatar
🦊

Lyra Rebane rebane2001

🦊
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
<style>
/*

Hack.lu CTF 2023 - Safest Eval (Python jail escape)

Challenge by: realansgar
Writeup by: rebane2001

Overview

The challenge consists of a simple Flask webapp that lets you eval arbitrary Python code in a jail in order to evaluate your solution to a leetcode-style programming challenge. The flag can be retrieved by running the /readflag setuid program. The source code was provided.

Flash challenge website

@rebane2001
rebane2001 / maalehe_mäng_lõputu.html
Created February 24, 2024 19:51
Pikem versioon Maalehe mängust
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="https://r.muu.ee/39109/73149/index.hyperesources/homoteerull_1.png">
<meta content="Maalehe Mäng Lõputu" property="og:title" />
<meta content="Pikem versioon Maalehe mängust" property="og:description" />
<meta content="https://lyra.horse/misc/maalehe_mäng_lõputu.html" property="og:url" />
<meta content="https://r.muu.ee/39109/73149/index.hyperesources/homoteerull_1.png" property="og:image" />
// ==UserScript==
// @name Search Hobune for unavailable video IDs
// @namespace hobune.stream
// @match https://www.youtube.com/watch
// @grant GM_xmlhttpRequest
// @connect hobune.stream
// @version 1.1
// @author Rebane
// @description 10/31/2020, 3:47:50 PM
// ==/UserScript==
@rebane2001
rebane2001 / buganizer-embed-media.user.js
Last active February 6, 2024 20:37
Makes it possible to embed images/videos on Buganizer instead of downloading them
// ==UserScript==
// @name Buganizer Embed Media
// @namespace rebane
// @match https://issuetracker.google.com/issues/*
// @match https://issues.chromium.org/issues/*
// @grant none
// @version 1.1
// @author Rebane
// @description Makes it possible to embed images/videos on Buganizer instead of downloading them (2024-02-06)
// ==/UserScript==
@rebane2001
rebane2001 / README.md
Last active January 12, 2024 15:47 — forked from corentinbettiol/README.md
Tiny js code that will simulate a 3D view of your elements, like firefox used to do.

example gif

Explanations

This script will get the computed background color of your body, and then will create shadows darker than your background (if you have a light background), or lighter than your background (if you have a dark background). If the body does not have a background, the script will take 160 as the default value for red, green and blue.

It will then add a border, a box-shadow, a padding and a margin to each element of your page, and will use the cool rotate3d css function to tilt your website.

Install

import json
import sys
if len(sys.argv) < 2:
print("infojsonredact - A simple script to redact private information from ytdl info.json files")
print("Output will be saved in info.json.redacted files")
print("Usage: infojsonredact.py file1.info.json [file2.info.json, file3.info.json...]")
sys.exit(2)
redacted = ["url","manifest_url","fragment_base_url","fragments","http_headers","User-Agent","Accept-Charset","Accept","Accept-Encoding","Accept-Language","player_url","playlist","playlist_id","playlist_title","playlist_uploader","playlist_uploader_id","playlist_index","thumbnail","_filename","downloader_options","http_chunk_size","initialization_url","annotations", "playlist_count","version","_version","repository","release_git_head","filesize_approx","_format_sort_fields"]
@rebane2001
rebane2001 / gen_data.py
Created November 27, 2023 21:18
Source code for the Chromium Money Tree Browser (https://lyra.horse/misc/chromium_vrp_tree.html), very messy :p
import json
import os
import re
import git
import itertools
data_path = "data"
repo_paths = {
"chromium": "C:/depot_tools/chromium/src",
"v8": "C:/depot_tools/v8/v8",
@rebane2001
rebane2001 / facebook-private-everything.js
Created November 26, 2023 15:00
Facebook - Set everything to "Only me" (private)
/*
This script sets every post on your Facebook profile to "Only me".
It's very hastily thrown together and will most certainly break in the future, but it should at least provide a starting point for anyone else who wants to do this.
Make sure to change your name below before running.
Run by just pasting into the JS console.
*/
const targetName = "Your Name";
const actionDelay = 1500;
const scrollDelay = 500;
@rebane2001
rebane2001 / subredditpurge-helper.user.js
Last active November 7, 2023 18:07
Edits the SubredditPurge mail to have links and an "Open all" button, autofills SubredditPurge info on the ban page if SubredditPurge hasn't been banned yet
// ==UserScript==
// @name SubredditPurge helper - reddit.com
// @namespace Rebane
// @match https://*.reddit.com/r/*/about/banned/
// @match https://*.reddit.com/message/messages/*
// @grant none
// @version 1.0.1
// @author Rebane
// @description Edits the SubredditPurge mail to have links and an "Open all" button, autofills SubredditPurge info on the ban page if SubredditPurge hasn't been banned yet (2023-11-07)
// ==/UserScript==