-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub_hacking.py
executable file
·39 lines (27 loc) · 1.07 KB
/
github_hacking.py
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
#!/usr/bin/python
# -----------------------------------------------------------------------------
# Ethical Hacking just for fun
# -----------------------------------------------------------------------------
import datetime
import os
DATA = [
"# # # ##### # # ### # # ##### ",
"# # # # # # # # # ## # # # ",
"# # # # # # # # # # # # ",
"####### # # # ### # # # # # #### #",
"# # ####### # # # # # # # # # ",
"# # # # # # # # # # ## # # ",
"# # # # ##### # # ### # # ##### "]
DATE_Start = datetime.datetime(2018, 11, 25)
DATE_Now = datetime.datetime.now()
DELTA = (DATE_Now - DATE_Start).days
Y = (DATE_Now.weekday() + 1)%7
X = (DELTA / 7)%52
F = open("date.txt","w")
F.write(str(DATE_Now))
F.close()
if DATA[Y][X] == "#" :
os.system('/usr/bin/git commit -am "Go...!!!"')
os.system('/usr/bin/git push')
exit(0)
# -----------------------------------------------------------------------------