2 ms·
If you have nc you just need to reimplement echo.c and the task is over, as you can fetch busybox in several ways. Heck, a simple while loop over stdin would b
by anthk 7y ago
If you have nc you just need to reimplement echo.c and the task is over, as you can fetch busybox in several ways.
Heck, a simple while loop over stdin would be enough.
From the K&R book:
#include <stdio.h>
int main(){
int c;
while((c =getchar()) != EOF){
putchar(c);
}
}
Or just run nc from a < redirect, but, the shell could restrict that maybe.