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