Skip to content
joginder edited this page Jul 31, 2017 · 9 revisions

Scripts

this repo is to provide some quick and useful scripts to do stuff.

URL_Status_Checker

One of the actually useful scripts is url_status.py which you can download and modify accordingly.

what:

this script takes URLs as input from std input and gives out the status of every URL.

when:

when you have a lot of URLs to test and you want to know which URL is invalid or 404 or whatever

how:

the script is fairly simple. Uses curl and grep ( no python module needs to be installed ). And it uses threads, hence, its so... fast.

Purpose:

testing, learning.

how to:

cat the URLs to script

$ cat your_url_list_file.txt | [url_status.py](https://github.com/jogind3r/scripts/blob/master/url_status.py)

or

$ some_stuff | [url_status.py](https://github.com/jogind3r/scripts/blob/master/url_status.py)

redirect input to the script

$ [url_status.py](https://github.com/jogind3r/scripts/blob/master/url_status.py) < your_url_list_file.txt

or

run and give input from the terminal prompt

$ [url_status.py](https://github.com/jogind3r/scripts/blob/master/url_status.py) < enter >

https://example.com

https://anothersite.com

https://some.example.com

< crl + d > < enter >

don't want download it? use it like this:

$ python -c "$(curl -s https://raw.githubusercontent.com/jogind3r/scripts/master/url_status.py)" < your_list_file.txt

or

$ cat your_list_file.txt | python -c "$(curl -s https://raw.githubusercontent.com/jogind3r/scripts/master/url_status.py)"

or just input from stdin

$ python -c "$(curl -s https://raw.githubusercontent.com/jogind3r/scripts/master/url_status.py)" < enter >
https://example.com

https://anothersite.com

https://some.example.com

< crl + d > < enter >

Clone this wiki locally