Simple admin url checking shell script which helps you to check what is the admin url of any website through brute-forcing. The script outputs the http status code for every url in the url_list.txt for the domain name in site.txt, so if the result code is not 404 then we found something interesting. I added the home / url to see everything is working well and the /robots.txt url for cases when a webmaster restricts the crawlers access for something interesting ;).
Files:
admincheck.sh: shell script wich do brute-forcing using curl
site.txt: the file containing the domain name
url_list.txt: the file containing a possible admin url for brute-forcing
admincheck.sh:
#!/bin/bash
# Author: Alex Bod
# Website: http://www.alexbod.com
# License: The GNU General Public License, version 2
# admincheck.sh: Admin url checking shell script
# Highlight the result
RCol='\e[0m'
Red='\e[0;31m'
# Read from a file
site=$(<site.txt)
# Check other urls
while read LINE; do
# -o /dev/null throws away the usual output
# --silent throws away the progress meter
# --head makes a HEAD HTTP request, instead of GET
# --write-out '%{http_code}\n' prints the required status code
response=$(curl -o /dev/null --silent --head --write-out '%{http_code}' "$site$LINE")
if [ "$response" != "404" ]
then
echo -e "${Red}$response${RCol} $site$LINE"
else
echo -e "$response $site$LINE"
fi
done < url_list.txt
site.txt:
http://www.google.com
Note: do not put / after the domain url in the site.txt but put it before every url in the url_list.txt.
url_list.txt:
/
/robots.txt
/account.html
/account.php
/adm.html
/adm/
/adm/admloginuser.php
/adm/index.html
/adm_auth.php
/admin
/admin-login
/admin-login.html
/admin-login.php
/admin.asp
/admin.aspx
/admin.html
/admin.php
/admin/
/admin/account.html
/admin/account.html
/admin/account.php
/admin/account.php
/admin/admin-login.html
/admin/admin-login.php
/admin/admin.html
/admin/admin.php
/admin/adminLogin.html
/admin/adminLogin.html
/admin/adminLogin.php
/admin/admin_login.html
/admin/admin_login.php
/admin/controlpanel.html
/admin/controlpanel.php
/admin/cp.html
/admin/cp.php
/admin/home.html
/admin/home.php
/admin/index.html
/admin/index.php
/admin/login.asp
/admin/login.aspx
/admin/login.html
/admin/login.php
/admin/login/
/admin/login/?next=/admin/
/admin2.php
/admin2.html
/admin2/index.php
/admin2/login.php
/adminLogin.html
/adminLogin.php
/adminLogin/
/admin_area/
/admin_area/admin.html
/admin_area/admin.php
/admin_area/index.html
/admin_area/index.php
/admin_area/login.html
/admin_area/login.php
/admin_login.asp
/admin_login.aspx
/admin_login.html
/admin_login.php
/adminarea/admin.html
/adminarea/admin.php
/adminarea/index.html
/adminarea/index.php
/adminarea/login.html
/adminarea/login.php
/admincontrol.html
/admincontrol.php
/admincontrol/login.html
/admincontrol/login.php
/admincp/index.asp
/admincp/index.html
/admincp/login.asp
/adminhome.asp
/adminhome.aspx
/administartorlogin.aspx
/administrator
/administrator.html
/administrator.php
/administrator/
/administrator/account.php
/administrator/account.html
/administrator/index.html/administrator/login.html
/administrator/login.php/nsw/admin/login.php
/administrator_login.asp
/administrator_login.aspx
/administratorlogin.asp
/administratorlogin.php
/administratorlogin/
/adminlogin/
/adminlogin
/adminlogin.html
/adminlogin.asp
/adminpanel.html
/adminpanel.php
/admloginuser.php
/bb-admin/
/bb-admin/admin.html
/bb-admin/admin.php
/bb-admin/index.html
/bb-admin/index.php
/bb-admin/login.html
/bb-admin/login.php
/controlpanel.html
/controlpanel.php
/cp
/cp.html
/cp.php
/cp.php/administrator/index.php
/cpanel
/cpanel.html
/cpanel.php
/home.html
/home.php
/instadmin/
/joomla/administrator
/login
/login.html
/login.php
/login/admin.asp
/login/admin.aspx
/login/asmindstrator.asp
/memberadmin.php
/memberadmin.html
/memberadmin/
/modelsearch/admin.html
/modelsearch/index.html
/modelsearch/index.php/modelsearch/admin.php
/modelsearch/login.html
/modelsearch/login.php
/moderator.html
/moderator.php
/moderator/
/moderator/admin.html
/moderator/admin.php
/moderator/login.html
/moderator/login.php
/pages/admin/admin-login.html
/pages/admin/admin-login.php
/panel-administracion/
/panel-administracion/admin.html
/panel-administracion/admin.php
/panel-administracion/index.html
/panel-administracion/index.php
/panel-administracion/login.html
/panel-administracion/login.php
/phpMyAdmin
/phpMyAdmin/
/rcjakar/admin/login.php
/siteadmin/index.php
/siteadmin/login.html
/siteadmin/login.php
/user.html/administrator/account.html
/user.php
/webadmin.html
/webadmin.php/webadmin/index.php
/webadmin/adminarea/
/webadmin/admin.html
/webadmin/admin.php
/webadmin/login.html
/webadmin/login.php
/wp-login.php
/a/dminlogin.aspx
/adminlogin.html
/adm.php
/adm.html
/adm/index.php
/adm/index.html
/adminlogin.aspx
/affiliate.php
/affiliate.html
/login/administrator.aspx
/login/administrator.html
/webadmin/index.html
Clone it from the Github.