-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitSh1t.sh
executable file
·39 lines (38 loc) · 1.63 KB
/
gitSh1t.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# I am a simple shell script that downloads all repositories from a user and then hunts them for sh1t.
echo ""
echo " .,-:::::/ ::::::::::::::: .::::::. :: .: :.::::::::::::
,;;-'''''' ;;;;;;;;;;;'''';;;' ' ,;; ;;, ;;;;;;;;;;''''
[[[ [[[[[[/[[[ [[ '[==/[[[[,,[[[,,,[[[ [[ [[
'SSc. 'SS SSS SS ''' $'SS$''SS$ SS SS
'Y8bo,,,o88o888 88, 88b dP 888 '88o88 88,
''YMUP'YMMMMM MMM 'YMmMY' MMM YMMMM MMM "
echo "░░░░░░░░░░░░░░░░░░░░▒▓█[Git💩]█▓▒░░░░░░░░░░░░░░░░░░░░░░░░"
echo "
Feed me a github username
& I will moove it moove it
and bring you some sh1t
\ ^__^
\ (oo)\_______
(__)\ )\/
||---23 | 💩
|| || "
echo ""
file="/Users/0xdeadbeef/Desktop/git.txt"
n=1
n=$((n+1))
mkdir "loot"
cd loot
while read line; do
gituser=$(echo $line)
gituser=$line
mkdir $gituser
curl -s "https://api.github.com/users/$gituser/repos?per_page=1000" | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone
done < $file
shit="./*"
for r in `find $shit -path ./git -prune -o -type d -mindepth 1 -maxdepth 1` ; do
echo $r
`gitleaks detect --source "$r" -v -l debug -r thisreportissh1t.json -f json >> $r/sh1t.json`
done
find . -name 'sh1t.json' -exec cat {} \;
echo "Go check out how full of 💩 all the 💩 I found in $gituser"