Skip to content

Instantly share code, notes, and snippets.

@Gestas
Gestas / youtube-archive-channels.sh
Created January 6, 2023 22:26
Youtube channel archiver -
#!/bin/sh
#
# Based on the TheFrenchGhosty's Ultimate YouTube-DL Scripts Collection: The ultimate collection of scripts for YouTube-DL
# https://github.com/TheFrenchGhosty/TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection
# Version: 3.2.2
#
STORAGE_PATH="~/youtube/"
SUBSCRIPTIONS_FILE="youtube-subscriptions.lst"
DOWNLOAD_ARCHIVE="downloaded-videos.lst"
LOG_FILE="yt-dlp.log"
@shmookey
shmookey / README
Created January 7, 2022 05:54
3103 common 5-letter words
this word list comprises the intersection of 5 letter words occurring in three source lists:
- wikipedia's list of most 100k most common words in the english language
- the american english dictionary file on my laptop
- the british english dictionary file on my laptop
the source lists are sanitised by dropping words that contain non-alphabetic or non-ascii
characters and converting capitals to lowercase.
only words that occur in all three resulting lists are kept.
@bluepichu
bluepichu / cairo.ts
Created April 18, 2021 21:58
PlaidCTF 2021 Carmen Sandiego solutions
import express from "express";
import { Socket } from "net";
import { PromiseSocket } from "promise-socket";
import morgan from "morgan";
const { TARGET_IP, SENSOR_PORT, SENSOR_TOKEN } = process.env;
const packetSize = 1448;
const SELF = "whatevermyipis:12345";
const TARGET = "iot.hub";
@gwalkey
gwalkey / gist:b168d532b472333e96663cf607bf84eb
Last active March 8, 2024 11:36
Create a NuGet Package to Install a Powershell Module
Download the CLI Version of NuGet
https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
--Create Work Paths
md c:\nuget
md c:\nuget\source
md c:\nuget\publish
-- One-Time - Create local NuGet Repo/feed using a local drive path
cd c:\nuget
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active April 23, 2024 08:02
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@felipejfc
felipejfc / debugserver.sh
Created August 20, 2019 23:57
debugserver unc0ver script
#!/bin/sh
set -e
if [[ -x "/usr/bin/debugserver" ]]; then
set +e
/usr/bin/debugserver > /dev/null 2>&1
if [[ $? -ne 1 ]]; then
rm -f /usr/bin/debugserver
fi
set -e
@daniellimws
daniellimws / frida-tips.md
Last active April 5, 2024 21:56
Frida tips

Frida Tips

The documentation is so limited. A compilation of things I found on StackOverflow and don't want to have to search it up again.

Bypass root check

setTimeout(function() { // avoid java.lang.ClassNotFoundException

  Java.perform(function() {

    // Root detection bypass example
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active April 23, 2024 13:36 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@ethack
ethack / TypeClipboard.md
Last active April 16, 2024 09:14
Scripts that simulate typing the clipboard contents. Useful when pasting is not allowed.

It "types" the contents of the clipboard.

Why can't you just paste the contents you ask? Sometimes pasting just doesn't work.

  • One example is in system password fields on OSX.
  • Sometimes you're working in a VM and the clipboard isn't shared.
  • Other times you're working via Remote Desktop and again, the clipboard doesn't work in password boxes such as the system login prompts.
  • Connected via RDP and clipboard sharing is disabled and so is mounting of local drives. If the system doesn't have internet access there's no easy way to get things like payloads or Powershell scripts onto it... until now.

Windows

The Windows version is written in AutoHotKey and easily compiles to an executable. It's a single line script that maps Ctrl-Shift-V to type the clipboard.

@subzero79
subzero79 / Clean source
Last active October 12, 2022 01:14
Sonarr post processing script to clean video files if the source is rar (packed) content
#!/bin/bash
#sonarr_episodefile_sourcefolder="/torrent/finish/tv-sonarr/Penny.Dreadful.S01E01.720p.HDTV.x264-2HD"
#sonarr_episodefile_sourcepath="/torrent/finish/tv-sonarr/Penny.Dreadful.S01E01.720p.HDTV.x264-2HD/penny.dreadful.s01e01.720p.hdtv.x264-2hd.mkv"
sonarr_label="tv-sonarr"
base_dir=$(basename $sonarr_episodefile_sourcefolder)
if [ "${base_dir}" == "${sonarr_label}" ];then
echo "Single file torrent"