Unlink scripts submodule and commit contents as normal directory
This commit is contained in:
1 parent
4f7dea111f
commit
6488b3ea85
48 files changed
+2876
-1
No files matched your search
@@ -0,0 +1,14 @@
|
||||
const { version, authorMeta, prettyName, license } = require('../repo.js');
|
||||
const { color, reset, headerText, authorText, donate, sniffcat } = require('./utils/helper.js');
|
||||
const logger = require('../logger.js');
|
||||
|
||||
module.exports = () => {
|
||||
console.log(`
|
||||
${color('255;160;0')} .--. ${headerText(`Cloudflare WAF To ${prettyName} - v${version} `)}
|
||||
${color('255;140;0')}.-( ). ${authorText(authorMeta)} [${license}]
|
||||
${color('255;120;0')}(___.__)__)${reset}
|
||||
`);
|
||||
|
||||
logger.info(donate);
|
||||
logger.info(sniffcat);
|
||||
};
|
||||
@@ -0,0 +1,16 @@
|
||||
const { version, authorMeta, prettyName, repoUrl, license } = require('../repo.js');
|
||||
const { color, reset, headerText, authorText, donate } = require('./utils/helper.js');
|
||||
const logger = require('../logger.js');
|
||||
|
||||
module.exports = () => {
|
||||
console.log(`
|
||||
${color('255;140;0')} /\\_/\\
|
||||
${color('255;120;0')} ( o.o ) ${headerText(`Suricata To ${prettyName} - v${version}`)}
|
||||
${color('255;100;0')} > ^ < ${authorText(authorMeta)}
|
||||
${color('255;80;0')} / \\ ${authorText(`${repoUrl} [${license}]`)}
|
||||
${color('255;70;0')}( )
|
||||
${color('255;40;0')} \\__|__/${reset}
|
||||
`);
|
||||
|
||||
logger.info(donate);
|
||||
};
|
||||
@@ -0,0 +1,16 @@
|
||||
const { version, authorMeta, prettyName, repoUrl, license } = require('../repo.js');
|
||||
const { color, reset, donate, sniffcat } = require('./utils/helper.js');
|
||||
const logger = require('../logger.js');
|
||||
|
||||
module.exports = () => {
|
||||
console.log(`
|
||||
${color('255;0;130')} _____ ____ _
|
||||
${color('235;0;120')}|_ _| | _ \\ ___ | |_ ${color('235;0;120')}T${color('235;0;120')}-${color('235;0;120')}Pot To ${prettyName} - v${version}
|
||||
${color('215;0;110')} | | | |_) / _ \\| __| ${color('235;0;120')}${authorMeta}
|
||||
${color('195;0;95')} | | | __/ (_) | |_ ${repoUrl} [${license}]
|
||||
${color('175;0;85')} |_| |_| \\___/ \\__|${reset}
|
||||
`);
|
||||
|
||||
logger.info(donate);
|
||||
logger.info(sniffcat);
|
||||
};
|
||||
@@ -0,0 +1,17 @@
|
||||
const { version, authorMeta, prettyName, repoUrl, license } = require('../repo.js');
|
||||
const { color, reset, headerText, authorText, donate, sniffcat } = require('./utils/helper.js');
|
||||
const logger = require('../logger.js');
|
||||
|
||||
module.exports = () => {
|
||||
console.log(`
|
||||
${color('255;140;0')}██╗ ██╗ ███████╗ ██╗ ██╗
|
||||
${color('255;120;0')}██║ ██║ ██╔════╝ ██║ ██║ ${headerText(`UFW To ${prettyName} - v${version}`)}
|
||||
${color('255;100;0')}██║ ██║ █████╗ ██║ █╗ ██║ ${authorText(authorMeta)}
|
||||
${color('255;80;0')}██║ ██║ ██╔══╝ ██║███╗██║ ${repoUrl} ${authorText(`[${license}]`)}
|
||||
${color('255;70;0')}╚██████╔╝ ██║ ╚███╔███╔╝
|
||||
${color('255;40;0')} ╚═════╝ ╚═╝ ╚══╝╚══╝${reset}
|
||||
`);
|
||||
|
||||
logger.info(donate);
|
||||
logger.info(sniffcat);
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
module.exports = (text, startGreen, endGreen) => {
|
||||
const textLength = text.length;
|
||||
return [...text].map((char, index) => {
|
||||
const greenValue = Math.round(startGreen - ((startGreen - endGreen) * index / (textLength - 1)));
|
||||
return `\x1b[38;2;255;${greenValue};0m${char}`;
|
||||
}).join('');
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
const gradientText = require('./gradientText.js');
|
||||
|
||||
const IS_PM2 = 'pm_id' in process.env;
|
||||
|
||||
const color = code => IS_PM2 ? '' : `\x1b[38;2;${code}m`;
|
||||
const reset = IS_PM2 ? '' : '\x1b[0m';
|
||||
|
||||
const headerText = text => IS_PM2 ? text : gradientText(text, 145, 58);
|
||||
const authorText = text => IS_PM2 ? text : gradientText(text, 145, 88);
|
||||
|
||||
module.exports = Object.freeze({
|
||||
IS_PM2,
|
||||
color,
|
||||
reset,
|
||||
headerText,
|
||||
authorText,
|
||||
donate: '💗 If you find this project useful, consider supporting me: https://sefinek.net/donate',
|
||||
sniffcat: '📘 Consider reporting malicious addresses to SniffCat, a modern alternative to AbuseIPDB: https://sniffcat.com',
|
||||
});
|
||||
Reference in new issue
Block a user