主机ftp软件,主机ftp软件扫描下载文件配置详情

ftp软件是什么软件,可能有人会回答说不知道,因为一般只有从事网站管理的工作者会使用的多一点。但不是每个人生来就会的,所以刚开始肯定都会学习怎么使用ftp软件。这篇文章就来告诉大家主机ftp软件登录连接配置其运行环境的办法。

使用工具:IIS7服务器管理工具

说实话,这个工具算是比较好的管理工具了。里面的功能除了批量管理,还有很多别的功能,主要也是功能也比较全面,相信大多数使用的网站工作人员都比较熟悉了。它里面还能够定时上传下载、定时备份和主动更新。把你花在更新上的时间都省了。

IIS7服务器管理工具除了在ftp上面有这么多的功能以外,它别的功能也都是比较实用的。适用在Windows和liunx操作系统。还支持Vnc和Ftp批量操作。同时它还具有同步操作、到期提醒、数据安全和定期执行的功能。我是挺喜欢的,使用比较便捷。

下载地址:IIS7服务器管理工具
image
image

FTP扫描器记录

/*

  • FTP Scan (C) 1996 Kit Knox

*

  • Exploits bug in FTP protocol that allows user to connect to arbritary
  • IP address and port.

*

  • Features: Untraceable port scans.  Bypass firewalls!

*

  • Example usage:

*

  • ftp-scan ftp.cdrom.com 127.0.0.1 0 1024

*

  • This will scan IP 127.0.0.1 from ftp.cdrom.com from port 0 to 1024

*

*/

include <stdio.h>

include <stdlib.h>

include <sys/param.h>

include <sys/socket.h>

include <netinet/in.h>

include <netdb.h>

include <stdarg.h>

int sock;

char line[1024];

void rconnect(char *server)

{

struct sockaddr_in sin;

struct hostent *hp;

hp = gethostbyname(server);

if (hp==NULL) {

printf("Unknown host: %sn",server);

exit(0);

}

bzero((char*) &sin, sizeof(sin));

bcopy(hp->h_addr, (char *) &sin.sin_addr, hp->h_length);

sin.sin_family = hp->h_addrtype;

sin.sin_port = htons(21);

sock = socket(AF_INET, SOCK_STREAM, 0);

connect(sock,(struct sockaddr *) &sin, sizeof(sin));

}

void login(void)

{

char buf[1024];

sprintf(buf,"USER ftpn");

send(sock, buf, strlen(buf),0);

sleep(1);

sprintf(buf,"PASS user@n");

send(sock, buf, strlen(buf),0);

}

void readln(void)

{

int i,done=0,w;

char tmp[1];

sprintf(line,"");

i = 0;

while (!done) {

w=read(sock,tmp, 1, 0);

if (tmp[0] != 0) {

line[i] = tmp[0];

}

if (line[i] == 'n') {

done = 1;

}

i++;

}

line[i] = 0;

}

void sendln(char s[1024]) {

send(sock, s, strlen(s),0);

}

define UC(b)   (((int)b)&0xff)

void main(int argc, char **argv)

{

char buf[1024];

int i;

u_short sport,eport;

register char _p,_a;

struct hostent *hp;

struct sockaddr_in sin;

char adr[1024];

if (argc != 5) {

printf("usage: ftp-scan ftp_server scan_host loport hiportn");

exit(-1);

}

hp = gethostbyname(argv[2]);

if (hp==NULL) {

printf("Unknown host: %sn",argv[2]);

exit(0);

}

bzero((char*) &sin, sizeof(sin));

bcopy(hp->h_addr, (char *) &sin.sin_addr, hp->h_length);

rconnect(argv[1]);

/ Login anon to server /

login();

/ Make sure we are in /

for (i=0; i<200; i++) {

readln();

if (strstr(line,"230 Guest")) {

printf("%s",line);

i = 200;

}

}

a=(char *)&sin.sin_addr;

sport = atoi(argv[3]);

eport = atoi(argv[4]);

sprintf(adr,"%i,%i,%i,%i",UC(a[0]),UC(a[1]),UC(a[2]),UC(a[3]));

for (i=sport; i<eport; i++) {

sin.sin_port = htons(i);

p=(char *)&sin.sin_port;

sprintf(buf,"nPORT %s,%i,%inLISTn",adr,UC(p[0]),UC(p[1]));

sendln(buf);

sprintf(line,"");

while (!strstr(line, "150") && !strstr(line,"425")) {

readln();

}

if (strstr(line,"150")) {

printf("%i connected.n",i);

}

}

close(sock);

}

至此,以上

评论

暂无评论