Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

[v2] 機器人被偵測到自動化 #65

Open
wdzeng opened this issue Jul 28, 2023 · 27 comments
Open

[v2] 機器人被偵測到自動化 #65

wdzeng opened this issue Jul 28, 2023 · 27 comments
Assignees
Labels
bug Something isn't working

Comments

@wdzeng
Copy link
Owner

wdzeng commented Jul 28, 2023

網友 @94ione 回報 v2 機器人簽到失敗 (#64),其反應與 #53 完全一樣。

@wdzeng wdzeng added the bug Something isn't working label Jul 28, 2023
@wdzeng wdzeng self-assigned this Jul 28, 2023
@wdzeng
Copy link
Owner Author

wdzeng commented Jul 28, 2023

Hi @94ione, 我還是無法重現,也猜不到可能的原因。是否可以請你協助 Debug?

  • 你獲得 cookie 的方式是否完全依據這份文件的步驟?
    • 使用的瀏覽器為何?瀏覽器版本為何?是否開無痕?
    • 貼到檔案裡的 cookie 是否只有一行?
    • 取得 cookie 之後是否有登出?是否有立即關閉瀏覽器?
  • 指令 whoami, balancehistory 是否運作順利?
  • -V 印出的結果為何?(照理說必須是 2.0.0-alpha.X

@94ione
Copy link

94ione commented Jul 29, 2023

您好

我使用的瀏覽器為 Cent Browser,版本為 5.0.1002.354 (正式版本) (64 位元) (Chromium 102.0.5005.167)
有開無痕取得 cookie,cookie 的確只有一行,是比照文件取得的。
使用指令 whoami, balancehistory 皆能運作順利,有正確的輸出結果。
唯簽到會出現已簽到,只能隔日再簽一次,但隔日用機器人一樣會失敗,只能用手機或網頁,故 history 只有 DAY 1

我的指令是 docker run -v "/www/shopee:/config" hyperbola/shopee-coins-bot:2.0.0-alpha.2 -c /config/a1
有帶 -v 的,不過若只有上面這行指令,是會顯示

docker: invalid reference format.
See 'docker run --help'.

只有在 a1 後再加上 whoami, balancehistory 才會有正常的輸出

以上不知是否有操作錯誤,亦或需如何交叉測試呢?

謝謝!

@wdzeng
Copy link
Owner Author

wdzeng commented Jul 29, 2023

您好

我使用的瀏覽器為 Cent Browser,版本為 5.0.1002.354 (正式版本) (64 位元) (Chromium 102.0.5005.167) 有開無痕取得 cookie,cookie 的確只有一行,是比照文件取得的。 使用指令 whoami, balancehistory 皆能運作順利,有正確的輸出結果。 唯簽到會出現已簽到,只能隔日再簽一次,但隔日用機器人一樣會失敗,只能用手機或網頁,故 history 只有 DAY 1

我的指令是 docker run -v "/www/shopee:/config" hyperbola/shopee-coins-bot:2.0.0-alpha.2 -c /config/a1 有帶 -v 的,不過若只有上面這行指令,是會顯示

docker: invalid reference format.
See 'docker run --help'.

只有在 a1 後再加上 whoami, balancehistory 才會有正常的輸出

以上不知是否有操作錯誤,亦或需如何交叉測試呢?

謝謝!

Hi, 感謝你的協助!我會去試試看 Cent Browser。

想確認以下事項

  • 你的 cookie 檔案是否是在本機的 /www/shopee/a1?
  • docker --version 的輸出結果為?
  • docker run -v "/www/shopee:/config" hyperbola/shopee-coins-bot:2.0.0-alpha.2 -c /config/a1 會有 docker: invalid reference format. 的錯誤訊息,這件事有點奇怪,是否可以請你再次確認?

@94ione
Copy link

94ione commented Jul 29, 2023

抱歉,我說錯了,還好您有質疑

是的,我的 cookie 檔案在 /www/shopee/a1,不過不是本機耶,我是用 ORACLE 的 VPS

docker --version
Docker version 23.0.1, build a5ee5b1
docker run "/www/shopee:/config" hyperbola/shopee-coins-bot:2.0.0-alpha.2 -c /config/a1 -v

出現這個

docker: invalid reference format.
See 'docker run --help'.

輸入

docker run -v "/www/shopee:/config" hyperbola/shopee-coins-bot:2.0.0-alpha.2 -c /config/a1

會顯示

Usage: docker run hyperbola/shopee-coins-bot:2.0.0-alpha.2 [options] [command]
Give me Shopee coins!

Options:
  -V, --version        output the version number
  -q, --quiet          suppress output message (default: false)
  -c, --cookie <FILE>  path to cookie file
  -h, --help           display help for command

Commands:
  checkin [options]    Checkin to get Shopee coins
  balance              Get my Shopee coins balance
  history [options]    Get my Shopee coins checkin history
  whoami               Get my Shopee username

@wdzeng
Copy link
Owner Author

wdzeng commented Jul 29, 2023

Hi, 我懷疑蝦皮會擋雲端業者 (Oracle, GCP, Amazon ...) 的 IP,是否可以請您日後再試試看在自己的筆電執行機器人?

@94ione
Copy link

94ione commented Jul 31, 2023

假日外出,所以晚測試了.....不好意思,狀況如下

本機作業系統: WINDOWS 10 PRO x64 (22H2)
Docker version 24.0.2, build cb74dfc
Chrome 版本 114.0.5735.199 (正式版本) (64 位元)
whoami, balance 與 history 運作順利,有顯示正常的結果
進行checkin,得到的值為Already checked in. (實際是沒有簽成功),回到手機要再簽,就一樣顯示try again tomorrow

@wdzeng
Copy link
Owner Author

wdzeng commented Jul 31, 2023

假日外出,所以晚測試了.....不好意思,狀況如下

本機作業系統: WINDOWS 10 PRO x64 (22H2) Docker version 24.0.2, build cb74dfc Chrome 版本 114.0.5735.199 (正式版本) (64 位元) whoami, balance 與 history 運作順利,有顯示正常的結果 進行checkin,得到的值為Already checked in. (實際是沒有簽成功),回到手機要再簽,就一樣顯示try again tomorrow

Hi, 請問您在本機進行簽到之前,是否有重新產生新的 cookie,還是您仍然使用 Oracle 機器上的 cookie 呢?如果是後者的話,想請您再協助試試看於本機產生新的 cookie。

@94ione
Copy link

94ione commented Jul 31, 2023

有的,想說就切分來測試,所以在本機上的是用Chrome 新撈的

@wdzeng
Copy link
Owner Author

wdzeng commented Jul 31, 2023

想確認一下,您的本機連上的是一般家用網路嗎(e.g. 中華電信)?是否有使用 VPN 或 reverse proxy?

@94ione
Copy link

94ione commented Jul 31, 2023

不是耶,是使用台灣之星的行動網路,沒有 VPN 或 reverse proxy

@wdzeng
Copy link
Owner Author

wdzeng commented Jul 31, 2023

Hi, 我想調查是否為 IP 因素。是否可以在您的個人電腦上跑以下指令並回報輸出結果?

docker run --entrypoint wget hyperbola/shopee-coins-bot:2.0.0-alpha.2 'http://ipecho.net/plain' -O- -q

@94ione
Copy link

94ione commented Jul 31, 2023

image

@94ione
Copy link

94ione commented Sep 6, 2023

看到版大昨日似乎有做了異動,所以做了測試,一樣簽到失敗但其他指令正常,但簽到時這次出現的簽到失敗,是Invalid cookie

image

@wdzeng
Copy link
Owner Author

wdzeng commented Sep 6, 2023

Hi,

我有做一些更新,但我還沒發布新的 image。

Invalid cookie 可能表示你的 cookie 放太久已經過期了。

@Ban921
Copy link

Ban921 commented Sep 27, 2023

Hi,
我已經重複更新cookie
但我的狀況跟#65 (comment) 一樣

@sian-jing

This comment was marked as off-topic.

@wdzeng
Copy link
Owner Author

wdzeng commented Sep 30, 2023

Hi @94ione @jim515jim,

大概能確定是被偵測到自動化的關係,但我不確定能否解決。

請試試看 hyperbola/shopee-coins-bot:2.0.0-alpha.3。

@wdzeng wdzeng changed the title v2 機器人簽到失敗 v2 機器人被偵測到自動化 Sep 30, 2023
@94ione
Copy link

94ione commented Sep 30, 2023

出現Invalid cookie.
Missing required cookie: shopee_webUnique_ccd,截圖如下。謝謝!

image

@wdzeng
Copy link
Owner Author

wdzeng commented Oct 2, 2023

Hi @94ione,

想再次確認以下事項:

  • 你的 cookie 是否來自無痕的 Chrome 瀏覽器?
  • 你的登入方式是 Facebook 登入、Google 帳號登入、還是帳號密碼登入?

感謝!

@sian-jing

This comment was marked as off-topic.

@ray1025

This comment was marked as off-topic.

@danielhuang-030

This comment was marked as off-topic.

@wdzeng
Copy link
Owner Author

wdzeng commented Oct 5, 2023

感謝各位的回報,我再來研究看看😭😭😭😭😭😭😭😭

@94ione
Copy link

94ione commented Oct 7, 2023

Hi @94ione,

想再次確認以下事項:

  • 你的 cookie 是否來自無痕的 Chrome 瀏覽器?
  • 你的登入方式是 Facebook 登入、Google 帳號登入、還是帳號密碼登入?

感謝!

您好,我是使用 Chrome 無痕,而帳號是GOOGLE的。謝謝!!

@wdzeng
Copy link
Owner Author

wdzeng commented Oct 9, 2023

@ray1025 @danielhuang-030 @sian-jing 你們遇到的問題與此篇不同,我把你們移動到 #66 #68

@wdzeng wdzeng changed the title v2 機器人被偵測到自動化 [v2] 機器人被偵測到自動化 Oct 9, 2023
@wdzeng
Copy link
Owner Author

wdzeng commented Oct 9, 2023

@94ione 我先把問題拆成兩份:

  1. alpha-2 機器人簽到顯示成功,但實際上是失敗的。而且有當日無法再手動簽到的問題。
  2. alpha-3 機器人顯示錯誤訊息 Missing required cookie: shopee_webUnique_ccd

兩個問題應該沒有相關。我把 2. 移動到 #68

@94ione
Copy link

94ione commented Oct 9, 2023

@94ione 我先把問題拆成兩份:

  1. alpha-2 機器人簽到顯示成功,但實際上是失敗的。而且有當日無法再手動簽到的問題。
  2. alpha-3 機器人顯示錯誤訊息 Missing required cookie: shopee_webUnique_ccd

兩個問題應該沒有相關。我把 2. 移動到 #68

版大您辛苦了!!給您100個讚!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants