This file contains hidden or 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
| #!/usr/bin/fish | |
| set OLDER_THAN (date --date="372 days ago" +%s) | |
| set mode $argv[1] | |
| set folders $argv[2..-1] | |
| if test (count $folders) -eq 0 | |
| echo "Err: no folders". | |
| echo "Usage: $0 [delete|dryrun] <folder1> [folder2 ...]" |
This file contains hidden or 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 | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "This script must be run as root or under sudo". | |
| echo "Attempting privilege escalation..." | |
| exec sudo "$0" "$@" | |
| fi | |
| # Set name of user running this script. | |
| if [ -n "$SUDO_USER" ]; then |
This file contains hidden or 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
| %YAML 1.2 | |
| --- | |
| name: Nmap | |
| file_extensions: | |
| - nmap | |
| scope: source.nmap | |
| contexts: | |
| main: | |
| - match: '#.*' |
This file contains hidden or 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
| $F = Get-Item ".\filename"; $C = [System.IO.File]::ReadAllBytes($F.FullName); $R = [System.Net.WebRequest]::Create("http://server.local/"); $B=[System.Guid]::NewGuid().ToSTring(); $R.Method = "POST"; $R.ContentType = "multipart/form-data; boundary=$B"; $S = $R.GetRequestStream(); $E = [System.Text.Encoding]::ASCII; $S.Write($E.GetBytes("--$B`r`n"), 0, ("--$B`r`n").Length); $S.Write($E.GetBytes("Content-Disposition: form-data; name=`"file`"; filename=`"$($F.Name)`"`r`n"), 0, ("Content-Disposition: form-data; name=`"file`"; filename=`"$($F.Name)`"`r`n").Length); $S.Write($E.GetBytes("Content-Type: application/octet-stream`r`n`r`n"), 0, ("Content-Type: application/octet-stream`r`n`r`n").Length); | |
| $S.Write($C, 0, $C.Length); $S.Write($E.GetBytes("`r`n--$B--`r`n"), 0, ("`r`n--$B--`r`n").Length); $S.Close(); $RE = $R.GetResponse(); |
This file contains hidden or 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
| FROM ubuntu:22.04 AS movcc | |
| RUN apt update -y | |
| RUN apt install -y git libc6-dev-i386 build-essential | |
| WORKDIR /root | |
| RUN git clone https://github.com/xoreaxeaxeax/movfuscator | |
| WORKDIR /root/movfuscator | |
| RUN ./build.sh | |
| RUN ./install.sh |
This file contains hidden or 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
| #!/usr/bin/python3 | |
| from requests import Session, Request | |
| import argparse | |
| import readline, sys, os, re | |
| import traceback | |
| import pkgutil | |
| import json | |
| import stdiomask | |
| import pickle | |
| import time |
This file contains hidden or 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 | |
| function get_ip { | |
| echo $(ip -br a show $1) | |
| } | |
| function check_ip { | |
| device=$1 | |
| ip_addr=$(get_ip "$device" | awk '{print $4}') | |
| if [ -z "$ip_addr" ] |
This file contains hidden or 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 | |
| adjs=( | |
| "loud" | |
| "red" | |
| "blue" | |
| "green" | |
| "yellow" | |
| "irate" | |
| "angry" |
This file contains hidden or 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 necessary packages | |
| from google.cloud import texttospeech | |
| import pyaudio | |
| import hashlib | |
| import wave | |
| import os | |
| class SpeechSynthesizer: | |
| def __init__(self, key_json): |