Guess the default database and The NASL script of the conn. asp brute-force database

Source: Internet
Author: User

The script language is also very powerful. :)

Code:
Include ("http_func.inc ");
Include ("http_keepalive.inc ");
Dir = make_list ("/data/database. mdb ","/data. mdb ","/data/date. mdb ","/data/bbs. mdb ","/data/dvbbs7.mdb ","/data. mdb ","/database. mdb ");
# Display (dir );
Foreach path (dir)
{
If (port = is_cgi_installed (path ))
{
# Display (path );
Report = "Under the cgi path" + path + "found database! Your database is possiblly to be download! ";
Solution = "Solution: you d better rename the database name, or move the database to other cgis ";
Risk_factor = "Risk factor: High ";
Report = report + solution + Risk_factor;
Security_hole (data: string (report), port: port );
 
}
 
}
 
# Conn. asp
 
Port = get_http_port (default: 80 );
If (! Get_port_state (port) exit (0 );
 
Dirs = make_list ("/conn. inc ","/conn. asp ","/connection. asp ","/inc/conn. inc ","/inc/conn. asp ","/inc/connection. asp ");
 
Foreach paths (dirs)
{
Req = http_get (item: paths, port: port );
R = http_keepalive_send_recv (port: port, data: req, bodyonly: 1 );
If (r = NULL) exit (0 );
If (egrep (pattern: "80004005", string: r ))
{
Info = ereg_replace (pattern:. * ([^ 0-9]:. *). *, string: r, replace: \ 1 );
Report = The path + info + maybe is the database physical path! Your databae is possiblly to be download !;
Solution = Solution: Please modify the conn. asp file add on error resume next statement. + Risk factor: Medium;
Report = report + Solution;
Security_hole (data: report, port: port );
Display ("");

}
}
The code is very short.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.