Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NNNNolan committed Jan 18, 2022
0 parents commit 56659e8
Show file tree
Hide file tree
Showing 87 changed files with 5,682 additions and 0 deletions.
Binary file added AspNetCoreRateLimit.dll
Binary file not shown.
Binary file added ICSharpCode.SharpZipLib.dll
Binary file not shown.
Binary file added IServer.dll
Binary file not shown.
Binary file added IServer.pdb
Binary file not shown.
Binary file added License.dll
Binary file not shown.
Binary file added License.pdb
Binary file not shown.
Binary file added Microsoft.Bcl.AsyncInterfaces.dll
Binary file not shown.
Binary file added Microsoft.Extensions.DependencyInjection.dll
Binary file not shown.
4,988 changes: 4,988 additions & 0 deletions NETJDC.deps.json

Large diffs are not rendered by default.

Binary file added NETJDC.dll
Binary file not shown.
Binary file added NETJDC.exe
Binary file not shown.
Binary file added NETJDC.pdb
Binary file not shown.
13 changes: 13 additions & 0 deletions NETJDC.runtimeconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"runtimeOptions": {
"tfm": "net5.0",
"framework": {
"name": "Microsoft.AspNetCore.App",
"version": "5.0.0"
},
"configProperties": {
"System.GC.Server": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}
Binary file added Newtonsoft.Json.dll
Binary file not shown.
Binary file added OpenCvSharp.Extensions.dll
Binary file not shown.
Binary file added OpenCvSharp.WpfExtensions.dll
Binary file not shown.
Binary file added OpenCvSharp.dll
Binary file not shown.
Binary file added PageMove.dll
Binary file not shown.
Binary file added PageMove.pdb
Binary file not shown.
Binary file added PuppeteerExtraSharp.dll
Binary file not shown.
Binary file added PuppeteerSharp.dll
Binary file not shown.
Binary file added Quartz.Extensions.DependencyInjection.dll
Binary file not shown.
Binary file added Quartz.Extensions.Hosting.dll
Binary file not shown.
Binary file added Quartz.dll
Binary file not shown.
263 changes: 263 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,263 @@
# Ark


## 注意 注意注意

防狗乱咬


防止泛滥没有许可 用不了 许可免费


## Windows安装教程


# 1安装ASP.NET Core Runtime 5.0.12

安装地址:https://dotnet.microsoft.com/download/dotnet/5.0
下载之后无脑下一步

# 2下载当前项目源码解压

# 3删除NETJDC.deps.json


# 4根据自己系统将dll复制根目录即可

64位

复制runtimes\win-x64\native\OpenCvSharpExtern.dll到根目录

32位

复制runtimes\win-x86\native\OpenCvSharpExtern.dll到根目录

# 启动

管理员打开CMD CD到源码文件夹中 输入 dotnet NETJDC.dll --urls=http://*:5000

后面那个是端口可以自己改

## docker安装教程



1拉源码
国内
```
git clone https://github.com/NNNNolan/Ark.git /root/Ark
```
国外
```
git clone https://github.com/NNNNolan/Ark.git /root/Ark
```


2 拉取基础镜像以后不需要拉取镜像了 如果需要拉取我会通知
```
sudo docker pull nolanhzy/nvjdc:latest
```

3 执行命令

```
yum install wget unzip -y
```

4创建一个目录放配置

```
cd /root/Ark
```
```
mkdir -p Config && cd Config
```

5手动建立Config.json 配置文件
注意ARM多一个配置 Captchaurl

```
{
///浏览器最多几个网页
"MaxTab": "4",
//网站标题
"Title": "Ark",
//回收时间分钟 不填默认3分钟
"Closetime": "5",
//不要修改
"Captchaurl": "http://127.0.0.1:5000",
//网站公告
"Announcement": "为提高账户的安全性,请关闭免密支付。",
//Proxy 支持不带密码的socks5 以及http
///http Proxy 只需要填写 ip:端口
/// Socks5 需要填写socks5://ip:端口 不能填写下方账户密码
"Proxy": "",
//Proxy帐号
"ProxyUser": "",
//Proxy密码
"ProxyPass": "",
///开启打印等待日志卡短信验证登陆 可开启 拿到日志群里回复 默认不要填写
"Debug": "",
///自动滑块次数5次 5次后手动滑块 可设置为0默认手动滑块
"AutoCaptchaCount": "5",
///XDD PLUS Url http://IP地址:端口/api/login/smslogin
"XDDurl": "",
///xddToken
"XDDToken": "",
///登陆预警 0 0 12 * * ? 每天中午十二点 https://www.bejson.com/othertools/cron/ 表达式在线生成网址
"ExpirationCron": " 0 0 12 * * ?",
///个人资产 0 0 10,20 * * ? 早十点晚上八点
"BeanCron": "0 0 10,20 * * ?",
// ======================================= WxPusher 通知设置区域 ===========================================
// 此处填你申请的 appToken. 官方文档:https://wxpusher.zjiecode.com/docs
// WP_APP_TOKEN 可在管理台查看: https://wxpusher.zjiecode.com/admin/main/app/appToken
// MainWP_UID 填你自己uid
///这里的通知只用于用户登陆 删除 是给你的通知
"WP_APP_TOKEN": "",
"MainWP_UID": "",
// ======================================= pushplus 通知设置区域 ===========================================
///Push Plus官方网站:http" //www.pushplus.plus  只有青龙模式有用
///下方填写您的Token,微信扫码登录后一对一推送或一对多推送下面的token,只填" "PUSH_PLUS_TOKEN",
"PUSH_PLUS_TOKEN": "",
//下方填写您的一对多推送的 "群组编码" ,(一对多推送下面->您的群组(如无则新建)->群组编码)
"PUSH_PLUS_USER": "",
///青龙配置 注意对接XDD 对接芝士 设置为"Config":[]
"Config": [
{
//序号必填从1 开始
"QLkey": 1,
//服务器名称
"QLName": "阿里云",
//青龙地址
"QLurl": "http://ip:5700",
//青龙2,9 OpenApi Client ID
"QL_CLIENTID": "",
//青龙2,9 OpenApi Client Secret
"QL_SECRET": "",
//CK最大数量
"QL_CAPACITY": 99,
///建议一个青龙一个WxPusher 应用
"WP_APP_TOKEN": ""
}
]
}
```

6 回到Ark目录创建chromium文件夹并进入

```
cd /root/Ark && mkdir -p .local-chromium/Linux-884014 && cd .local-chromium/Linux-884014
```

7下载 chromium

```
wget https://mirrors.huaweicloud.com/chromium-browser-snapshots/Linux_x64/884014/chrome-linux.zip && unzip chrome-linux.zip
```

8删除刚刚下载的压缩包

```
rm -f chrome-linux.zip
```

9回到刚刚创建的目录

```
cd /root/Ark
```



10启动镜像


注意 5000端口可以不开外网端口
```
sudo docker run --name ark -p 5701:80 -p 5000:5000 -d -v "$(pwd)":/app/Ark \
-v /etc/localtime:/etc/localtime:ro \
-it --privileged=true nolanhzy/ark:latest
```
注意由于我懒 不想更新镜像 /etc/localtime


那么群辉启动docker 就删除掉 -v /etc/localtime:/etc/localtime:ro \

由于有定时任务 需要设置 时区 假设群辉拉的源码在 /volume1/docker/nvjdc 目录
```
sudo docker run --name ark -p 5701:80 -d -v /volume1/docker/nvjdc:/app \
-it --privileged=true nolanhzy/ark:latest
```
进入容器
```
docker exec -it ark bash
```
修改时间
```
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
```
输入date 查看时区对不对 群辉的docker 日志时间有毛病 我们就不用管docker log
```
date
```

这里可能群辉没有

11查看 日志

```
docker logs -f ark
```



出现 NETJDC started 即可

## Arm安装教程








## 更新

```
cd /root/Ark
```
```
docker stop ark
```
```
git pull
```
```
docker start ark
```


## 特别声明:

* 本仓库涉仅用于测试和学习研究,禁止用于商业用途,不能保证其合法性,准确性,完整性和有效性,请根据情况自行判断.

* 本项目内所有资源文件,禁止任何公众号、自媒体进行任何形式的转载、发布。

* Nolan对任何代码问题概不负责,包括但不限于由任何脚本错误导致的任何损失或损害.

* 间接使用本仓库搭建的任何用户,包括但不限于建立VPS或在某些行为违反国家/地区法律或相关法规的情况下进行传播, Nolan对于由此引起的任何隐私泄漏或其他后果概不负责.

* 请勿将本项目的任何内容用于商业或非法目的,否则后果自负.

* 如果任何单位或个人认为该项目的脚本可能涉嫌侵犯其权利,则应及时通知并提供身份证明,所有权证明,我们将在收到认证文件后删除相关代码.

* 任何以任何方式查看此项目的人或直接或间接使用本仓库项目的任何脚本的使用者都应仔细阅读此声明。Nolan 保留随时更改或补充此免责声明的权利。一旦使用并复制了任何本仓库项目的规则,则视为您已接受此免责声明.

**您必须在下载后的24小时内从计算机或手机中完全删除以上内容.** </br>
> ***您使用或者复制了本仓库且本人制作的任何脚本,则视为`已接受`此声明,请仔细阅读***
## 多谢


34 changes: 34 additions & 0 deletions RateLimitConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"IpRateLimiting": {
//不要修改
"EnableEndpointRateLimiting": true,
//false则拒绝的API调用不会添加到调用次数计数器上
"StackBlockedRequests": false, //注意这个配置,表示获取用户端的真实IP,我们的线上经过负载后是 X-Forwarded-For,而测试服务器没有,所以是X-Real-IP
//不要修改
"RealIpHeader": "X-Real-IP",
//不要修改
"ClientIdHeader": "X-ClientId",
//不要修改
"HttpStatusCode": 200,
//不要修改
"QuotaExceededResponse": {
"Content": "{{\"success\":false,\"message\":\"访问过于频繁,请{2}秒后重试\",\"data\":null}}",
"ContentType": "application/json",
"StatusCode": 200
},
////IP白名单:支持Ip v4和v6 可以填自己的机器人IP 内网填内网IP 外网就填外网IP 将127.0.0.1改为你机器人的API即可
"IpWhitelist": [ "127.0.0.1"],
//"IpWhitelist": [],
//不要修改 获取短信验证码接口1分钟5次
"GeneralRules": [
{
//不要修改
"Endpoint": "*:/api/SendSMS",
//1m一分钟 1s一秒 1h一小时
"Period": "1m",
////限制请求 次数 目前默认配置未1分钟5次。够用的。建议默认配置
"Limit": 5
}
]
}
}
Binary file added RestSharp.dll
Binary file not shown.
Binary file added Server.dll
Binary file not shown.
Binary file added Server.pdb
Binary file not shown.
Binary file added System.CodeDom.dll
Binary file not shown.
Binary file added System.Configuration.ConfigurationManager.dll
Binary file not shown.
Binary file added System.Drawing.Common.dll
Binary file not shown.
Binary file added System.Management.dll
Binary file not shown.
Binary file added System.Security.Cryptography.ProtectedData.dll
Binary file not shown.
Binary file added Systems.dll
Binary file not shown.
Binary file added Systems.pdb
Binary file not shown.
10 changes: 10 additions & 0 deletions appsettings.Development.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
12 changes: 12 additions & 0 deletions appsettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{

"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"Quartz": "Warning"
}
},
"AllowedHosts": "*"
}
38 changes: 38 additions & 0 deletions log4net.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!-- This section contains the log4net configuration settings -->
<log4net>
<!-- <appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
<layout type="log4net.Layout.PatternLayout" value="%date %message%newline" />
</appender> -->

<appender name="FileAppender" type="log4net.Appender.FileAppender">
<file value="log-file.log" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<!--<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />-->
<conversionPattern value="%date %message%newline" />
</layout>
</appender>

<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="logfile/" />
<appendToFile value="true" />
<rollingStyle value="Composite" />
<staticLogFileName value="false" />
<datePattern value="yyyyMMdd'.log'" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="1MB" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %message%newline" />
</layout>
</appender>

<!-- Setup the root category, add the appenders and set the default level -->
<root>
<level value="ALL" />
<appender-ref ref="FileAppender" />
<appender-ref ref="RollingLogFileAppender" />
</root>
</log4net>
</configuration>
Binary file added log4net.dll
Binary file not shown.
Binary file not shown.
Binary file added runtimes/win-x64/native/OpenCvSharpExtern.dll
Binary file not shown.
Binary file not shown.
Binary file added runtimes/win-x86/native/OpenCvSharpExtern.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 56659e8

Please sign in to comment.