{"id":372,"date":"2010-05-29T18:18:12","date_gmt":"2010-05-29T15:18:12","guid":{"rendered":"http:\/\/www.notsayfam.com\/?p=372"},"modified":"2017-01-24T20:10:11","modified_gmt":"2017-01-24T18:10:11","slug":"vb-net-uzerinde-telnet-uygulamasi","status":"publish","type":"post","link":"https:\/\/www.notsayfam.com\/?p=372","title":{"rendered":"vb.net \u00fczerinde telnet uygulamas\u0131"},"content":{"rendered":"<p>A\u011f \u00fczerinde g\u00fcn i\u00e7erisinde networke dahil olmu\u015f bilgisayarlar\u0131n hangi switchler \u00fczerinden sisteme dahil olduklar\u0131n\u0131 bulmak i\u00e7in yazd\u0131\u011f\u0131m bir uygulama.<\/p>\n<p>Uygulaman\u0131n \u00e7al\u0131\u015fma mant\u0131\u011f\u0131:<br \/>\n\u00c7al\u0131\u015ft\u0131r\u0131ld\u0131\u011f\u0131 dizinde 2 adet dosyaya ihtiya\u00e7 duyuyor ayarlar.ini ve switchler.txt. Switchler.txt switchlerin ip leri yer almakta. ayarlar.ini dosyas\u0131nda ise switchlerin \u015fifreleri (hepsi ortak olmal\u0131), \u00c7al\u0131\u015ft\u0131r\u0131lacak komut (sh mac-address-table), database bilgileri ve filtreleme, loglama yap\u0131lacak m\u0131 gibi bilgiler girilmeli.<\/p>\n<p>Loglama yap\u0131lacak se\u00e7ilirse \u00e7al\u0131\u015ft\u0131r\u0131ld\u0131\u011f\u0131 dizinde Log klas\u00f6r\u00fcn\u00fcn i\u00e7erisine switchlerin konsollar\u0131ndan gelen verileri ve filtreleme sonucu olu\u015fan dosyalar\u0131n \u00e7\u0131kt\u0131lar\u0131 yer almakta.<\/p>\n<p>Filtreleme mant\u0131\u011f\u0131 ise her switch uplink ve downlinkleri \u00fczerinden bir \u00e7ok kendi \u00fczerinde olmayan mac adresinin database \u00fczerine kay\u0131t edilmesini engellemek i\u00e7in gerekli olan k\u0131s\u0131m. Benim \u00f6rne\u011fimde Fa (Fast Ethernet) ve Lo (Long Reach Ethernet) portlar\u0131ndaki mac adreslerini almak i\u00e7in filtre girilmi\u015f durumda.\u00a0 En fazla 3 adet filtre i\u00e7in geli\u015ftirdim.<\/p>\n<p>Program k\u0131saca Cisco switchlere telnet ba\u011flan\u0131p Fa,Lo portlar\u0131ndaki bilgilerin al\u0131n\u0131p veritaban\u0131na kay\u0131t edilmesini sa\u011fl\u0131yor. \u0130sterseniz zamanlamay\u0131 a\u00e7\u0131p her 120 saniyede bir tekrar liste almas\u0131n\u0131 ve de\u011fi\u015fenleri yazmas\u0131n\u0131 sa\u011flayabilirsiniz.<\/p>\n<p>SQL i\u00e7in a\u015fa\u011f\u0131daki alanlara ihtiya\u00e7 duyulmakta;<\/p>\n<p>DROP TABLE IF EXISTS `mac`;<br \/>\nCREATE TABLE `mac` (<br \/>\n`id` int(11) NOT NULL AUTO_INCREMENT,<br \/>\n`switch` text,<br \/>\n`mac` text,<br \/>\n`vlanid` text,<br \/>\n`tarama` datetime DEFAULT NULL,<br \/>\n`port` text,<br \/>\nPRIMARY KEY (`id`)<br \/>\n) ENGINE=InnoDB AUTO_INCREMENT=507 DEFAULT CHARSET=utf8;<\/p>\n<p><a href=\"\/wp-content\/uploads\/2010\/05\/TELNET1.zip\">VB.Net Telnet Uygulamas\u0131 (vs2005)<\/a><br \/>\n<br \/>\nZip a\u00e7ma \u015fifresi : notsayfam.com<\/p>\n<p><a href=\"http:\/\/www.notsayfam.com\/wp-content\/uploads\/2010\/05\/Telnet_.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-374\" title=\"Telnet\" src=\"https:\/\/www.notsayfam.com\/wp-content\/uploads\/2010\/05\/Telnet_.jpg\" alt=\"\" width=\"527\" height=\"391\" srcset=\"https:\/\/www.notsayfam.com\/wp-content\/uploads\/2010\/05\/Telnet_.jpg 527w, https:\/\/www.notsayfam.com\/wp-content\/uploads\/2010\/05\/Telnet_-300x222.jpg 300w\" sizes=\"auto, (max-width: 527px) 85vw, 527px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A\u011f \u00fczerinde g\u00fcn i\u00e7erisinde networke dahil olmu\u015f bilgisayarlar\u0131n hangi switchler \u00fczerinden sisteme dahil olduklar\u0131n\u0131 bulmak i\u00e7in yazd\u0131\u011f\u0131m bir uygulama. Uygulaman\u0131n \u00e7al\u0131\u015fma mant\u0131\u011f\u0131: \u00c7al\u0131\u015ft\u0131r\u0131ld\u0131\u011f\u0131 dizinde 2 adet dosyaya ihtiya\u00e7 duyuyor ayarlar.ini ve switchler.txt. Switchler.txt switchlerin ip leri yer almakta. ayarlar.ini dosyas\u0131nda ise switchlerin \u015fifreleri (hepsi ortak olmal\u0131), \u00c7al\u0131\u015ft\u0131r\u0131lacak komut (sh mac-address-table), database bilgileri ve filtreleme, loglama &hellip; <a href=\"https:\/\/www.notsayfam.com\/?p=372\" class=\"more-link\">Okumaya devam et<span class=\"screen-reader-text\"> &#8220;vb.net \u00fczerinde telnet uygulamas\u0131&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,13],"tags":[],"class_list":["post-372","post","type-post","status-publish","format-standard","hentry","category-programlama","category-vb-net"],"_links":{"self":[{"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=372"}],"version-history":[{"count":6,"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":554,"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=\/wp\/v2\/posts\/372\/revisions\/554"}],"wp:attachment":[{"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.notsayfam.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}