Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
LyleMi committed Jan 9, 2018
1 parent 6f814e6 commit 468997f
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 23 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Web安全相关的知识比较杂,在这里完成了一个简单的整理,
### Generate HTML

```shell
$ sudo pip install sphinx sphinx-rtd-theme
$ sudo pip install sphinx
$ sudo pip install sphinx-rtd-theme
$ make html
```
1 change: 0 additions & 1 deletion make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ set SPHINXPROJ=pdoc

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The Sphinx module was not found. Make sure you have Sphinx installed,
Expand Down
26 changes: 13 additions & 13 deletions source/basic/info/linux.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ uname -n 系统主机名字
uname -m Linux内核架构
cat /proc/version 内核信息
cat /proc/cpuinfo CPU信息
cat /etc/*-release 发布信息
cat /etc/\*-release 发布信息
cat /etc/issue 发布信息
hostname 主机名
df -a 文件系统信息
Expand Down Expand Up @@ -90,15 +90,15 @@ ls -la /etc/cron* 计划任务
网络、路由和通信
--------------------------------

===================== =====================
命令 作用
===================== =====================
/sbin/ifconfig -a 列出网络接口信息
cat /etc/network/interfaces 列出网络接口信息
arp -a 查看系统arp表
route 打印路由信息
cat /etc/resolv.conf 查看dns配置信息
netstat -an 打印本地端口开放信息
iptables -L 列出iptable的配置规则
cat /etc/services 查看端口服务映射
===================== =====================
============================= =====================
命令 作用
============================= =====================
/sbin/ifconfig -a 列出网络接口信息
cat /etc/network/interfaces 列出网络接口信息
arp -a 查看系统arp表
route 打印路由信息
cat /etc/resolv.conf 查看dns配置信息
netstat -an 打印本地端口开放信息
iptables -L 列出iptable的配置规则
cat /etc/services 查看端口服务映射
============================= =====================
2 changes: 1 addition & 1 deletion source/basic/tools/download.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ curl
正则
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 文件名 ``curl ftp://example.com/file[1-100].txt``
- 域名 ``curl http://site.{one,two,three}.com``
- 域名 ``curl http://site.{one,two,three}.com``
1 change: 1 addition & 0 deletions source/basic/tools/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@

download
traffic
sniffing
list
1 change: 1 addition & 0 deletions source/basic/tools/list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- `BeEF <https://github.com/beefproject/beef>`_
- `XSS Reciver <https://github.com/firesunCN/BlueLotus_XSSReceiver>`_
- `Brute XSS <https://github.com/shawarkhanethicalhacker/BruteXSS>`_
- `DSXS <https://github.com/stamparm/DSXS>`_

- 社工
- `theHarvester <https://github.com/laramies/theHarvester>`_
Expand Down
13 changes: 13 additions & 0 deletions source/basic/tools/sniffing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
嗅探工具
================================

Nmap
--------------------------------

- ``-sL`` List Scan - simply list targets to scan
- ``-sn/-sP`` Ping Scan - disable port scan
- ``-Pn`` Treat all hosts as online -- skip host discovery
- ``-sS/sT/sA/sW/sM`` TCP SYN/Connect()/ACK/Window/Maimon scans
- ``-sU`` UDP Scan
- ``-sN/sF/sX`` TCP Null, FIN, and Xmas scans
- ``-sV`` Probe open ports to determine service/version info
13 changes: 6 additions & 7 deletions source/vuln/csrf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,16 @@ XMLHttpRequest

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


ref

参考链接
--------------------------------

- `demo <https://www.github.com/jrozner/csrf-demo>`_
- `Wiping Out CSRF <https://zhuanlan.zhihu.com/p/30401930>`_

- `Wiping Out CSRF <https://medium.com/@jrozner/wiping-out-csrf-ded97ae7e83f>`_
- `Neat tricks to bypass CSRF protection <https://www.slideshare.net/0ang3el/neat-tricks-to-bypass-csrfprotection>`_

0 comments on commit 468997f

Please sign in to comment.