diff options
author | terminaldweller <devi@terminaldweller.com> | 2023-07-13 18:10:26 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2023-07-13 18:10:26 +0000 |
commit | b595ac2150e42a22e92b954188ae374d290b3f53 (patch) | |
tree | b5e9d5e421c6d266e669476e2a1dfa4e89383953 /terminaldweller.com/tor_bnc | |
parent | update (diff) | |
download | scripts-b595ac2150e42a22e92b954188ae374d290b3f53.tar.gz scripts-b595ac2150e42a22e92b954188ae374d290b3f53.zip |
Diffstat (limited to '')
-rw-r--r-- | terminaldweller.com/tor_bnc/Dockerfile | 12 | ||||
-rw-r--r-- | terminaldweller.com/tor_bnc/config | 3 | ||||
-rw-r--r-- | terminaldweller.com/tor_bnc/docker-compose.yml | 16 | ||||
-rw-r--r-- | terminaldweller.com/tor_bnc/proxychains.conf | 68 |
4 files changed, 99 insertions, 0 deletions
diff --git a/terminaldweller.com/tor_bnc/Dockerfile b/terminaldweller.com/tor_bnc/Dockerfile new file mode 100644 index 0000000..155349b --- /dev/null +++ b/terminaldweller.com/tor_bnc/Dockerfile @@ -0,0 +1,12 @@ +FROM alpine:3.18 + +ARG GOPROXY=https://goproxy.io +RUN apk add --no-cache proxychains-ng git && git clone https://git.sr.ht/~emersion/soju /src && apk del git +RUN apk add --no-cache go sqlite sqlite-libs sqlite-dev +RUN apk add --no-cache git make && cd /src; GOFLAGS='-trimpath -tags=libsqlite3' make soju sojuctl && apk del make +RUN chmod a+w /src/cmd/soju /src/cmd/sojuctl +RUN mv /src/soju /src/sojuctl /src/sojudb /bin + +EXPOSE 6697 + +ENTRYPOINT ["soju", "-config", "/data/config"] diff --git a/terminaldweller.com/tor_bnc/config b/terminaldweller.com/tor_bnc/config new file mode 100644 index 0000000..f14ae32 --- /dev/null +++ b/terminaldweller.com/tor_bnc/config @@ -0,0 +1,3 @@ +listen irc+insecure://0.0.0.0:6697 +db sqlite3 /data/soju_sq3.db +listen unix+admin:///run/soju_admin diff --git a/terminaldweller.com/tor_bnc/docker-compose.yml b/terminaldweller.com/tor_bnc/docker-compose.yml new file mode 100644 index 0000000..040dea2 --- /dev/null +++ b/terminaldweller.com/tor_bnc/docker-compose.yml @@ -0,0 +1,16 @@ +version: "3.9" +services: + soju: + #build: . + image: mpldr/soju:latest + entrypoint: ["proxychains4","-q","soju", "-config","/data/config"] + #entrypoint: ["proxychains4","-q","soju","-listen", "irc+insecure://0.0.0.0:6697", "-config","/data/config"] + command: + - -debug + ports: + - "1026:6697" + #- "127.0.0.1:1026:6697" + volumes: + - ./soju-data:/data + - /etc/hostname:/etc/hostname + - ./proxychains.conf:/etc/proxychains.conf diff --git a/terminaldweller.com/tor_bnc/proxychains.conf b/terminaldweller.com/tor_bnc/proxychains.conf new file mode 100644 index 0000000..6b52457 --- /dev/null +++ b/terminaldweller.com/tor_bnc/proxychains.conf @@ -0,0 +1,68 @@ +# proxychains.conf VER 3.1 +# +# HTTP, SOCKS4, SOCKS5 tunneling proxifier with DNS. +# + +# The option below identifies how the ProxyList is treated. +# only one option should be uncommented at time, +# otherwise the last appearing option will be accepted +# +dynamic_chain +# +# Dynamic - Each connection will be done via chained proxies +# all proxies chained in the order as they appear in the list +# at least one proxy must be online to play in chain +# (dead proxies are skipped) +# otherwise EINTR is returned to the app +# +#strict_chain +# +# Strict - Each connection will be done via chained proxies +# all proxies chained in the order as they appear in the list +# all proxies must be online to play in chain +# otherwise EINTR is returned to the app +# +#random_chain +# +# Random - Each connection will be done via random proxy +# (or proxy chain, see chain_len) from the list. +# this option is good to test your IDS :) + +# Make sense only if random_chain +#chain_len = 2 + +# Quiet mode (no output from library) +#quiet_mode + +# Proxy DNS requests - no leak for DNS data +proxy_dns + +# Some timeouts in milliseconds +tcp_read_time_out 15000 +tcp_connect_time_out 8000 +localnet 10.0.0.0/255.0.0.0 +localnet 172.16.0.0/255.240.0.0 +localnet 192.168.0.0/255.255.0.0 +localnet 127.0.0.0/255.0.0.0 + +# ProxyList format +# type host port [user pass] +# (values separated by 'tab' or 'blank') +# +# +# Examples: +# +# socks5 192.168.67.78 1080 lamer secret +# http 192.168.89.3 8080 justu hidden +# socks4 192.168.1.49 1080 +# http 192.168.39.93 8080 +# +# +# proxy types: http, socks4, socks5 +# ( auth types supported: "basic"-http "user/pass"-socks ) +# +[ProxyList] +# add proxy here ... +# meanwile +# defaults set to "tor" +socks5 172.17.0.1 9050 |