vbirds / tinyftp Goto Github PK
View Code? Open in Web Editor NEWTinyftpd是用c语言实现的简单、快速、高效的Linux FTP服务器,只需简单的配置,就可快速的将主机变成高效的FTP服务器。
License: Other
Tinyftpd是用c语言实现的简单、快速、高效的Linux FTP服务器,只需简单的配置,就可快速的将主机变成高效的FTP服务器。
License: Other
环境:
CentOS 7 + gcc version 4.8.5
已弃坑。
推荐这个☞dasima/ftpServer: mini版FTP服务器实现文件上传和下载、断点续传、限速等功能
一次性通过编译并成功运行
Hey, sir.
Buffer overflow exists in the text variable of the do_mkd function in the ftpproto.c file.Overwrite ebp when new folder and absolute path name length exceeds 412.
char text[200] = {0}; //it just 200 byte
char dir[200] = {0};
getcwd(dir, sizeof(dir));
sprintf(text, ""%s%s" created", dir, sess->arg);//it more then 200
用gdb调试,进入到commsocket.c的inet_pton(AF_INET, address, &servaddr.sin_addr);这行时报错找不到文件inet_pton.c
测试如下:
#include "str.h"
#include <stdio.h>
#include <stdlib.h>
int main()
{
const char *s = "0700";
printf( "%d\n", str_octal_to_uint( s ) );
printf( "%ld\n", strtol( s, NULL, 8 ) );
return 0;
}
代码里判断数字非 '0' 应该只对第一位字符有效
str_split()里的是找到最后一个空格,这样带空格的文件/文件目录就会出问题。
能不能增加用户名、密码和限定目录访问之类的功能?
似乎没有这方面的功能啊?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.