This commit is contained in:
sShemet
2025-12-22 14:03:10 +05:00
commit ade2833df7
74 changed files with 42924 additions and 0 deletions

14
govno/async_test.py Normal file
View File

@@ -0,0 +1,14 @@
# First we need the asyncio library
import asyncio
# Then we need a loop to work with
loop = asyncio.get_event_loop()
# We also need something to run
async def main():
for char in 'Hello, world!\n':
print(char, end='', flush=True)
await asyncio.sleep(0.5)
# Then, we need to run the loop with a task
loop.run_until_complete(main())

29
govno/import.blade.php Normal file
View File

@@ -0,0 +1,29 @@
@extends('layout')
@section('title')Главная страница@endsection
@section('content')
<div class="bg-dark p-5 rounded">
@auth
<p class="lead">{{ Auth::user()->name }}, Вы залогинены. Поздравляем.</p>
@endauth
</div>
<br>
<p>Дорогие друзья!</p>
<p>Спасибо, что посетили эту страницу.</p>
<p>Если вы залогинены, то можете просматривать книги и оставлять комментарии как обычный пользователь.</p>
<p>Если Администратор включил вашей учётной записи опцию "сотрудник", то можете редактировать и добавлять книги и категории.</p>
<p>Вы можете войти как Администратор, используя admin@domain.com / password</p>
<p>Или просто выбрать нужную категорию книг:</p>
<ul>
@foreach ($cats as $el)
<li><a class="nav-link px-2 text-white" href={{ route('categories.show', $el->slug) }}>{{ $el->title }}</a></li>
@endforeach
</ul>
@endsection

1
govno/messages.json Normal file
View File

@@ -0,0 +1 @@
[{"id": 10921, "type": "tg", "date": "2023-01-22T11:57:37+05:00", "sendr": "\u0410\u0440\u0442\u0451\u043c \u0410\u0440\u0442\u0451\u043c\u043e\u0432", "msg": "\u041a\u0440\u0443\u0442\u043e\u0439 \u0441\u0442\u0440\u0438\u043c, \u0440\u0435\u0441\u043f\u0435\u043a\u0442"}, {"id": 10922, "type": "tg", "date": "2023-01-22T12:08:24+05:00", "sendr": "\u0418\u0433\u043e\u0440\u044c \u0413\u043e\u0440\u043d\u043e\u0441\u0442\u0430\u0435\u0432", "msg": "\ud83d\udcaa"}, {"id": 10923, "type": "tg", "date": "2023-01-22T12:49:31+05:00", "sendr": "\u0414\u0456\u043c\u0430", "msg": "\u0421\u043f\u0430\u0441\u0438\u0431\u043e, \u0434\u043e\u0436\u0434\u0430\u043b\u0441\u044f."}, {"id": 10924, "type": "tg", "date": "2023-01-22T12:59:13+05:00", "sendr": "Heliand", "msg": "\u041e! \u042f \u043f\u043e\u043c\u043d\u044e \u044d\u0442\u043e\u0442 \u0434\u0435\u043d\u044c!"}, {"id": 10926, "type": "tg", "date": "2023-01-22T13:19:42+05:00", "sendr": "Taburet", "msg": "\u0416\u0434\u0451\u043c ep"}, {"id": 11026, "type": "tg", "date": "2023-01-25T12:06:07+05:00", "sendr": "\u041c\u0438\u0445\u0430\u0438\u043b \u0410\u0440\u0437\u044f\u0435\u0432", "msg": "\u0428\u0435\u043c\u0435\u0442, \u0440\u0430\u0434\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 \u043f\u043e\u0441\u043b\u0435 \u0435\u0440 \u0437\u0430\u0439\u043c\u0435\u0448\u044c\u0441\u044f \u0438\u043d\u044b\u043c\u0438 \u0442\u0430\u0439\u0442\u043b\u0430\u043c\u0438 \u0430\u0442\u043b\u0443\u0441 \u043d\u0430 \u043f\u04411?"}, {"id": 11027, "type": "tg", "date": "2023-01-25T15:40:19+05:00", "sendr": "P2 IS EP RUS", "msg": "\u041f\u043e\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0435\u0449\u0451 \u043f2 \u0434\u043b\u044f psp, \u0442\u0430\u043c \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u044b :)"}, {"id": 11051, "type": "tg", "date": "2023-01-26T15:01:22+05:00", "sendr": "\u041c\u0438\u0445\u0430\u0438\u043b \u0410\u0440\u0437\u044f\u0435\u0432", "msg": "\u041d\u0443 \u0443 \u0432\u0441\u0435\u0445 \u0438\u0445 \u043f\u0441\u043f \u0442\u0430\u0439\u0442\u043b\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 \u043a\u0430\u043a \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0431\u043b\u0438\u0437\u043a\u0430\u044f. \u0414\u0430\u0436\u0435 \u0443 \u0434\u0435\u0432\u0438\u043b\u0441\u0430\u043c\u043c\u043e\u043d\u0435\u0440\u0430."}, {"id": 11052, "type": "tg", "date": "2023-01-26T15:01:37+05:00", "sendr": "\u041c\u0438\u0445\u0430\u0438\u043b \u0410\u0440\u0437\u044f\u0435\u0432", "msg": "\u041a\u0441\u0442\u0430\u0442\u0438, \u0428\u0435\u043c\u0435\u0442. \u0421\u043b\u0430\u0431\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0441\u0430\u043c\u043c\u043e\u043d\u0435\u0440\u0430 \u0440\u0430\u043d\u044c\u0448\u0435 \u0418\u0432\u0430\u043a\u0443\u0440\u044b?"}]

