Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
wsssh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
nexlab
wsssh
Commits
aa4be3b1
Commit
aa4be3b1
authored
Sep 12, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added what's added
parent
b018fb7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
wsssh.c
wssshtools/wsssh.c
+28
-0
No files found.
wssshtools/wsssh.c
View file @
aa4be3b1
...
@@ -20,6 +20,28 @@ typedef struct {
...
@@ -20,6 +20,28 @@ typedef struct {
int
debug
;
int
debug
;
}
wsssh_config_t
;
}
wsssh_config_t
;
void
print_trans_flag
(
void
)
{
// Transgender pride flag colors using ANSI escape codes
const
char
*
colors
[]
=
{
"
\033
[48;5;117m"
,
// Light blue background
"
\033
[48;5;218m"
,
// Pink background
"
\033
[48;5;231m"
,
// White background
"
\033
[48;5;218m"
,
// Pink background
"
\033
[48;5;117m"
// Light blue background
};
const
char
*
reset
=
"
\033
[0m"
;
// Print 5 rows of colored blocks
for
(
int
i
=
0
;
i
<
5
;
i
++
)
{
printf
(
"%s"
,
colors
[
i
]);
for
(
int
j
=
0
;
j
<
40
;
j
++
)
{
printf
(
" "
);
}
printf
(
"%s
\n
"
,
reset
);
}
printf
(
"
\n
"
);
}
void
print_usage
(
const
char
*
program_name
)
{
void
print_usage
(
const
char
*
program_name
)
{
fprintf
(
stderr
,
"Usage: %s [options] user@client.domain [ssh_options...]
\n
"
,
program_name
);
fprintf
(
stderr
,
"Usage: %s [options] user@client.domain [ssh_options...]
\n
"
,
program_name
);
fprintf
(
stderr
,
"WebSocket SSH Wrapper - SSH through WebSocket tunnels
\n\n
"
);
fprintf
(
stderr
,
"WebSocket SSH Wrapper - SSH through WebSocket tunnels
\n\n
"
);
...
@@ -307,6 +329,12 @@ int main(int argc, char *argv[]) {
...
@@ -307,6 +329,12 @@ int main(int argc, char *argv[]) {
.
debug
=
0
.
debug
=
0
};
};
// Easter egg: --support option (only when it's the only argument)
if
(
argc
==
2
&&
strcmp
(
argv
[
1
],
"--support"
)
==
0
)
{
print_trans_flag
();
return
0
;
}
if
(
!
parse_args
(
argc
,
argv
,
&
config
))
{
if
(
!
parse_args
(
argc
,
argv
,
&
config
))
{
return
1
;
return
1
;
}
}
...
...
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