-
Notifications
You must be signed in to change notification settings - Fork 3
/
GitChangedWeekly.sh
181 lines (153 loc) · 5.94 KB
/
GitChangedWeekly.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
#!/usr/bin/parallel --shebang-wrap --pipe /bin/bash
#sudo git clone https://github.com/hak5/bashbunny-payloads.git
#sudo git clone https://github.com/offensive-security/exploit-database.git
#sudo git clone https://github.com/offensive-security/exploit-database-papers.g$
#sudo git clone [email protected]:offensive-security/exploit-database-bin-sploits.$
# git fetch https://github.com/offensive-security/exploit-database-bin-sploits.git
#echo done with that
cd /mnt/HDD/HACK/
#sudo gdrive update -r -p 1sscS0H_MzZP9nvBMQ3cUpoIug5aNDDCY /mnt/HDD/HACK
#UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @ /mnt/HDD/HACK/bashbunny-payloads/)
REMOTE=$(git rev-parse "https://github.com/hak5/bashbunny-payloads.git")
BASE=$(git merge-base @ "$UPSTREAM")
cd /mnt/HDD/HACK/
if [ $LOCAL = $REMOTE ]; then
echo "Up-to-date"
elif [ $LOCAL = $BASE ]; then
echo "Need to pull"
sudo git clone https://github.com/hak5/bashbunny-payloads.git
sudo git remote -v update
cd /mnt/HDD/HACK/
#sudo gdrive update -r -p 1sscS0H_MzZP9nvBMQ3cUpoIug5aNDDCY /mnt/HDD/HACK/bashbunny-payloads/
sudo rclone delete -v Gdrive:HACK/bashbunny-payloads
sudo rclone copy -v /mnt/HDD/HACK/bashbunny-payloads Gdrive:HACK/bashbunny-payloads
elif [ $REMOTE = $BASE ]; then
echo "Need to push"
else
echo "Diverged"
fi
#!/bin/sh
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @ /mnt/HDD/exploit-database/)
REMOTE=$(git rev-parse "https://github.com/offensive-security/exploit-database.git")
BASE=$(git merge-base @ "$UPSTREAM")
if [ $LOCAL = $REMOTE ]; then
echo "Up-to-date"
elif [ $LOCAL = $BASE ]; then
echo "Need to pull"
git clone https://github.com/offensive-security/exploit-database.git
cd /mnt/HDD/HACK/exploit-database/
sudo git remote -v update
cd /mnt/HDD/HACK/
#sudo gdrive update -r -p 1sscS0H_MzZP9nvBMQ3cUpoIug5aNDDCY /mnt/HDD/HACK/exploit-database/
sudo rclone delete -v Gdrive:HACK/exploit-database
sudo rclone copy -v /mnt/HDD/HACK/exploit-database Gdrive:HACK/exploit-database
elif [ $REMOTE = $BASE ]; then
echo "Need to push"
else
echo "Diverged"
fi
#!/bin/sh
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @ /mnt/HDD/HACK/exploit-database-papers/)
REMOTE=$(git rev-parse "https://github.com/offensive-security/exploit-database-papers.git")
BASE=$(git merge-base @ "$UPSTREAM")
if [ $LOCAL = $REMOTE ]; then
echo "Up-to-date"
elif [ $LOCAL = $BASE ]; then
echo "Need to pull"
git clone https://github.com/offensive-security/exploit-database-papers.git
cd /mnt/HDD/HACK/exploit-database-papers/
sudo git remote -v update
cd /mnt/HDD/HACK/
rar a /mnt/HDD/HACK/exploit-database-papers.rar -m5 /mnt/HDD/HACK/exploit-database-papers/
sudo delete -v Gdrive:exploit-database-papers
sudo rclone copy -v /mnt/HDD/HACK/expoit-database-papers Gdrive:HACK/exploit-database-papers
#sudo gdrive update -r -p 1sscS0H_MzZP9nvBMQ3cUpoIug5aNDDCY /mnt/HDD/HACK/exploit-database-papers/
elif [ $REMOTE = $BASE ]; then
echo "Need to push"
else
echo "Diverged"
fi
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @ /mnt/HDD/HACK/wifipineapple-wiki/)
REMOTE=$(git rev-parse "https://github.com/WiFiPineapple/wifipineapple-wiki")
BASE=$(git merge-base @ "$UPSTREAM")
if [ $LOCAL = $REMOTE ]; then
echo "Up-to-date"
elif [ $LOCAL = $BASE ]; then
echo "Need to pull"
git clone https://github.com/WiFiPineapple/wifipineapple-wiki
cd /mnt/HDD/HACK/wifipineapple-wiki
sudo git remote -v update
cd /mnt/HDD/HACK/
sudo delete -v Gdrive:HACK/wifipineapple-wiki
sudo rclone copy -v /mnt/HDD/HACK/wifipineapple-wiki Gdrive:HACK/wifipineapple-wiki
#sudo gdrive update -r -p 1sscS0H_MzZP9nvBMQ3cUpoIug5aNDDCY /mnt/HDD/HACK/exploit-database-papers/
elif [ $REMOTE = $BASE ]; then
echo "Need to push"
else
echo "Diverged"
fi
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @ /mnt/HDD/HACK/bashbunny-wiki)
REMOTE=$(git rev-parse "https://github.com/hak5/bashbunny-wiki")
BASE=$(git merge-base @ "$UPSTREAM")
if [ $LOCAL = $REMOTE ]; then
echo "Up-to-date"
elif [ $LOCAL = $BASE ]; then
echo "Need to pull"
git clone https://github.com/hak5/bashbunny-wiki
cd /mnt/HDD/HACK/bashbunny-wiki
sudo git remote -v update
cd /mnt/HDD/HACK/
sudo delete -v Gdrive:HACK/bashbunny-wiki
sudo rclone copy -v /mnt/HDD/HACK/bashbunny-wiki Gdrive:HACK/bashbunny-wiki
#sudo gdrive update -r -p 1sscS0H_MzZP9nvBMQ3cUpoIug5aNDDCY /mnt/HDD/HACK/bashbunny-wiki
elif [ $REMOTE = $BASE ]; then
echo "Need to push"
else
echo "Diverged"
fi
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @ /mnt/HDD/HACK/wifipineapple-modules/)
REMOTE=$(git rev-parse "https://github.com/hak5/wifipineapple-modules")
BASE=$(git merge-base @ "$UPSTREAM")
if [ $LOCAL = $REMOTE ]; then
echo "Up-to-date"
elif [ $LOCAL = $BASE ]; then
echo "Need to pull"
git clone https://github.com/hak5/wifipineapple-modules.git
cd /mnt/HDD/HACK/wifipineapple-modules
sudo git remote -v update
cd /mnt/HDD/HACK/
sudo delete -v Gdrive:HACK/wifipineapple-modules
sudo rclone copy -v /mnt/HDD/HACK/wifipineapple-modules Gdrive:HACK/wifipineapple-modules/
#sudo gdrive update -r -p 1sscS0H_MzZP9nvBMQ3cUpoIug5aNDDCY /mnt/HDD/HACK/exploit-database-papers/
elif [ $REMOTE = $BASE ]; then
echo "Need to push"
else
echo "Diverged"
fi
#!/bin/sh
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse /mnt/HDD/HACK/exploit-database-bin-sploits/)
REMOTE=$(git rev-parse @ "https://github.com/offensive-security/exploit-database-bin-sploits.git")
BASE=$(git merge-base @ "$UPSTREAM")
if [ $LOCAL = $REMOTE ]; then
echo "Up-to-date"
elif [ $LOCAL = $BASE ]; then
echo "Need to pull"
git clone https://github.com/offensive-security/exploit-database-bin-sploits.git
cd /mnt/HDD/HACK/exploit-database-bin-sploits/
sudo git remote -v update
cd /mnt/HDD/HACK/
#sudo gdrive update -r -p 1sscS0H_MzZP9nvBMQ3cUpoIug5aNDDCY /mnt/HDD/HACK/exploit-database-bin-sploits/
sudo rclone delete -v Gdrive:HACK/exploit-database-bin-spoits
sudo rclone copy -v /mnt/HDD/HACK/exploit-database-bin-sploits Gdrive:HACK/exploit-database-bin-sploits
elif [ $REMOTE = $BASE ]; then
echo "Need to push"
else
echo "Diverged"
fi