Skip to content

Commit 6544b84

Browse files
authored
update 1.0.2
update 1.0.2
2 parents 3e0e99e + 951b743 commit 6544b84

20 files changed

+1095
-6
lines changed

LSpider/settings.py.bak

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,5 +213,11 @@ WECHAT_NOTICE_DEBUG = {
213213
'agent_id': ' ',
214214
}
215215

216+
# for xray result
217+
VUL_LIST_PATH = os.path.join(BASE_DIR, 'vuls/')
218+
219+
if os.path.isdir(VUL_LIST_PATH) is not True:
220+
os.mkdir(VUL_LIST_PATH)
221+
216222
# for test
217223
IS_TEST_ENVIRONMENT = False

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,22 @@ LSpider从设计之初是为了配合像xray这种被动扫描器而诞生的,
5858
python3 manage.py SpiderCoreBackendStart --test
5959
```
6060

61+
通过dockerfile安装(不推荐的安装模式)
62+
```
63+
cd ./docker
64+
65+
docker-compose up -d
66+
```
67+
68+
[dockerfile 安装&使用](./docker/readme.md)
69+
70+
**使用dockerfile安装,推荐修改其中必要的配置信息以避免安全漏洞诞生。**
71+
6172
**值得注意的是,以下脚本可能会涉及到项目路径影响,使用前请修改相应的配置**
6273

63-
启动LSpider webhook(默认端口2062)
74+
建议配合screen来挂起进程
75+
76+
启动LSpider webhook 与漏洞展示页面(默认端口2062)
6477

6578
```
6679
./lspider_webhook.sh
@@ -93,6 +106,10 @@ python3 manage.py SpiderCoreBackendStart --test
93106

94107
[如何配置扫描任务 以及 其他的配置相关](./docs/manage.md)
95108

109+
扫描器结果输出到配置文件相同目录(默认为vuls/),则可以通过web界面访问。
110+
111+
![](./docs/6.png)
112+
96113
# 使用内置的hackerone、bugcrowd爬虫获取目标
97114

98115
使用hackerone爬虫,你需要首先配置好hackerone账号
@@ -108,6 +125,12 @@ python3 manage.py SpiderCoreBackendStart --test
108125

109126
![](./docs/5.png)
110127

128+
# Contributors
129+
130+
感谢如下贡献者对本工具发展过程中的贡献:
131+
132+
- [QGW](https://github.com/qboy0000)
133+
111134
# 404StarLink
112135
![](https://github.com/knownsec/404StarLink-Project/raw/master/logo.png)
113136

core/chromeheadless.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def finish_form(self):
417417
def click_button(self):
418418

419419
try:
420-
submit_buttons = self.driver.find_element_by_xpath("//input[@type='submit']")
420+
submit_buttons = self.driver.find_elements_by_xpath("//input[@type='submit']")
421421

422422
submit_buttons_len = len(submit_buttons)
423423

docker/Dockerfile

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#FROM ubuntu:16.04
2+
3+
FROM python:3.7.9-alpine3.12
4+
5+
Label author "qboy0000<2006qgw@163.com>"
6+
7+
#COPY dist/floodlight /root/floodlight
8+
9+
ENV XARY 1.7.0
10+
ENV PYTHON3 3.7.9
11+
ENV CHROMEDRIVER_VERSION 88.0.4324.96
12+
13+
# RUN sed -i 's/http:\/\/archive.ubuntu.com/http:\/\/mirrors.huaweicloud.com/g' /etc/apt/sources.list && \
14+
# sed -i 's/http:\/\/security.ubuntu.com/http:\/\/mirrors.huaweicloud.com/g' /etc/apt/sources.list && \
15+
# apt-get update && \
16+
17+
COPY ./requirement.txt /tmp/
18+
19+
RUN set -x && sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
20+
apk update && \
21+
# GM+8
22+
# set time zone
23+
apk add --no-cache tzdata && \
24+
echo "Asia/Shanghai" > /etc/timezone && \
25+
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
26+
# dpkg-reconfigure -f noninteractive tzdata && \
27+
apk add --no-cache musl-dev linux-headers git wget curl unzip mysql-client mariadb-dev make gcc chromium chromium-chromedriver && \
28+
29+
# update python3 to 3.7
30+
# wget https://www.python.org/ftp/python/$PYTHON3/Python-$PYTHON3.tar.xz -O /tmp/Python-$PYTHON3.tar.xz && \
31+
# cd /tmp && tar -xvf Python-$PYTHON3.tar.xz && cd Python-$PYTHON3 && ./configure && make && make install && \
32+
33+
git clone --depth 1 https://github.com/knownsec/LSpider.git /opt/LSpider && \
34+
35+
cd /opt/LSpider/ && \
36+
pip3 install -r /tmp/requirement.txt -i https://mirrors.aliyun.com/pypi/simple && \
37+
38+
wget https://download.xray.cool/xray/$XARY/xray_linux_amd64.zip -O /tmp/xray_linux_amd64.zip && \
39+
mkdir -p /opt/xray && \
40+
unzip /tmp/xray_linux_amd64.zip -d /opt/xray && \
41+
42+
# wget http://npm.taobao.org/mirrors/chromedriver/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip -O /tmp/chromedriver_linux64.zip && \
43+
# mkdir /opt/LSpider/bin && \
44+
# unzip /tmp/chromedriver_linux64.zip -d /usr/bin && \
45+
# mv /usr/bin/chromedriver /usr/bin/chromedriver_linux64 && \
46+
47+
rm -rf /tmp/*
48+
49+
WORKDIR /opt/LSpider/
50+
COPY ./docker-entrypoint.sh /opt/LSpider/docker-entrypoint.sh
51+
COPY ./settings.py.docker.bak /opt/LSpider/LSpider/settings.py
52+
COPY ./xray.sh /opt/LSpider/xray.sh
53+
COPY ./chromeheadless.py /opt/LSpider/core/
54+
55+
RUN chmod a+x /opt/LSpider/*.sh
56+
57+
EXPOSE 2062
58+
59+
CMD /opt/LSpider/docker-entrypoint.sh

0 commit comments

Comments
 (0)