This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"open": true, | |
"date": "28-07-2021 23:58", | |
"message": "are you happy?", | |
"is_question": true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "blocks/base.html" %} | |
{% load i18n %} | |
{% load sekizai_tags %} | |
{% load staticfiles %} | |
{% load account %} | |
{% load socialaccount %} | |
{% load bootstrap3 %} | |
{% block content %} | |
{% addtoblock "css" %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def clear_data(db): | |
meta = db.metadata | |
for table in reversed(meta.sorted_tables): | |
print(table) | |
session.execute(table.delete()) | |
session.commit() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gevent | |
import websocket | |
from websocket import create_connection | |
from locust import HttpLocust, TaskSet, task | |
from locust.events import request_success, request_failure | |
class EchoTaskSet(TaskSet): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pbkdf2 import PBKDF2 | |
import base64 | |
password_hash = b"AJeaF8lqg6tG24CAAJT6GbRwBi3GafdU5XnWnhxwIjTxo/q1yc1cnJa2PCplxUF3Rg==" | |
password = b"123456" | |
# оригинальный Соль | |
origin_salt = base64.b64decode(password_hash)[1:16] | |
print(base64.b64encode(origin_salt)) | |
# > l5oXyWqDq0bbgIAAlPoZ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pbkdf2 import PBKDF2 | |
import base64 | |
password_hash = b"ACNLVsim8ADv4Su/8w4loeSwTw2yH2R3++Pvrfx5xlDGlx0cDRdQ9t0TLJd1a5pvZw==" | |
password = b"123456" | |
origin_salt = base64.b64decode(password_hash)[1:16] | |
buffer1 = base64.b64decode(password_hash)[17:] | |
print(base64.b64encode(buffer1)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name" : "MelisAdmin" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="PYTHON_MODULE" version="4"> | |
<component name="NewModuleRootManager"> | |
<content url="file://$MODULE_DIR$" /> | |
<orderEntry type="inheritedJdk" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
</component> | |
<component name="TestRunnerService"> | |
<option name="PROJECT_TEST_RUNNER" value="Unittests" /> | |
</component> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from grab import Grab | |
import re | |
class Connect: | |
__login = '' # Логин | |
__password = '' # Пароль | |
__site = '' # Сайт с которого играет пользователь | |
# Статистика | |
__user_nik = '' # Никнейм | |
__user_lvl = 0 # Уровень |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from grab import Grab | |
import re | |
class Connect: | |
__login = '' # Логин | |
__password = '' # Пароль | |
__site = '' # Сайт с которого играет пользователь | |
# Статистика | |
__user_nik = '' # Никнейм | |
__user_lvl = 0 # Уровень |
NewerOlder