-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteve.sh
executable file
·99 lines (87 loc) · 2.51 KB
/
teve.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
#!/bin/bash
cd "$(dirname "$0")"
echo "Etessuk meg a nyeszlettet!"
if [ ! -f .env ]
then
echo "Tolsd ki az .env filet az adatokkal!"
exit
else
# https://gist.github.com/mihow/9c7f559807069a03e302605691f85572
set -a
source <(cat .env | sed -e '/^#/d;/^\s*$/d' -e "s/'/'\\\''/g" -e "s/=\(.*\)/='\1'/g")
set +a
fi
# Generate random integer between $tippmin and $tippmax
tipp=$((RANDOM % (tippmax - tippmin + 1) + tippmin))
ua="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.147 Safari/537.36"
echo "Megprobalunk belepni..."
if curl --location --request POST "https://teveclub.hu/" \
--header "$ua" \
--header "Content-Type: application/x-www-form-urlencoded" \
--cookie-jar "cookie.txt" \
--cookie "cookie.txt" \
--data-urlencode "tevenev=$tevenev" \
--data-urlencode "pass=$pass" \
--data-urlencode 'login=Gyere!' \
--silent \
--output - \
| grep -q "/logout.pet"
then
echo "Belepett!"
else
echo "Nem volt logout link belepes utan, szal nem sikerult!"
exit
fi
echo "Tanitunk..."
if curl --location --request POST "https://teveclub.hu/tanit.pet" \
--header "$ua" \
--header "Content-Type: application/x-www-form-urlencoded" \
--cookie-jar "cookie.txt" \
--cookie "cookie.txt" \
--data-urlencode "farmdoit=tanit" \
--data-urlencode "learn=Tanulj teve!" \
--silent \
--output - \
| grep -q "csak holnap tud tanulni"
then
echo "Sikerult tanitani!"
else
echo "Nem sikerult tanitani!"
exit
fi
echo "Egyszamozunk..."
if curl --location --request POST "https://teveclub.hu/egyszam.pet" \
--header "$ua" \
--header "Content-Type: application/x-www-form-urlencoded" \
--cookie-jar "cookie.txt" \
--cookie "cookie.txt" \
--data-urlencode "honnan=$tipp" \
--data-urlencode "tipp=Ez a tippem!" \
--silent \
--output - \
| grep -q "l ebben a fordul"
then
echo "Sikerult tippelni!"
else
echo "Nem sikerult tippelni!"
exit
fi
echo "Etessuk a girhest..."
if curl --location --request POST "https://teveclub.hu/myteve.pet" \
--header "$ua" \
--header "Content-Type: application/x-www-form-urlencoded" \
--cookie-jar "cookie.txt" \
--cookie "cookie.txt" \
--data-urlencode "kaja=1" \
--data-urlencode "pia=1" \
--data-urlencode "etet=Mehet!" \
--silent \
--output - \
| grep -q "mehet"
then
echo "Nem sikerult megtomni a belet!"
exit
else
echo "Jollakott!"
fi
echo "Teved meg fogja erni a holnapot. YAY!"