lu4p / ToRat

ToRat is a Remote Administation tool written in Go using Tor as a transport mechanism and RPC for communication

Home Page:https://lu4p.github.io/ToRat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Minor Issue] Alias does not update server name in `list` command

JustinTimperio opened this issue · comments

I have yet to pinpoint why this happens but the list command does not seem to be using the value defined by name in the SQLite database.

Select client to give an alias
 ❯ 0    vBHv3Vc5awx39ivu        vBHv3Vc5awx39ivu
Type an alias for selected client
Test_Name

2021/02/10 04:04:48 /ToRat/torat_server/shell.go:70 WHERE conditions required
[0.426ms] [rows:0] UPDATE `clients` SET `hostname`="vBHv3Vc5awx39ivu",`name`="Test_Name",`path`="bots/vBHv3Vc5awx39ivu",`ip`="",`location`="",`last_conn`=0,`active`=false,`mac_addr`="",`os`="",`cpu`="",`gpu`="",`ram`="",`drives`=""
[Server] /ToRat/cmd/server$ list
Clients:
0       vBHv3Vc5awx39ivu        vBHv3Vc5awx39ivu

This issue is related to #176