本文介绍了“FTP Pathname Glob BO”使用FtpWebRequest时检测到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下代码连接并从ftp

服务器下载文件,但我的一些客户机器上的Symantec防病毒软件

告诉他们的计算机用FTP

Pathname Glob BO攻击Ftp服务器。有关详细信息,请参阅以下链接:




这是标准的.Net代码,所以我不是理解为什么它会触发

这样的回应。此外,对该名称的其他搜索几乎没有任何结果。


我唯一可以猜到的是,这是因为我正在使用/%2E%2E /来

向上移动几个目录。但是Uri类删除了/../,所以我不得不使用前者来使用
。而且我必须从ftp

登录最初放置我的位置向上移动两个目录。


private void Form1_Load(object sender,EventArgs e)

{

Uri ftpConnectionString = new Uri(" ftp://192.168.1.1/%2E%2E/%2E%2E/SIF1/IN");

FtpWebRequest ftpConnection =

(FtpWebRequest)FtpWebRequest.Create(ftpConnectionS tring);


ftpConnection.Credentials = new NetworkCredential(" username" ,密码;;

ftpConnection.KeepAlive = false;

ftpConnection.UseBinary = true;

ftpConnection.UsePassive = false;

ftpConnection.Method = WebRequestMethods.Ftp.GetFileSize;


使用(FtpWebResponse ftpResponse =

(FtpWebResponse)ftpConnection.GetResponse() )

{

long fileSize = ftpResponse.ContentLength;

ftpResponse.Close();

MessageBox.Show (fileSize.ToString());

}

}

}

I am using the following code to connect to and download files from an ftp
server, but the Symantec anti-virus software on some of my customers machines
tells them that their computers are attacking the Ftp server with "FTP
Pathname Glob BO". See the following link for more info:

http://www.symantec.com/avcenter/att...gs/s20430.html

This is standard .Net code, so I''m not understanding why it would trigger
such a response. Also, other searching on that name brings up almost nothing.

The only thing that I can guess is that it''s because I''m using /%2E%2E/ to
move up a couple of directories. But the Uri class removes /../, so I had to
use the former. And I do have to move up two directories from where the ftp
login initially places me.

private void Form1_Load(object sender, EventArgs e)
{
Uri ftpConnectionString = new Uri("ftp://192.168.1.1/%2E%2E/%2E%2E/SIF1/IN");
FtpWebRequest ftpConnection =
(FtpWebRequest)FtpWebRequest.Create(ftpConnectionS tring);

ftpConnection.Credentials = new NetworkCredential("username", "password");
ftpConnection.KeepAlive = false;
ftpConnection.UseBinary = true;
ftpConnection.UsePassive = false;
ftpConnection.Method = WebRequestMethods.Ftp.GetFileSize;

using (FtpWebResponse ftpResponse =
(FtpWebResponse)ftpConnection.GetResponse())
{
long fileSize = ftpResponse.ContentLength;
ftpResponse.Close();
MessageBox.Show(fileSize.ToString());
}
}
}

推荐答案



SIF

SIF



当您登录时,它会让您在用户名目录中,所以你必须将两个b
$ b两个上传到SIF。其他ftp客户端都可以工作,因为他们登录然后更改目录。
。如果你能告诉我如何让

..Net库登录,导航目录,然后下载文件,我会很乐意做到这一点。那。现在我不相信他们能够支持那些

因为他们继承了WebRequest。你必须在

advance中指定整个路径。


我也无法在赛门铁克软件的任何地方找到

专门解锁我的程序和他们的技术支持,如果远远低于这个东西的b $ b。这可能属于另一个论坛,但

是否有人知道如何解锁Norton Internet Security中的程序?

When you log in, it puts you in the username directory, so you have to go up
two to the root and then down one to SIF. Other ftp clients all work because
they log in and then change directories. If you can tell me how to make the
..Net libraries log in, navigate directories, and then download files, I''d be
more than happy to do that. Right now I don''t believe they''re capable of that
because they inherit from WebRequest. You have to specify the whole path in
advance.

I also haven''t been able to find anywhere in the Symantec software to
specifically unblock my program and their tech support if far less than
helpful with this sort of thing. This might belong in another forum, but does
anyone know how to unblock a program in Norton Internet Security?



这篇关于“FTP Pathname Glob BO”使用FtpWebRequest时检测到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 02:05