Îá°®Æƽâ - 52pojie.cn

 ÕÒ»ØÃÜÂë
 ×¢²á[Register]

QQ怬

Ö»ÐèÒ»²½£¬¿ìËÙ¿ªÊ¼

²é¿´: 7737|»Ø¸´: 74
ÊÕÆð×ó²à

[ÆäËûÔ­´´] ÅäºÏ±¦ËþʵÏÖ¡¾¿ä¿Ë¡¿È«×Ô¶¯Ç©µ½»ñÈ¡ÓÀ¾ÃÈÝÁ¿

  [¸´ÖÆÁ´½Ó]
xiao1bai2ge3 ·¢±íÓÚ 2024-3-23 13:07
Ê×ÏÈÎÒÃÇÐèÒª»ñÈ¡¿ä¿ËCookie ½Ì³ÌÈçÏ£º


ÐèÒªÔÚµçÄÔä¯ÀÀÆ÷´ò¿ª¿ä¿ËÍøÅÌ£¬ÏȲ»µÇ¼µÄÇé¿öÏ °´ F12 £¬Ñ¡Ôñ¡°ÍøÂ硱£¬ÈçͼËùʾ£º

image.png

ɨÂëµÇ¼ºó£¬ÇëÑ¡Ôñ¡±
sort?pr=ucpro&fr=pc¡°Ãû³ÆÎļþ£¬


²¢Ï»¬ÕÒµ½¡±Cookie¡°Ëù¶ÔÓ¦µÄÖµ¾ÍÊÇÄãµÄCookie

ÈçÏÂͼËùʾ

image.png

Ö´ÐÐ
PHPÎļþ£º°Ñ¸ÃÎļþÖ±½Ó·ÅÔÚÓòÃûÏ£¬Í¨¹ýÿÌ춨ʱ·ÃÎʸÃÎļþÁ´½Ó¿ÉʵÏÖÿÌì×Ô¶¯Ç©µ½


±ÈÈ磺http://ÄãµÄÓòÃû/sign_task.php

ÈçºÎÔÚ±¦ËþÔËÓÃÄØ£¿¡ý





ÈÎÎñÀàÐÍ£ºÑ¡Ôñ¡°·ÃÎÊURL¡±
ÈÎÎñÃû³ÆËæ±ãÌîд£¬Äã×Ô¼ºÖªµÀ¾ÍÐС£
Ö´ÐÐÖÜÆÚ£ºÑ¡Ôñ¡°Ã¿Ì족£¬Ð¡Ê±Ö¸´ÓµÚ¼¸Ð¡Ê±¿ªÊ¼£»·ÖÖÓÖ¸µ±Ç°Ð¡Ê±µÄµÚ¼¸·ÖÖÓ¡£
URLµØÖ·£ºÌîд¿ÉÒÔͨ¹ýÁ´½ÓÖ±½Ó·ÃÎʸÃÎļþµÄµØÖ·¡£
ÌîдÍêºó¡°Ìí¼ÓÈÎÎñ¡±¼´¿ÉʵÏÖÿÌìÖ¸¶¨¼¸µã¿ªÊ¼Ö´ÐÐÇ©µ½

image.png


Ò²¿ÉÒÔÊÖ¶¯µã»÷¡±Ö´ÐС°Îļþ½øÐÐÇ©µ½

¼ì²éÊÇ·ñÇ©µ½³É¹¦£¬¿Éͨ¹ýµã»÷¡±ÈÕÖ¾¡°²é¿´£¬Èçͼ£º


image.png


sign_task.php´úÂëÈçÏ£¨Çë×¢ÒâÐèÒª°ÑÄãµÄ¿ä¿ËCookieÌîдµ½ÎļþÖУ©£º

[PHP] ´¿Îı¾²é¿´ ¸´ÖÆ´úÂë
<?php

$cookie = "ÌîдÄãµÄCookie";

// ²é¿´µ±Ç°Ç©µ½×´Ì¬
$stateUrl = "https://drive-m.quark.cn/1/clouddrive/capacity/growth/info?pr=ucpro&fr=pc&uc_param_str=";
$stateResponse = @file_get_contents($stateUrl, false, stream_context_create([
    'http' => [
        'header' => "Cookie: $cookie\r\n"
    ]
]));

