showing error while running make generic-error
Closed this issue · 1 comments
make
CC .obj/globals.o
CC .obj/getinode.o
CC .obj/tas-execv.o
CC .obj/tty.o
CC .obj/xreadlink.o
AR .obj/libtas.a
make generic-keylogger
make[1]: Entering directory '/home/iicybersecurity/Downloads/tas/fakebins/generic-keylogger'
[+] configuring generic-keylogger ...
config.h already exist, do you want to overwrite it? [y/N] y
number of lines to record [empty = store all]:
logfile (default: /tmp/.keys.txt):
[+] configuration file created in /home/iicybersecurity/Downloads/tas/fakebins/generic-keylogger/config.h
CC generic-keylogger
main.c: In function ‘main’:
main.c:44:35: error: expected ‘)’ before ‘{’ token
if ((tmp = strrchr(argv[0], '/')) {
~ ^~
)
main.c:79:1: error: expected expression before ‘}’ token
}
^
main.c:37:6: warning: unused variable ‘status’ [-Wunused-variable]
int status;
^~~~~~
main.c:35:17: warning: unused variable ‘tios’ [-Wunused-variable]
struct termios tios;
^~~~
main.c:34:10: warning: unused variable ‘tty’ [-Wunused-variable]
tas_tty tty = TAS_TTY_INIT;
^~~
In file included from config.h:6,
from main.c:11:
At top level:
../../fun/keylogger.c:2:13: warning: ‘keylogger’ defined but not used [-Wunused-function]
static void keylogger(tas_tty *tty, char **buf, size_t *n)
^~~~~~~~~
make[1]: *** [Makefile:9: ../../generic-keylogger] Error 1
make[1]: Leaving directory '/home/iicybersecurity/Downloads/tas/fakebins/generic-keylogger'
make: *** [Makefile:37: generic-keylogger] Error 2
we are using Kali Linux 2018.4 amd64
I fix the bug, update the code and try to compile it now.