GithubHelp home page GithubHelp logo

lcry / a-sheep-assistant Goto Github PK

View Code? Open in Web Editor NEW
807.0 807.0 296.0 4.29 MB

🐑 羊了个羊助手,羊了个羊一键闯关,本项目仅用于学习研究使用,请勿将本项目的任何内容用于商业或非法目的,否则后果自负。保姆级学习教程关注作者公众号: 《码上有效率》,口令羊了个羊

License: GNU General Public License v3.0

Python 100.00%
python python3

a-sheep-assistant's Introduction

Welcome to my GitHub 👋



              ii.                                         ;9ABH,          
             SA391,                                    .r9GG35&G          
             &#ii13Gh;                               i3X31i;:,rB1         
             iMs,:,i5895,                         .5G91:,:;:s1:8A         
              33::::,,;5G5,                     ,58Si,,:::,sHX;iH1        
               Sr.,:;rs13BBX35hh11511h5Shhh5S3GAXS:.,,::,,1AG3i,GG        
               .G51S511sr;;iiiishS8G89Shsrrsh59S;.,,,,,..5A85Si,h8        
              :SB9s:,............................,,,.,,,SASh53h,1G.       
           .r18S;..,,,,,,,,,,,,,,,,,,,,,,,,,,,,,....,,.1H315199,rX,       
         ;S89s,..,,,,,,,,,,,,,,,,,,,,,,,....,,.......,,,;r1ShS8,;Xi       
       i55s:.........,,,,,,,,,,,,,,,,.,,,......,.....,,....r9&5.:X1       
      59;.....,.     .,,,,,,,,,,,...        .............,..:1;.:&s       
     s8,..;53S5S3s.   .,,,,,,,.,..      i15S5h1:.........,,,..,,:99       
     93.:39s:rSGB@A;  ..,,,,.....    .SG3hhh9G&BGi..,,,,,,,,,,,,.,83      
     G5.G8  9#@@@@@X. .,,,,,,.....  iA9,.S&B###@@Mr...,,,,,,,,..,.;Xh     
     Gs.X8 S@@@@@@@B:..,,,,,,,,,,. rA1 ,A@@@@@@@@@H:........,,,,,,.iX:    
    ;9. ,8A#@@@@@@#5,.,,,,,,,,,... 9A. 8@@@@@@@@@@M;    ....,,,,,,,,S8    
    X3    iS8XAHH8s.,,,,,,,,,,...,..58hH@@@@@@@@@Hs       ...,,,,,,,:Gs   
   r8,        ,,,...,,,,,,,,,,.....  ,h8XABMMHX3r.          .,,,,,,,.rX:  
  :9, .    .:,..,:;;;::,.,,,,,..          .,,.               ..,,,,,,.59  
 .Si      ,:.i8HBMMMMMB&5,....                    .            .,,,,,.sMr 
 SS       :: h@@@@@@@@@@#; .                     ...  .         ..,,,,iM5 
 91  .    ;:.,1&@@@@@@MXs.                            .          .,,:,:&S 
 hS ....  .:;,,,i3MMS1;..,..... .  .     ...                     ..,:,.99 
 ,8; ..... .,:,..,8Ms:;,,,...                                     .,::.83 
  s&: ....  .sS553B@@HX3s;,.    .,;13h.                            .:::&1 
   SXr  .  ...;s3G99XA&X88Shss11155hi.                             ,;:h&, 
    iH8:  . ..   ,;iiii;,::,,,,,.                                 .;irHA  
     ,8X5;   .     .......                                       ,;iihS8Gi
        1831,                                                 .,;irrrrrs&@
          ;5A8r.                                            .:;iiiiirrss1H
            :X@H3s.......                                .,:;iii;iiiiirsrh
             r#h:;,...,,.. .,,:;;;;;:::,...              .:;;;;;;iiiirrss1
            ,M8 ..,....,.....,,::::::,,...         .     .,;;;iiiiiirss11h
            8B;.,,,,,,,.,.....          .           ..   .:;;;;iirrsss111h
           i@5,:::,,,,,,,,.... .                   . .:::;;;;;irrrss111111
           9Bi,:,,,,......                        ..r91;;;;;iirrsss1ss1111


a-sheep-assistant's People

Contributors

lcry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

a-sheep-assistant's Issues

iOS提示没有权限

所以我运行之后提示没有权限让我检查t 是个什么情况呀,我快让这个羊搞疯了

这个是需要加代理吗

requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))

加群

微信群进不去了

赶紧删了!

太好用了,一次成功,我clone了,赶紧删了把!!

这是报错了

λ python main.py
【羊了个羊一键闯关开始启动】
...第1开始完成闯关...
生成随机完成耗时:971 s
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 700, in urlopen
self._prepare_proxy(conn)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 996, in prepare_proxy
conn.connect()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl
.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1071, in _create
self.do_handshake()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 489, in send
resp = conn.urlopen(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='cat-match.easygame2021.com', port=443): Max retries exceeded with url: /sheep/v1/game/game_over?rank_score=1&rank_state=1&rank_time=971&rank_role=1&skin=1 (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "F:\study\a-sheep-assistant\main.py", line 52, in
finish_game(1, cost_time)
File "F:\study\a-sheep-assistant\main.py", line 36, in finish_game
res = requests.get(finish_api % (state, rank_time), headers=request_header)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 563, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='cat-match.easygame2021.com', port=443): Max retries exceeded with url: /sheep/v1/game/game_over?rank_score=1&rank_state=1&rank_time=971&rank_role=1&skin=1 (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)')))

安卓无法成功

PC fiddler连接手机代理进不了游戏,点挑战按钮没反应,抓包有一个网址报错502;

安卓HttpCanray代理后无法打开游戏,进度条卡住不动。

有没有人安卓成功的?

G了

更新后不能用了

建议反馈

抓包对于普通小白来说太难了,但是最大的问题还是在抓cookies这一步,大家有什么好的办法降低门槛,我目前直接使用电脑fiddler+手机代理就可以搞定。

完成每日任务的方法

抓包,游戏结束之后有个/sheep/v1/game/game_over?rank_score=1&rank_state=2&rank_time=1200&rank_role=2&skin=1请求,把rank_state改成1就算做完每日了,话题同理

用算法模拟点击,有什么思路嘛

比如棋盘数据如下(第一关)

{
    "widthNum": 8,
    "heightNum": 10,
    "levelKey": 80001,
    "blockTypeData": {
        "1": 2,
        "4": 1,
        "13": 2
    },
    "levelData": {
        "1": [{
                "id": "1-16-16",
                "type": 0,
                "rolNum": 16,
                "rowNum": 16,
                "layerNum": 1,
                "moldType": 1,
                "blockNode": null
            }, {
                "id": "1-28-16",
                "type": 0,
                "rolNum": 28,
                "rowNum": 16,
                "layerNum": 1,
                "moldType": 1,
                "blockNode": null
            }, {
                "id": "1-40-16",
                "type": 0,
                "rolNum": 40,
                "rowNum": 16,
                "layerNum": 1,
                "moldType": 1,
                "blockNode": null
            }, {
                "id": "1-16-32",
                "type": 0,
                "rolNum": 16,
                "rowNum": 32,
                "layerNum": 1,
                "moldType": 1,
                "blockNode": null
            }, {
                "id": "1-28-32",
                "type": 0,
                "rolNum": 28,
                "rowNum": 32,
                "layerNum": 1,
                "moldType": 1,
                "blockNode": null
            }, {
                "id": "1-40-32",
                "type": 0,
                "rolNum": 40,
                "rowNum": 32,
                "layerNum": 1,
                "moldType": 1,
                "blockNode": null
            }, {
                "id": "1-16-48",
                "type": 0,
                "rolNum": 16,
                "rowNum": 48,
                "layerNum": 1,
                "moldType": 2,
                "blockNode": null
            }, {
                "id": "1-28-48",
                "type": 0,
                "rolNum": 28,
                "rowNum": 48,
                "layerNum": 1,
                "moldType": 2,
                "blockNode": null
            }, {
                "id": "1-40-48",
                "type": 0,
                "rolNum": 40,
                "rowNum": 48,
                "layerNum": 1,
                "moldType": 2,
                "blockNode": null
            }
        ],
        "2": [{
                "id": "2-16-49",
                "type": 0,
                "rolNum": 16,
                "rowNum": 49,
                "layerNum": 2,
                "moldType": 2,
                "blockNode": null
            }, {
                "id": "2-28-49",
                "type": 0,
                "rolNum": 28,
                "rowNum": 49,
                "layerNum": 2,
                "moldType": 2,
                "blockNode": null
            }, {
                "id": "2-40-49",
                "type": 0,
                "rolNum": 40,
                "rowNum": 49,
                "layerNum": 2,
                "moldType": 2,
                "blockNode": null
            }, {
                "id": "2-16-20",
                "type": 1,
                "rolNum": 16,
                "rowNum": 20,
                "layerNum": 2,
                "moldType": 1,
                "blockNode": null
            }, {
                "id": "2-28-20",
                "type": 1,
                "rolNum": 28,
                "rowNum": 20,
                "layerNum": 2,
                "moldType": 1,
                "blockNode": null
            }, {
                "id": "2-40-20",
                "type": 1,
                "rolNum": 40,
                "rowNum": 20,
                "layerNum": 2,
                "moldType": 1,
                "blockNode": null
            }, {
                "id": "2-16-36",
                "type": 0,
                "rolNum": 16,
                "rowNum": 36,
                "layerNum": 2,
                "moldType": 1,
                "blockNode": null
            }, {
                "id": "2-28-36",
                "type": 0,
                "rolNum": 28,
                "rowNum": 36,
                "layerNum": 2,
                "moldType": 1,
                "blockNode": null
            }, {
                "id": "2-40-36",
                "type": 0,
                "rolNum": 40,
                "rowNum": 36,
                "layerNum": 2,
                "moldType": 1,
                "blockNode": null
            }
        ]
    }
}

能看出来一点特征,如:

  1. x y z 三个坐标
  2. x=rolNum
  3. y=rowNum
  4. z=layerNum (堆叠)(最上面的数字最大,贴近地板的是1
  5. id 字段就是 xyz 坐标

type moldType 不知道是啥

但是不知道哪个字段是代表图案的,大家有思路嘛

...

老哥只有个pass呀

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.