if ($stateResponse === FALSE) {
    // ÇëÇóʧ°Ü£¬Êä³ö´íÎóÐÅÏ¢
    echo "ÇëÇóʧ°Ü£¬Çë¼ì²éCookie»òÍøÂçÁ¬½ÓÊÇ·ñÕýÈ·¡£\n";
    exit();
}

$response = json_decode($stateResponse, true);
$sign = $response["data"]["cap_sign"];

if ($sign["sign_daily"]) {
    $number = $sign["sign_daily_reward"] / (1024 * 1024);
    $progress = bcdiv($sign["sign_progress"], $sign["sign_target"], 4) * 100;
    echo "½ñÈÕÒÑÇ©µ½»ñÈ¡{$number}MB£¬½ø¶È{$progress}%\n";
    exit();
}

// Ö´ÐÐÇ©µ½
$signUrl = "https://drive-m.quark.cn/1/clouddrive/capacity/growth/sign?pr=ucpro&fr=pc&uc_param_str=";
$params = [
    "sign_cyclic" => true
];
$options = [
    'http' => [
        'header'  => "Content-Type: application/json\r\n" .
                     "Cookie: $cookie\r\n",
        'method'  => 'POST',
        'content' => json_encode($params)
    ]
];
$signResponse = @file_get_contents($signUrl, false, stream_context_create($options));

if ($signResponse === FALSE) {
    // ÇëÇóʧ°Ü£¬Êä³ö´íÎóÐÅÏ¢
    echo "Ç©µ½ÇëÇóʧ°Ü£¬Çë¼ì²éCookie»òÍøÂçÁ¬½ÓÊÇ·ñÕýÈ·¡£\n";
    exit();
}

$dataResponse = json_decode($signResponse, true);
$mb = $dataResponse["data"]["sign_daily_reward"] / 2048;
echo json_encode($dataResponse) . "\n";
echo "Ç©µ½³É¹¦,»ñÈ¡µ½{$mb}MB!\n";

?>
image.png

Ãâ·ÑÆÀ·Ö

²ÎÓëÈËÊý 15Îá°®±Ò +17 ÈÈÐÄÖµ +13 ÊÕÆð ÀíÓÉ
2468800637 + 1 + 1 лл@Thanks£¡
½üÖìÕß³à + 1 + 1 ÊDz»ÊÇʧЧÁË£¬»»ÁËCKÒÔºó»¹ÊÇÌáʾµÇ¼ʧ°Ü
zhang1497 + 1 ÊDz»ÊÇʧЧÁË£¬»»ÁËCKÒÔºó»¹ÊÇÌáʾµÇ¼ʧ°Ü
junjia215 + 1 + 1 ÓÃÐÄÌÖÂÛ£¬¹²»ñÌáÉý£¡
Lityun + 1 + 1 лл@Thanks£¡
xnink + 1 ÓÃÐÄÌÖÂÛ£¬¹²»ñÌáÉý£¡
ÆîÁ¬º­³© + 1 + 1 ÎÒºÜÔÞͬ£¡
oBong + 1 лл@Thanks£¡
XiaoBai.Q.Q + 1 лл@Thanks£¡
liyonxin + 1 + 1 лл@Thanks£¡
BYSN5201 + 1 лл@Thanks£¡
ËÕ×Ï·½è¯ + 7 + 1 »¶Ó­·ÖÎöÌÖÂÛ½»Á÷£¬Îá°®ÆƽâÂÛ̳ÓÐÄã¸ü¾«²Ê£¡
Duect + 1 лл@Thanks£¡
xsdzgqn + 1 + 1 ÎÒºÜÔÞͬ£¡
creazycar + 1 + 1 ÓÃÐÄÌÖÂÛ£¬¹²»ñÌáÉý£¡

²é¿´È«²¿ÆÀ·Ö

·¢ÌûÇ°ÒªÉÆÓá¾ÂÛ̳ËÑË÷¡¿¹¦ÄÜ£¬ÄÇÀï¿ÉÄÜ»áÓÐÄãÒªÕҵĴ𰸻òÕßÒѾ­ÓÐÈË·¢²¼¹ýÏàͬÄÚÈÝÁË£¬ÇëÎðÖظ´·¢Ìû¡£

qfxldhw ·¢±íÓÚ 2024-3-23 16:41
[Python] ´¿Îı¾²é¿´ ¸´ÖÆ´úÂë
import requests
import json

