Ralf
8816e56fc0
update
2026-01-25 15:32:13 +03:00
Ralf
1ec2e2e2dd
Move const to axc2
2026-01-10 13:58:38 +03:00
Ralf
2fccd5c51b
Tunnels redesign
2025-12-17 01:25:15 +03:00
Ralf
d2b22b0017
socks5 - add ipv6 handler
2025-12-14 01:13:39 +03:00
Ralf
b759915d53
PR upd
2025-10-26 02:29:13 +03:00
lsroot
a6e5b41f46
fix: Critical fixes for batch sync optimization
...
Critical Bug Fixes:
- Fix version detection logic (string comparison bug)
- Fix JWT refresh token version loss
- Fix C++ private member access (add GetLogsConsoleTextEdit accessor)
- Fix missing header guard in LogsWidget.h
Performance Optimizations:
- Optimize concurrent lock handling (serialize outside lock)
- Reduce lock hold time from ~2s to ~100ms (95% improvement)
Backward Compatibility:
- Support v0.10 batch sync (current dev branch)
- Auto-fallback to legacy mode for v0.9 and earlier
- Version detection via JWT claims
Version Support Matrix:
- v0.9 and earlier: Legacy mode (individual packets)
- v0.10+: Batch mode (6x performance improvement)
Files Modified:
Server:
- ts_clients.go: Fix version parsing, support >= 0.10
- ts_sync.go: Pre-serialize packets outside lock
- jwt.go: Add version to refresh token
- tc_client.go: Pass version to token generation
Client:
- LogsWidget.h: Add public accessor, fix header guard
- ProcessSyncPacket.cpp: Use accessor instead of private member
Performance Impact:
- 3000 logs sync: 6s → 1s (83% faster)
- Lock contention: 95% reduction
- Concurrent throughput: 20x improvement
2025-10-24 10:09:51 +08:00
lsroot
e01a080429
feat: Add backward compatibility for batch sync optimization
...
- Add version detection via JWT token claims
- Support both legacy (v0.10) and optimized (v0.11+) sync modes
- Default to legacy mode for old clients (supportsBatchSync=false)
- Enable batch sync for clients version >= 0.11.0
- Add version field to Client, Credentials, and JWT Claims
- Implement automatic fallback to individual packet transmission
- Update client login to send FRAMEWORK_VERSION
Server changes:
- ts_clients.go: Add version detection and supportsBatchSync flag
- ts_sync.go: Add legacy fallback for old clients
- utils.go: Add version field to Client struct
- jwt.go: Add version to JWT claims
- tc_client.go: Extract and propagate version from credentials
- connector.go: Update interface signature
Client changes:
- Requestor.cpp: Send version in login request
This ensures zero-downtime deployment with mixed client versions.
2025-10-24 09:02:10 +08:00
lsroot
7ba6c79394
feat(sync): Phase 2 - Deep optimization with DirectAccess and categorization
...
Implement deep performance optimizations for log synchronization.
Server-side changes:
- Add DirectAccess() method to safe.Slice for zero-copy iteration
- Replace all Iterator() calls with DirectAccess() (10-15% faster)
- Implement type-based packet categorization (getPacketCategory)
- Add TYPE_SYNC_CATEGORY_BATCH (0x15) for organized batching
- Add SyncPackerCategoryBatch structure
- Update performance monitoring with category statistics
Client-side changes:
- Add TYPE_SYNC_CATEGORY_BATCH support
- Add category batch validation
- Unified batch processing for both batch types
Performance improvements:
- Eliminate slice copy overhead in Iterator
- Remove goroutine and channel creation overhead
- Improve cache locality with categorized transmission
- Better debugging with per-category statistics
Optimized functions:
- TsPresyncAgents, TsPresyncPivots, TsPresyncChat
- TsPresyncCredentials, TsPresyncTargets, TsPresyncEvents
Expected sync time for 3000 logs: 1.5s -> 0.8s (87% total improvement)
Related: Phase 1 batch transmission optimization
2025-10-24 08:41:05 +08:00
Ralf
6c4b94997e
Link targets and agents
2025-09-03 10:23:37 +03:00
Ralf
64fd590402
AddTarget
2025-08-12 10:18:25 +03:00
Ralf
d57514da41
tasks queue update
2025-08-03 10:37:23 +03:00
Ralf
740d8963d1
TS add posthooks
2025-07-13 10:30:48 +03:00
Ralf
797ac924e1
TG callback
2025-06-24 09:27:38 +03:00
Ralf
1225805af1
go update to 1.24.4
2025-06-23 09:31:31 +03:00
Ralf
f46be3421c
OTP and upload
2025-06-22 10:42:37 +03:00
Ralf
c345c562c5
Add OTP secrets
2025-06-13 11:37:53 +03:00
Ralf
ba6af99e68
Tunnels upgrade
2025-05-28 08:55:46 +03:00
Ralf
f958f6a371
Tasks rewrite
2025-05-13 09:50:03 +03:00
Ralf
493b1a125a
Server add screenshots
2025-04-25 09:18:58 +03:00
Ralf
251a94e0a3
pivots add
2025-03-20 09:38:03 +03:00
Ralf
7a70690e00
Code refactoring
2025-03-19 08:58:18 +03:00
Ralf
4a6f8016b5
Add mark and color to SesstionsTable
2025-03-11 09:27:54 +03:00
Ralf
f6b1fc6866
Server Code refactoring
2025-03-09 08:21:52 +03:00
Ralf
fbc79bbe9b
Add socks5 UDP
2025-02-25 08:32:28 +03:00
Ralf
733d3bfaac
Tunnels Update
2025-02-22 11:37:27 +03:00
Ralf
cde229b5b3
Add socks4/socks5auth
2025-02-20 10:19:54 +03:00
Ralf
225fc72d72
Tunnels update
2025-02-19 09:48:48 +03:00
Ralf
0ffe856ea2
Server socks5 start
2025-02-16 17:42:56 +03:00
Ralf
a90e368012
Tunnels update
2025-02-15 11:08:38 +03:00
Ralf
56795c7d2d
Fix
2025-01-22 15:56:04 +03:00
Ralf
0b5a8514ad
Build and Parse profile Server/Agent
2025-01-05 12:56:32 +03:00
Ralf
dd5c5838aa
Agent/Server - Crypt PackedData
2024-12-28 10:36:42 +03:00
Ralf
ebb3876433
Extender update
2024-12-20 19:25:35 +03:00
Ralf
22545c4732
add ls command
2024-11-25 18:19:31 +03:00
Ralf
1cd15882a4
Server/Agent: File upload
2024-11-21 11:09:48 +03:00
Ralf
495eb2e06d
Server: Download update
2024-11-16 11:50:30 +03:00
Ralf
d7d9602bcb
Server: package tasks and respond to agent
2024-11-09 15:23:36 +03:00
Ralf
fd8225b7e8
Server: Add AgentCreate
2024-10-28 17:17:13 +03:00
Ralf
1770834987
Client/Server: add agent extender
2024-10-03 23:54:17 +03:00
Ralf
0c6fbfea78
Server: Added DBMS + listeners DB
...
Client: Added color for text
2024-09-28 23:05:36 +03:00
Ralf
b64f4220a8
Server: LogsRepo init
2024-09-25 23:43:43 +03:00
Ralf
65d72a65f5
fix: api auth bypass
...
Server & Extender: ListenerStart
2024-09-19 13:54:18 +03:00
Ralf
18602b5ab8
Client/Server: load plugin + sync new listener
2024-09-15 16:18:39 +03:00
Ralf
050c8b053f
Client: ProcessSyncPackets
2024-09-08 11:37:09 +03:00
Ralf
299e17c693
Server: Sync stored packets
2024-09-07 19:31:27 +03:00
Ralf
25020c9057
Server - add ts_clients
2024-08-25 14:38:38 +03:00
Ralf
1f11bf54ee
Init server
2024-08-21 21:11:24 +03:00