- 資訊首頁(yè) > 互聯(lián)網(wǎng) > 主機資訊 >
- 分享LOC論壇以最新可用的簽到腳本,需要自己有
瀏覽本站的朋友很多都在上LOC論壇,本汪其實(shí)每天有上去看看,因為有一些比較好看的撕B和信息,不過(guò)對于新人來(lái)說(shuō),還是需要盡快提升一下等級,論壇提供了每天訪(fǎng)問(wèn)其他用戶(hù)的空間10就可以獲得20金幣的升級辦法,之前有很多大佬在github上使用函數進(jìn)行自動(dòng)訪(fǎng)問(wèn)功能,不過(guò)有一些被C大的防御系統給干掉了,今天給大家分享一個(gè)目前還可以使用的腳本。
打開(kāi)你吃灰的VPS,安裝好寶塔,然后安排python3
debian或ubuntu使用
1
|
apt
-
get
install
python3
-
pip
|
Centos使用
1
|
yum
install
python3
|
然后新建一個(gè)PY文件,名字隨便起,不要在自己的電腦用文本編輯,使用寶塔新建,站長(cháng)這里是建在/home/www里的,名字就是loc.py,然后把以下腳本復制進(jìn)去,賬號和密碼那里改成自己的,可以多個(gè)賬號使用。
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
|
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Author: MoeClub.org
import
re
import
sys
import
time
from
urllib
import
request
,
parse
from
http
import
cookiejar
account_dict
=
{
'0'
:
{
'username'
:
'賬號A'
,
'password'
:
'密碼A'
}
,
'1'
:
{
'username'
:
'賬戶(hù)B'
,
'password'
:
'密碼B'
}
,
}
def
Login
(
URL
,
UserData
)
:
_cookies
=
''
_cookie
=
cookiejar
.
CookieJar
(
)
_handler
=
request
.
HTTPCookieProcessor
(
_cookie
)
_req
=
request
.
Request
(
URL
,
data
=
parse
.
urlencode
(
UserData
)
.
encode
(
'utf-8'
)
)
request
.
build_opener
(
_handler
)
.
open
(
_req
)
for
cookie
in
_cookie
:
_cookies
=
cookie
.
name
'='
cookie
.
value
';'
return
_cookies
def
GetPage
(
URL
,
Header_Cookies
)
:
_Header
=
{
'Cookie'
:
str
(
Header_Cookies
)
}
_req
=
request
.
Request
(
URL
,
headers
=
_Header
)
return
request
.
urlopen
(
_req
)
.
read
(
)
.
decode
(
'utf-8'
)
def
GetCredit
(
user_data
,
proto
=
'https'
)
:
username
=
user_data
[
'username'
]
Login_URL
=
proto
'://hostloc.com/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=1'
My_Credit
=
proto
'://hostloc.com/home.php?mod=spacecp&ac=credit&showcredit=1&inajax=1'
My_Home
=
proto
'://hostloc.com/home.php?mod=spacecp&inajax=1'
My_Cookies
=
Login
(
Login_URL
,
user_data
)
if
'<td>'
str
(
username
)
'</td>'
not
in
GetPage
(
My_Home
,
My_Cookies
)
:
print
(
'[%s] Login Fail!'
%
username
)
else
:
try
:
CreditNum0
=
str
(
re
.
findall
(
'[0-9] '
,
GetPage
(
My_Credit
,
My_Cookies
)
)
[
-
1
]
)
except
:
CreditNum0
=
'Null'
for
x
in
range
(
25297
,
25309
)
:
GetPage
(
proto
'://hostloc.com/space-uid-{}.html'
.
format
(
x
)
,
My_Cookies
)
time
.
sleep
(
4
)
try
:
if
CreditNum0
==
'Null'
:
raise
Exception
CreditNum1
=
str
(
re
.
findall
(
'[0-9] '
,
GetPage
(
My_Credit
,
My_Cookies
)
)
[
-
1
]
)
if
CreditNum0
==
CreditNum1
:
CreditDetails
=
str
(
CreditNum1
)
else
:
CreditDetails
=
str
(
CreditNum0
)
'->'
str
(
CreditNum1
)
except
:
CreditDetails
=
'Null'
print
(
'[%s] Login Success! (Credit: %s)'
%
(
username
,
CreditDetails
)
)
if
__name__
==
'__main__'
:
if
len
(
sys
.
argv
)
&
gt
;
1
:
n
=
0
account_dict
=
{
}
account_list
=
[
sys
.
argv
[
x
]
for
x
in
range
(
1
,
len
(
sys
.
argv
)
)
]
for
account
in
account_list
:
if
":"
not
in
account
:
continue
account_dict
[
str
(
n
)
]
=
{
}
account_dict
[
str
(
n
)
]
[
'username'
]
=
str
(
str
(
account
)
.
split
(
":"
,
1
)
[
0
]
)
account_dict
[
str
(
n
)
]
[
'password'
]
=
str
(
str
(
account
)
.
split
(
":"
,
1
)
[
-
1
]
)
n
=
1
for
i
in
range
(
0
,
len
(
account_dict
)
)
:
try
:
GetCredit
(
account_dict
[
str
(
i
)
]
)
time
.
sleep
(
4
)
except
:
continue
|
然后在寶塔的計劃任務(wù)添加個(gè)Shell腳本,按以下輸入就可以每天定時(shí)領(lǐng)取20金幣,賬號放在那里150天就可以升級元老了,不過(guò)你要多去灌水會(huì )升級更快,另外版主們也會(huì )不定時(shí)清理刷分號。
如果你一直想進(jìn)入LOC論壇,卻找不到門(mén),可以發(fā)郵件聯(lián)系我,站長(cháng)給你發(fā)邀請。
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng )、來(lái)自本網(wǎng)站內容采集于網(wǎng)絡(luò )互聯(lián)網(wǎng)轉載等其它媒體和分享為主,內容觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如侵犯了原作者的版權,請告知一經(jīng)查實(shí),將立刻刪除涉嫌侵權內容,聯(lián)系QQ:712375056。
Copyright ? 2009-2022 56dr.com. All Rights Reserved. 特網(wǎng)科技 特網(wǎng)云 版權所有 特網(wǎng)科技 粵ICP備16109289號
域名注冊服務(wù)機構:阿里云計算有限公司(萬(wàn)網(wǎng)) 域名服務(wù)機構:煙臺帝思普網(wǎng)絡(luò )科技有限公司(DNSPod) CDN服務(wù):阿里云計算有限公司 百度云 中國互聯(lián)網(wǎng)舉報中心 增值電信業(yè)務(wù)經(jīng)營(yíng)許可證B2
建議您使用Chrome、Firefox、Edge、IE10及以上版本和360等主流瀏覽器瀏覽本網(wǎng)站