nolimit-x 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/src/init.js +5 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nolimit-x",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Advanced email sender for red team operations",
|
|
5
5
|
"main": "src/cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"nodemailer": "^7.0.4",
|
|
19
19
|
"puppeteer": "^23.0.0",
|
|
20
20
|
"qrcode": "^1.5.3",
|
|
21
|
-
"p-map": "^5.0.0"
|
|
21
|
+
"p-map": "^5.0.0",
|
|
22
|
+
"ora": "^6.1.2"
|
|
22
23
|
}
|
|
23
24
|
}
|
package/src/init.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const fs = require("fs");
|
|
2
2
|
const path = require("path");
|
|
3
|
+
const ora = require("ora");
|
|
3
4
|
|
|
4
5
|
function printBanner() {
|
|
5
6
|
console.log(`\n\x1b[36m` +
|
|
@@ -31,10 +32,10 @@ function fixConfigPaths(configPath, workspace) {
|
|
|
31
32
|
|
|
32
33
|
async function init(projectName) {
|
|
33
34
|
printBanner();
|
|
34
|
-
|
|
35
|
+
const spinner = ora('Setting up workspace ...').start();
|
|
35
36
|
const projectPath = path.resolve(process.cwd(), projectName);
|
|
36
37
|
if (fs.existsSync(projectPath)) {
|
|
37
|
-
|
|
38
|
+
spinner.fail(`Directory ${projectName} already exists.`);
|
|
38
39
|
process.exit(1);
|
|
39
40
|
}
|
|
40
41
|
try {
|
|
@@ -48,17 +49,9 @@ async function init(projectName) {
|
|
|
48
49
|
fixConfigPaths(path.join(projectPath, "config.json"), projectPath);
|
|
49
50
|
// Simulate progress
|
|
50
51
|
await new Promise(res => setTimeout(res, 800));
|
|
51
|
-
|
|
52
|
-
process.stdout.cursorTo(0);
|
|
53
|
-
console.log("Workspace ready!");
|
|
54
|
-
console.log("Template ready ..");
|
|
55
|
-
files.forEach(file => {
|
|
56
|
-
console.log(` - ${file}`);
|
|
57
|
-
});
|
|
58
|
-
console.log(" - attachments/ (directory)");
|
|
59
|
-
console.log(`Initialized new campaign in '${projectName}'`);
|
|
52
|
+
spinner.succeed('Template ready ..');
|
|
60
53
|
} catch (error) {
|
|
61
|
-
|
|
54
|
+
spinner.fail("Error during initialization.");
|
|
62
55
|
process.exit(1);
|
|
63
56
|
}
|
|
64
57
|
}
|