This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
- Domain filtering
- Referrer filtering
- Embed buster
This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
| #!/usr/bin/env python3 | |
| # | |
| # Query AWS Athena using SQL | |
| # Copyright (c) Alexey Baikov <sysboss[at]mail.ru> | |
| # | |
| # This snippet is a basic example to query Athen and load the results | |
| # to a variable. | |
| # | |
| # Requirements: | |
| # > pip3 install boto3 botocore retrying |
| echo "fs.file-max=1048576" >> /etc/sysctl.conf | |
| echo "net.core.rmem_max = 16777216" >> /etc/sysctl.conf | |
| echo "net.core.wmem_max = 16777216" >> /etc/sysctl.conf | |
| echo "net.ipv4.tcp_rmem = 4096 87380 16777216" >> /etc/sysctl.conf | |
| echo "net.ipv4.tcp_wmem = 4096 65536 16777216" >> /etc/sysctl.conf | |
| sysctl -p | |
| echo "* soft nofile 1048576" >> /etc/security/limits.conf | |
| echo "* hard nofile 1048576" >> /etc/security/limits.conf |
| #https://leetarxiv.substack.com/p/dual-ec-backdoor-coding-guide | |
| from fastecdsa.curve import P256 | |
| from fastecdsa.point import Point | |
| from random import randint | |
| class DualEC(): | |
| def __init__(self, seed, P, Q): | |
| self.seed = seed # Initial integer state of RNG | |
| self.P = P # First elliptic curve point (public parameter) | |
| self.Q = Q # Second elliptic curve point (could be maliciously chosen) |