Advertisement
Guest User

Untitled

a guest
Oct 13th, 2017
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. $ sudo xfreerdp /v:farm.company.com /d:company.com
  2. /u:oshiro /p:oshiro_password /g:rds.company.com
  3.  
  4. $ sudo xfreerdp /v:farm.company.com /d:company.com /u:oshiro /g:rds.company.com
  5.  
  6. oshiro@ubuntu:~$ xfreerdp /v:farm.company.com /d:company.com -u:oshiro /g:rds.company.com
  7. connected to rds.company.com:443
  8. connected to rds.company.com:443
  9. Could not open SAM file!
  10. Could not open SAM file!
  11. Could not open SAM file!
  12. Could not open SAM file!
  13. rts_connect error! Status Code: 401
  14. HTTP/1.1 401 Unauthorized
  15. Content-Type: text/plain
  16. Server: Microsoft-IIS/7.5
  17. WWW-Authenticate: Negotiate
  18. WWW-Authenticate: NTLM
  19. WWW-Authenticate: Basic realm="rds.company.com"
  20. X-Powered-By: ASP.NET
  21. Date: Sun, 23 Mar 2014 10:40:30 GMT +12
  22. Content-Length: 13
  23.  
  24. rts_connect error!
  25. rpc_connect failed!
  26. Error: protocol security negotiation or connection failure
  27.  
  28. $ xfreerdp /v:farm.company.com /d:company.com /u:oshiro /g:rds.company.com /p
  29.  
  30. $ xfreerdp -u oshiro -d company.com farm.company.com -t 3389 -p
  31.  
  32. $ xfreerdp --ignore-certificate -u smingolelli -d mydom -t 5000 rdp.mydom.com -p
  33. connected to rdp.mydom.com:5000
  34. Password:
  35.  
  36. $ xfreerdp /v:yourRDSfarmFQDN
  37. /u:$(zenity
  38. --entry
  39. --title="Domain Username"
  40. --text="Enter your Username")
  41. /p:$(zenity
  42. --entry
  43. --title="Domain Password"
  44. --text="Enter your _password:"
  45. --hide-text)
  46. /d:yourdomainname
  47. /f
  48. /cert-ignore
  49. +clipboard
  50.  
  51. #!/bin/bash
  52.  
  53. # XFreeRDP RemoteApp W/ Prompt Script
  54. # Version 0.3
  55. # Description:
  56. # XFreeRDP Remote App Script utilizing Zentity to populate variables
  57. # Written by Jarrett Higgins 12-2015
  58.  
  59. OUTPUT=$(zenity --forms --title="Connection Information"
  60. --text="Enter information about your Remote Connection"
  61. --separator=","
  62. --add-entry="Server"
  63. --add-entry="Port (Default: 3389)"
  64. --add-entry="Domain (Optional)"
  65. --add-entry="Username"
  66. --add-password="Password"
  67. --add-entry="Remote App Name (Optional)")
  68. OUTPUT_RESULTS=$?
  69. if ((OUTPUT_RESULTS != 0)); then
  70. echo "something went wrong"
  71. exit 1
  72. fi
  73. Blank=""
  74. Server=$(awk -F, '{print $1}' <<<$OUTPUT)
  75. Port=$(awk -F, '{print $2}' <<<$OUTPUT)
  76. if ["$Port" = "$Blank"]
  77. then
  78. Port="3389"
  79. else
  80. Port="$Port"
  81. fi
  82. Domain=$(awk -F, '{print $3}' <<<$OUTPUT)
  83. Username=$(awk -F, '{print $4}' <<<$OUTPUT)
  84. Password=$(awk -F, '{print $5}' <<<$OUTPUT)
  85. App=$(awk -F, '{print $6}' <<<$OUTPUT)
  86. if ["$App" = "$Blank"]
  87. then
  88. App="$App"
  89. Title="$Server"
  90. else
  91. AppName="$App"
  92. Title="$AppName on $Server"
  93. App="/app:||$App"
  94. fi
  95. #zenity --info --title="Information Return" --text="$Server $Port $Domain $Username $Password $App"
  96. xfreerdp /t:"$Title" /v:$Server:$Port /d:$Domain /u:$Username /p:$Password $App /cert-ignore /workarea +clipboard
  97. Password=""
  98.  
  99. sudo xfreerdp /v:farm.company.com /d:company.com /u:oshiro /g:rds.company.com /p
  100.  
  101. #!/bin/bash
  102. # Read Password
  103. echo -n Password:
  104. read -s password
  105. echo
  106. # Run Command
  107. sudo xfreerdp /v:farm.company.com /d:company.com /u:oshiro /g:rds.company.com /p:$password
  108.  
  109. chmod +x rdp.sh
  110.  
  111. ./rdp.sh
  112.  
  113. OUTPUT=$(yad --center --button="gtk-ok:0" --title "Remote Desktop" --form
  114. --field="Server:CB" "rds1.domain.local!rds2.domain.local!rds3.domain.local"
  115. --field="Port" "3389"
  116. --field="Domain" "DOMAIN.local"
  117. --field="Username" ""
  118. --field="Password:H"
  119. --field="Remote App Name" "")
  120.  
  121. #!/bin/sh
  122. frmdata=$(yad --title "Connect to remote computer" --form --field="Remote computer" --field="Username" --field="Password:H" --field="Domain" --field="Gateway")
  123. frmcomputer=$(echo $frmdata | awk 'BEGIN {FS="|" } { print $1 }')
  124. frmusername=$(echo $frmdata | awk 'BEGIN {FS="|" } { print $2 }')
  125. frmpassword=$(echo $frmdata | awk 'BEGIN {FS="|" } { print $3 }')
  126. frmdomain=$(echo $frmdata | awk 'BEGIN {FS="|" } { print $4 }')
  127. frmgateway=$(echo $frmdata | awk 'BEGIN {FS="|" } { print $5 }')
  128. xfreerdp /v:$frmcomputer /f /d:$frmdomain /u:$frmusername /g:$frmgateway /p:$frmpassword /cert-ignore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement