Skip to content

Instantly share code, notes, and snippets.

@TakashiSasaki
Last active February 7, 2018 09:24
Show Gist options
  • Save TakashiSasaki/8dbd4ea18482df3bd2e084c5bf297f33 to your computer and use it in GitHub Desktop.
Save TakashiSasaki/8dbd4ea18482df3bd2e084c5bf297f33 to your computer and use it in GitHub Desktop.
hello-outlook-office365
*.encrypted
*.cleartext

What's this

This script is intended to be used to peep into the inbox of Outlook Online (Office365) via POP3 over TLS. A password will be encrypted by your ssh private key (~/.ssh/id_rsa) and saved as a binary file.

Prerequisites

  1. ~/.ssh/id_rsa
  2. openssl
  3. Email account on Outlook online (Office 365)

How to use it

  1. Copy 'pop-command.cleartext.example' to 'pop-command.cleartext' and set your user name and password in clear text.
  2. Run make.
  3. Delete 'pop-command.cleartext' if you want.

How to download it

git clone https://gist.github.com/8dbd4ea18482df3bd2e084c5bf297f33.git

or download zip from https://gist.github.com/TakashiSasaki/8dbd4ea18482df3bd2e084c5bf297f33

If you have any question, feel free to ask me at http://twitter.com/TakashiSasaki .

all: pop-command.encrypted
./pop-office365.sh
pop-command.encrypted: pop-command.cleartext
openssl rsautl -encrypt -inkey ~/.ssh/id_rsa -in pop-command.cleartext >pop-command.encrypted
USER [email protected]
PASS passhogepasshoge
CAPA
STAT
QUIT
#!/bin/sh
openssl rsautl -decrypt -inkey ~/.ssh/id_rsa -in pop-command.encrypted |
openssl s_client -crlf -connect outlook.office365.com:995 -ign_eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment