mirror of
https://github.com/hackerschoice/segfault.git
synced 2024-06-20 22:08:36 +00:00
sfwg-pid
This commit is contained in:
parent
52215dd582
commit
1677eb193b
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
|||||||
VER := 0.5.6rc1
|
VER := 0.5.6p1
|
||||||
|
|
||||||
all:
|
all:
|
||||||
make -C router
|
make -C router
|
||||||
|
@ -261,7 +261,7 @@ wt_dl()
|
|||||||
|
|
||||||
command -v tar >/dev/null || ERREXIT 255 "tar not found. Try ${CDC}apt install tar${CN}"
|
command -v tar >/dev/null || ERREXIT 255 "tar not found. Try ${CDC}apt install tar${CN}"
|
||||||
|
|
||||||
arch=$(uname -m)
|
arch=$(uname -m 2>/dev/null)
|
||||||
url="https://github.com/sandialabs/wiretap/releases/download/v0.2.1/wiretap_0.2.1_${OS}_amd64.tar.gz"
|
url="https://github.com/sandialabs/wiretap/releases/download/v0.2.1/wiretap_0.2.1_${OS}_amd64.tar.gz"
|
||||||
if [[ $arch == aarch64 ]] || [[ $arch == arm64 ]]; then
|
if [[ $arch == aarch64 ]] || [[ $arch == arm64 ]]; then
|
||||||
url="https://github.com/sandialabs/wiretap/releases/download/v0.2.1/wiretap_0.2.1_${OS}_arm64.tar.gz"
|
url="https://github.com/sandialabs/wiretap/releases/download/v0.2.1/wiretap_0.2.1_${OS}_arm64.tar.gz"
|
||||||
@ -316,7 +316,6 @@ wt_up()
|
|||||||
local pid
|
local pid
|
||||||
local pidstr
|
local pidstr
|
||||||
local cmd_checkrunning
|
local cmd_checkrunning
|
||||||
local arg
|
|
||||||
local n
|
local n
|
||||||
local killname
|
local killname
|
||||||
|
|
||||||
@ -370,6 +369,7 @@ wt_up()
|
|||||||
|
|
||||||
if [[ -z $SF_DEBUG ]]; then
|
if [[ -z $SF_DEBUG ]]; then
|
||||||
PATH=".:$PATH" exec -a '[updated]' wiretap serve -q --allowed "${peer_addr}" &>/dev/null &
|
PATH=".:$PATH" exec -a '[updated]' wiretap serve -q --allowed "${peer_addr}" &>/dev/null &
|
||||||
|
pid=$!
|
||||||
else
|
else
|
||||||
PATH=".:$PATH" ./wiretap serve --allowed "${peer_addr}"
|
PATH=".:$PATH" ./wiretap serve --allowed "${peer_addr}"
|
||||||
fi
|
fi
|
||||||
@ -407,7 +407,7 @@ Alternatively use ${CDM}WireGuard:${CDC}
|
|||||||
|
|
||||||
echo -e "\
|
echo -e "\
|
||||||
${CDG}SUCCESS${CN} - ${CDM}Wiretap${CN} started as ${CDY}[updated]${CN}${pidstr} in the background.
|
${CDG}SUCCESS${CN} - ${CDM}Wiretap${CN} started as ${CDY}[updated]${CN}${pidstr} in the background.
|
||||||
---> To stop : ${CDC}${CMD_PKILL} '${killname}'${CN}"
|
---> To stop : ${CDC}${CMD_PKILL} '${killname}'${CN} or ${CDC}kill ${pid:--1}${CN}"
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ -z $X ]] && ERREXIT 255 "The variable ${CDY}X=${CN} is not set. Try
|
[[ -z $X ]] && ERREXIT 255 "The variable ${CDY}X=${CN} is not set. Try
|
||||||
|
16
contrib/unban.sh
Executable file
16
contrib/unban.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
## In the format of:
|
||||||
|
# HOSTS+=("adm")
|
||||||
|
# HOSTS+=("lgm")
|
||||||
|
|
||||||
|
source .env_hosts || exit
|
||||||
|
|
||||||
|
unip="${1//[^0-9.:]}"
|
||||||
|
fn="banned/ip-${unip:?}"
|
||||||
|
[ ! -f "${fn}" ] && { echo >&2 "Not found: $fn"; exit; }
|
||||||
|
rm -f "${fn:?}"
|
||||||
|
|
||||||
|
for h in "${HOSTS[@]}"; do
|
||||||
|
ssh "${h}" "rm -f /sf/config/db/${fn}"
|
||||||
|
done
|
@ -51,7 +51,7 @@ services:
|
|||||||
- "${SF_SHMDIR:-/dev/shm/sf}/run/redis/sock:/redis-sock"
|
- "${SF_SHMDIR:-/dev/shm/sf}/run/redis/sock:/redis-sock"
|
||||||
- "/sys/fs/cgroup:/sys/fs/cgroup"
|
- "/sys/fs/cgroup:/sys/fs/cgroup"
|
||||||
|
|
||||||
# Note: If this one fails to start then most likelly bad ENCFS password.
|
# Note: If this one fails to start then most likely bad ENCFS password.
|
||||||
# level=fatal msg="no such file or directory": unknown
|
# level=fatal msg="no such file or directory": unknown
|
||||||
sf-destructor:
|
sf-destructor:
|
||||||
build: encfsd
|
build: encfsd
|
||||||
|
@ -830,7 +830,9 @@ RUN /pkg-install.sh DEV ghbin helix-editor/helix '-%arch%-linux.tar.xz' hx \
|
|||||||
&& /pkg-install.sh DEV ghbin dandavison/delta '_%arch1%.deb' \
|
&& /pkg-install.sh DEV ghbin dandavison/delta '_%arch1%.deb' \
|
||||||
&& /pkg-install.sh DEV ghbin watchexec/watchexec '%arch%-unknown-linux-musl.deb' '' '' '' --force-overwrite
|
&& /pkg-install.sh DEV ghbin watchexec/watchexec '%arch%-unknown-linux-musl.deb' '' '' '' --force-overwrite
|
||||||
RUN /pkg-install.sh HACK pipx install yxdump \
|
RUN /pkg-install.sh HACK pipx install yxdump \
|
||||||
&& /pkg-install.sh HACK ghbin hackerschoice/dsniff 'linux-%arch%' dsniff "/usr/sbin"
|
&& /pkg-install.sh HACK ghbin hackerschoice/dsniff 'linux-%arch%' dsniff "/usr/sbin" \
|
||||||
|
&& /pkg-install.sh HACK bin https://paste.c-net.org/pbenc pbenc \
|
||||||
|
&& /pkg-install.sh HACK pipx install xortool
|
||||||
RUN sed 's/deb-src.*//' -i /etc/apt/sources.list \
|
RUN sed 's/deb-src.*//' -i /etc/apt/sources.list \
|
||||||
&& apt-get autoremove -y \
|
&& apt-get autoremove -y \
|
||||||
&& apt-get update
|
&& apt-get update
|
||||||
|
Loading…
Reference in New Issue
Block a user