klange / cgiserver Goto Github PK
View Code? Open in Web Editor NEWA simple CGI webserver written in C with no dependencies.
A simple CGI webserver written in C with no dependencies.
Hi!
I would like to congratulate you on the project. I needed something simple and functional to add some functionality in a small project, your code answered perfectly.
The server as it stands now will happily display things like /../
, /../../
, or ../../../../../../../../../../etc/passwd
. (Note that most modern browsers and even curl will refuse to make such requests, but, say, HTTPie won’t, and there’s always telnet.) Such requests should be treated as if PAGES_DIRECTORY
is the filesystem root.
Hi Klange,
Thank you for put the cgiserver online. I compiled today on my Linux box, run cgiserver. The server runs on my localhost but it wont parse .php file, it spew out the script. Is it possible to add path to php interpreter instead of on pipe or socket?
That way we can use it for any cgi executable and make it more flexible and more generic.
Many thanks!
Hear from you soon!
God blesses!!!
Best regards,
Sanyaade
Other ports (like 8080) work ok.
output of sudo lsof -i:80
is empty. What can I do?
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.