Skip to content

Commit

Permalink
Adapt client script to current xfreerdp command line options
Browse files Browse the repository at this point in the history
  • Loading branch information
SimulPiscator authored and SimulPiscator committed Aug 3, 2024
1 parent 23b260b commit ba36df8
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
18 changes: 18 additions & 0 deletions RDPShare.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* RDPShare: Windows Desktop Sharing remote control interface
*
* Copyright 2016 Simul Piscator
*
* RDPShare is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* RDPShare is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with RDPShare. If not, see <http://www.gnu.org/licenses/>.
*/
#include "RDPShareServer.h"
#include "Sharer.h"
#include "Utils.h"
Expand Down
2 changes: 1 addition & 1 deletion RDPShareServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ static std::string ClientScript(const std::string& ip, const std::string& raport
"send_command stop > /dev/null\n"
"send_command start > /dev/null\n"
"APP=xfreerdp\n"
"OPTIONS=\"/f /cert-ignore -sec-nla -encryption +compression\"\n"
"OPTIONS=\"/f /cert:ignore /sec:rdp -encryption +compression /u:null@null /p:null\"\n"
"SESSIONID=`send_command get_RASessionID`\n"
"exec $APP /v:" << ip << ":" << raport << " /shell-dir:$SESSIONID $OPTIONS\n"
;
Expand Down
18 changes: 18 additions & 0 deletions RDPShareServer.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* RDPShare: Windows Desktop Sharing remote control interface
*
* Copyright 2016 Simul Piscator
*
* RDPShare is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* RDPShare is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with RDPShare. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Server.h"
#include "RDPFile.h"

Expand Down

0 comments on commit ba36df8

Please sign in to comment.