Login qr line & qr image

Overview

login-qr-line-qr-image

login qr line & qr image

python3 & linux ubuntu

api source: https://github.com/hert0t/BEAPI-BETA

"IOSIPAD\t10.5.2\tiPhone 8\t11.2.5" def LoginQR(headers, cert=""): qr = lineGetQr(headers,cert) cl.sendMessage(to,"Link QR: "+qr["result"]["qrlink"]) GenerateQRIMG(to,qr["result"]["qrcode"]) cl.sendMessage(to,"IP: "+qr["result"]["ip"]) if crt == "": pincode = lineGetQrPincode(qr["result"]["session"]) cl.sendMessage(to,"Pincode: "+pincode["result"]["pincode"]) auth = lineGetQrAuth(qr["result"]["session"]) print("Cert: "+auth["result"]["certificate"]) return auth["result"]["accessToken"]">
import httpx
import qrcode
from PIL import Image

host = "https://beta.beapi.me"
http = httpx.Client(http2=True,timeout=120)

#don't forget to enter the logo you want to generate, rename it to fxglogo.jpg

def GenerateQRIMG(to,link):
    Logo_link = 'fxglogo.jpg'
    logo = Image.open(Logo_link)
    basewidth = 100
    wpercent = (basewidth/float(logo.size[0])) 
    hsize = int((float(logo.size[1])*float(wpercent))) 
    logo = logo.resize((basewidth, hsize), Image.ANTIALIAS) 
    QRcode = qrcode.QRCode( error_correction=qrcode.constants.ERROR_CORRECT_H)
    url = str(link)
    QRcode.add_data(url)
    QRcode.make()
    QRcolor = 'Black'
    QRimg = QRcode.make_image(fill_color=QRcolor, back_color="white").convert('RGB')
    pos = ((QRimg.size[0] - logo.size[0]) // 2, (QRimg.size[1] - logo.size[1]) // 2)
    QRimg.paste(logo, pos)
    QRimg.save('scanme.png')
    alip.sendImage(to, 'scanme.png')
    os.system("rm -r scanme.png")

def lineGetQr(appName,cert=""):
    params = {"appname": appName}
    if cert != "":params["cert"] = cert
    resp = http.get(host+"/lineqr",params=params).json()
    if resp["status"] != 200: raise Exception (resp["reason"])
    return resp

def lineGetQrPincode(session):
    resp = http.get(host+"/lineqr/pincode/"+session).json()
    if resp["status"] != 200: raise Exception (resp["reason"])
    return resp

def lineGetQrAuth(self, session):
    resp = http.get(host+"/lineqr/auth/"+session).json()
    if resp["status"] != 200: raise Exception (resp["reason"])
    return resp

#LOGIN non cert

#headers > "IOSIPAD\t10.5.2\tiPhone 8\t11.2.5"

def LoginQR(headers, cert=""):
    qr = lineGetQr(headers,cert)
    cl.sendMessage(to,"Link QR: "+qr["result"]["qrlink"])
    GenerateQRIMG(to,qr["result"]["qrcode"])
    cl.sendMessage(to,"IP: "+qr["result"]["ip"])
    if crt == "":
        pincode = lineGetQrPincode(qr["result"]["session"])
        cl.sendMessage(to,"Pincode: "+pincode["result"]["pincode"])
    auth = lineGetQrAuth(qr["result"]["session"])
    print("Cert: "+auth["result"]["certificate"])
    return auth["result"]["accessToken"]

for login using def LoginQR

if cmd.startswith("login "):
    sep = text.split(" ")
    fxgsetup = text.replace(sep[0] + " ", "")
    # login header desktopwin, dekstopmac, chromeos
    if fxgsetup == "desktopwin":
        x = LoginQR("DESKTOPWIN\t7.4.0\tPC-9bujIF\t10")
        #x is access toke, you can use os.system for deploy your bot.
    elif fxgsetup == "desktopmac":
        x = LoginQR("DESKTOPMAC\t7.4.0\tPC-9bujIF\t10")
        #x is access toke, you can use os.system for deploy your bot.
    elif fxgsetup == "chromeos":
        x = LoginQR("CHROMEOS\t2.4.9\tChrome OS\t1")
        #x is access toke, you can use os.system for deploy your bot.
    else:
        cl.sendMessage(to, "headers not in list login")

if you have cert and want login with cert.

if cmd.startswith("login "):
    cert = "012324434353453454565768786785774546" # << your cert code
    sep = text.split(" ")
    fxgsetup = text.replace(sep[0] + " ", "")
    # login header desktopwin, dekstopmac, chromeos
    if fxgsetup == "desktopwin":
        x = LoginQR("DESKTOPWIN\t7.4.0\tPC-9bujIF\t10",cert)
        #x is access token, you can use os.system for deploy your bot.
    elif fxgsetup == "desktopmac":
        x = LoginQR("DESKTOPMAC\t7.4.0\tPC-9bujIF\t10",cert)
        #x is access token, you can use os.system for deploy your bot.
    elif fxgsetup == "chromeos":
        x = LoginQR("CHROMEOS\t2.4.9\tChrome OS\t1",cert)
        #x is access token, you can use os.system for deploy your bot.
    else:
        cl.sendMessage(to, "headers not in list login")
Owner
Alif Budiman
Just idiot people trying to learn code.
Alif Budiman
Graphical Password Authentication System.

Graphical Password Authentication System. This is used to increase the protection/security of a website. Our system is divided into further 4 layers of protection. Each layer is totally different and

Hassan Shahzad 12 Dec 16, 2022
:couple: Multi-user accounts for Django projects

django-organizations Summary Groups and multi-user account management Author Ben Lopatin (http://benlopatin.com) Status Separate individual user ident

Ben Lopatin 1.1k Jan 09, 2023
Web authentication testing framework

What is this This is a framework designed to test authentication for web applications. While web proxies like ZAProxy and Burpsuite allow authenticate

OWASP 88 Jan 01, 2023
A flask extension for managing permissions and scopes

Flask-Pundit A simple flask extension to organize resource authorization and scoping. This extension is heavily inspired by the ruby Pundit library. I

Anurag Chaudhury 49 Dec 23, 2022
Django Auth Protection This package logout users from the system by changing the password in Simple JWT REST API.

Django Auth Protection Django Auth Protection This package logout users from the system by changing the password in REST API. Why Django Auth Protecti

Iman Karimi 5 Oct 26, 2022
Script that provides your TESLA access_token and refresh_token

TESLA tokens This script helps you get your TESLA access_token and refresh_token in order to connect to third party applications (Teslamate, TeslaFi,

Bun-Ny TAN 3 Apr 28, 2022
A Python package, that allows you to acquire your RecNet authorization bearer token with your account credentials!

RecNet-Login This is a Python package, that allows you to acquire your RecNet bearer token with your account credentials! Installation Done via git: p

Jesse 6 Aug 18, 2022
Python library for generating a Mastercard API compliant OAuth signature.

oauth1-signer-python Table of Contents Overview Compatibility References Usage Prerequisites Adding the Library to Your Project Importing the Code Loa

23 Aug 01, 2022
Cack facebook tidak login

Cack facebook tidak login

Angga Kurniawan 5 Dec 12, 2021
This script will pull and analyze syscalls in given application(s) allowing for easier security research purposes

SyscallExtractorAnalyzer This script will pull and analyze syscalls in given application(s) allowing for easier security research purposes Goals Teach

Truvis Thornton 18 Jul 09, 2022
Complete Two-Factor Authentication for Django providing the easiest integration into most Django projects.

Django Two-Factor Authentication Complete Two-Factor Authentication for Django. Built on top of the one-time password framework django-otp and Django'

Bouke Haarsma 1.3k Jan 04, 2023
Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.

Welcome to django-allauth! Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (soc

Raymond Penners 7.7k Jan 01, 2023
Flask App With Login

Flask App With Login by FranciscoCharles Este projeto basico é o resultado do estudos de algumas funcionalidades do micro framework Flask do Python. O

Charles 3 Nov 14, 2021
A wagtail plugin to replace the login by an OAuth2.0 Authorization Server

Wagtail OAuth2.0 Login Plugin to replace Wagtail default login by an OAuth2.0 Authorization Server. What is wagtail-oauth2 OAuth2.0 is an authorizatio

Gandi 7 Oct 07, 2022
JSON Web Token implementation in Python

PyJWT A Python implementation of RFC 7519. Original implementation was written by @progrium. Sponsor If you want to quickly add secure token-based aut

José Padilla 4.5k Jan 09, 2023
Use this to create (admin) personal access token in gitlab database. Mainly used for automation.

gitlab-personal-access-token Ensure PAT is present in gitlab database. This tool is mainly used when you need to automate gitlab installation and conf

CINAQ Internet Technologies 1 Jan 30, 2022
Login System Using Django

Login System Django

Nandini Chhajed 6 Dec 12, 2021
Plotly Dash plugin to allow authentication through 3rd party OAuth providers.

dash-auth-external Integrate your dashboards with 3rd parties and external OAuth providers. Overview Do you want to build a Plotly Dash app which pull

James Holcombe 15 Dec 11, 2022
Automatizando a criação de DAGs usando Jinja e YAML

Automatizando a criação de DAGs no Airflow usando Jinja e YAML Arquitetura do Repo: Pastas por contexto de negócio (ex: Marketing, Analytics, HR, etc)

Arthur Henrique Dell' Antonia 5 Oct 19, 2021
Social auth made simple

Python Social Auth Python Social Auth is an easy-to-setup social authentication/registration mechanism with support for several frameworks and auth pr

Matías Aguirre 2.8k Dec 24, 2022