🔔 Çevrimdışı bildirim almak ister misiniz?
Bir konuya etiketlendiğinizde, özel mesaj aldığınızda, bir mesajınız alıntılandığında forumda olmasanız bile anlık bildirim almak için lütfen izni verin.
alias sorgula {
if (!$1) { echo -a Lütfen bir IP giriniz. Örnek: /sorgula 1.2.3.4 | return }
set %ipaddr $1
set %ipdata $null
echo -a IP %ipaddr bilgileri sorgulanıyor...
sockopen -e iplookup ipwho.is 80
}
on *:SOCKOPEN:iplookup: {
if ($sockerr) { echo -a Sunucuyla bağlantı kurulamıyor. | sockclose $sockname | return }
sockwrite -n $sockname GET / $+ %ipaddr HTTP/1.1
sockwrite -n $sockname Host: ipwho.is
sockwrite -n $sockname User-Agent: mIRC
sockwrite -n $sockname Connection: close
sockwrite -n $sockname $crlf
}
on *:SOCKREAD:iplookup: {
if ($sockerr) { echo -a Sunucuyla bağlantı hatası. | sockclose $sockname | return }
var %tmp
sockread %tmp
if (%tmp != $null) {
; HTTP headerları geç
if (!$regex(%tmp,/^(HTTP\/|Content-|Server:|Date:|Connection:)/i)) {
set %ipdata %ipdata $+ %tmp
}
}
}
on *:SOCKCLOSE:iplookup: { .timer 1 1 showdata }
alias showdata {
if (%ipdata == $null) { echo -a Gösterilecek veri yok. | unset %ipaddr | unset %ipdata | return }
var %type = Bulunamadı
var %asn = Bulunamadı
var %country = Bulunamadı
var %region = Bulunamadı
var %city = Bulunamadı
var %org = Bulunamadı
var %domain = Bulunamadı
var %continent = Bulunamadı
if ($regex(%ipdata,/"type":"([^"]+)"/i)) { set %type $regml(1) }
if ($regex(%ipdata,/"continent":"([^"]+)"/i)) { set %continent $regml(1) }
if ($regex(%ipdata,/"asn":\s*([0-9]+)/i)) { set %asn $regml(1) }
if ($regex(%ipdata,/"isp":"([^"]+)"/i)) { set %org $regml(1) }
if ($regex(%ipdata,/"country":"([^"]+)"/i)) { set %country $regml(1) }
if ($regex(%ipdata,/"region":"([^"]+)"/i)) { set %region $regml(1) }
if ($regex(%ipdata,/"city":"([^"]+)"/i)) { set %city $regml(1) }
if ($regex(%ipdata,/"domain":"([^"]+)"/i)) { set %domain $regml(1) }
if ($regex(%ipdata,/"hostname":"([^"]+)"/i)) { set %domain $regml(1) }
echo -a 3,1[ K U L L A N I C I B İ L G İ L E R İ ]
echo -a 9ASN: 10 $utf2tr(%asn)
echo -a 9Ülke: 10 $utf2tr(%country)
echo -a 9Kıta: 10 $utf2tr(%continent)
echo -a 9Bölge: 10 $utf2tr(%region)
echo -a 9Şehir: 10 $utf2tr(%city)
echo -a 9ISP: 10 $utf2tr(%org)
echo -a 9IP Türü: 10 $utf2tr(%type)
echo -a 9Alan Adı: 10 $utf2tr(%domain)
unset %ipaddr
unset %ipdata
}
alias utf2tr {
var %text = $1-
%text = $replace(%text,\u0130,İ,\u0131,ı,\u00dc,Ü,\u00fc,ü,\u011e,Ğ,\u011f,ğ,\u015e,Ş,\u015f,ş,\u00d6,Ö,\u00f6,ö,\u00c7,Ç,\u00e7,ç)
return %text
}
__________________ char *adres = [Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...] for(int i = 0; *(adres + i); i++) { putchar(toupper(adres[i])); }