예제 #1
0
def scanner(request):
    request_info = get_request_info(request)
    print 'xss  request info'
    if request_info['method'] == "GET":
        scan_get_request(request_info)
    elif request_info['method'] == "POST":
        scan_post_request(request_info)
예제 #2
0
def scanner(request):
    sqlmapapi_servers = []
    sqlmaps = fetch_sqlmap()
    for sqlmap in sqlmaps:
        sqlmap_info = get_sqlmap_info(sqlmap)
        sqlmapapi = "http://{}:{}/".format(sqlmap_info['ip'], sqlmap_info['port'])
        sqlmapapi_servers.append(sqlmapapi)
    if len(sqlmapapi_servers) > 0:
        sqlmapapi_server = random.sample(sqlmapapi_servers, 1)[0]
    else:
        sqlmapapi_server = 'http://127.0.0.1:8775/'
    request_info = get_request_info(request)
    scan_sqli_request(request_info, sqlmapapi_server)
예제 #3
0
def scanner(request):
    sqlmapapi_servers = []
    sqlmaps = fetch_sqlmap()
    for sqlmap in sqlmaps:
        sqlmap_info = get_sqlmap_info(sqlmap)
        sqlmapapi = "http://{}:{}/".format(sqlmap_info['ip'],
                                           sqlmap_info['port'])
        sqlmapapi_servers.append(sqlmapapi)
    if len(sqlmapapi_servers) > 0:
        sqlmapapi_server = random.sample(sqlmapapi_servers, 1)[0]
    else:
        sqlmapapi_server = 'http://127.0.0.1:8775/'
    request_info = get_request_info(request)
    scan_sqli_request(request_info, sqlmapapi_server)
예제 #4
0
파일: scan_fi.py 프로젝트: akz747/NagaScan
def scanner(request):
    request_info = get_request_info(request)
    if request_info['method'] == "GET":
        scan_get_request(request_info)
    elif request_info['method'] == "POST":
        scan_post_request(request_info)