writing ka-mitm.rb