~[2006:Dec:02:Sat:12:34]%telnet www.ie.u-ryukyu.ac.jp 80Trying 133.13.48.8... Connected to shongane.ie.u-ryukyu.ac.jp. Escape character is '^]'. GET /~j05004/index.html HTTP/1.0 HTTP/1.1 200 OK Date: Sat, 02 Dec 2006 03:34:51 GMT Server: Apache/2.0.55 (Unix) mod_ssl/2.0.55 OpenSSL/0.9.7i PHP/5.1.2 Last-Modified: Sat, 02 Dec 2006 02:43:02 GMT ETag: "3c03d6-2b6-1341f980" Accept-Ranges: bytes Content-Length: 694 Cache-Control: max-age=60 Expires: Sat, 02 Dec 2006 03:35:51 GMT Connection: close Content-Type: text/html j05004 HomePage TAKUTOのページ
課題のページ
趣味のページ
Gnuplotのページ
わたしのプレゼンファイル
琉球大学情報工学科のページ Connection closed by foreign host. ~[2006:Dec:02:Sat:12:34]%
●関数の動作説明tcp[2006:Dec:08:Fri:12:37]%./client Connected. Input Keyword = warning: this program uses gets(), which is unsafe. yama Keyword = [yama] / Data = [kawa] Input Keyword = 123 Keyword = [123] / Data = [456] Input Keyword = hoge Keyword = [hoge] / Data = [] Input Keyword = Disocnnected. tcp[2006:Dec:08:Fri:12:37]%
%dserver now waiting for client connectターミナル2
%dclient Connected. Input Keyword = warning: this program uses gets(), which is unsafe. yama Keyword = [yama] / Data = [kawa] Input Keyword = shiro Keyword = [shiro] / Data = [kuro] Input Keyword = xxxx Keyword = [xxxx] / Data = [yyyy] Input Keyword = Disocnnected. %ターミナル1
%dserver now waiting for client connect Connected from 127.0.0.1 %・inetdを使った場合では、クライアントが要求する度にサーバを立ち上げるのでシステムリソースは減少するが、レスポンスが遅くなる。 inetdを使わない場合では、サーバは常に接続されているのでレスポンスは速くなるがシステムリソースは増加する。
%./http-client http://www.ie.u-ryukyu.ac.jp/ http://www.ie.u-ryukyu.ac.jp/ を取得します。 HTTP/1.1 400 Bad Request Date: Mon, 11 Dec 2006 05:58:51 GMT Server: Apache/2.0.55 (Unix) mod_ssl/2.0.55 OpenSSL/0.9.7i PHP/5.1.2 Content-Length: 356 Connection: close Content-Type: text/html; charset=iso-8859-1 400 Bad Request Bad Request
Your browser sent a request that this server could not understand.
〜省略〜
]%portscan Address = "127.0.0.1" Portscan started.. Open TCP Port: 80 Open TCP Port: 427 Open TCP Port: 548 Open TCP Port: 631 Portscan find them. %
% bufovf before buf(Len:0) = dmy(Len:0) = 12345678901234567890 after buf(Len:20) = 12345678901234567890 dmy(Len:4) = 7890 %実行結果より、bufサイズを超えたデータはdmyに書き込まれていることが確認できる。
% bufovf before buf(Len:0) = dmy(Len:0) = 12345678901234567890 after buf(Len:19) = 1234567890123456789 dmy(Len:0) = %結果からも分かるように、