当前位置: 首页 > Linux

ftp工具类,ftp工具类扫描下载的文件并配置其运行环境

时间:2023-04-06 04:46:57 Linux

什么是ftp工具?可能有人会回答不知道,因为一般只有从事网站管理的工作人员才会用的多一点。但不是每个人都是天生的,所以一开始你肯定会学习如何使用它。本文将告诉您如何通过使用ftp工具扫描下载的文件来配置其运行环境。使用的工具:IIS7服务器管理工??具说实话,这个工具是一个比较不错的管理工具。除了批量管理,里面还有很多其他的功能。主要功能是功能比较全面。相信大多数使用过的网站人员都不陌生。还可以定时上传下载,定时备份,自动更新。节省您花在更新上的所有时间。IIS7服务器管理工??具除了ftp上的这么多功能外,还有其他比较实用的功能。适用于Windows和Liunx操作系统。还支持Vnc和Ftp批量操作。同时还具有同步运行、到期提醒、数据安??全、定时执行等功能。很喜欢,用起来比较方便。下载地址:IIS7服务器管理工??具FTP扫描器记录/*FTPScan?1996KitKnox利用FTP协议中的错误,允许用户连接到任意IP地址和端口。特点:无法追踪的端口扫描。绕过防火墙!示例用法:ftp-scanftp.cdrom.com127.0.0.101024这将从ftp.cdrom.com的端口0扫描IP127.0.0.1到1024*/includeincludeincludeincludeincludeincludeincludeintsock;charline[1024];voidrconnect(char*server){structsockaddr_insin;structhostent*hp;hp=gethostbyname(服务器);if(hp==NULL){printf(“未知主机:%s\n”,server);退出(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);连接(sock,(structsockaddr*)&sin,sizeof(sin));}voidlogin(void){charbuf[1024];sprintf(buf,“USERftp\n”);发送(袜子,buf,strlen(buf),0);睡觉(1);sprintf(buf,“通过用户@\n”);发送(袜子,buf,strlen(buf),0);}voidreadln(void){inti,done=0,w;chartmp[1];sprintf(行,"");我=0;while(!done){w=read(sock,tmp,1,0);如果(tmp[0]!=0){line[i]=tmp[0];}if(line[i]==‘\n’){done=1;我++;}行[i]=0;}voidsendln(chars[1024]){send(sock,s,strlen(s),0);}定义UC(b)(((int)b)&0xff)voidmain(intargc,char**argv){charbuf[1024];诠释我;u_short运动,eport;注册字符*p,*a;结构主机*hp;结构sockaddr_insin;charadr[1024];if(argc!=5){printf(“用法:ftp-scanftp_serverscan_hostloporthiport\n”);退出(-1);}hp=gethostbyname(argv[2]);if(hp==NULL){printf(“未知主机:%s\n”,argv[2]);退出(0);}bzero((char*)&sin,sizeof(sin));bcopy(hp->h_addr,(char*)&sin.sin_addr,hp->h_length);rconnect(argv[1]);/*立即登录到服务器_/login();/_确保我们在*/for(i=0;i<200;i++){readln();if(strstr(line,“230Guest”)){printf("%s",line);我=200;}}a=(char*)&sin.sin_addr;运动=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]));对于(i=sport;i