Skip to content

Instantly share code, notes, and snippets.

@FranklyFuzzy
FranklyFuzzy / cymru.md
Created March 31, 2022 03:44
Look Up IP details

Look Up IPs

Single Query

whois -h whois.cymru.com 8.8.8.8

Single Verbose Output

whois -h whois.cymru.com " -v 8.8.8.8"
@FranklyFuzzy
FranklyFuzzy / cheat sheet.md
Created March 31, 2022 15:14 — forked from ChengLuFred/cheat sheet.md
[Markdown Cheat Sheet] #Markdown
  1. Markdown markdown

  2. R markdown rmarkdown

@FranklyFuzzy
FranklyFuzzy / LoopDNSRecon.sh
Last active April 1, 2022 03:57
This will allow you to feed multiple sites/urls to DNS recon. It can be further expanded to grep for successful zone transfers by throwing some grep successful after the probes.
#!/bin/bash
#https://github.com/FranklyFuzzy
FILE=$1
while read name
do
echo "dnsrecon being ran on $name"
python dnsrecon.py -d $name -t axfr -c output/$name-dns.csv
done < $FILE
#can add - echo "test $name" to confirm reading file by line
@FranklyFuzzy
FranklyFuzzy / grabSSH.sh
Created April 7, 2022 14:19
MultiSSH Grab files from multiple remote boxes that use the same creds. Requires sshpass.
echo 'what username will we use today?'
read varuser
echo 'what password will we use today?'
read varpw
for s in `cat servers.txt` ; do
echo; echo $s Starting
sshpass -p ''$varpw'' scp -r $varuser@$s:/etc/yum /home/user/Desktop/output/$s-yum
sshpass -p ''$varpw'' scp -r $varuser@$s:/etc/yum.repos.d /home/user/Desktop/output/$s-yum.repos
echo $s 'Done'
@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','Ꚛ'))
@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 / 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 / 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 / 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 / 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