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/)
-   mIRC Scripting Sorunları (https://www.ircforumlari.net/mirc-scripting-sorunlari/)
-   -   Proxy çekme (https://www.ircforumlari.net/mirc-scripting-sorunlari/593804-proxy-cekme.html)

Cpu 05 Haziran 2014 16:02

Proxy çekme
 
Kod:

alias ProxyList {
  ; Syntax: /ProxyList [-pageNo]
  ; eg. /ProxyList 4
  ; ----------------
  ; By Jonesy44
  ; ----------------
  ; EDIT THIS NEXT LINE FOR PROXYLIST FILE NAME!
  set %ProxyList.FileName ProxyList.dat
  ; STOP EDITING HERE!
 
  .sockclose ProxyList.1 | .sockclose ProxyList.2 | .sockclose ProxyList.3
  .remove %ProxyList.FileName
  .timerCompletedCheck 0 1 ProxyList.CompletedCheck
  var %n = 1
  echo -a 2* ProxyList: Downloading latest proxy list..
  while %n <= $iif($1 isnum 1-,$1,3) {
    sockopen $+(ProxyList.,%n) samair.ru 80
    inc %n
  }
}
alias ProxyList.CompletedCheck {
  if !$sock(ProxyList.1) || !$sock(ProxyList.2) || !$sock(ProxyList.3) {
    echo -a 4Succesfully downloaded $lines(%ProxyList.FileName) proxy addresses. Stored in $qt(%ProxyList.FileName)
    .timerCompletedCheck off
    unset %ProxyList.*
  }
}
alias ProxyList.RemoveHTML return $regsubex($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)|&[^;]+;|      /g,$null)
on *:sockopen:ProxyList.*:{
  if $sockerr { echo -a Socket error: $sock($sockname).wsmsg }
  else {
    sockwrite -nt $sockname GET $+(/proxy/time-0,$gettok($sockname,2,46),.htm) HTTP/1.1
    sockwrite -nt $sockname Host: samair.ru
    sockwrite -nt $sockname $crlf
  }
}
on *:sockread:ProxyList.*:{
  var %SocketRead
  sockread %SocketRead
  if !$sockerr {
    if $regex(%SocketRead,/(\D=\d)/g) {
      var %Index = 1,
      while %Index <= $regml(0) {
        set %ProxyList.Decode. [ $+ [ $gettok($sockname,2,46) ] ] $+(%ProxyList.Decode. [ $+ [ $gettok($sockname,2,46) ] ],$chr(32),$gettok($regml(%Index),1,61),-,$gettok($regml(%Index),2,61))
        inc %Index
      }
      echo -a 2* ProxyList: Generating decode key for page $gettok($sockname,2,46) -- 3Created key succesfully
    }
    if $regex(%SocketRead,/<tr><td>.*<\/td><\/tr>/i) {
      var %SocketRead = $remove($ProxyList.RemoveHTML(%SocketRead),document.write,$chr(40),+,")
      var %Index = 1
      while %Index <= $numtok(%SocketRead,41) {
        noop $regex($gettok(%SocketRead,%Index,41),/(\d+.\d+.\d+.\d+\:.*)/)
        var %Output = $regml(1)
        if $regml(1) {
          var %SubIndex = 1
          while %SubIndex <= $numtok(%ProxyList.Decode. [ $+ [ $gettok($sockname,2,46) ] ],32) {
            %Output = $replace(%Output,$gettok($gettok(%ProxyList.Decode. [ $+ [ $gettok($sockname,2,46) ] ],%SubIndex,32),1,45),$gettok($gettok(%ProxyList.Decode. [ $+ [ $gettok($sockname,2,46) ] ],%SubIndex,32),2,45))
            inc %SubIndex
          }
          write %ProxyList.FileName %Output
        }
        inc %Index 1
      }
    }
  }
  else echo -a Socket error: $sock($sockname).wsmsg
}

Bu kodda samair.ru sitesinden proxy çekece&#240;iz fakat 100 den fazla çekmiyor nedendir acaba

Darnasus 06 Haziran 2014 12:27

Cevap: Proxy çekme
 
Yok bir musluman evladi samair.ru icin kod editleyecek

Paint 07 Haziran 2014 02:24

Cevap: Proxy çekme
 
Kod:

alias samair {
  set %samair 1 | set %samairt $lines(ips.txt)
  sockclose samair-*
  sockopen samair-1 samair.ru 80
}

on *:sockopen:samair-*:{
  var %a $gettok($sockname,2,45),%k sockwrite -tn $sockname
  %k GET $+(/proxy/proxy-,$iif(%a > 9,%a,0 $+ %a),.htm) HTTP/1.1
  %k host: samair.ru | %k
}
on *:sockread:samair-*:{
  var %d
  sockread %d
  if <td> isin %d && <script isin %d { noop $regsubex(%d,/(\d+.\d+.\d+.\d+)/g,$ipyaz(\t))  }
  if proxycountry"> isin %d {  var %a $gettok($sockname,2,45),%b (*4Proxy Downloader*)
    if %a == 30 { echo -at %b Proxy alımı bitti. | echo -at %b Toplam proxy sayısı: $lines(ips.txt)
    echo -at %b Bu sefer çekilen farklı proxy: $calc($lines(ips.txt) - %samairt) }
    else { inc %samair | sockopen samair- $+ %samair samair.ru 80 }
    sockclose $sockname
  }
}
alias -l ipyaz if (!$read(ips.txt,w,$1)) write ips.txt $1

[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]

/samair
komutuyla çalıştırabilirsiniz.

Cpu 07 Haziran 2014 11:22

Cevap: Proxy çekme
 
Alıntı:

Paint Nickli Üyeden Alıntı (Mesaj 1041446313)
Kod:

alias samair {
  set %samair 1 | set %samairt $lines(ips.txt)
  sockclose samair-*
  sockopen samair-1 samair.ru 80
}

on *:sockopen:samair-*:{
  var %a $gettok($sockname,2,45),%k sockwrite -tn $sockname
  %k GET $+(/proxy/proxy-,$iif(%a > 9,%a,0 $+ %a),.htm) HTTP/1.1
  %k host: samair.ru | %k
}
on *:sockread:samair-*:{
  var %d
  sockread %d
  if <td> isin %d && <script isin %d { noop $regsubex(%d,/(\d+.\d+.\d+.\d+)/g,$ipyaz(\t))  }
  if proxycountry"> isin %d {  var %a $gettok($sockname,2,45),%b (*4Proxy Downloader*)
    if %a == 30 { echo -at %b Proxy alımı bitti. | echo -at %b Toplam proxy sayısı: $lines(ips.txt)
    echo -at %b Bu sefer çekilen farklı proxy: $calc($lines(ips.txt) - %samairt) }
    else { inc %samair | sockopen samair- $+ %samair samair.ru 80 }
    sockclose $sockname
  }
}
alias -l ipyaz if (!$read(ips.txt,w,$1)) write ips.txt $1

