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
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
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
Accounts for Django made beautifully simple

Django Userena Userena is a Django application that supplies your Django project with full account management. It's a fully customizable application t

Bread & Pepper 1.3k Sep 18, 2022
row level security for FastAPI framework

Row Level Permissions for FastAPI While trying out the excellent FastApi framework there was one peace missing for me: an easy, declarative way to def

Holger Frey 315 Dec 25, 2022
Mock authentication API that acceccpts email and password and returns authentication result.

Mock authentication API that acceccpts email and password and returns authentication result.

Herman Shpryhau 1 Feb 11, 2022
Crie seus tokens de autenticação com o AScrypt.

AScrypt tokens O AScrypt é uma forma de gerar tokens de autenticação para sua aplicação de forma rápida e segura. Todos os tokens que foram, mesmo que

Jaedson Silva 0 Jun 24, 2022
Abusing Microsoft 365 OAuth Authorization Flow for Phishing Attack

Microsoft365_devicePhish Abusing Microsoft 365 OAuth Authorization Flow for Phishing Attack This is a simple proof-of-concept script that allows an at

Optiv Security 76 Jan 02, 2023
Pingo provides a uniform API to program devices like the Raspberry Pi, BeagleBone Black, pcDuino etc.

Pingo provides a uniform API to program devices like the Raspberry Pi, BeagleBone Black, pcDuino etc. just like the Python DBAPI provides an uniform API for database programming in Python.

Garoa Hacker Clube 12 May 22, 2022
Customizable User Authorization & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.

Flask-User v1.0 Attention: Flask-User v1.0 is a Production/Stable version. The previous version is Flask-User v0.6. User Authentication and Management

Ling Thio 997 Jan 06, 2023
Authentication Module for django rest auth

django-rest-knox Authentication Module for django rest auth Knox provides easy to use authentication for Django REST Framework The aim is to allow for

James McMahon 878 Jan 04, 2023
Beihang University Network Authentication Login

北航自动网络认证使用说明 主文件 gw_buaa.py # @file gw_buaa.py # @author Dong # @date 2022-01-25 # @email windcicada 0 Jul 22, 2022

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 02, 2023
python-social-auth and oauth2 support for django-rest-framework

Django REST Framework Social OAuth2 This module provides OAuth2 social authentication support for applications in Django REST Framework. The aim of th

1k Dec 22, 2022
This program automatically logs you into a Zoom session at your alloted time

This program automatically logs you into a Zoom session at your alloted time. Optionally you can choose to have end the session at your allotted time.

9 Sep 19, 2022
OAuth2 goodies for the Djangonauts!

Django OAuth Toolkit OAuth2 goodies for the Djangonauts! If you are facing one or more of the following: Your Django app exposes a web API you want to

Jazzband 2.7k Dec 31, 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
A secure authentication module to validate user credentials in a Streamlit application.

Streamlit-Authenticator A secure authentication module to validate user credentials in a Streamlit application. Installation Streamlit-Authenticator i

M Khorasani 336 Dec 31, 2022
A Python library for OAuth 1.0/a, 2.0, and Ofly.

Rauth A simple Python OAuth 1.0/a, OAuth 2.0, and Ofly consumer library built on top of Requests. Features Supports OAuth 1.0/a, 2.0 and Ofly Service

litl 1.6k Dec 08, 2022
REST implementation of Django authentication system.

djoser REST implementation of Django authentication system. djoser library provides a set of Django Rest Framework views to handle basic actions such

Sunscrapers 2.2k Jan 01, 2023
Generate payloads that force authentication against an attacker machine

Hashgrab Generates scf, url & lnk payloads to put onto a smb share. These force authentication to an attacker machine in order to grab hashes (for exa

xct 35 Dec 20, 2022