Skip to content

Instantly share code, notes, and snippets.

@FranklyFuzzy
FranklyFuzzy / homepage_Bookmark.sh
Created June 17, 2024 18:24
Script parameters for homepage bookmarks to add to services yaml
#!/bin/bash
# Prompt user for input
echo "Please enter the values for the variables:"
read -p "Name: " name
read -p "Icon: " icon
read -p "Href: " href
read -p "Description: " description
# Specify the file to echo the variables into
@FranklyFuzzy
FranklyFuzzy / ipextract.sh
Created April 15, 2024 20:55
Extract IPs from file
#!/bin/bash
# Check if a filename is provided as an argument
if [ $# -ne 1 ]; then
echo "Usage: $0 <filename>"
exit 1
fi
filename="$1"
@FranklyFuzzy
FranklyFuzzy / ipchecker.sh
Last active April 15, 2024 20:50
Extract uniq IPs from file and perform whois look up
#!/bin/bash
# Check if an input file is provided
if [ $# -ne 1 ]; then
echo "Usage: $0 <input_file>"
exit 1
fi
input_file="$1"
@FranklyFuzzy
FranklyFuzzy / redirects.sh
Created October 24, 2023 04:30
follow redirects and show response code
curl -s -L -D - website.com -o /dev/null | grep -e 'HTTP' -e 'location:'
@FranklyFuzzy
FranklyFuzzy / cve_extract.sh
Created May 25, 2023 20:12
grabs CVEs from file, removes dupes, and outputs to new file.
grep -E -o 'CVE-[0-9]{4}-[0-9]{1,5}' test.csv | sort | uniq | sort > output.csv
@FranklyFuzzy
FranklyFuzzy / lookup.sh
Last active May 2, 2023 17:42
use terminal to open new browser window for hash or IP lookup
#!/bin/bash
if [ "$1" == "talos" ]; then
open "https://talosintelligence.com/reputation_center/lookup?search=$2"
elif [ "$1" == "whois" ]; then
whois -h whois.cymru.com " -v $2"
elif [ "$1" == "vt" ]; then
open "https://www.virustotal.com/gui/ip-address/$2"
elif [ "$1" == "vtHash" ]; then
open "https://www.virustotal.com/gui/search/$2"
@FranklyFuzzy
FranklyFuzzy / shiftv2.py
Created August 16, 2022 02:47
second version of shift cipher. This time shift stays the same for encode or decode
op = input('encode or decode? ')
text = input('what is the text: ')
key = input('What is the shift: ')
if op == 'encode':
for i in text:
uni = ord(i)
encode = int(uni) + int(key)
print(chr(encode), end='')
else:
@FranklyFuzzy
FranklyFuzzy / shift.py
Created August 16, 2022 02:19
Quick shift cipher using ord and chr
#Found an issue where going from negative to positive int removes space so just shift starting positive int then shift back negative the same int.
text = input('what is the text: ')
key = input('What is the shift: ')
for i in text:
uni = ord(i)
encode = int(uni) + int(key)
print(chr(encode), end='')
#print(i, uni)
@FranklyFuzzy
FranklyFuzzy / d2v2.py
Created August 14, 2022 21:10
#here is version 2.0 of d2.py as I like to complicate things.
x = input('Type your text: ')
d=''
for i in x:
if i == 'o':
i=i.replace('o','ꚛ')
d+=i
elif i == 'O':
i=i.replace('O','Ꚛ')
d+=i
else:
@FranklyFuzzy
FranklyFuzzy / d2.py
Created August 14, 2022 21:09
take user input and output special characters from d2
#d2 printer
x = input('Type your text: ')
print(x.replace('o','ꚛ').replace('O','Ꚛ'))