forked from gavazquez/ReloadCam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DELETED_ReloadCam_Server_Cccamgratis.py
46 lines (36 loc) · 1.56 KB
/
DELETED_ReloadCam_Server_Cccamgratis.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
40
41
42
43
44
45
46
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Refrescador automatico de clines
#Creado por Dagger - https://github.com/gavazquez
import ReloadCam_Main, ReloadCam_Helper
def GetVersion():
return 3
#Filename must start with Server, classname and argument must be the same!
class Cccamgratis(ReloadCam_Main.Server):
def GetUrl(self):
#Pon un breakpoint aqui si quieres ver la URL verdadera ;)
#http://cccam.gratis/1092/index.php
realUrl = ReloadCam_Helper.Decrypt('maanpH1wfNXIz9DOkpiklKistHzY19HUkM2flpiscbG14g==')
return realUrl
def GetClines(self):
print "Now getting Cccamgratis clines!"
camGratisClines = []
camGratisClines.append(self.__GetCccamgratisCline())
camGratisClines = filter(None, camGratisClines)
if len(camGratisClines) == 0: print "No Cccamgratis lines retrieved"
return camGratisClines
def __GetCccamgratisCline(self):
values= {
'user': ReloadCam_Helper.GetRandomString(5),
'pass': ReloadCam_Helper.GetRandomString(5),
'submit':'Active User!',
}
header= {
'Cookie': 'GenSession=cualquier+cosa',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36'
}
htmlCode = ReloadCam_Helper.GetPostHtmlCode(values, header, self.GetUrl())
cline = ReloadCam_Helper.FindStandardClineInText(htmlCode)
if cline != None and ReloadCam_Helper.TestCline(cline):
return cline
return None