summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinato_working <[email protected]>2024-09-04 16:48:54 +0800
committerMinato_working <[email protected]>2024-09-04 16:48:54 +0800
commit7ef46c236194817378714916910e44ede884becc (patch)
treec12b52718bbad31c1a3465f2e13ea4c0d155f366
parent2d96fec1c731a34c32bdb93bbfffe3ef4751833f (diff)
补充必要的文档
增加Corefile描述,区分匿名解析网关、匿名解析服务器
-rw-r--r--readme_1.md28
-rw-r--r--代码/dnsovertor0.1/dotor代码说明.docxbin540331 -> 541662 bytes
-rw-r--r--代码/树莓派靶场脚本/靶场部署脚本/hs_torrc25
-rw-r--r--代码/树莓派靶场脚本/靶场部署脚本/proxy_torrc22
-rw-r--r--代码/树莓派靶场脚本/靶场部署脚本/readme.txt9
-rw-r--r--代码/树莓派靶场脚本/靶场部署脚本/router_torrc19
-rw-r--r--其他文档/DoTor产品介绍-MESA-0628.docxbin0 -> 18593 bytes
-rw-r--r--其他文档/DoTor软著用户手册20240820.docxbin0 -> 1698030 bytes
8 files changed, 75 insertions, 28 deletions
diff --git a/readme_1.md b/readme_1.md
deleted file mode 100644
index 3f20fde..0000000
--- a/readme_1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-一、插件说明:
-插件代码见./ag_201_coredns/plugin/dnsovertor
-代码暂未使用git进行版本管理,上传的是初版代码,能实现基本功能,metrics和setup_test功能未经测试。
-本插件使Coredns通过Tor的socks5代理端口向xxxx.onion域名的暗网隐藏服务发送DOH请求。
-本插件应与Coredns原代码配合使用
-
-插件功能:向暗网DNS服务转发DNS请求,向客户转发DNS响应;处理请求和响应时输出日志
-注意事项:暗网DNS地址xxxx.onion提供DNS隐藏服务。
-
-二、使用方法:
-1.在plugin.cfg末尾添加dnsovertor:dnsovertor。
-2.将dnsovertor文件夹放入Coredns源文件的plugin文件夹。
-以上两步已集成到ag_201_coredns文件夹中。
-3.通过源代码编译Coredns。
-
-
-三、代码说明:
-dnsovertor.go和setup.go是dnsovertor插件的两个核心go文件,这两个文件就可以实现基本功能。
-dohclient.py,dohclient.go使用DoH查询域名alibaba.com.
-(https://help.aliyun.com/document_detail/171664.html)
-
-四、匿名解析的测试例子(VPS已失效,流程类似):
-匿名解析网关:8.210.118.152,在443端口提供了DOH服务(域名证书为www.runn77.tk),在53端口提供DNS服务
-对www.runn77.tk发起doh请求:python dohclient.py
-对8.210.118.152发起dns请求:dig @8.210.118.152 baidu.com 或 nslookup baidu.com 8.210.118.152
-
-
-
diff --git a/代码/dnsovertor0.1/dotor代码说明.docx b/代码/dnsovertor0.1/dotor代码说明.docx
index 57a8e5d..236a4df 100644
--- a/代码/dnsovertor0.1/dotor代码说明.docx
+++ b/代码/dnsovertor0.1/dotor代码说明.docx
Binary files differ
diff --git a/代码/树莓派靶场脚本/靶场部署脚本/hs_torrc b/代码/树莓派靶场脚本/靶场部署脚本/hs_torrc
new file mode 100644
index 0000000..fe577c8
--- /dev/null
+++ b/代码/树莓派靶场脚本/靶场部署脚本/hs_torrc
@@ -0,0 +1,25 @@
+TestingTorNetwork 1
+DirAuthority AUTH orport=5000 v3ident=B89C83DFF33630A5B64BEB11FDEB62A3B8A48CB3 192.168.107.250:7000 EE2A65C36F3F9C1201762A260D3408E5E23F6DFE
+
+AssumeReachable 1
+TestingDirAuthVoteExit *
+TestingDirAuthVoteHSDir *
+TestingDirAuthVoteGuard *
+TestingMinExitFlagThreshold 0
+
+HiddenServiceDir /var/lib/tor/hidden_service
+HiddenServicePort 443 127.0.0.1:443
+ControlPort 9051
+Log notice file /root/hs_dns/logfile/notice.log
+DataDirectory /root/hs_dns/config/data
+RunAsDaemon 1
+PidFile /root/hs_dns/config/data/pid
+SafeLogging 0
+ExitRelay 1
+ExitPolicy accept *:*
+SocksPort 9050
+OrPort 5000
+DirPort 7000
+
+Nickname Router244
+Address 192.168.107.244
diff --git a/代码/树莓派靶场脚本/靶场部署脚本/proxy_torrc b/代码/树莓派靶场脚本/靶场部署脚本/proxy_torrc
new file mode 100644
index 0000000..9306396
--- /dev/null
+++ b/代码/树莓派靶场脚本/靶场部署脚本/proxy_torrc
@@ -0,0 +1,22 @@
+TestingTorNetwork 1
+DirAuthority AUTH orport=5000 v3ident=B89C83DFF33630A5B64BEB11FDEB62A3B8A48CB3 192.168.107.2507000 EE2A65C36F3F9C1201762A260D3408E5E23F6DFE
+
+AssumeReachable 1
+TestingDirAuthVoteExit
+TestingDirAuthVoteHSDir
+TestingDirAuthVoteGuard
+TestingMinExitFlagThreshold 0
+
+RunAsDaemon 1
+DataDirectory rootdbw_proxyconfigdata
+PidFile rootdbw_proxyconfigdatapid
+Log notice file rootdbw_proxylogfilenotice.log
+SafeLogging 0
+ExitRelay 1
+ExitPolicy accept
+SocksPort 9050
+OrPort 5000
+DirPort 7000
+
+Nickname ProxyOpenwrt
+Address 192.168.107.201 \ No newline at end of file
diff --git a/代码/树莓派靶场脚本/靶场部署脚本/readme.txt b/代码/树莓派靶场脚本/靶场部署脚本/readme.txt
new file mode 100644
index 0000000..62efd2a
--- /dev/null
+++ b/代码/树莓派靶场脚本/靶场部署脚本/readme.txt
@@ -0,0 +1,9 @@
+用于Tor靶场部署
+timedatectl用于时钟同步(靶场必须要所有节点时钟同步,最好都同步到UTC)
+addipandnickname用于给torrc添加ip行和nickname行
+
+torrc:tor的配置文件
+hs 表示匿名解析服务 hidden service
+proxy 匿名解析网关
+da 权威目录服务器
+router 普通中继 \ No newline at end of file
diff --git a/代码/树莓派靶场脚本/靶场部署脚本/router_torrc b/代码/树莓派靶场脚本/靶场部署脚本/router_torrc
new file mode 100644
index 0000000..c333848
--- /dev/null
+++ b/代码/树莓派靶场脚本/靶场部署脚本/router_torrc
@@ -0,0 +1,19 @@
+TestingTorNetwork 1
+DirAuthority AUTH orport=5000 v3ident=B89C83DFF33630A5B64BEB11FDEB62A3B8A48CB3 192.168.107.250:7000 EE2A65C36F3F9C1201762A260D3408E5E23F6DFE
+
+AssumeReachable 1
+TestingDirAuthVoteExit *
+TestingDirAuthVoteHSDir *
+TestingDirAuthVoteGuard *
+TestingMinExitFlagThreshold 0
+
+RunAsDaemon 1
+DataDirectory /home/pi/config/data
+PidFile /home/pi/config/data/pid
+Log notice file /home/pi/logfile/notice.log
+SafeLogging 0
+ExitRelay 1
+ExitPolicy accept *:*
+SocksPort 9050
+OrPort 5000
+DirPort 7000
diff --git a/其他文档/DoTor产品介绍-MESA-0628.docx b/其他文档/DoTor产品介绍-MESA-0628.docx
new file mode 100644
index 0000000..a47dd48
--- /dev/null
+++ b/其他文档/DoTor产品介绍-MESA-0628.docx
Binary files differ
diff --git a/其他文档/DoTor软著用户手册20240820.docx b/其他文档/DoTor软著用户手册20240820.docx
new file mode 100644
index 0000000..ff18182
--- /dev/null
+++ b/其他文档/DoTor软著用户手册20240820.docx
Binary files differ