39
govno/messages_yt.json Normal file
View File

@@ -0,0 +1,39 @@
[
{
"author": {
"badgeUrl": "",
"type": "",
"isVerified": false,
"isChatOwner": false,
"isChatSponsor": false,
"isChatModerator": false,
"channelId": "UCUM4JfsjCQW25ZtDYq75Wkw",
"channelUrl": "http://www.youtube.com/channel/UCUM4JfsjCQW25ZtDYq75Wkw",
"name": "さんなー",
"imageUrl": "https://yt4.ggpht.com/ytc/AL5GRJVIdNw2w_SquPxEXWws9mBggNNUNWTGAb1WeHok=s64-c-k-c0x00ffffff-no-rj"
},
"type": "textMessage",
"id": "CjsKGkNKem5tWjdkM2Z3Q0ZjRUJmUW9kV080SklBEh1DT0cxMmVDNDNmd0NGYUpMblFrZDQtWUtEZy03NA%3D%3D",
"timestamp": 1674478157776,
"elapsedTime": "",
"datetime": "2023-01-23 17:49:17",
"message": "雪の日出勤には危険手当てだせ:megaphone::rabbit2:",
"messageEx": [
"雪の日出勤には危険手当てだせ",
{
"id": "📣",
"txt": ":megaphone:",
"url": "https://www.youtube.com/s/gaming/emoji/0f0cae22/emoji_u1f4e3.svg"
},
{
"id": "🐇",
"txt": ":rabbit2:",
"url": "https://www.youtube.com/s/gaming/emoji/0f0cae22/emoji_u1f407.svg"
}
],
"amountValue": 0,
"amountString": "",
"currency": "",
"bgColor": 0
}
]

49
govno/mychat.py Normal file
View File

@@ -0,0 +1,49 @@
#!/usr/bin/python
import configparser
import json
from telethon import TelegramClient
from telethon.errors import SessionPasswordNeededError
# Reading Configs
config = configparser.ConfigParser()
config.read("E:/Games/cgi-bin/config.ini")
# Setting configuration values
api_id = config['Telegram']['api_id']
api_hash = config['Telegram']['api_hash']
api_hash = str(api_hash)
phone = config['Telegram']['phone']
username = config['Telegram']['username']
# Create the client and connect
client = TelegramClient(username, api_id, api_hash)
client.start()
print("Client Created")
# Ensure you're authorized
""" if not client.is_user_authorized():
client.send_code_request(phone)
try:
client.sign_in(phone, input('Enter the code: '))
except SessionPasswordNeededError:
client.sign_in(password=input('Password: ')) """
print('Content-type:text/html')
print('\r\n\r\n')
print('<html>')
print('<head>')
print('<title>Hello World - First CGI Program</title>')
print('</head>')
print('<body>')
print('<h2>Hello World! This is my first CGI program</h2>')
print(api_hash)
print('</body>')
print('</html>')

