IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   Eggdrop, NeoStats, BNC (https://www.ircforumlari.net/eggdrop-neostats-bnc/)
-   -   Shell Firmaları için Dns.tcl (https://www.ircforumlari.net/eggdrop-neostats-bnc/37074-shell-firmalari-icin-dnstcl.html)

aSi 07 Mayıs 2010 13:32

Cevap: Shell Firmaları için Dns.tcl
 
Sağolasın..

MesqeN 12 Mart 2012 14:23

Cevap: Shell Firmaları için Dns.tcl
 
Link yenilicek Arkadaş varmıdır.

CLubber 12 Mart 2012 22:01

Cevap: Shell Firmaları için Dns.tcl
 
PHP- Kodu:

 
bind pub 
- !dns lookup:do_lookup
if {[catch {exec which nslookuplookpath]} {
  
putlog "$host/IP Banner and dnslookup proc disabled, error:\n$lookpath"
  
return 0
} else {
  
proc dnslookup {host} {
    global 
lookpath
    set name 
"Unknown"set ip "Unknown"set errmsg "Unknown";
    
set server_lines 0
    set $host 
[lindex [string tolower $host0]
    if {[catch {
exec $lookpath [lindex $host 0]} buff]} {
      foreach 
line [split $buff \n] {
 if {[
string first "${host}:" $line] != -1} {
   
set errmsg [string trim [lindex [split $line :] 1]]
 }
      }
      return 
"Hata:$errmsg"
    
}
    
set buff [split $buff \n]
    
set buff [lreplace $buff 0 1]
    if {[
regexp {name = (.*)\.} $buff -> name]} { set ip $host }
    foreach 
data $buff {
      switch [
lindex $data 0] {
 
"İsim:" {
   
set name [string trim [lindex [split $data :] 1]]
 }
 
"Adres:" {
   
set ip [string trim [lindex [split $data :] 1]]
 }
 
"Adres:" {
   
set ip [string trim [lindex [split $data :] 1]]
 }
      }
    }
    return 
"${name}:${ip}"
  
}
}
proc lookup:do_lookup {ni uh ha chan text} {
  if {[
llength $text] > 1} { return }
  if {[
onchan $text $chan]} {
    
set host_ip [dnslookup [lindex [split [getchanhost $text $chan] @] 1]]
  } else {
  
set host_ip [dnslookup $text]
  }
  
set name [lindex [split $host_ip :] 0]
  
set ip [lindex [split $host_ip :] 1]
  
puthelp "privmsg $chan :DNS Sorgulama: $text ($name -> $ip)"
  
return 1                                                 




Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 11:02.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk