Advertisement
Guest User

lexit.sh

a guest
Jun 9th, 2021
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. flex -8iCr <<-eof
  2.      int fileno (FILE *);
  3.     xa "\15"|"\12"
  4.     xb "\15\12"
  5.     %option noyywrap nounput noinput
  6.     %%
  7.     ^[A-Fa-f0-9]+{xa}
  8.     {xa}+[A-Fa-f0-9]+{xa}
  9.     {xb}[A-Fa-f0-9]+{xb}
  10.     %%
  11.     int main(){ yylex();exit(0);}
  12.     eof
  13.  
  14. yy=yy045
  15. cc -std=c89 -Wall -pipe lex.yy.c -static -o ${yy}
  16.  
  17. printf 'GET / HTTP/1.1\r\nHost: '${1}'\r\nConnection: close\r\n\r\n'|openssl s_client -connect ${1}:443 -ign_eof|./${yy}
  18.  
  19. rm lex.yy.c ${yy}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement