File tree 8 files changed +37
-23
lines changed
8 files changed +37
-23
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ Web安全相关的知识比较杂,在这里完成了一个简单的整理,
36
36
### Generate HTML
37
37
38
38
``` shell
39
- $ sudo pip install sphinx sphinx-rtd-theme
39
+ $ sudo pip install sphinx
40
+ $ sudo pip install sphinx-rtd-theme
40
41
$ make html
41
42
```
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ set SPHINXPROJ=pdoc
13
13
14
14
if " %1 " == " " goto help
15
15
16
- %SPHINXBUILD% > NUL 2 > NUL
17
16
if errorlevel 9009 (
18
17
echo .
19
18
echo .The Sphinx module was not found. Make sure you have Sphinx installed,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ uname -n 系统主机名字
13
13
uname -m Linux内核架构
14
14
cat /proc/version 内核信息
15
15
cat /proc/cpuinfo CPU信息
16
- cat /etc/*-release 发布信息
16
+ cat /etc/\ * -release 发布信息
17
17
cat /etc/issue 发布信息
18
18
hostname 主机名
19
19
df -a 文件系统信息
@@ -90,15 +90,15 @@ ls -la /etc/cron* 计划任务
90
90
网络、路由和通信
91
91
--------------------------------
92
92
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
+ ============================= =====================
Original file line number Diff line number Diff line change 43
43
正则
44
44
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
45
45
- 文件名 ``curl ftp://example.com/file[1-100].txt ``
46
- - 域名 ``curl http://site.{one,two,three}.com ``
46
+ - 域名 ``curl http://site.{one,two,three}.com ``
Original file line number Diff line number Diff line change 7
7
8
8
download
9
9
traffic
10
+ sniffing
10
11
list
Original file line number Diff line number Diff line change 22
22
- `BeEF <https://github.com/beefproject/beef >`_
23
23
- `XSS Reciver <https://github.com/firesunCN/BlueLotus_XSSReceiver >`_
24
24
- `Brute XSS <https://github.com/shawarkhanethicalhacker/BruteXSS >`_
25
+ - `DSXS <https://github.com/stamparm/DSXS >`_
25
26
26
27
- 社工
27
28
- `theHarvester <https://github.com/laramies/theHarvester >`_
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -36,17 +36,16 @@ XMLHttpRequest
36
36
37
37
防御
38
38
--------------------------------
39
- - 通过referer、 token或者验证码来检测用户提交
40
- - 尽量不要在页面的链接中暴露用户隐私信息
41
- - 对于用户修改删除等操作最好都使用post操作
39
+ - 通过CSRF- token或者验证码来检测用户提交
40
+ - 验证Referer/Content-Type
41
+ - 对于用户修改删除等操作最好都使用POST操作
42
42
- 避免全站通用的cookie,严格设置cookie的域
43
43
44
44
45
- ref
46
-
45
+ 参考链接
47
46
--------------------------------
48
47
49
48
- `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 >`_
52
51
You can’t perform that action at this time.
0 commit comments