Created
September 21, 2016 06:58
-
-
Save hreese/d929a2884d0c5d6c9dce6ce75a498db3 to your computer and use it in GitHub Desktop.
Minimal shell for ssh portforwarding only
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <stdio.h> | |
#define ANSI_COLOR_RED "\x1b[31m" | |
#define ANSI_COLOR_GREEN "\x1b[32m" | |
#define ANSI_COLOR_YELLOW "\x1b[33m" | |
#define ANSI_COLOR_BLUE "\x1b[34m" | |
#define ANSI_COLOR_MAGENTA "\x1b[35m" | |
#define ANSI_COLOR_CYAN "\x1b[36m" | |
#define ANSI_COLOR_RESET "\x1b[0m" | |
int main(int argc, char const *argv[]) { | |
printf(ANSI_COLOR_RED "ssh port forwarding only" ANSI_COLOR_RESET "\n"); | |
for(;;) pause(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment