TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

JPEG File Extraction from stdin

1 pointsby textmodealmost 4 years ago
<p><pre><code> cat &gt; 056.l &#x2F;* JPEG file carver *&#x2F; #define echo ECHO #define jmp BEGIN int fileno(FILE *); xa &quot;\xFF\xD8&quot; xb &quot;\xFF\xD9&quot; %s xa %option noyywrap nounput noinput %% {xa} echo;jmp xa; &lt;xa&gt;{xb} echo;jmp 0; &lt;xa&gt;.|\n|\r echo; .|\n %% int main(){ yylex();exit(0) ;} ^D flex 056.l cc -static -o yy056 lex.yy.c</code></pre>

no comments

no comments