emptygif
Lingua: Italiano

Tutti i linguaggi e framework

printf (Bash, zsh) Shell

Uno snippet Shell per printf (Bash, zsh) che risponde alle richieste a /pixel.gif con la GIF vuota, decodificata una sola volta all'avvio.

printf (Bash, zsh) Shell

File
pixel.sh
# %b expands the \xHH escapes (bash and zsh builtins; POSIX sh lacks \x - use base64 -d).
printf '%b' '\x47\x49\x46\x38\x39\x61\x01\x00\x01\x00\x80\x00\x00\xff\xff\xff\x00\x00\x00\x21\xf9\x04\x01\x00\x00\x00\x00\x2c\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02\x44\x01\x00\x3b' > pixel.gif

Abbiamo eseguito questo snippet e confrontato i byte che ha restituito.

Sito ufficiale: printf (Bash, zsh)

Altro in Shell