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
A Login/Registration GUI Application with SQLite database for manipulating data.

Login-Register_Tk A Login/Registration GUI Application with SQLite database for manipulating data. What is this program? This program is a GUI applica

Arsalan 1 Feb 01, 2022
This script helps you log in to your LMS account and enter the currently running session

This script helps you log in to your LMS account and enter the currently running session, all in a second

Ali Ebrahimi 5 Sep 01, 2022
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
OpenConnect auth creditials collector.

OCSERV AUTH CREDS COLLECTOR V1.0 Зачем Изначально было написано чтобы мониторить какие данные вводятся в интерфейс ханипота в виде OpenConnect server.

0 Sep 23, 2022
A Python tool to generate and refresh Amazon access tokens.

amazon_auth A Python tool to generate and refresh Amazon access tokens. Description This tool generates and outputs Amazon access and refresh tokens f

15 Nov 21, 2022
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

DigeeX 140 Jul 06, 2022
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
Luca Security Concept

Luca Security Concept This is the document source of luca's security concept. Please go here for the HTML version: https://luca-app.de/securityconcept

luca 43 Oct 22, 2022
Alisue 299 Dec 06, 2022
A Python library to create and validate authentication tokens

handshake A Python library to create and validate authentication tokens. handshake is used to generate and validate arbitrary authentication tokens th

0 Apr 26, 2022
User-related REST API based on the awesome Django REST Framework

Django REST Registration User registration REST API, based on Django REST Framework. Documentation Full documentation for the project is available at

Andrzej Pragacz 399 Jan 03, 2023
Extending the Django authentication system with a phone verification step.

Extending the Django authentication system with a phone verification step.

Miguel Grinberg 50 Dec 04, 2022
Basic auth for Django.

Basic auth for Django.

bichanna 2 Mar 25, 2022
Two factor authentication system using azure services and python language and its api's

FUTURE READY TALENT VIRTUAL INTERSHIP PROJECT PROJECT NAME - TWO FACTOR AUTHENTICATION SYSTEM Resources used: * Azure functions(python)

BHUSHAN SATISH DESHMUKH 1 Dec 10, 2021
Django x Elasticsearch Templates

Django x Elasticsearch Requirements Python 3.7 Django = 3 Elasticsearch 7.15 Setup Elasticsearch Install via brew Install brew tap elastic/tap brew

Aji Pratama 0 May 22, 2022
Google Auth Python Library

Google Auth Python Library This library simplifies using Google's various server-to-server authentication mechanisms to access Google APIs. Installing

Google APIs 598 Jan 07, 2023
This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)

Welcome to django-rest-auth Repository is unmaintained at the moment (on pause). More info can be found on this issue page: https://github.com/Tivix/d

Tivix 2.4k Jan 03, 2023
MikroTik Authentication POCs

Proofs of concept which successfully authenticate with MikroTik Winbox and MAC Telnet servers running on RouterOS version 6.45.1+

Margin Research 56 Dec 08, 2022
This is a Token tool that gives you many options to harm the account.

Trabis-Token-Tool This is a Token tool that gives you many options to harm the account. Utilities With this tools you can do things as : ·Delete all t

Steven 2 Feb 13, 2022
Boilerplate/Starter Project for building RESTful APIs using Flask, SQLite, JWT authentication.

auth-phyton Boilerplate/Starter Project for building RESTful APIs using Flask, SQLite, JWT authentication. Setup Step #1 - Install dependencies $ pip

sandhika 0 Aug 03, 2022