Added Ruby & Added support for multiple protocols
This commit is contained in:
parent
6c9e377183
commit
436f9d80d3
4 changed files with 170 additions and 7 deletions
14
README.md
14
README.md
|
@ -8,10 +8,11 @@ Each script has its own requirements.
|
|||
|
||||
* index.py, the Python script, requires [Python 3](https://www.python.org/downloads/)
|
||||
* index.js, the Node.js script, requires [Node.js](https://nodejs.org/en/download/)
|
||||
* index.rb, the Ruby script, requires [Ruby](https://rubyinstaller.org/downloads/)
|
||||
|
||||
## HOW TO RUN
|
||||
|
||||
You can run the Python script by simply double clicking on it or going into the command-line, moving into the right directory and entering the file name, which is index.py.
|
||||
You can run the Python or Ruby script by simply double clicking on it or going into the command-line, moving into the right directory and entering the file name.
|
||||
|
||||
To run the Node.js script, you will have to use the command-line.
|
||||
|
||||
|
@ -26,20 +27,20 @@ No matter which script, if you wish to use arguments, you are required to use th
|
|||
|
||||
- "-t" defines the number of URLs the script will go through.
|
||||
- "-d" defines all the top-level domains the URLs will use, separated only by a ",".
|
||||
- "-m" defines the application protocol used.
|
||||
- "-m" defines the application protocol used. Multiple protocols can be defined by separating them with a ",".
|
||||
- "-l" defines by whether or not it is present whether or not all URLs will be logged in the command-line.
|
||||
|
||||
* "-t" defaults to 3000.
|
||||
* "-d" defaults to a lot of popular top-level domains.
|
||||
* "-m" defaults to "http".
|
||||
* "-l" defaults to False.
|
||||
* "-l" makes it so URLs will be logged.
|
||||
|
||||
```sh
|
||||
# To make the Python script go through 3000 URLs in HTTP with various top-level domains without logging:
|
||||
$ index.py
|
||||
|
||||
# To make the Python script go through 500 URLs in HTTP with only the .com and .fr top-level domains with logging:
|
||||
$ index.py -t 500 -l -d .com,.fr
|
||||
# To make the Ruby script go through 500 URLs in HTTP and HTTPS with only the .com and .fr top-level domains with logging:
|
||||
$ index.rb -t 500 -m http,https -l -d .com,.fr
|
||||
|
||||
# To make the Node.js script go through 3000 URLs in HTTPS with various top-level domains with logging:
|
||||
$ node index.js -m https -l
|
||||
|
@ -48,12 +49,11 @@ $ node index.js -m https -l
|
|||
## FAQ
|
||||
|
||||
Q: Is there a script that is better than the other?
|
||||
A: As far as I am aware, nope! However, some scripts may receive different status or error codes for the same website, and the Python script error codes have more length than those by the other scripts.
|
||||
A: As far as I am aware, nope! However, the reports are generated differently depending of the script and some websites send different codes depending of the script.
|
||||
|
||||
Q: Why does the "-m" argument defaults to "http" rather than "https"?
|
||||
A: Requests in "http" receive more status codes than error codes compared to "https". I suspect it's because some websites don't support "https" very well, even in the current year.
|
||||
|
||||
## TO DO
|
||||
|
||||
- Allow "-m" to support multiple application protocols like "-d".
|
||||
- Add more languages.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue