Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
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
/
usr /
lib /
node_modules /
node-red /
node_modules /
.bin /
[ HOME SHELL ]
Name
Size
Permission
Action
detect-libc
371
B
-rw-r--r--
esparse
4.83
KB
-rw-r--r--
esvalidate
7.56
KB
-rw-r--r--
js-yaml
2.66
KB
-rw-r--r--
mime
1.17
KB
-rw-r--r--
mkdirp
731
B
-rw-r--r--
mqtt
733
B
-rw-r--r--
mqtt_pub
3
KB
-rw-r--r--
mqtt_sub
2.54
KB
-rw-r--r--
mustache
3.39
KB
-rwxr-xr-x
needle
1.04
KB
-rwxr-xr-x
node-pre-gyp
3.19
KB
-rwxr-xr-x
node-red-admin
749
B
-rw-r--r--
nopt
1.51
KB
-rw-r--r--
rc
109
B
-rw-r--r--
rimraf
1.17
KB
-rw-r--r--
semver
4.61
KB
-rw-r--r--
sshpk-conv
5.6
KB
-rwxr-xr-x
sshpk-sign
3.92
KB
-rwxr-xr-x
sshpk-verify
3.47
KB
-rwxr-xr-x
uglifyjs
20.54
KB
-rwxr-xr-x
uuid
1.54
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mqtt_sub
#!/usr/bin/env node var mqtt = require('../') var path = require('path') var fs = require('fs') var helpMe = require('help-me')({ dir: path.join(__dirname, '..', 'doc') }) var minimist = require('minimist') function start (args) { args = minimist(args, { string: ['hostname', 'username', 'password', 'key', 'cert', 'ca', 'clientId', 'i', 'id'], boolean: ['stdin', 'help', 'clean', 'insecure'], alias: { port: 'p', hostname: ['h', 'host'], topic: 't', qos: 'q', clean: 'c', keepalive: 'k', clientId: ['i', 'id'], username: 'u', password: 'P', protocol: ['C', 'l'], verbose: 'v', help: '-H', ca: 'cafile' }, default: { host: 'localhost', qos: 0, retain: false, clean: true, keepAlive: 30 // 30 sec } }) if (args.help) { return helpMe.toStdout('subscribe') } args.topic = args.topic || args._.shift() if (!args.topic) { console.error('missing topic\n') return helpMe.toStdout('subscribe') } if (args.key) { args.key = fs.readFileSync(args.key) } if (args.cert) { args.cert = fs.readFileSync(args.cert) } if (args.ca) { args.ca = fs.readFileSync(args.ca) } if (args.key && args.cert && !args.protocol) { args.protocol = 'mqtts' } if (args.insecure) { args.rejectUnauthorized = false } if (args.port) { if (typeof args.port !== 'number') { console.warn('# Port: number expected, \'%s\' was given.', typeof args.port) return } } if (args['will-topic']) { args.will = {} args.will.topic = args['will-topic'] args.will.payload = args['will-message'] args.will.qos = args['will-qos'] args.will.retain = args['will-retain'] } args.keepAlive = args['keep-alive'] var client = mqtt.connect(args) client.on('connect', function () { client.subscribe(args.topic, { qos: args.qos }, function (err, result) { if (err) { console.error(err) process.exit(1) } result.forEach(function (sub) { if (sub.qos > 2) { console.error('subscription negated to', sub.topic, 'with code', sub.qos) process.exit(1) } }) }) }) client.on('message', function (topic, payload) { if (args.verbose) { console.log(topic, payload.toString()) } else { console.log(payload.toString()) } }) client.on('error', function (err) { console.warn(err) client.end() }) } module.exports = start if (require.main === module) { start(process.argv.slice(2)) }
Close