7
govno/pytchat___.py Normal file
View File

@@ -0,0 +1,7 @@
import pytchat
import time
chat = pytchat.create(video_id="uIx8l2xlYVY")
while chat.is_alive():
print(chat.get().json())
time.sleep(5)

7
govno/readfile.php Normal file
View File

@@ -0,0 +1,7 @@
<?
$file = 'D:\Games\Tecmo Cup - Football Game (Europe).nes';
header('Content-Type: application/x-binary');
header('Content-Disposition: attachment; filename="govno.nes');
print(' GOVNO ');
//readfile($file);

16
govno/server.conf Normal file
View File

@@ -0,0 +1,16 @@
description "Example JSON HTTP server"
author "nitaku - matteo.abrate@gmail.com"
start on started mountall
stop on shutdown
respawn
respawn limit 99 5
script
exec sudo -u www-data /usr/bin/python /data/examples/python_minimal_http/server.py 8009 >> /dev/null 2>> /dev/null
end script
post-start script
end script

55
govno/server.py Normal file
View File

@@ -0,0 +1,55 @@
from http.server import BaseHTTPRequestHandler, HTTPServer
#import SocketServer
import json
import cgi
class Server(BaseHTTPRequestHandler):
def _set_headers(self):
self.send_response(200)
self.send_header('Content-type', 'text/html')
self.end_headers()
def do_HEAD(self):
self._set_headers()
# GET sends back a Hello world message
def do_GET(self):
self._set_headers()
self.wfile.write(json.dumps({'hello': 'world', 'received': 'ok'}).encode('utf-8'))
# self.wfile.write('GET request for {}'.format(self.path).encode('utf-8'))
# POST echoes the message adding a JSON field
def do_POST(self):
ctype, pdict = cgi.parse_header(self.headers.getheader('content-type'))
# refuse to receive non-json content
if ctype != 'application/json':
self.send_response(400)
self.end_headers()
return
# read the message and convert it into a python dictionary
length = int(self.headers.getheader('content-length'))
message = json.loads(self.rfile.read(length))
# add a property to the object, just to mess with data
message['received'] = 'ok'
# send the message back
self._set_headers()
self.wfile.write(json.dumps(message))
def run(server_class=HTTPServer, handler_class=Server, port=8008):
server_address = ('', port)
httpd = server_class(server_address, handler_class)
print('Starting httpd on port %d...' % port)
httpd.serve_forever()
if __name__ == "__main__":
from sys import argv
if len(argv) == 2:
run(port=int(argv[1]))
else:
run()

BIN
govno/sshemet.session Normal file

Binary file not shown.

View File

@@ -0,0 +1,32 @@
import pytchat
import time
import json
class DateTimeEncoder(json.JSONEncoder):
def default(self, o):
if isinstance(o, datetime):
return o.isoformat()
if isinstance(o, bytes):
return list(o)
return json.JSONEncoder.default(self, o)
chat = pytchat.create(video_id="coYw-eVU0Ks")
while chat.is_alive():
#msg = chat.get().json()
'''with open('E:/Games/cgi-bin/messages_yt.json', 'w') as outfile:
json.dump(msg, outfile, cls=DateTimeEncoder)
break'''
time.sleep(2)
for c in chat.get().items:
#print(c.json())
print(c.author.name + ': ' + c.message)
'''
# Each chat item can also be output in JSON format.
for c in chat.get().items:
print(c.json())
'''

32
govno/yt.py Normal file
View File

@@ -0,0 +1,32 @@
import pytchat
import time
import json
class DateTimeEncoder(json.JSONEncoder):
def default(self, o):
if isinstance(o, datetime):
return o.isoformat()
if isinstance(o, bytes):
return list(o)
return json.JSONEncoder.default(self, o)
chat = pytchat.create(video_id="coYw-eVU0Ks")
while chat.is_alive():
#msg = chat.get().json()
'''with open('E:/Games/cgi-bin/messages_yt.json', 'w') as outfile:
json.dump(msg, outfile, cls=DateTimeEncoder)
break'''
time.sleep(2)
for c in chat.get().items:
#print(c.json())
print(c.author.name + ': ' + c.message)
'''
# Each chat item can also be output in JSON format.
for c in chat.get().items:
print(c.json())
'''