コード例 #1
0
def main():
    exclude = get_scan_exclusion_info(fetch_exclusion_scan(1)[0])
    limit_num = 10000  # Number of limit of requests
    scan_type = 'scan_sqli'
    requests = fetch_request(exclude, scan_type, limit_num)
    if requests:
        for request in requests:
            scanner(request)
    else:
        print highlight("[!] no new request found", 'yellow')
コード例 #2
0
ファイル: scan_sqli.py プロジェクト: akz747/NagaScan
def main():
    exclude = get_scan_exclusion_info(fetch_exclusion_scan(1)[0])
    limit_num = 10000 # Number of limit of requests
    scan_type = 'scan_sqli'
    requests = fetch_request(exclude, scan_type, limit_num)
    if requests:
        for request in requests:
            scanner(request)
    else:
        print highlight("[!] no new request found", 'yellow')
コード例 #3
0
ファイル: scan_fi.py プロジェクト: akz747/NagaScan
def main():
    exclude = get_scan_exclusion_info(fetch_exclusion_scan(2)[0]) # 2 means exclusion type is FI(File Inclusion)
    limit_num = 10000 # Number of limit of requests
    scan_type = 'scan_fi'
    requests = fetch_request(exclude, scan_type, limit_num)
    if requests:
        for request in requests:
            try:
                scanner(request)
            except Exception, err:
                print highlight("[!] scanner failed: {}".format(str(err)), 'red')
                pass
コード例 #4
0
def main():
    exclude = get_scan_exclusion_info(fetch_exclusion_scan(0)[0])
    limit_num = 10000 # Number of limit of requests
    scan_type = 'scan_xss'
    requests = fetch_request(exclude, scan_type, limit_num)
    if requests:
        for request in requests:
            try:
                scanner(request)
            except Exception, err:
                print highlight("[!] scanner failed: {}".format(str(err)), 'red')
                pass
コード例 #5
0
def main():
    exclude = get_scan_exclusion_info(fetch_exclusion_scan(
        2)[0])  # 2 means exclusion type is FI(File Inclusion)
    limit_num = 10000  # Number of limit of requests
    scan_type = 'scan_fi'
    requests = fetch_request(exclude, scan_type, limit_num)
    if requests:
        for request in requests:
            try:
                #print 'lyue'
                #print request
                scanner(request)
            except Exception, err:
                print highlight("[!] scanner failed: {}".format(str(err)),
                                'red')
                pass