forked from firerpa/lamda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
161 additions
and
188 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
3.0.53 | ||
* 修复宽字符请求头导致的崩溃 | ||
* 合并 mitmweb 到 startmitm 进程 | ||
* docker 镜像小修改 | ||
* 支持布局检视 | ||
|
||
3.0.50 | ||
* 支持 child, sibling 选择器 | ||
|
||
|
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
This file contains 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
47 changes: 46 additions & 1 deletion
47
tools/globalmitm/DNS2SOCKS/DNS2SOCKS.c → tools/globalmitm/DNS2SOCKS.c
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,31 +2,29 @@ FROM debian:bullseye-slim | |
|
||
LABEL maintainer="rev1si0n <[email protected]>" | ||
|
||
ENV PYPIMIRROR=https://mirrors.ustc.edu.cn/pypi/web/simple | ||
ENV GOST=https://github.com/ginuerzh/gost/releases/download/v2.11.4/gost-linux-386-2.11.4.gz | ||
ENV SOURCESMIRROR=mirrors.ustc.edu.cn | ||
ENV VERSION=2.11.4 | ||
ENV PLAT=linux-386 | ||
|
||
RUN sed -i "s/deb.debian.org/${SOURCESMIRROR}/g" /etc/apt/sources.list | ||
RUN sed -i "s|security.debian.org/debian-security|${SOURCESMIRROR}/debian-security|g" /etc/apt/sources.list | ||
ENV PYPIMIRROR=https://mirrors.ustc.edu.cn/pypi/web/simple | ||
ENV GOST=https://github.com/ginuerzh/gost/releases/download/v${VERSION}/gost-${PLAT}-${VERSION}.gz | ||
ENV BINDIR=/usr/local/bin | ||
|
||
RUN apt-get update && apt-get -y upgrade | ||
RUN apt install -y adb gcc wget dnsutils python3 python3-pip | ||
WORKDIR /tmp | ||
RUN apt-get update && apt-get -y upgrade && apt install -y adb gcc wget dnsutils python3 python3-pip | ||
|
||
RUN wget ${GOST} -O - | gzip -d> /usr/bin/gost | ||
RUN wget ${GOST} -O - | gzip -d> ${BINDIR}/gost | ||
|
||
COPY globalmitm/DNS2SOCKS / | ||
RUN gcc DNS2SOCKS.c -o /usr/bin/DNS2SOCKS -lpthread | ||
COPY startmitm.py ${BINDIR} | ||
COPY globalmitm/entry ${BINDIR} | ||
COPY globalmitm/DNS2SOCKS.c /tmp | ||
COPY requirements.txt /tmp | ||
|
||
COPY startmitm.py /usr/bin | ||
COPY globalmitm/entry /usr/bin/mitm | ||
COPY requirements.txt / | ||
RUN gcc -pthread DNS2SOCKS.c -o ${BINDIR}/DNS2SOCKS | ||
RUN pip3 install -i ${PYPIMIRROR} --no-cache-dir -r requirements.txt | ||
|
||
RUN chmod 755 /usr/bin/gost | ||
RUN chmod 755 /usr/bin/startmitm.py | ||
RUN chmod 755 /usr/bin/mitm | ||
RUN chmod 755 ${BINDIR}/* | ||
ENV PATH=${BINDIR}:${PATH} | ||
|
||
RUN pip3 install --no-cache-dir -i ${PYPIMIRROR} -r /requirements.txt | ||
WORKDIR /root | ||
|
||
EXPOSE 53/udp 8118/tcp 1234/tcp | ||
ENTRYPOINT [ "mitm" ] | ||
ENTRYPOINT [ "entry" ] |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
openvpn --genkey tls-crypt-v2-client "/etc/openvpn/tls-crypt-v2-client/$1" --tls-crypt-v2 /etc/openvpn/tls-crypt-v2-server.key | ||
TC_CLIENT=/etc/openvpn/tls-crypt-v2-client/$1 | ||
TC_SERVER=/etc/openvpn/tls-crypt-v2-server.key | ||
openvpn --genkey tls-crypt-v2-client ${TC_CLIENT} --tls-crypt-v2 ${TC_SERVER} | ||
easyrsa build-client-full "$1" nopass |
Oops, something went wrong.