Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.133.128.223
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
multicast-dns /
Delete
Unzip
Name
Size
Permission
Date
Action
.travis.yml
59
B
-rw-r--r--
2018-01-27 10:17
LICENSE
1.05
KB
-rw-r--r--
2017-11-19 15:49
README.md
4.13
KB
-rw-r--r--
2017-11-19 15:49
cli.js
1.34
KB
-rwxr-xr-x
2018-01-27 10:15
example.js
788
B
-rw-r--r--
2017-11-19 16:20
index.js
4.73
KB
-rw-r--r--
2018-01-27 10:14
package.json
1.69
KB
-rw-r--r--
2021-02-04 21:24
test.js
6.68
KB
-rw-r--r--
2018-01-27 10:17
Save
Rename
#!/usr/bin/env node var mdns = require('./')() var path = require('path') var os = require('os') var announcing = process.argv.indexOf('--announce') > -1 if (process.argv.length < 3) { console.error('Usage: %s <hostname>', path.basename(process.argv[1])) process.exit(1) } var hostname = process.argv[2] if (announcing) { var ip = getIp() mdns.on('query', function (query) { query.questions.forEach(function (q) { if (q.name === hostname) { console.log('Responding %s -> %s', q.name, ip) mdns.respond({ answers: [{ type: 'A', name: q.name, data: ip }] }) } }) }) } else { mdns.on('response', function (response) { response.answers.forEach(function (answer) { if (answer.name === hostname) { console.log(answer.data) process.exit() } }) }) mdns.query(hostname, 'A') // Give responses 3 seconds to respond setTimeout(function () { console.error('Hostname not found') process.exit(1) }, 3000) } function getIp () { var networks = os.networkInterfaces() var found = '127.0.0.1' Object.keys(networks).forEach(function (k) { var n = networks[k] n.forEach(function (addr) { if (addr.family === 'IPv4' && !addr.internal) { found = addr.address } }) }) return found }