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 | |
# 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 |
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 | |
# Check if a filename is provided as an argument | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 <filename>" | |
exit 1 | |
fi | |
filename="$1" |
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 | |
# Check if an input file is provided | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 <input_file>" | |
exit 1 | |
fi | |
input_file="$1" |
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
curl -s -L -D - website.com -o /dev/null | grep -e 'HTTP' -e 'location:' |
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
grep -E -o 'CVE-[0-9]{4}-[0-9]{1,5}' test.csv | sort | uniq | sort > output.csv |
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 | |
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" |
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
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: |
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
#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) |
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
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: |
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
#d2 printer | |
x = input('Type your text: ') | |
print(x.replace('o','ꚛ').replace('O','Ꚛ')) |
NewerOlder