Posts

Showing posts with the label telnet

reading e-mail using telnet

Reading an e-mail in telnet is very efficient way if you're in a terminal. Using telnet, this is how we can read e-mail. #> telnet mail.example.com 110 Trying 111.143.22.11... Connected to mail.example.com. Escape character is '^]'. +OK Dovecot ready. user user@example.com +OK pass myPass +OK Logged in. list +OK 336 messages: 1 12235 2 6577 3 14192 4 12238 5 5575 6 16008 7 8474 . retr 2 +OK 6577 octets Return-path: Envelope-to: useranother@ example.com Delivery-date: Thu, 05 Jan 2012 16:17:35 -0700 Received: from ip20-166-235-224.ph.ph.cox.net ([20-166-235-224]:2273 helo=D99DBHK1) by example.com with esmtp (Exim 4.69) (envelope-from ) id 1RiwYw-0006bM-RB for user@ example.com; Thu, 05 Jan 2012 16:17:35 -0700 From: "Mike Batista" < username@ example.com> To: "'My Test anonymous name'" < username@ example.com> Subject: test Date: Thu, 5 Jan 2012 16:17:41 -0700....

Test Web Services thru Telnet

I use Mac OS X here, so other OS's might vary but I think in Linux, it is still ppp0 (but not sure with that) for VPN connection interface. 1. First, I use Wireshark in order to capture the packets. 2. Afterwards, I use the ppp0 interface (Mac OS X) then start 3. Now connect thru telnet by example: telnet 192.168.10.51 8080 4. Then paste the example POST POST /api/soap/v2/loyaltyaccount HTTP/1.0 Host: 192.168.10.232:8080 User-Agent: NuSOAP/0.7.3 (1.114) Content-Type: text/xml; charset=ISO-8859-1 SOAPAction: "" Content-Length: 1189 <s:Envelope xmlns:s=' http://schemas. xmlsoap.org/soap/envelope/ '>    <s:Header>       <wsse:Security s:mustUnderstand='1' xmlns:wsse=' http://docs.oasis- open.org/wss/2004/01/oasis- 200401-wss-wssecurity-secext- 1.0.xsd '>         <wsu:Timestamp xmlns:wsu=' http://docs.oasis- open.org/wss/2004/01/oasis- 200401-wss-wssecurity-utility- 1.0.xsd '>        ...