1
mirror of git://git.acid.vegas/random.git synced 2024-12-04 21:46:40 +00:00

added masscanify script and others

This commit is contained in:
Dionysus 2024-01-31 13:35:41 -05:00
parent fd8090d863
commit 56ad2cbd62
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
5 changed files with 278 additions and 2 deletions

2
dmsh
View File

@ -8,6 +8,6 @@ while IFS= read -r line; do
host=$(echo "$line" | cut -d':' -f3) host=$(echo "$line" | cut -d':' -f3)
port=$(echo "$line" | cut -d':' -f4) port=$(echo "$line" | cut -d':' -f4)
sshpass -p $pass ssh $user@$host -p $port sshpass -p $pass ssh $user@$host -p $port
ssh $line sh -c "wget https://raw.githubusercontent.com/robertdavidgraham/masscan/master/data/exclude.conf && masscan --range 0.0.0.0/0 -p $2 --banners --rate 808900.00 --excludefile exclude.conf --open-only -oB mass.log --shard $i/$TOTAL" ssh $line sh -c "wget https://raw.githubusercontent.com/robertdavidgraham/masscan/master/data/exclude.conf && masscan --range 0.0.0.0/0 -p $2 --banners --rate 50000 --excludefile exclude.conf --open-only -oJ $port.json --shard $i/$TOTAL"
i=$((i+1)) i=$((i+1))
done < $1 done < $1

131
fckterm Executable file
View File

