被动扫描神器GourdScan搭建的正确姿势

GourdScan是一个分布式SQL漏洞扫描器,采用Python+PHP开发,后端采用SQLMAP。通过浏览器代理方式获取请求进行漏洞检测。

神器用起来简单但环境搭建还是有点麻烦,花了一晚上时间终于运行成功。

    现把完整搭建过程分享如下:

 

操作系统: windows7


工具准备:

phpStudyhttp://rj.baidu.com/soft/detail/17836.html?ald

python2.7.11http://www.anxia.com/soft/71.html

Sqlmaphttps://github.com/sqlmapproject/sqlmap

GourdScanhttps://codeload.github.com/code-scan/GourdScan/zip/master

Tornadohttps://codeload.github.com/tornadoweb/tornado/legacy.zip/master

Pycurlhttps://pypi.python.org/packages/2.7/p/pycurl/pycurl-7.19.5.win32-py2.7.exe#md5=b3256df89852c5d84f40d8f669ca1d53

 

环境搭建:

1、安装phpStudypython2.7.11sqlmap

2、下载GourdScan将其解压到phpStudy的网站根目录

3、建立pscan数据库,导入GourdScan-master\pscan.sql

4、修改GourdScan-master\root\conn.php,配置mysql连接信息

5、修改index.phpconfig.phpcharsetutf8,防止乱码

6、安装tornado下载完毕后将文件解压,放到python所在的根目录下。tornado目录运行命令python setup.py build python setup.py install

7、验证是否安装成功:在python命令行下运行命令:import tornado,如果载入成功则说明安装成功。

8、下载pycurl并安装到python安装路径。

9、修改 ./proxy/isqlmap.py

self.webserver="http://localhost:88/"改成你自己的主机地址和端口。我的配置为:self.webserver="http://localhost/GourdScan/root"

10、修改./proxy/task.py

def update():

url="http://localhost:88/api.php?type=sqlmap_update"

urllib2.urlopen(url).read()

def api_get():

url="http://localhost:88/api.php?type=api_get"

data=urllib2.urlopen(url).read()

改成你的host地址。我的配置为:

url="http://localhost/GourdScan/root/api.php?type=sqlmap_update"

url="http://localhost/GourdScan/root/api.php?type=api_get"

 

 

如何使用:

1、打开你的SQLMAP,输入sqlmapapi.py -s.并且在http://localhost/GourdScan/root/config.php里面增加一个节点

2、到GourdScanproxy目录运行:

python proxy_io.py

python task.py

3、打开浏览器设置代理 127.0.0.1:8080

4、访问http://localhost/GourdScan/root/index.php?vul=1查看漏洞结果。


 

注意事项:

1、windows下的pycurl 要求 python 至少是2.7.6版本(或以上)如果你已经安装了2.7较低版本的,那么建议再新建一个2.7.6环境的Python

2、Tornado较低的情况下代理上网会报500错误,这个坑了我几个小时。

 



AidenSay

Kein System ist sicher


·↑长按识别二维码关注 ↑·

微信号:AidenSay


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Gourdscan v2.1 被动式漏洞扫描系统 Passive Vulnerability Scan 为避免 Gourdscan 被恶意利用,开源版本只放出了简单的探测规则,无法用作为黑客入侵工具。请使用者遵守《中华人民共和国网络安全法》,勿将 Gourdscan 用于未授权的测试,参与项目的社区成员/YSRC/同程安全应急响应中心/同程网络科技股份有限公司不负任何连带法律责任。 安装依赖: Linux 安装 Redis apt-get install redis-server 或从源码编译安装 wget http://download.redis.io/redis-stable.tar.gz && tar xzf redis-stable.tar.gz && cd redis-stable && make && make install 系统已有 Redis 的,运行 redis-server --version 查看自己的版本,需注意2.x版本的 Redis 会有问题 安转 python 类库 基础模块 安装pip wget https://sec.ly.com/mirror/get-pip.py --no-check-certificate && python get-pip.py -i https://mirrors.aliyun.com/pypi/simple/ $ pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ 其他事项 以下如果有报错便可以安装,一般不需要安装 镜像: https://sec.ly.com/mirror/libdnet-libdnet-1.12.tar.gz https://sec.ly.com/mirror/pylibpcap-0.6.4.tar.gz $ wget https://github.com/dugsong/libdnet/archive/master.zip && unzip master.zip $ wget http://dfn.dl.sourceforge.net/sourceforge/pylibpcap/pylibpcap-0.6.4.tar.gz && tar zxf pylibpcap-0.6.4.tar.gz Windows 下载 Redis https://sec.ly.com/mirror/Redis-x64-3.2.100.zip 启动 Redis redis-server.exe GourdScan路径\conf\redis.conf 如需使用网卡抓包方式,同程src已有各依赖镜像,可以把exe文件都装上 https://sec.ly.com/mirror/dnet-1.12.win32-py2.7.exe https://sec.ly.com/mirror/dpkt-1.7.win32.exe https://sec.ly.com/mirror/pcap-1.1.win32-py2.7.exe https://sec.ly.com/mirror/WinPcap_4_1_3.exe OSX 安装 homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 安装 redis brew install redis 启动 redis redis-server conf/redis.conf 安装依赖 pip install pcapy -i https://pypi.doubanio.com/simple/ git clone https://github.com/dugsong/libdnet.git && cd libdnet && ./configure && make && cd python && python setup.py install 使用方法: redis-server conf/redis.conf python gourdscan.py conf.json 默认平台用户名密码为:admin:Y3rc_admin 默认redis密码为:Y3rc_Alw4ys_B3_W1th_Y0u 如果有勾选sqlmap api scan选项,请在服务器上开启sqlmap api。 一切正常的话你就可以在8000端口上访问到 GourdScanV2 的 web 界面了 Start Monitor 中提供了三种代理方式,区别的话在下方文档有

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值