# Ìæ»»³ÉÄãµÄCookie
cookie = ""

# Ìí¼ÓUser-Agent
user_agent = ""

# ¼ì²éµ±Ç°Ç©µ½×´Ì¬
state_url = "https://drive-m.quark.cn/1/clouddrive/capacity/growth/info?pr=ucpro&fr=pc&uc_param_str="
headers = {
    "Cookie": cookie,
    "User-Agent": user_agent  
}
try:
    state_response = requests.get(state_url, headers=headers)
    state_response.raise_for_status()  # ¼ì²éÇëÇóÊÇ·ñ³É¹¦
except requests.RequestException as e:
    print("ÇëÇóʧ°Ü£¬Çë¼ì²éCookie»òÍøÂçÁ¬½ÓÊÇ·ñÕýÈ·¡£")
    print(e)
    exit()

response = state_response.json()
sign = response["data"]["cap_sign"]

if sign["sign_daily"]:
    number = sign["sign_daily_reward"] / (1024 * 1024)
    progress = (sign["sign_progress"] / sign["sign_target"]) * 100
    print(f"½ñÈÕÒÑÇ©µ½»ñÈ¡{number}MB£¬½ø¶È{progress}%")
    exit()

# Ö´ÐÐÇ©µ½
sign_url = "https://drive-m.quark.cn/1/clouddrive/capacity/growth/sign?pr=ucpro&fr=pc&uc_param_str="
params = {
    "sign_cyclic": True
}
headers = {
    "Content-Type": "application/json",
    "Cookie": cookie,
    "User-Agent": user_agent 
}
try:
    sign_response = requests.post(sign_url, headers=headers, json=params)
    sign_response.raise_for_status()
except requests.RequestException as e:
    print("Ç©µ½ÇëÇóʧ°Ü£¬Çë¼ì²éCookie»òÍøÂçÁ¬½ÓÊÇ·ñÕýÈ·¡£")
    print(e)
    exit()

data_response = sign_response.json()
mb = data_response["data"]["sign_daily_reward"] / 2048
print(json.dumps(data_response, ensure_ascii=False))
print(f"Ç©µ½³É¹¦,»ñÈ¡µ½{mb}MB!")
  ¸Ä³ÉPythonÁË

Ãâ·ÑÆÀ·Ö

²ÎÓëÈËÊý 3Îá°®±Ò +3 ÈÈÐÄÖµ +3 ÊÕÆð ÀíÓÉ
winic57 + 1 File &amp;quot;/ql/data/scripts/sign_task.py&amp;quot;, line 5£»SyntaxError: in
Cloucky + 1 + 1 лл@Thanks£¡
tianya0908 + 2 + 1 ¸Ðл·ÖÏí£¡£¡£¡

²é¿´È«²¿ÆÀ·Ö

ding2548 ·¢±íÓÚ 2024-3-23 15:41
Åô·°¿Ïè ·¢±íÓÚ 2024-3-23 15:23
yuiboke ·¢±íÓÚ 2024-3-23 15:46
»¹ÓÐÕâ»î¶¯
wddpyy ·¢±íÓÚ 2024-3-23 15:53
¸Ðл·ÖÏí£¡£¡£¡
Á÷ÀËÇéÈË ·¢±íÓÚ 2024-3-23 16:13
zÕâ¸ö½â·ÅÁËË«ÊÖ£¬ÓÐʱºò×Ô¼ºÒ²»áÍüÁËÇ©µ½
yinxingzhe55 ·¢±íÓÚ 2024-3-23 16:14
6£¬ÄÃÈ¥°×æÎÁË£¬Ð»Ð»·ÖÏí
SineL ·¢±íÓÚ 2024-3-23 16:45
¸Ðл£¡¸ÕºÃÐèÒª
flylujun ·¢±íÓÚ 2024-3-23 17:02
¸Ðл·ÖÏí¼¼ÇÉ
ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | ×¢²á[Register]

±¾°æ»ý·Ö¹æÔò

·µ»ØÁбí

RSS¶©ÔÄ|СºÚÎÝ|´¦·£¼Ç¼|ÁªÏµÎÒÃÇ|Îá°®Æƽâ - LCG - LSG ( ¾©ICP±¸16042023ºÅ | ¾©¹«Íø°²±¸ 11010502030087ºÅ )

GMT+8, 2024-11-24 14:07

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí