View Issue Details

IDProjectCategoryView StatusLast Update
0007320Kali LinuxNew Tool Requestspublic2021-09-19 11:19
Reportermoulik Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionno change required 
Product Version2021.2 
Summary0007320: webcheck scans for the target URL and tells the error ones and also tell the valid URL's
Description

[Description]:
webcheck is a free script written in Python which reads the Robots.txt file of a web server and looks at the Disallow entries. The Disallow entries tell the search engines what directories or files hosted on a web server mustn't be indexed. For example, "Disallow: /portal/login" means that the content on www.example.com/portal/login it's not allowed to be indexed by crawlers like Google, Bing, Yahoo... This is the way the administrator have to not share sensitive or private information with the search engines.

But sometimes these paths typed in the Disallows entries are directly accessible by the users without using a search engine, just visiting the URL and the Path, and sometimes they are not available to be visited by anybody. Because it is really common that the administrators write a lot of Disallows and some of them are available and some of them are not, you can use webcheck in order to check the HTTP status code of each Disallow entry in order to check automatically if these directories are available or not.

Also, the fact the administrator write a robots.txt doesn't mean that the files or directories typed in the Disallow entries will not be indexed by Bing, Google, Yahoo, etc. For this reason, webcheck is capable of searching in Bing to locate content indexed without the web administrator authorization. webcheck will check the HTTP status code in the same way for each Bing result.

When you execute webcheck, you can see the HTTP status codes. For example, the codes below:

content.200 OK The request has succeeded.
content.403 Forbidden The server understood the requests, but is refusing to fulfil it.
content.404 Not Found The server hasn't found anything matching the Request-URI.
content.302 Found The requested resource resides temporarily under a different URI.

webcheck homepage | webcheck repo

[Dependencies]: The tool needs python version 3 and above to work

[Similar tools]: Parsero is a very similar tool but it's very old and this is the upgraded version of parsero with new features

[Packaged]: This tool is not pre available in the Debian package

Steps To Reproduce

[Installing]:

open terminal
git clone https://github.com/moulik-source/webcheck
cd webcheck
ls
python3 webcheck -u www.google.com

[Usage]:
$ python3 webcheck -h

usage: webcheck.py [-h] [-u URL] [-o] [-sb]

optional arguments:
-h, --help show this help message and exit
-u URL Type the URL which will be analyzed
-o Show only the "HTTP 200" status code
-sb Search in Bing indexed Disallows
-f FILE Scan a list of domains from a list

[Example]:

root@kali:~# python3 webcheck.py -u www.example.com -sb

                    $$\                 $$\                           $$\       
                    $$ |                $$ |                          $$ |      

$$\ $$\ $$\ $$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$\ $$$$$$$\ $$ | $$\
$$ | $$ | $$ |$$ $$\ $$ $$\ $$ |$$ $$\ $$ $$\ $$ |$$ | $$ |
$$ | $$ | $$ |$$$$$$$$ |$$ | $$ |$$ / $$ | $$ |$$$$$$$$ |$$ / $$$$$$ /
$$ | $$ | $$ |$$ |$$ | $$ |$$ | $$ | $$ |$$ |$$ | $$ $$<
\$$$$$\$$$$ |\$$$$$$$\ $$$$$$$ |\$$$$$$$\ $$ | $$ |\$$$$$$$\ \$$$$$$$\ $$ | \$$\
__/ \|______
/ ___|_| _| ___| ___|_| _|

$$\ $$\ $$\ $$\
$$ | $$ |__|$$ |
$$$$$$$\ $$\ $$\ $$$$$$\$$$$\ $$$$$$\ $$\ $$\ $$ |$$\ $$ | $$\
$$ $$\ $$ | $$ |$$$$$$\ $$ $$ $$\ $$ $$\ $$ | $$ |$$ |$$ |$$ | $$ |
$$ | $$ |$$ | $$ |_|$$ / $$ / $$ |$$ / $$ |$$ | $$ |$$ |$$ |$$$$$$ /
$$ | $$ |$$ | $$ | $$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ |$$ |$$
$$<
$$$$$$$ |\$$$$$$$ | $$ | $$ | $$ |\$$$$$$ |\$$$$$$ |$$ |$$ |$$ | \$$\
___
/ _$$ | \| _| _| _____/ ____/ \|_|_| _|
$$\ $$ |
\$$$$$$ |
_____
/

Starting webcheck v0.75 (https://github.com/moulik-source/webcheck) at 05/22/14 11:12:55
webcheck scan report for example.com
http://example.com/download.php 302 Moved Temporarily
http://example.com/raw.php 302 Moved Temporarily
http://example.com/embed_js.php 200 OK
http://example.com/embed.php 200 OK
http://example.com/print.php 302 Moved Temporarily
http://example.com/diff.php 302 Moved Temporarily
http://example.com/share.php 404 Not Found
http://example.com/report.php 302 Moved Temporarily
http://example.com/embed_iframe.php 200 OK

[+] 9 links have been analyzed and 3 of them are available!!!

Searching the Disallows entries in Bing

http://www.bing.com/search?q=site:http://example.com/download.php
http://www.bing.com/search?q=site:http://example.com/raw.php

Finished in 7.290362596511841 seconds

Additional Information

[Doing all scan]:
root@kali:~# python3 webcheck.py -u www.example.com -o -sb

                    $$\                 $$\                           $$\       
                    $$ |                $$ |                          $$ |      

$$\ $$\ $$\ $$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$$\ $$$$$$\ $$$$$$$\ $$ | $$\
$$ | $$ | $$ |$$ $$\ $$ $$\ $$ |$$ $$\ $$ $$\ $$ |$$ | $$ |
$$ | $$ | $$ |$$$$$$$$ |$$ | $$ |$$ / $$ | $$ |$$$$$$$$ |$$ / $$$$$$ /
$$ | $$ | $$ |$$ |$$ | $$ |$$ | $$ | $$ |$$ |$$ | $$ $$<
\$$$$$\$$$$ |\$$$$$$$\ $$$$$$$ |\$$$$$$$\ $$ | $$ |\$$$$$$$\ \$$$$$$$\ $$ | \$$\
__/ \|______
/ ___|_| _| ___| ___|_| _|

$$\ $$\ $$\ $$\
$$ | $$ |__|$$ |
$$$$$$$\ $$\ $$\ $$$$$$\$$$$\ $$$$$$\ $$\ $$\ $$ |$$\ $$ | $$\
$$ $$\ $$ | $$ |$$$$$$\ $$ $$ $$\ $$ $$\ $$ | $$ |$$ |$$ |$$ | $$ |
$$ | $$ |$$ | $$ |_|$$ / $$ / $$ |$$ / $$ |$$ | $$ |$$ |$$ |$$$$$$ /
$$ | $$ |$$ | $$ | $$ | $$ | $$ |$$ | $$ |$$ | $$ |$$ |$$ |$$
$$<
$$$$$$$ |\$$$$$$$ | $$ | $$ | $$ |\$$$$$$ |\$$$$$$ |$$ |$$ |$$ | \$$\
___
/ _$$ | \| _| _| _____/ ____/ \|_|_| _|
$$\ $$ |
\$$$$$$ |
_____
/

Starting webcheck v0.75 (https://github.com/moulik-source/webcheck) at 05/22/14 11:12:55
webcheck scan report for example.com
http://example.com/download.php 302 Moved Temporarily
http://example.com/raw.php 302 Moved Temporarily
http://example.com/embed_js.php 200 OK
http://example.com/embed.php 200 OK
http://example.com/print.php 302 Moved Temporarily
http://example.com/diff.php 302 Moved Temporarily
http://example.com/share.php 404 Not Found
http://example.com/report.php 302 Moved Temporarily
http://example.com/embed_iframe.php 200 OK

[+] 9 links have been analyzed and 3 of them are available!!!

Searching the Disallows entries in Bing

http://www.bing.com/search?q=site:http://example.com/download.php
http://www.bing.com/search?q=site:http://example.com/raw.php

Finished in 7.290362596511841 seconds

Attached Files

Activities

moulik

moulik

2021-09-06 14:28

reporter   ~0015083

g0tmi1k

g0tmi1k

2021-09-19 11:19

administrator   ~0015214

Thank you for the suggestion, but I don't think this tool is for us

Issue History

Date Modified Username Field Change
2021-09-06 14:22 moulik New Issue
2021-09-06 14:22 moulik File Added: 2021-09-06 18_23_19-Kali - VMware Workstation 16 Player (Non-commercial use only).png
2021-09-06 14:28 moulik Note Added: 0015083
2021-09-19 11:19 g0tmi1k Note Added: 0015214
2021-09-19 11:19 g0tmi1k Status new => closed
2021-09-19 11:19 g0tmi1k Resolution open => no change required