-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6afcbdd
commit 74dc788
Showing
1 changed file
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,40 @@ | ||
Import-Module .\Transferetto.psd1 -Force | ||
|
||
Set-FTPTracing -Enable | ||
# Login via UserName/Password via proxy | ||
$Client = Connect-FTP -Server 'test.rebex.net' -Verbose -Username 'demo' -Password 'password' -ProxyHost '192.252.216.81' -ProxyPort 4145 -ProxyType FtpClientSocks5Proxy | ||
$List = Get-FTPList -Client $Client | ||
$List | Format-Table | ||
Disconnect-FTP -Client $Client | ||
# # Login via UserName/Password via proxy | ||
# $Client = Connect-FTP -Server 'test.rebex.net' -Verbose -Username 'demo' -Password 'password' -ProxyHost '192.252.216.81' -ProxyPort 4145 -ProxyType FtpClientSocks5Proxy | ||
# $List = Get-FTPList -Client $Client | ||
# $List | Format-Table | ||
# Disconnect-FTP -Client $Client | ||
|
||
|
||
# $Client = Connect-FTP -Server 'test.rebex.net' -Verbose -Username 'demo' -Password 'password' | ||
# $List = Get-FTPList -Client $Client | ||
# $List | Format-Table | ||
# Receive-FTPFile -Client $Client -RemotePath '/readme.txt' -LocalPath 'C:\Temp\readme.txt' | ||
# Disconnect-FTP -Client $Client | ||
|
||
|
||
# Login via UserName/Password with Proxy | ||
$Client = Connect-FTP -Server 'test.rebex.net' -Verbose -Username 'demo' -Password 'password' -ProxyHost '104.37.135.145' -ProxyPort 4145 -ProxyType FtpClientSocks4aProxy | ||
$List = Get-FTPList -Client $Client | ||
$List | Format-Table | ||
Disconnect-FTP -Client $Client | ||
#Remove-Item -LiteralPath 'C:\Temp\readme.txt' | ||
#Receive-FTPFile -Client $Client -RemotePath '/readme.txt' -LocalPath 'C:\Temp\readme.txt' | ||
Disconnect-FTP -Client $Client | ||
|
||
|
||
# Set-FTPTracing -Enable | ||
# # Login via UserName/Password | ||
# $Client = Connect-FTP -Server 'ftp.dlptest.com' -Verbose -Username 'dlpuser' -Password 'rNrKYTX9g7z3RgJRmxWuGHbeu' | ||
# $List = Get-FTPList -Client $Client | ||
# $List | Format-Table | ||
# $List.Count | ||
# Disconnect-FTP -Client $Client | ||
|
||
# # Login via UserName/Password | ||
# $Client = Connect-FTP -Server 'ftp.dlptest.com' -Verbose -Username 'dlpuser' -Password 'rNrKYTX9g7z3RgJRmxWuGHbeu' -ProxyHost '104.37.135.145' -ProxyPort 4145 -ProxyType FtpClientSocks4aProxy | ||
# $List = Get-FTPList -Client $Client | ||
# $List | Format-Table | ||
# $List.Count | ||
# Disconnect-FTP -Client $Client |