Coder Social home page Coder Social logo

py-login's Introduction

PY-Login

简介

模拟登录各类网站,操作api完成各种不可描述的事情

使用

  • 打开各个功能目录下的config.json文件
  • 填入账号密码,请保证json格式正确(如下),多个账号会依次登录并完成功能
[
  {
    "username": "",
    "password": ""
  },
  {
    "username": "",
    "password": ""
  }
]

支持列表

网站 模拟登录 验证码识别 功能列表
github.com - star \ unstar
bilibili.com × -
coding.net - -

PR说明

  • 新网站的PR需保证登录和cookies登录功能完成
  • 请保证新目录及文件命名的统一
  • 请保证用户填写的config.json格式统一
  • API的PR优先批量点赞、回复、顶、硬币、香蕉、肥皂等攒人气的API

py-login's People

Contributors

ookcode 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

Watchers

 avatar  avatar

py-login's Issues

How to get the encrypt method of password

HI ookcode

Your code is absolute awesome !
Now I am confusing that how could you find the way to encrypt the password such as the encrypt code of Bilibili password as follow

def _encrypt(self, password):
	#获取加密的token
	response = self.get('http://passport.bilibili.com/login?act=getkey')
	token = json.loads(response.content.decode('utf-8'))
	password = str(token['hash'] + password).encode('utf-8')
	pub_key = token['key']
	pub_key = rsa.PublicKey.load_pkcs1_openssl_pem(pub_key)
	message = rsa.encrypt(password, pub_key)
	message = binascii.b2a_base64(message)
	return message

Could you give me some tips?

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.