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/)
-   TCL Scriptler (https://www.ircforumlari.net/tcl-scriptler/)
-   -   Proxy.tcl (https://www.ircforumlari.net/tcl-scriptler/446728-proxytcl.html)

qeweSe 26 Ocak 2012 13:32

Proxy.tcl
 
PHP- Kodu:

##### Ayarlar
set bot(prxydizin"scripts/db/proxy.db"
set bot(logchan"#MyLOG"
set bot(bansure"1h"

bind time "* * * * *"  proxy:check
bind time 
"* * * * *"  db:yenile

package 
require http
proc db
:yenile {type} {
       global 
bot server
       
if {[file exists "$bot(prxydizin)"]} {
               
set prxyfile [open "$bot(prxydizin)" r]
               
set prxylines [split [read $prxyfile"\n"]
               catch {
close $prxyfile}
               
set ::proxyliste ""
               
set count 1
               
foreach proxy $prxylines {
                       if {
$proxy != ""} {
                               
append ::proxyliste " [lindex $proxy 0]"
                               
incr count
                       
}

               }
       }
}


proc proxy:check {nick uhost hand chan text} {
    global 
server botnick bot server
       set havasite 
"http://torstatus.blutmagie.de/"
       
set sayfa ""
       
catch {set sayfa [::http::geturl $havasite -timeout 5000]} error
       
if {[string match -nocase "*couldn't open socket*" $error]} {
               ::
http::cleanup $sayfa
               
return
       }
       if { [::
http::status $sayfa] == "*timeout*" } {
               ::
http::cleanup $sayfa
               
return
       }
       
set html [::http::data $sayfa]
       ::
http::cleanup $sayfa
       set gh 
[open $bot(prxydizinw]
       foreach 
[split $html \n] {
                       if {[
string match -nocase "*</small></td></tr></table></td><td*" $y]} {
               
regexp -- {\/cgi\-bin\/.+>(.*?)</a>} $y ip
                               puts $gh 
"$ip"
                       
}
       }
       
flush $gh
       
catch {closer $gh}
}

proc noticeler {from keyword arg} {
       global 
botnick bot server girTas
       
if {[string match "*Client connecting on port*" $arg] } {
               
set nick [lindex $arg 9]
               
set host [string range [lindex [split [lindex $arg 10"@"10 end-1]
               
set port [string range [lindex [split [lindex $arg 8":"00 end]
               
set ident [lindex [split [lindex [split [lindex $arg 10] @] 0] (] 1]
               if {
$bot(prxydurum) == "on"} {
                       
utimer 4 [list putquick "NOTICE $nick :Lütfen bekleyin; bilgileriniz taraniyor.."]
                       
utimer 4 [list putquick "NOTICE $nick :Bu işlem yaklaşik 7 saniye dürmektedir."]
                       
utimer 5 [list putquick "x0 add $nick"]
                       if {[
info exists ::proxyliste]} {
                               foreach 
prxy $::proxyliste {
                                       if {[
string match -nocase $prxy $host]} {
                                               
putquick "GZLINE *@$host $bot(bansure) Sunucumuza wingate/socks/tor/proxy kullanarak giris yapamazsiniz."
                                               
putquick "PRIVMSG $bot(logchan) :\002***\002 PROXY Giriş : Nick:\002$nick\002 IP: \002$host\002 Ident: \002$ident\002 PORT:\002$port\002"
                                               
return 0
                                       
}
                               }
                       }
                       
utimer 6 [list putquick "NOTICE $nick :$nick kontrol den başarılıbir şekilde gectiniz hoş sohbetler.."]
                       
utimer 7 [list putquick "PRIVMSG OperServ RAW SVSJOIN $nick$bot(JChanKanallar)"]
               }
               
putquick "PRIVMSG $bot(logchan) :\002***\002 Güvenli Baglanti: Nick:\002$nick\002 Ident: \002$ident\002 Host: \002$host\002 Port:\002$port\002"
               
return 0
       
}
}

putlog "#####################################"
putlog "#        PROXY.TCL Yüklendi          #"
putlog "#                                    #"
putlog "#        Coder by qeweSe             #"
putlog "#                                    #"
putlog "#####################################" 


CLubber 27 Ocak 2012 21:11

Cevap: Proxy.tcl
 
Kod:

utimer 7 [list putquick "PRIVMSG OperServ RAW SVSJOIN $nick$bot(JChanKanallar)"]
Nereye çekiyor bot kullanıcıları ?

qeweSe 28 Ocak 2012 10:06

Cevap: Proxy.tcl
 
en üste 2 kod eklemeyi unutmuşum

TCL nin başina
PHP- Kodu:

set bot(prxydurum"on"
set bot(JChanKanallar"#sohbet,#oyun,#radyo" 


ZamaN 05 Şubat 2012 15:45

Cevap: Proxy.tcl
 
Yaptım ama çalışmadı

qeweSe 05 Şubat 2012 17:38

Cevap: Proxy.tcl
 
aldiginiz hata nedir

AppendiX 05 Şubat 2012 18:07

Cevap: Proxy.tcl
 
cek.tcl kullan yoksa bana ulaş vereyim.

ZamaN 06 Şubat 2012 00:29

Cevap: Proxy.tcl
 
Bot sunucuya giriyor ama hiç bir tarama gercekleştirmiyor hata almıyorum

ZamaN 06 Şubat 2012 00:56

Cevap: Proxy.tcl
 
Alıntı:

AppendX Nickli Üyeden Alıntı (Mesaj 1041021040)
cek.tcl kullan yoksa bana ulaş vereyim.

Peki abi

house 07 Şubat 2012 02:53

Cevap: Proxy.tcl
 
Onla kanala çektik diyelim hadi de, proxy taraması da yapmıyo ki?

o1KnoppiX 07 Şubat 2012 13:13

Cevap: Proxy.tcl
 
Bence Anlamsız bir şey :)


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

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