Solved Share tool change ssh sử dụng với imacro

Discussion in 'Software & Webtools' started by quentenroi, Oct 12, 2018.

Moderators: thaikhanghn
  1. quentenroi

    quentenroi Junior Member

    Joined:
    Nov 12, 2014
    Messages:
    136
    Likes Received:
    108
    [​IMG]

    Link tải: https://drive.google.com/file/d/1mZzLJixWVg9BL8Q7irgFCftz8xm0ZM8J/view?usp=sharing


    Hướng dẫn sử dụng với imacros
    - mở tool kéo file ssh vào
    - sử dụng đoạn code này trong imacros để thay đổi ssh
    PHP:
    var port 6969;
    var 
    jsLF "\n";

    function 
    getMacroCode(endp) {
        var 
    macro "CODE:";
        
    macro += "URL GOTO=http://127.0.0.1:" port "/" endp jsLF;
        
    macro += "WAIT SECONDS=1" jsLF;
        
    macro += "TAG POS=1 TYPE=* ATTR=TXT:* EXTRACT=TXT" jsLF;
        return 
    macro;
    }

    var 
    rs;
    iimPlay(getMacroCode('change'));
    var 
    rs iimGetLastExtract();
    if (
    rs == 'OK')
        
    iimDisplay("WAIT");

    do {
        
    iimPlay("CODE:WAIT SECONDS=5");
        
    iimPlay(getMacroCode('status'));
        var 
    rs iimGetLastExtract();
        if (
    rs.startsWith('Connected'))
            break;
    }
    while (
    true);

    iimPlay("CODE:PROXY ADDRESS=127.0.0.1:1080"+jsLF+"URL GOTO=https://whoer.net");
     
  2. phungvuong

    phungvuong Junior Member

    Joined:
    Jul 25, 2016
    Messages:
    92
    Likes Received:
    14
    1 theard thôi à
     
  3. PhamHung

    PhamHung Junior Member

    Joined:
    Feb 12, 2014
    Messages:
    138
    Likes Received:
    43
    Facebook:
    Follow me on Facebook
    Skype:
    Chat with me via Skype
    Muốn nhiều Thread : để mỗi Tool 1 Folder rồi đổi Port kết nối đi là dc.
     
    quentenroi likes this.
  4. quentenroi

    quentenroi Junior Member

    Joined:
    Nov 12, 2014
    Messages:
    136
    Likes Received:
    108
    1 thread, có thể clone ra nhiều cái rồi sửa 2 cái port trong file config.txt để dùng
     
  5. phungvuong

    phungvuong Junior Member

    Joined:
    Jul 25, 2016
    Messages:
    92
    Likes Received:
    14
    control đc chrome ko bác
     
  6. quentenroi

    quentenroi Junior Member

    Joined:
    Nov 12, 2014
    Messages:
    136
    Likes Received:
    108
    là sao, liên quan gì chrome ở đây b o_O
     

Share This Page