@ -0,0 +1,131 @@
#!/bin/bash
# Global Variables for Fine-Tuning
min_unicode=32 # Minimum Unicode value for random character generation
max_unicode=65535 # Maximum Unicode value for random character generation
min_color=16 # Minimum ANSI color code for text and background
max_color=255 # Maximum ANSI color code for text and background
line_length=100000 # Maximum line length until it's reset
reset_line_chars=900 # Characters to remove when resetting the line
emoji_frequency_min=1 # Minimum frequency for emoji insertion (characters)
emoji_frequency_max=10 # Maximum frequency for emoji insertion (characters)
sleep_min=100 # Minimum sleep delay between characters (microseconds)
sleep_max=1000 # Maximum sleep delay between characters (microseconds)
text_color_frequency_min=10000 # Minimum frequency for text color change (characters)
text_color_frequency_max=5000000 # Maximum frequency for text color change (characters)
background_color_frequency_min=100 # Minimum frequency for background color change (characters)
background_color_frequency_max=3000 # Maximum frequency for background color change (characters)
reset_color_frequency_min=100 # Minimum frequency for color reset (characters)
reset_color_frequency_max=500 # Maximum frequency for color reset (characters)
reset_line_frequency=500 # Reset line every 100 characters
reset_line_delay=0.05 # Delay after resetting line (seconds)
# Function to generate a random Unicode character
generate_random_unicode_char() {
random_unicode=$((min_unicode + RANDOM % (max_unicode - min_unicode + 1)))
printf "\\$(printf '%03o' "$random_unicode")"
}
# Function to generate a random ANSI escape code for color
generate_random_color() {
random_color=$((min_color + RANDOM % (max_color - min_color + 1)))
printf "\\e[38;5;%sm" "$random_color"
}
# Function to generate a random ANSI escape code for background color
generate_random_background_color() {
random_color=$((min_color + RANDOM % (max_color - min_color + 1)))
printf "\\e[48;5;%sm" "$random_color"
}
# Function to generate a random emoji
generate_random_emoji() {
random_emoji_code=$((RANDOM % (129511 - 128512 + 1) + 128512))
printf "\\U$(printf '%04x' "$random_emoji_code")"
}
# Initialize an empty line
line=""
current_line_length=0
# Counter for tracking character count
char_count=0
# Initialize variables for tracking various frequencies
emoji_insertion_frequency=0
sleep_delay_random=0
text_color_change_frequency=0
background_color_change_frequency=0
reset_color_frequency=0
color_reset=false
while true; do
# Generate a random Unicode character
random_char=$(generate_random_unicode_char)
# Append the new character to the line with random formatting
formatted_char="$(generate_random_color)$(generate_random_background_color)$random_char\\e[0m"
line="$line$formatted_char"
# Increment character count
char_count=$((char_count + 1))
# Check if it's time to insert an emoji (random frequency)
if [ "$emoji_insertion_frequency" -gt 0 ] && [ $((char_count % emoji_insertion_frequency)) -eq 0 ]; then
random_emoji=$(generate_random_emoji)
line="$line$random_emoji"
fi
# Check if it's time to change text color (random frequency)
if [ "$text_color_change_frequency" -gt 0 ] && [ $((char_count % text_color_change_frequency)) -eq 0 ]; then
generate_random_color # Generate a new random text color
fi
# Check if it's time to change background color (random frequency)
if [ "$background_color_change_frequency" -gt 0 ] && [ $((char_count % background_color_change_frequency)) -eq 0 ]; then
generate_random_background_color # Generate a new random background color
fi
# Check if it's time to reset colors (random frequency)
if [ "$reset_color_frequency" -gt 0 ] && [ $((char_count % reset_color_frequency)) -eq 0 ]; then
color_reset=true
fi
# Limit the line length and reset when it reaches a certain length
current_line_length=${#line}
if [ "$current_line_length" -gt "$line_length" ]; then
line="${line:$reset_line_chars}"
current_line_length=$line_length
fi
# Print the line with random formatting
if [ "$color_reset" = true ]; then
echo -n -e "\\e[0m$line" # Reset colors
color_reset=false
else
echo -n -e "$line"
fi
# Sleep for a randomized time between specified min and max delays
sleep_delay_random=$((RANDOM % (sleep_max - sleep_min + 1) + sleep_min))
sleep_time=$(bc -l <<< "scale=5; $sleep_delay_random / 1000000") # Convert to seconds
sleep "$sleep_time"
# Randomly pick a spot on the terminal to start a new line every reset_line_frequency characters
if [ $((char_count % reset_line_frequency)) -eq 0 ]; then
tput cup $((RANDOM % 30)) $((RANDOM % 100))
current_line_length=0
line=""
color_reset=true # Apply color reset
reset_chars=$((RANDOM % 91 + 10)) # Append 100 to 1000 spaces
for _ in $(seq 1 "$reset_chars"); do
line="$line "
done
sleep "$reset_line_delay" # Delay after resetting line
fi
# Check if it's time to change background color (random frequency)
if [ "$background_color_change_frequency" -gt 0 ] && [ $((char_count % background_color_change_frequency)) -eq 0 ]; then
generate_random_background_color # Generate a new random background color
fi
done

39
masscanify Executable file
View File

@ -0,0 +1,39 @@
#!/bin/sh
# masscan gotify alert - developed by acidvegas (https://git.acid.vegas)
GOTIFY_URL="https://push.change.me:5000"
GOTIFY_TOKEN="cHaNgEmE"
send_notification() {
result=$1
title=$2
data=$3
HOST=$(cat /etc/hostname)
if [ $result -eq 0 ]; then
status="completed"
elif [ $result -eq 69 ]; then
status="initiated"
elif [ $result -gt 128 ]; then
status="killed"
else
status="error"
fi
message="$title scan on $HOST for $data has changed to $status"
curl -X POST "$GOTIFY_URL/message?token=$GOTIFY_TOKEN" -F "title=$title" -F "message=$message" -F "priority=1"
}
[ $# -ne 1 ] && echo "usage: ./masscanify <ports>" && exit 1
ports=$1
send_notification 69 "masscan" $ports
masscan 0.0.0.0/0 -p${ports} --banners --source-port 61000 --open-only --rate 50000 --excludefile exclude.conf -oJ output.json --interactive
result=$?
send_notification $result "masscan" $ports

39
uniblocks.py Normal file
View File

@ -0,0 +1,39 @@
import unicodedata
import requests
def fetch_unicode_blocks(url):
response = requests.get(url)
response.raise_for_status() # Raise an error if the request failed
lines = response.text.split('\n')
blocks = []
for line in lines:
if line.startswith('#') or line.strip() == '':
continue # Skip comments and empty lines
range_part, block_name = line.strip().split('; ')
start, end = range_part.split('..')
blocks.append((int(start, 16), int(end, 16), block_name))
return blocks
def is_printable(char):
category = unicodedata.category(char)
return not category.startswith('C') and not category in ['Zl', 'Zp']
def print_block_characters(start, end, block_name):
print(f"Printing block: {block_name} (U+{start:04X} to U+{end:04X})")
for code_point in range(start, end + 1):
char = chr(code_point)
if is_printable(char):
try:
print(char, end=' ')
except UnicodeEncodeError:
pass # Skip characters that cannot be encoded by the terminal
input()
def main(url):
blocks = fetch_unicode_blocks(url)
for start, end, block_name in blocks:
print_block_characters(start, end, block_name)
if __name__ == "__main__":
url = 'http://www.unicode.org/Public/UNIDATA/Blocks.txt'
main(url)

67
wave Executable file
View File

@ -0,0 +1,67 @@
#!/bin/bash
# wave egenrator - developed by acidvegas (https://git.acid.vegas)
random_color() {
echo $((RANDOM % 256))
}
rainbow_color() {
local index="$1"
local colors=("196" "202" "208" "214" "220" "226" "190" "154" "118" "82" "46" "47" "48" "49" "50" "51" "45" "39" "33" "27" "21" "57" "93" "129" "165" "201")
echo "${colors[index % ${#colors[@]}]}"
}
print_wave() {
local chars="$1"
local len="$2"
local delay="$3"
local color_mode="$4"
local pulse_mode="$5"
local color_idx=0
while :; do
printf "\r"
for ((i = 0; i < len; i++)); do
if [ "$color_mode" == "rainbow" ]; then
color="\033[38;5;$(rainbow_color "$color_idx")m"
elif [ "$color_mode" == "chaos" ]; then
color="\033[38;5;$(random_color)m"
else
color=""
fi
char="${chars:i:1}"
if [ "$pulse_mode" == "on" ]; then
if [ $((RANDOM % 2)) -eq 0 ]; then
char="${chars:i+1:1}"
else
char="${chars:i-1:1}"
fi
fi
printf "$color$char"
color_idx=$((color_idx + 1))
done
sleep "$delay"
chars="${chars: -1}${chars%?}"
done
}
length="${1:-15}"
delay="${2:-0.05}"
color_mode="none"
pulse_mode="off"
if [ "$3" == "-r" ]; then
color_mode="rainbow"
elif [ "$3" == "-c" ]; then
color_mode="chaos"
elif [ "$3" == "-p" ]; then
pulse_mode="on"
fi
wave_chars="▁▂▃▄▅▆▇█▇▆▅▄▃▂▁"
wave_chars="$wave_chars$wave_chars$wave_chars$wave_chars$wave_chars$wave_chars$wave_chars$wave_chars$wave_chars$wave_chars$wave_chars$wave_chars"
print_wave "$wave_chars" "$length" "$delay" "$color_mode" "$pulse_mode"