Skip to content

Instantly share code, notes, and snippets.

@smirn0v
smirn0v / telnet-imap
Created February 7, 2016 20:51 — forked from gustavohenrique/telnet-imap
playing with gmail via telnet
openssl s_client -crlf -connect imap.gmail.com:993
tag login user@gmail.com passwordhere
tag list "" "*"
tag select "inbox"
tag fetch 1:3 body[header]
tag fetch 3 body[header]
tag fetch 3 body[text]
tag fetch 2 all
tag fetch 2 fast
tag fetch 2 full
#!/usr/bin/env perl
use strict;
use warnings;
use autodie qw(:all);
my $str = do { local $/; <STDIN> };
$str =~ s/[^0-9a-fA-F]//gm;
$str = pack('H*', $str);