[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]

/samair
komutuyla çalıştırabilirsiniz.

Peki çekilen proxyler hash olarak eklense onları da atsak ilk girişlte :D

ek olarakda bu koda onun atma kodunu eklesek 10 numara olur

on *:snotice:*Client connecting*:.who +I $9
raw 352:*:if $read(tor.txt,w,$+(*,$4,*)) || $hget(Proxy,$4) { gzline $+(*@,$4) 1h 1IP adresinizde 4TOR/Proxy 1girişi tespit edilmiştir. }

Paint 07 Haziran 2014 12:02

Cevap: Proxy çekme
 
Alıntı:

Cpu Nickli Üyeden Alıntı (Mesaj 1041446371)
Peki çekilen proxyler hash olarak eklense onları da atsak ilk girişlte :D

ek olarakda bu koda onun atma kodunu eklesek 10 numara olur

on *:snotice:*Client connecting*:.who +I $9
raw 352:*:if $read(tor.txt,w,$+(*,$4,*)) || $hget(Proxy,$4) { gzline $+(*@,$4) 1h 1IP adresinizde 4TOR/Proxy 1girişi tespit edilmiştir. }

Herkes istediği yere yazabilsin diye ipyaz adında bir alias oluşturdum. Tek başına bir koruma sağlayamaz bu kod zira çekilen IP adresi 700 civarlarında.

Cpu 07 Haziran 2014 12:17

Cevap: Proxy çekme
 
Alıntı:

Paint Nickli Üyeden Alıntı (Mesaj 1041446380)
Herkes istediği yere yazabilsin diye ipyaz adında bir alias oluşturdum. Tek başına bir koruma sağlayamaz bu kod zira çekilen IP adresi 700 civarlarında.

peki işleme sokmamız için ne yapmamız gerekiyor az bile olsa işimizi görür sanırım

yada

[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]

Toprak ın koduna ek olarak yapamaz mıyız?

Paint 07 Haziran 2014 12:28

Cevap: Proxy çekme
 
Alıntı:

Cpu Nickli Üyeden Alıntı (Mesaj 1041446384)
peki işleme sokmamız için ne yapmamız gerekiyor az bile olsa işimizi görür sanırım

yada

[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]

Toprak ın koduna ek olarak yapamaz mıyız?


Verdiğin kodda tor.txt yazan yeri ips.txt yazarsan yeterli olur.
Kod:

on *:snotice:*Client connecting*:.who +I $9
raw 352:*:if $read(ips.txt,w,$4) { gzline $+(*@,$4) 1h 1IP adresinizde 4TOR/Proxy 1girişi tespit edilmiştir. }


Cpu 07 Haziran 2014 12:34

Cevap: Proxy çekme
 
Alıntı:

Paint Nickli Üyeden Alıntı (Mesaj 1041446386)
Verdiğin kodda tor.txt yazan yeri ips.txt yazarsan yeterli olur.
Kod:

on *:snotice:*Client connecting*:.who +I $9
raw 352:*:if $read(ips.txt,w,$4) { gzline $+(*@,$4) 1h 1IP adresinizde 4TOR/Proxy 1girişi tespit edilmiştir. }


ama ne kadar hızlı olur ki hocam

Darnasus 07 Haziran 2014 19:51

Cevap: Proxy çekme
 
Eyvallah @[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]

Cpu 24 Temmuz 2014 16:18

Cevap: Proxy çekme
 
Alıntı:

Paint Nickli Üyeden Alıntı (Mesaj 1041446313)
Kod:

alias samair {
  set %samair 1 | set %samairt $lines(ips.txt)
  sockclose samair-*
  sockopen samair-1 samair.ru 80
}

on *:sockopen:samair-*:{
  var %a $gettok($sockname,2,45),%k sockwrite -tn $sockname
  %k GET $+(/proxy/proxy-,$iif(%a > 9,%a,0 $+ %a),.htm) HTTP/1.1
  %k host: samair.ru | %k
}
on *:sockread:samair-*:{
  var %d
  sockread %d
  if <td> isin %d && <script isin %d { noop $regsubex(%d,/(\d+.\d+.\d+.\d+)/g,$ipyaz(\t))  }
  if proxycountry"> isin %d {  var %a $gettok($sockname,2,45),%b (*4Proxy Downloader*)
    if %a == 30 { echo -at %b Proxy alımı bitti. | echo -at %b Toplam proxy sayısı: $lines(ips.txt)
    echo -at %b Bu sefer çekilen farklı proxy: $calc($lines(ips.txt) - %samairt) }
    else { inc %samair | sockopen samair- $+ %samair samair.ru 80 }
    sockclose $sockname
  }
}
alias -l ipyaz if (!$read(ips.txt,w,$1)) write ips.txt $1

[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]

/samair
komutuyla çalıştırabilirsiniz.

Bunu nntime.com içinde yapabilir miyiz?


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

Powered by vBulletin® Version 3.8.8 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2024 IRCForumlari.Net