forked from gavazquez/ReloadCam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DELETED_ReloadCam_Server_Demed.py
42 lines (32 loc) · 1.26 KB
/
DELETED_ReloadCam_Server_Demed.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
#!/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 2
#Filename must start with Server, classname and argument must be the same!
class Demed(ReloadCam_Main.Server):
def GetUrl(self):
#Pon un breakpoint aqui si quieres ver la URL verdadera ;)
#http://demed.no-ip.org/index.php
realUrl = ReloadCam_Helper.Decrypt('maanpH1wfNbK2dTFkp-hYJ2zb7zkzJvYz8iWqmGkq7E=')
return realUrl
def GetClines(self):
print "Now getting Demed clines!"
demedClines = []
demedClines.append(self.__GetDemedCline())
demedClines = filter(None, demedClines)
if len(demedClines) == 0: print "No Demed lines retrieved"
return demedClines
def __GetDemedCline(self):
values= {
'user': ReloadCam_Helper.GetRandomString(5),
'pass': 'demed',
'submit':'Active User!'
}
htmlCode = ReloadCam_Helper.GetPostHtmlCode(values, None, self.GetUrl())
cline = ReloadCam_Helper.FindStandardClineInText(htmlCode)
if cline != None and ReloadCam_Helper.TestCline(cline):
return cline
return None