Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ sudo xfreerdp /v:farm.company.com /d:company.com
- /u:oshiro /p:oshiro_password /g:rds.company.com
- $ sudo xfreerdp /v:farm.company.com /d:company.com /u:oshiro /g:rds.company.com
- oshiro@ubuntu:~$ xfreerdp /v:farm.company.com /d:company.com -u:oshiro /g:rds.company.com
- connected to rds.company.com:443
- connected to rds.company.com:443
- Could not open SAM file!
- Could not open SAM file!
- Could not open SAM file!
- Could not open SAM file!
- rts_connect error! Status Code: 401
- HTTP/1.1 401 Unauthorized
- Content-Type: text/plain
- Server: Microsoft-IIS/7.5
- WWW-Authenticate: Negotiate
- WWW-Authenticate: NTLM
- WWW-Authenticate: Basic realm="rds.company.com"
- X-Powered-By: ASP.NET
- Date: Sun, 23 Mar 2014 10:40:30 GMT +12
- Content-Length: 13
- rts_connect error!
- rpc_connect failed!
- Error: protocol security negotiation or connection failure
- $ xfreerdp /v:farm.company.com /d:company.com /u:oshiro /g:rds.company.com /p
- $ xfreerdp -u oshiro -d company.com farm.company.com -t 3389 -p
- $ xfreerdp --ignore-certificate -u smingolelli -d mydom -t 5000 rdp.mydom.com -p
- connected to rdp.mydom.com:5000
- Password:
- $ xfreerdp /v:yourRDSfarmFQDN
- /u:$(zenity
- --entry
- --title="Domain Username"
- --text="Enter your Username")
- /p:$(zenity
- --entry
- --title="Domain Password"
- --text="Enter your _password:"
- --hide-text)
- /d:yourdomainname
- /f
- /cert-ignore
- +clipboard
- #!/bin/bash
- # XFreeRDP RemoteApp W/ Prompt Script
- # Version 0.3
- # Description:
- # XFreeRDP Remote App Script utilizing Zentity to populate variables
- # Written by Jarrett Higgins 12-2015
- OUTPUT=$(zenity --forms --title="Connection Information"
- --text="Enter information about your Remote Connection"
- --separator=","
- --add-entry="Server"
- --add-entry="Port (Default: 3389)"
- --add-entry="Domain (Optional)"
- --add-entry="Username"
- --add-password="Password"
- --add-entry="Remote App Name (Optional)")
- OUTPUT_RESULTS=$?
- if ((OUTPUT_RESULTS != 0)); then
- echo "something went wrong"
- exit 1
- fi
- Blank=""
- Server=$(awk -F, '{print $1}' <<<$OUTPUT)
- Port=$(awk -F, '{print $2}' <<<$OUTPUT)
- if ["$Port" = "$Blank"]
- then
- Port="3389"
- else
- Port="$Port"
- fi
- Domain=$(awk -F, '{print $3}' <<<$OUTPUT)
- Username=$(awk -F, '{print $4}' <<<$OUTPUT)
- Password=$(awk -F, '{print $5}' <<<$OUTPUT)
- App=$(awk -F, '{print $6}' <<<$OUTPUT)
- if ["$App" = "$Blank"]
- then
- App="$App"
- Title="$Server"
- else
- AppName="$App"
- Title="$AppName on $Server"
- App="/app:||$App"
- fi
- #zenity --info --title="Information Return" --text="$Server $Port $Domain $Username $Password $App"
- xfreerdp /t:"$Title" /v:$Server:$Port /d:$Domain /u:$Username /p:$Password $App /cert-ignore /workarea +clipboard
- Password=""
- sudo xfreerdp /v:farm.company.com /d:company.com /u:oshiro /g:rds.company.com /p
- #!/bin/bash
- # Read Password
- echo -n Password:
- read -s password
- echo
- # Run Command
- sudo xfreerdp /v:farm.company.com /d:company.com /u:oshiro /g:rds.company.com /p:$password
- chmod +x rdp.sh
- ./rdp.sh
- OUTPUT=$(yad --center --button="gtk-ok:0" --title "Remote Desktop" --form
- --field="Server:CB" "rds1.domain.local!rds2.domain.local!rds3.domain.local"
- --field="Port" "3389"
- --field="Domain" "DOMAIN.local"
- --field="Username" ""
- --field="Password:H"
- --field="Remote App Name" "")
- #!/bin/sh
- frmdata=$(yad --title "Connect to remote computer" --form --field="Remote computer" --field="Username" --field="Password:H" --field="Domain" --field="Gateway")
- frmcomputer=$(echo $frmdata | awk 'BEGIN {FS="|" } { print $1 }')
- frmusername=$(echo $frmdata | awk 'BEGIN {FS="|" } { print $2 }')
- frmpassword=$(echo $frmdata | awk 'BEGIN {FS="|" } { print $3 }')
- frmdomain=$(echo $frmdata | awk 'BEGIN {FS="|" } { print $4 }')
- frmgateway=$(echo $frmdata | awk 'BEGIN {FS="|" } { print $5 }')
- xfreerdp /v:$frmcomputer /f /d:$frmdomain /u:$frmusername /g:$frmgateway /p:$frmpassword /cert-ignore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement