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 sys, json, datetime | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from matplotlib import dates | |
if len(sys.argv) != 2: | |
print("Usage: python3", sys.argv[0], "tcpdump_rtmp.json") | |
sys.exit(1) | |
with open(sys.argv[1], encoding="utf-8") as file: |
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
Forward web-port (5000) and ssh (22). | |
systemctl daemon-reload | |
systemctl enable autossh.service | |
[Unit] | |
Description=Auto Reverse SSH | |
After=network.target auditd.service | |
[Service] |
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
# enter this when you end the session | |
import readline | |
readline.write_history_file('last_session.py') |
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
#!/bin/bash | |
url=$1 | |
api_key=$2 | |
mask=$3 | |
if [ -z $url ] || [ -z $api_key ] || [ -z $mask ]; then | |
echo "Argument not found: script.sh /*watcher address*/ \$1 /*vsaas-api-key*/ \$2 /*stream filter*/ \$3" | |
exit 0 | |
else |
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
Hi, | |
For configuring auth_backend & inserting ads on PHP needed to use web server, for example, nginx | |
# install php and nginx | |
apt update | |
apt install nginx php7.2-fpm | |
# turn on socket listening in php-fpm |