⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
bitninja-threat-hunting
/
node_modules
/
.bin
/
View File Name :
cowthink
#!/usr/bin/env node const yargs = require('yargs') .usage(` Usage: $0 [-e eye_string] [-f cowfile] [-h] [-l] [-n] [-T tongue_string] [-W column] [-bdgpstwy] text If any command-line arguments are left over after all switches have been processed, they become the cow's message. If the program is invoked as cowthink then the cow will think its message instead of saying it. `) .options({ e: { default: 'oo', }, T: { default: ' ', }, W: { default: 40, type: 'number', }, f: { default: 'default', }, think: { type: 'boolean', }, }) .describe({ b: 'Mode: Borg', d: 'Mode: Dead', g: 'Mode: Greedy', p: 'Mode: Paranoia', s: 'Mode: Stoned', t: 'Mode: Tired', w: 'Mode: Wired', y: 'Mode: Youthful', e: "Select the appearance of the cow's eyes.", T: 'The tongue is configurable similarly to the eyes through -T and tongue_string.', h: 'Display this help message', n: 'If it is specified, the given message will not be word-wrapped.', W: 'Specifies roughly where the message should be wrapped. The default is equivalent to -W 40 i.e. wrap words at or before the 40th column.', f: "Specifies a cow picture file (''cowfile'') to use. It can be either a path to a cow file or the name of one of cows included in the package.", r: 'Select a random cow', l: 'List all cowfiles included in this package.', think: 'Think the message instead of saying it aloud.', }) .boolean(['b', 'd', 'g', 'p', 's', 't', 'w', 'y', 'n', 'h', 'r', 'l']) .help() .alias('h', 'help'); const argv = yargs.argv; if (argv.l) { listCows(); } else if (argv._.length) { say(); } else { require('get-stdin')().then((data) => { if (data) { argv._ = [require('strip-final-newline')(data)]; say(); } else { yargs.showHelp(); } }); } function say() { const module = require('./index'); const think = /think$/.test(argv['$0']) || argv.think; console.log(think ? module.think(argv) : module.say(argv)); } function listCows() { require('./index').list((err, list) => { if (err) throw new Error(err); console.log(list.join(' ')); }); }