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
APT::Periodic::Update-Package-Lists "1"; | |
APT::Periodic::Unattended-Upgrade "1"; | |
//APT::Periodic::Download-Upgradeable-Packages "1"; | |
//APT::Periodic::AutocleanInterval "7"; |
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
[Time] | |
NTP=time.cloudflare.com | |
FallbackNTP=time.google.com | |
#RootDistanceMaxSec=5 | |
#PollIntervalMinSec=32 | |
#PollIntervalMaxSec=2048 |
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
[Resolve] | |
DNS=127.0.0.1 | |
FallbackDNS=9.9.9.9 | |
#DNSSEC=yes | |
#DNSOverTLS=yes | |
#Domains= | |
#LLMNR=no | |
#MulticastDNS=no | |
#DNSOverTLS=no | |
#Cache=no-negative |
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
set -s escape-time 0 | |
setw -g aggressive-resize on | |
# Highlight active window | |
#set-window-option -g window-status-current-bg red | |
# disabled because issues | |
#set -g default-terminal “screen-256color” | |
### TESTING ### |
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
#Acquire::http::proxy "http://192.168.1.201:3128"; | |
#Acquire::https::proxy "https://192.168.1.201:3128"; | |
#Acquire::ftp::proxy "ftp://192.168.1.201:3128"; |
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
#Setup Photon OS | |
# SSH | |
# replace #PermitRootLogin prohibit-password with PermitRootLogin yes ; systemctl restart sshd | |
vi .ssh/authorized_keys (insert pub key) | |
# set hostname | |
hostnamectl set-hostname NAME | |
nano /etc/hosts | |
<reboot> |
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 | |
# pinbox pcap export | |
SHELL=/bin/sh | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin | |
while true | |
do | |
/usr/bin/ssh -i /root/.ssh/id_rsa -o "StrictHostKeyChecking no" [email protected] "/usr/bin/daemonlogger -R /data/pcap_tmp/SynologyRouter.pcap -o sniff0" | |
/usr/bin/pkill -f "/usr/bin/ssh -i /root/.ssh/id_rsa -o StrictHostKeyChecking no [email protected] rm /data/pcap_tmp/SynologyRouter.pcap ; cat >> /data/pcap_tmp/SynologyRouter.pcap" | |
sleep 90 |
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 | |
# sniff 2 sensor | |
SHELL=/bin/sh | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin | |
while true | |
do | |
/usr/sbin/tcpdump -i lbr0 -s0 -nn -w - | /usr/bin/ssh -i /root/.ssh/id_rsa -o "StrictHostKeyChecking no" [email protected] "/usr/bin/daemonlogger -R - -o eno1 -t 60 -c 4200000" | |
done |
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 | |
# sniff 2 sensor | |
SHELL=/bin/sh | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin | |
while true | |
do | |
/usr/sbin/tcpdump -i lbr0 -s0 -nn -w - | /usr/bin/ssh -i /root/.ssh/id_rsa -o "StrictHostKeyChecking no" [email protected] "/usr/bin/daemonlogger -R - -o ens224 -t 60 -c 4200000" | |
done |
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
// Proxy PAC | |
function FindProxyForURL(url, host) { | |
// Convert the host parameter to lowercase to facilitate case insensitive matching | |
host = host.toLowerCase(); | |
url = url.toLowerCase(); | |
// Don't proxy local hostnames | |
if (isPlainHostName(host)) |