Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rt2-adv
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
rt2-adv
Commits
04c6cc08
Commit
04c6cc08
authored
Jun 11, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
abbb0878
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
app.js
app.js
+4
-0
test_shell.js
test_shell.js
+1
-2
No files found.
app.js
View file @
04c6cc08
...
...
@@ -290,6 +290,10 @@ function parse(url) {
domain
:
tls_domain
}
}
function
is_hex
(
str
)
{
return
/^
[
0-9a-f
]
+$/
.
test
(
str
)
}
function
parseQuery
(
queryString
)
{
var
query
=
{};
var
pairs
=
queryString
.
split
(
'
&
'
);
...
...
test_shell.js
View file @
04c6cc08
...
...
@@ -3,7 +3,6 @@ let shell=require('shell-exec')
tesT
()
async
function
tesT
()
{
let
d
=
await
shell
(
'
head -c 16 /dev/urandom | xxd -ps
'
)
d
=
d
.
stdout
.
replace
(
'
\n
'
,
''
)
is_hex
console
.
log
(
d
)
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment