logo

tls-shake

SSL/TLS False Handshake client for testing server’s configurationgit clone https://hacktivis.me/git/tls-shake.git

mkfile (886B)


  1. MKSHELL=/bin/sh
  2. CC=cc
  3. CFLAGS="-Wpedantic -Wall -Wextra -Wformat -O2 -Wno-unused"
  4. BSD_FLAGS=`pkg-config --cflags --libs libbsd-overlay` # Unneeded on *BSD systems
  5. DESTDIR=""
  6. PREFIX="/usr/local"
  7. BINDIR=$PREFIX"/bin"
  8. bins=`ls -d src/*.c | sed -e 's;src;bin;' -e 's;\.c$;;'`
  9. all:V: $bins
  10. install:V: all
  11. for bin in $bins; do cp $bin $DESTDIR/$BINDIR/; done
  12. clean:V:
  13. rm -f $bins
  14. rm -f src/tls-parameters-4.h
  15. bin/&: src/&.c
  16. $CC $CFLAGS -std=c99 -D_POSIX_C_SOURCE=200809L -DDEBUG src/$stem.c -o bin/$stem
  17. bin/client-hello: src/client-hello.c src/tls-parameters-4.h
  18. $CC $CFLAGS -std=c99 -D_POSIX_C_SOURCE=200809L -DDEBUG $BSD_FLAGS src/client-hello.c -o bin/client-hello
  19. src/tls-parameters-4.h: tls-parameters-4.csv
  20. grep ',TLS_' tls-parameters-4.csv | cut -b 4,5,9,10 | awk 'BEGIN { print "int ciphers[] = {" } { print " 0x"$1"," } END { print "};" }' > src/tls-parameters-4.h