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
14927ec6
Commit
14927ec6
authored
Jan 19, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Proxy is working
parent
cb06629b
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
686 additions
and
678 deletions
+686
-678
novnc_asset_map.c
wssshd2/novnc_asset_map.c
+645
-645
novnc_assets.h
wssshd2/novnc_assets.h
+1
-1
rdp_asset_map.c
wssshd2/rdp_asset_map.c
+28
-28
rdp_assets.h
wssshd2/rdp_assets.h
+1
-1
websocket.c
wssshd2/websocket.c
+9
-3
websocket_protocol.c
wssshd2/websocket_protocol.c
+2
-0
No files found.
wssshd2/novnc_asset_map.c
View file @
14927ec6
This diff is collapsed.
Click to expand it.
wssshd2/novnc_assets.h
View file @
14927ec6
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
#include "html_pages/novnc_input_fixedkeys_js_page.h"
#include "html_pages/novnc_input_fixedkeys_js_page.h"
#include "html_pages/novnc_input_gesturehandler_js_page.h"
#include "html_pages/novnc_input_gesturehandler_js_page.h"
#include "html_pages/novnc_input_keyboard_js_page.h"
#include "html_pages/novnc_input_keyboard_js_page.h"
#include "html_pages/novnc_input_keysym_js_page.h"
#include "html_pages/novnc_input_keysymdef_js_page.h"
#include "html_pages/novnc_input_keysymdef_js_page.h"
#include "html_pages/novnc_input_keysym_js_page.h"
#include "html_pages/novnc_input_util_js_page.h"
#include "html_pages/novnc_input_util_js_page.h"
#include "html_pages/novnc_input_vkeys_js_page.h"
#include "html_pages/novnc_input_vkeys_js_page.h"
#include "html_pages/novnc_input_xtscancodes_js_page.h"
#include "html_pages/novnc_input_xtscancodes_js_page.h"
...
...
wssshd2/rdp_asset_map.c
View file @
14927ec6
This source diff could not be displayed because it is too large. You can
view the blob
instead.
wssshd2/rdp_assets.h
View file @
14927ec6
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
#include "html_pages/rdp_clipboard_js_page.h"
#include "html_pages/rdp_clipboard_js_page.h"
#include "html_pages/rdp_mstsc_js_page.h"
#include "html_pages/rdp_mstsc_js_page.h"
#include "html_pages/rdp_out_stream_js_page.h"
#include "html_pages/rdp_out_stream_js_page.h"
#include "html_pages/rdp_rdp_wasm_js_page.h"
#include "html_pages/rdp_rdp_graphics_js_page.h"
#include "html_pages/rdp_rdp_graphics_js_page.h"
#include "html_pages/rdp_rdp_wasm_js_page.h"
#include "html_pages/rdp_reversed_layouts_js_page.h"
#include "html_pages/rdp_reversed_layouts_js_page.h"
#include "html_pages/rdp_scancodes_js_page.h"
#include "html_pages/rdp_scancodes_js_page.h"
#include "html_pages/rdp_rdp_wasm_page.h"
#include "html_pages/rdp_rdp_wasm_page.h"
...
...
wssshd2/websocket.c
View file @
14927ec6
...
@@ -48,6 +48,7 @@ static const char *TUNNEL_REQUEST_MSG = "{\"type\":\"tunnel_request\",\"request_
...
@@ -48,6 +48,7 @@ static const char *TUNNEL_REQUEST_MSG = "{\"type\":\"tunnel_request\",\"request_
static
const
char
*
TUNNEL_ACK_MSG
=
"{
\"
type
\"
:
\"
tunnel_ack
\"
,
\"
request_id
\"
:
\"
%s
\"
}"
;
static
const
char
*
TUNNEL_ACK_MSG
=
"{
\"
type
\"
:
\"
tunnel_ack
\"
,
\"
request_id
\"
:
\"
%s
\"
}"
;
static
const
char
*
TUNNEL_ERROR_MSG
=
"{
\"
type
\"
:
\"
tunnel_error
\"
,
\"
request_id
\"
:
\"
%s
\"
,
\"
error
\"
:
\"
%s
\"
}"
;
static
const
char
*
TUNNEL_ERROR_MSG
=
"{
\"
type
\"
:
\"
tunnel_error
\"
,
\"
request_id
\"
:
\"
%s
\"
,
\"
error
\"
:
\"
%s
\"
}"
;
void
format_bytes
(
unsigned
long
long
bytes
,
char
*
buffer
,
size_t
buffer_size
)
{
void
format_bytes
(
unsigned
long
long
bytes
,
char
*
buffer
,
size_t
buffer_size
)
{
if
(
bytes
<
1024
)
{
if
(
bytes
<
1024
)
{
snprintf
(
buffer
,
buffer_size
,
"%llu B"
,
bytes
);
snprintf
(
buffer
,
buffer_size
,
"%llu B"
,
bytes
);
...
@@ -887,9 +888,13 @@ int websocket_handle_message(wssshd_state_t *state, ws_connection_t *conn __attr
...
@@ -887,9 +888,13 @@ int websocket_handle_message(wssshd_state_t *state, ws_connection_t *conn __attr
if
(
request_id
)
{
if
(
request_id
)
{
// Find the tunnel and mark it as acknowledged
// Find the tunnel and mark it as acknowledged
// This is a simple acknowledgment - in a full implementation,
tunnel_t
*
tunnel
=
websocket_find_tunnel
(
state
,
request_id
);
// you might want to track tunnel state more thoroughly
if
(
tunnel
)
{
if
(
state
->
debug
)
printf
(
"[DEBUG - %s -> wssshd] Tunnel %s acknowledged by client
\n
"
,
direction
,
request_id
);
tunnel_update_status
(
tunnel
,
TUNNEL_STATUS_ACTIVE
,
NULL
);
if
(
state
->
debug
)
printf
(
"[DEBUG - %s -> wssshd] Tunnel %s acknowledged by client and set to ACTIVE
\n
"
,
direction
,
request_id
);
}
else
{
if
(
state
->
debug
)
printf
(
"[DEBUG - %s -> wssshd] Tunnel %s not found for acknowledgment
\n
"
,
direction
,
request_id
);
}
}
}
if
(
request_id
)
free
(
request_id
);
if
(
request_id
)
free
(
request_id
);
...
@@ -1072,6 +1077,7 @@ int websocket_handle_message(wssshd_state_t *state, ws_connection_t *conn __attr
...
@@ -1072,6 +1077,7 @@ int websocket_handle_message(wssshd_state_t *state, ws_connection_t *conn __attr
// Find the tunnel
// Find the tunnel
tunnel_t
*
tunnel
=
websocket_find_tunnel
(
state
,
request_id
);
tunnel_t
*
tunnel
=
websocket_find_tunnel
(
state
,
request_id
);
if
(
tunnel
)
{
if
(
tunnel
)
{
// Normal tunnel forwarding
// Determine which side to forward to based on sender
// Determine which side to forward to based on sender
ws_connection_t
*
target_conn
=
NULL
;
ws_connection_t
*
target_conn
=
NULL
;
const
char
*
target_side
=
NULL
;
const
char
*
target_side
=
NULL
;
...
...
wssshd2/websocket_protocol.c
View file @
14927ec6
...
@@ -107,6 +107,8 @@ char *base64_encode(const unsigned char *data, size_t len) {
...
@@ -107,6 +107,8 @@ char *base64_encode(const unsigned char *data, size_t len) {
return
out
;
return
out
;
}
}
// Compute WebSocket accept key
// Compute WebSocket accept key
char
*
ws_compute_accept_key
(
const
char
*
key
)
{
char
*
ws_compute_accept_key
(
const
char
*
key
)
{
if
(
!
key
)
return
NULL
;
if
(
!
key
)
return
NULL
;
...
...
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