Skip to content

Commit 468997f

Browse files
committed
update
1 parent 6f814e6 commit 468997f

File tree

8 files changed

+37
-23
lines changed

8 files changed

+37
-23
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Web安全相关的知识比较杂,在这里完成了一个简单的整理,
3636
### Generate HTML
3737

3838
```shell
39-
$ sudo pip install sphinx sphinx-rtd-theme
39+
$ sudo pip install sphinx
40+
$ sudo pip install sphinx-rtd-theme
4041
$ make html
4142
```

make.bat

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ set SPHINXPROJ=pdoc
1313

1414
if "%1" == "" goto help
1515

16-
%SPHINXBUILD% >NUL 2>NUL
1716
if errorlevel 9009 (
1817
echo.
1918
echo.The Sphinx module was not found. Make sure you have Sphinx installed,

source/basic/info/linux.rst

+13-13
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ uname -n 系统主机名字
1313
uname -m Linux内核架构
1414
cat /proc/version 内核信息
1515
cat /proc/cpuinfo CPU信息
16-
cat /etc/*-release 发布信息
16+
cat /etc/\*-release 发布信息
1717
cat /etc/issue 发布信息
1818
hostname 主机名
1919
df -a 文件系统信息
@@ -90,15 +90,15 @@ ls -la /etc/cron* 计划任务
9090
网络、路由和通信
9191
--------------------------------
9292

93-
===================== =====================
94-
命令 作用
95-
===================== =====================
96-
/sbin/ifconfig -a 列出网络接口信息
97-
cat /etc/network/interfaces 列出网络接口信息
98-
arp -a 查看系统arp表
99-
route 打印路由信息
100-
cat /etc/resolv.conf 查看dns配置信息
101-
netstat -an 打印本地端口开放信息
102-
iptables -L 列出iptable的配置规则
103-
cat /etc/services 查看端口服务映射
104-
===================== =====================
93+
============================= =====================
94+
命令 作用
95+
============================= =====================
96+
/sbin/ifconfig -a 列出网络接口信息
97+
cat /etc/network/interfaces 列出网络接口信息
98+
arp -a 查看系统arp表
99+
route 打印路由信息
100+
cat /etc/resolv.conf 查看dns配置信息
101+
netstat -an 打印本地端口开放信息
102+
iptables -L 列出iptable的配置规则
103+
cat /etc/services 查看端口服务映射
104+
============================= =====================

source/basic/tools/download.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ curl
4343
正则
4444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4545
- 文件名 ``curl ftp://example.com/file[1-100].txt``
46-
- 域名 ``curl http://site.{one,two,three}.com``
46+
- 域名 ``curl http://site.{one,two,three}.com``

source/basic/tools/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77

88
download
99
traffic
10+
sniffing
1011
list

source/basic/tools/list.rst

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
- `BeEF <https://github.com/beefproject/beef>`_
2323
- `XSS Reciver <https://github.com/firesunCN/BlueLotus_XSSReceiver>`_
2424
- `Brute XSS <https://github.com/shawarkhanethicalhacker/BruteXSS>`_
25+
- `DSXS <https://github.com/stamparm/DSXS>`_
2526

2627
- 社工
2728
- `theHarvester <https://github.com/laramies/theHarvester>`_

source/basic/tools/sniffing.rst

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
嗅探工具
2+
================================
3+
4+
Nmap
5+
--------------------------------
6+
7+
- ``-sL`` List Scan - simply list targets to scan
8+
- ``-sn/-sP`` Ping Scan - disable port scan
9+
- ``-Pn`` Treat all hosts as online -- skip host discovery
10+
- ``-sS/sT/sA/sW/sM`` TCP SYN/Connect()/ACK/Window/Maimon scans
11+
- ``-sU`` UDP Scan
12+
- ``-sN/sF/sX`` TCP Null, FIN, and Xmas scans
13+
- ``-sV`` Probe open ports to determine service/version info

source/vuln/csrf.rst

+6-7
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,16 @@ XMLHttpRequest
3636

3737
防御
3838
--------------------------------
39-
- 通过referer、token或者验证码来检测用户提交
40-
- 尽量不要在页面的链接中暴露用户隐私信息
41-
- 对于用户修改删除等操作最好都使用post操作
39+
- 通过CSRF-token或者验证码来检测用户提交
40+
- 验证Referer/Content-Type
41+
- 对于用户修改删除等操作最好都使用POST操作
4242
- 避免全站通用的cookie,严格设置cookie的域
4343

4444

45-
ref
46-
45+
参考链接
4746
--------------------------------
4847

4948
- `demo <https://www.github.com/jrozner/csrf-demo>`_
50-
- `Wiping Out CSRF <https://zhuanlan.zhihu.com/p/30401930>`_
51-
49+
- `Wiping Out CSRF <https://medium.com/@jrozner/wiping-out-csrf-ded97ae7e83f>`_
50+
- `Neat tricks to bypass CSRF protection <https://www.slideshare.net/0ang3el/neat-tricks-to-bypass-csrfprotection>`_
5251

0 commit comments

Comments
 (0)