# SecCrawler **Repository Path**: bingfeng520/SecCrawler ## Basic Information - **Project Name**: SecCrawler - **Description**: 安全日报的爬虫和推送程序. - **Primary Language**: Go - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-02 - **Last Updated**: 2023-02-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

## Features
支持的爬取网站列表:
- [x] [先知安全社区](https://xz.aliyun.com/)
- [x] [安全客](https://www.anquanke.com/knowledge) (安全知识专区)
- [x] [Seebug Paper](https://paper.seebug.org/)
- [x] [棱角安全社区](https://forum.ywhack.com/forum-59-1.html)
- [x] [跳跳糖](https://tttang.com/)
- [x] [奇安信攻防社区](https://forum.butian.net/community/all/newest)
- [x] ~~[洞见微信聚合](http://wechat.doonsec.com/)~~ 暂时注释,有需要可自行编译
- [x] 实验室
- [x] [Noah Lab](http://noahblog.360.cn/)
- [x] [360 核心安全技术博客](https://blogs.360.net/)
- [x] [绿盟科技技术博客](http://blog.nsfocus.net/)
- [x] [腾讯安全玄武实验室](https://xlab.tencent.com/)
- [x] [天融信阿尔法实验室](http://blog.topsec.com.cn)
- [x] [360 Netlab](https://blog.netlab.360.com/)
- [x] [斗象能力中心](https://blog.riskivy.com/)
- [x] [腾讯安全响应中心](https://security.tencent.com/index.php/blog)
- [x] [南京邮电大学小绿草信息安全实验室](https://ctf.njupt.edu.cn/)
支持的推送机器人列表:
- [x] [企业微信群机器人](https://work.weixin.qq.com/api/doc/90000/90136/91770)
- [x] [HexQBot](https://github.com/Am473ur/HexQBot) (QQ群机器人 自建)
- [x] [Server酱](https://sct.ftqq.com/)
- [x] [飞书群机器人](https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN)
- [x] [钉钉群机器人](https://open.dingtalk.com/document/robots/custom-robot-access)
- [x] [WgpSecBot](https://bot.wgpsec.org)
- [ ] [pushplus](http://pushplus.hxtrip.com/)
- [x] [MessagePusher]()
## Install
你可以在[Releases](https://github.com/Le0nsec/SecCrawler/releases)下载最新的SecCrawler。
或者从源码编译:
```sh
$ git clone https://github.com/Le0nsec/SecCrawler.git
$ cd SecCrawler
$ go build .
```
## Config
`config.yml`配置文件模板注释:
```yml
# 设置Selenium使用的ChromeDriver路径,支持相对路径或绝对路径(如果不爬取先知社区可以不用设置)
ChromeDriver: ./chromedriver/linux64
Proxy:
ProxyUrl: http://127.0.0.1:7890 # 代理地址,支持http/https/socks协议
CrawlerProxyEnabled: false # 是否开启爬虫代理
BotProxyEnabled: false # 是否开启请求机器人代理
Cron:
enabled: false # 是否开启定时任务,开启后每天按照指定的时间爬取并推送
time: 11 # 设置定时任务每天整点爬取推送时间,范围 0 ~ 23(整数)
Api:
enabled: false # 是否开启API
debug: false # 是否开启Gin-DEBUG模式
host: 127.0.0.1
port: 8080
auth: auth_key_here # 请求api需要带上Authorization头
Crawler:
# 棱角社区
# https://forum.ywhack.com/forum-59-1.html
EdgeForum:
enabled: false
# 先知安全技术社区
# https://xz.aliyun.com/
XianZhi:
enabled: false
UseChromeDriver: true # 是否使用selenium调用浏览器爬取,设置为true需要指定ChromeDriver地址,为false需要指定没有反爬措施的自定义网址CustomRSSURL
CustomRSSURL: ""
# SeebugPaper(知道创宇404实验室)
# https://paper.seebug.org/
SeebugPaper:
enabled: false
# 安全客
# https://www.anquanke.com/
Anquanke:
enabled: false
# 跳跳糖
# http://tttang.com/
Tttang:
enabled: false
# 奇安信攻防社区
# https://forum.butian.net/community/all/newest
QiAnXin:
enabled: false
# 洞见微信聚合
# http://wechat.doonsec.com/
# DongJian:
# enabled: false
Lab:
enabled: true # 是否开启各大实验室文章爬取
NoahLab:
enabled: true
Blog360:
enabled: true
Nsfocus:
enabled: true
Xlab:
enabled: true
AlphaLab:
enabled: true
Netlab:
enabled: true
RiskivyBlog:
enabled: true
TSRCBlog:
enabled: true
X1cT34m:
enabled: true
Bot:
# 企业微信群机器人
# https://work.weixin.qq.com/api/doc/90000/90136/91770
WecomBot:
enabled: false
key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
timeout: 2
# 飞书群机器人
# https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN
FeishuBot:
enabled: false
key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
timeout: 2
# 钉钉群机器人
# https://open.dingtalk.com/document/robots/custom-robot-access
DingBot:
enabled: false
token: xxxxxxxxxxxxxxxxxxxx
timeout: 2
# HexQBot
# https://github.com/Am473ur/HexQBot
HexQBot:
enabled: false
api: http://xxxxxx.com/send
qqgroup: 0
key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
timeout: 2
# Server酱
# https://sct.ftqq.com/
ServerChan:
enabled: false
sendkey: xxxxxxxxxxxxxxxxxxxx
timeout: 2
# WgpSecBot
# https://bot.wgpsec.org/
WgpSecBot:
enabled: false
key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
timeout: 2
# MessagePusher
MessagePusher:
enabled: true
token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
timeout: 2
serveraddress: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
username: xxx
```
## Demo
## License
[GNU General Public License v3.0](https://github.com/Le0nsec/SecCrawler/blob/master/LICENSE)