После него не будет никого, потому что Россия из-за постоянного переноса красных линий и бесконечных шагов доброй воли исчезнет. Иисус вон тоже потерпеть любил, в итоге на кресте распяли.
This file contains 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
#!/usr/bin/env python | |
# pylint: disable=C,R,W | |
import logging | |
import secrets | |
import socket | |
logger = logging.getLogger(__name__) | |
def get_local_ip() -> str: |
This file contains 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
cd "$HOME" | |
configs=( | |
.config/plasma-org.kde.plasma.desktop-appletsrc | |
.config/kdeglobals | |
.config/kscreenlockerrc | |
.config/kwinrc | |
.config/gtkrc | |
.config/gtkrc-2.0 | |
.config/gtk-4.0/* |
This file contains 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
вова путин ___ заблокировал ___ у нас | |
подставь слова таким образом, чтобы не получить срок |
This file contains 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
# pylint: disable=C,R,W | |
from __future__ import annotations | |
import dataclasses | |
import ipaddress | |
import logging | |
import os | |
import random | |
import socket | |
import struct |
This file contains 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
# pylint: disable=C,R,W | |
# https://www.baeldung.com/cs/tcp-protocol-syn-ack | |
# https://www.geeksforgeeks.org/calculation-of-tcp-cherv/ | |
# Это https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/ | |
# является копипастой этого | |
# https://www.binarytides.com/tcp-syn-portscan-in-c-with-linux-sockets/ | |
from __future__ import annotations |
This file contains 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
# https://implement-dns.wizardzines.com/book/part_1 | |
# https://www.php.net/manual/en/function.gethostbyaddr.php#46869 | |
# кодируем имя: <1 байт - длина><имя>. в конце 0x00 | |
def encode_qname(s: str) -> bytes: | |
rv = b'' | |
for x in s.encode().split(b'.'): | |
rv += len(x).to_bytes() + x | |
return rv + b'\0' | |
This file contains 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
$ wget https://ftp.ripe.net/ripe/dbase/split/ripe.db.inetnum.gz | |
$ zcat ripe.db.inetnum.gz | grep -B1 SBERBANK | |
inetnum: 213.154.190.0 - 213.154.190.255 | |
netname: VOL-SBERBANK-NET |