Skip to content

pyzh/blackout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

at very early stage of development. nothing works except copying file
from one directory to another.

create certificates for TLS connection.

  $ python3 ca.py

check if these certificates work

start a server in one terminal

  $ python3 tls/server.py 9999

start a client in another

  $ python3 tls/client.py 9999

the server will print b'hello'

check if in-memory test works

  $ python3 tls/fake.py

check if modification to TLS protocol works

  $ python3 tls/peer.py


start tracker

  $ python3 tracker.py 10000

start one peer

  $ python3 client.py 9999 /tmp/blackout/a

start another peer

  $ python3 client.py 9998 /tmp/blackout/b

start stmp server for peer a

  $ python3 smtp.py 10025 /tmp/blackout/a

start dovecot for peer b

  $ ./run-dovecot.sh 10110 /tmp/blackout/b

to deliver message to dovecot

  $ python3 deliver.py /tmp/blackout/b

send a message

  $ python3 send.py 10025

after a few seconds, run

  $ python3 read.py 10110

this will print the message sent previously

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.4%
  • Shell 1.6%