Jump to content
UBot Underground

jeepinjeff

Fellow UBotter
  • Content Count

    30
  • Joined

  • Last visited

Posts posted by jeepinjeff

  1. everyone having issues with it telling you miss match version.

     

    either use alder plugin to use older versions of the browser.

    the latest plugin has updated library that requires that latest version of chrome

    Not true, at least in my case. The plugin asks for version x.x.x.67 - I tried x.x.x.77 and an older version of the browser and got the same popup (which you can’t get rid of unless you do it manually)

     

    If you use an old version of the plugin, it starts a required update.

     

    It’s quite a PITA

  2. So, I started working on a script with ExBrowser finally.  I like using the xpaths and it seems like it's going pretty well.

     

    BUT - I hit a snag and wanted to see if any of you guys out there had any suggestions.  I have an email out to Dan as well, but I figured in the interim, it wouldn't hurt to put it out here as well. Here goes...

     

    I'm working on a script with ExBrowser and when I click on a button, I get an error stating that an unexpected modal window has occurred. Upon looking into the HTML of the page, there should be a window that pops up confirming that I would like to continue, but the browser never shows it. The browser icon blinks in my toolbar, but if i hover over it, there's no popup window to see. (Using Firefox, btw)

    What should I do to make this work or what's going wrong?
    Thanks!
    Jeff

    The button that's being clicked (<input id="dup-step1-deploy-btn" type="button" onclick="Process.runDeployment()" value=" Run Deployment ">) calls this:

    =============================

    Process.runDeployment = function() {
    
            var $form = $('#dup-step1-input-form');
            $form.parsley('validate');
            if (! $form.parsley('isValid')) {
                return;
            }
    
            var msg =  "Continue with the following settings?\n\n";
                msg += "WARNING: Be sure these parameters are correct!\n";
                msg += "Entering the wrong information WILL overwrite existing information.\n";
                msg += "Make sure to have backups of all your data before proceeding.\n\n";
    
            var answer = confirm(msg);
            if (answer) {
                $.ajax({
                    type: "POST",
                    timeout: 10000000,
                    dataType: "json",
                    url: window.location.href,
                    data: $form.serialize(),
                    beforeSend: function() {
                        Process.showProgressBar();
                        $form.hide();
                        $('#dup-step1-result-form').show();
                    },
                    success: function(data, textStatus, xhr){
                        if (typeof(data) != 'undefined' && data.pass == 1) {
                            $("#ajax-dbhost").val($("#dbhost").val());
                            $("#ajax-dbport").val($("#dbport").val());
                            $("#ajax-dbuser").val($("#dbuser").val());
                            $("#ajax-dbpass").val($("#dbpass").val());
                            $("#ajax-dbname").val($("#dbname").val());
                            $("#ajax-dbcharset").val($("#dbcharset").val());
                            $("#ajax-dbcollate").val($("#dbcollate").val());
                            $("#ajax-logging").val($("#logging").val());
                            $("#ajax-json").val(escape(JSON.stringify(data)));
                            setTimeout(function() {$('#dup-step1-result-form').submit();}, 1000);
                            $('#progress-area').fadeOut(700);
                        } else {
                            Process.hideProgressBar();
                        }
                    },
                    error: function(xhr) {
                        var status = "<b>server code:</b> " + xhr.status + "<br/><b>status:</b> " + xhr.statusText + "<br/><b>response:</b> " + xhr.responseText;
                        $('#ajaxerr-data').html(status);
                        Process.hideProgressBar();
                    }
                });
            }
        };
    
  3. ...how to properly use threads?

     

    I ran a bot the day before yesterday based upon GoGetta's proxy script.  I had to modify it a bit since I don't have the HTTP plugin but it seemed to operate just as it would have WITH the HTTP calls in it.

     

    I compiled and ran it with just 50 threads...and it froze...dead...

     

    50 threads isn't very many, so I'm thinking that I may have done something wrong.  Add to that the confusion about threads when you do a search here in the forum - The work, they don't, use a container, don't use a container....

     

    Here's the snippet from the script that I used to thread everything:

    set(#threads_track,0,"Global")
            thread spawn($list total(%list),#Threads) {
                increment(#threads_track)
                main($next list item(%row_count), $next list item(%list))
                decrement(#threads_track)
                decrement(#Queued)
            }
    

    In MAIN, I opened a new invisible browser and scraped content.

     

    Thanks all!

     

    Jeff

     

  4. I've been using Ubot for a while now and have come to see that there are a lot of, what appear to be, very useful plugins available. This brings about a number of questions that I'm hoping you guys can help me out with.

     

    1) What is the advantage of using the ExBrowser VS the standard one? Is it faster?  More efficient? Something else?

     

    2) What's the benefit of using the HTTP plugin? Again - faster, more efficient, better in some other way?

     

    3) And X-Paths - what's the deal with those?

     

    As you can obliviously tell, I have 3 plugins in mind that seem to be fairly popular but I just don't fully understand the benefits of them, so your help would be greatly appreciated.

     

    Thanks!

    Jeff

  5. <EDIT>

     

    I looked at the log and I'm getting the following error codes:

     

    [0224/141654:ERROR:renderer_main.cc(207)] Running without renderer sandbox
    [0224/141756:ERROR:renderer_main.cc(207)] Running without renderer sandbox
    [0224/142247:WARNING:message_in_transit_queue.cc(18)] Destroying nonempty message queue
    [0224/142247:WARNING:message_in_transit_queue.cc(18)] Destroying nonempty message queue

     

    <EDIT>

     

    I’m trying to log into a cPanel and WHM using Ubot to create a script BUT it seems that the server is using a self-signed certificate, which is causing the browser to do nothing. I use the direct URL -->  http://xxx.xxx.xxx.xxx:2082 (If I navigate to the URL from a regular browser, I’m presented with the “connection not secure” page and asked to make an exception - When I try with the Ubot browser, NOTHING happens…the screen doesn’t change at all.)

     

    The server is on shared hosting and poses no threat.  How do I get past this and access the cPanel and WHM?

     

    For example, when using Firefox, you get this:
    Your connection is not secure

    The owner of xxx.xxx.xxx.xxx has configured their website improperly. To protect your information from being stolen, Firefox has not connected to this website.

    Learn more…

    xxx.xxx.xxx.xxx:2083 uses an invalid security certificate.

    The certificate is not trusted because it is self-signed.
    The certificate is only valid for xxxxxxxx.com

    (Error code: sec_error_unknown_issuer)


    Thanks, all!

     

    Note that regardless of whether I use https://....:2083 or http://....:2082 I get the same results.

     

    Also, I have tried changing the user agent to the most current versions of Explorer, Safari, Firefox and Chrome with no luck either.

  6. +1 for Nick (Code Docta)

     

    You honestly can't go wrong with him. Being a Ubot newcomer with a really hefty project on my hands, I had a few questions.  Nick was super helpful and VERY knowledgeable about Ubot.

     

    He'll be the guy I head to in the future when I have more questions, for sure!

    • Like 1
  7. I seem to be using Notepad++ a lot for fiddling around with Ubot scripts.

     

    I was wondering if anybody has a language file they'd like to share or know where to find one.  It would be really nice to have the text colored and highlighted like it is in the Ubot interface.

     

    Thanks!

  8. Nick,

     

    Thanks, man. Being new to this stuff, it took me a bit to navigate my way through your suggestion.  One thing that I forgot to explain in the original post is that the values that AREN'T X...X (EX - "We discover apples most below and_" OR "_world for tasty and dog, we_"need to be saved so they can be re-associated with ABCDEF, in order, at a later time.  So, I'm working on using your script and after extracting the X...X values, replacing them with a pipe and then adding the content to a list, delimited by the pipe.

     

    For my first programming/coding/Ubot project, I may have bitten off more than I can chew - I'm already dealing with php and SQL scripts as well as this "F-word-from-a-sweet-old-lady"-inducing regex.  It seems SO useful, but so insanely complicated and fickle.

     

    Something I don't get is how I can run the same expression on different .NET regex testers and end up with different results.  As my father would have said "Enough to piss off the Pope!"

     

    Thanks again!

  9. I humbly come to you all asking for your assistance with this stinking regex (which is what I THINK I need to use.)

     

    I have this content that I scrape:

     

    We discover apples most below and XfgtsX new information and trot yesterday to wolves.

    Scouring the XgyrtX world for tasty and dog, we XiretX give fellow.

    This scurry we floor - come take one XhhueoX with us.

     

     

     

    I have a bit of script that will capture, save and replace the text UP TO the first 'X'(We discover apples most below and ) with ABCDEF.

     

            set(#aTemp$find regular expression(#content"^([\\s\\S]*?)(?=X)"), "Global")
            add item to list(%aContent#aTemp"Don\'t Delete""Global")
            set(#content$replace regular expression(#content"^([\\s\\S]*?)(?=X)""ABCDEF"), "Global")
            set(#aCount, 1, "Global")
            set(#count, 2, "Global")

     

    The next thing I need to do is repeat it with everything BETWEEN the next 2 'X' and the next 2 and so on. I would end up with, in the sample above:

     

    ABCDEFXfgtsXABCDEFXgyrtXABCDEFXiretXABCDEFXhhueoXABCDEF

     

    (Later I'll be replacing the ABCDEF with a currently unknown value and the X's with curly brackets)

     

    The regex that I have been trying to use is (?:[\s\S]*?X+){#count}([\s\S]*?)(?=X) where #count = the nth occurrence of X.

     

    Regardless of how I try to escape characters, I simply can't get it to work properly - despite it doing exactly what I want it to at regex101.com

     

    Here's the current code

     

    loop while($comparison(#aTemp"!="$nothing)) {
        set(#aTemp$find regular expression(#content"(?:[\\s\\S]*?X+)\{{#count}\}([\\s\\S]*?)(?=X)"), "Global")
        add item to list(%aContent#aTemp"Don\'t Delete""Global")
        set(#content$replace regular expression(#content"(?:[\\s\\S]*?X+)\{{#count}\}([\\s\\S]*?)(?=X)""ABCDEF"), "Global")
        set(#aCount$add(#aCount, 1), "Global")
        set(#count$add(#count, 2), "Global")
    }

     

    PLEASE help!!

     

    Thanks!

  10. @deliter - It's kind of difficult to explain, but I'll try with an example.

     

    The data set that will be used already contains the info in Table 1, column 0, which is 2500 rows long and info in Table 2, column 0, which is 6 rows long. I need to efficiently merge/combine so that each item in Table 1 is paired with EACH item in Table 2. There is ALSO a cell in T2C1 that needs to be present in each iteration of the merge/combine. There are many ways of doing this, of course.  What I did was make a list from T1C0 and add it to itself T2C0#rows times. Then the lag came when I started making the long column for T2C1.

     

    I came up with a solution that seems to work pretty well - http://network.ubotstudio.com/forum/index.php/topic/19049-guide-duplicate-single-list-item-many-times/

     

    Thanks to everybody for their input.

  11. As a non-programmer and Ubot newbie (1 week) this is my first attempt at a 'guide' so please be gentle...

    -------------------

     

    I've been trying to build a bot to do some tasks for me and I needed to duplicate a single list item to create a final list that was the same length as another list I have. Sending the item to a table repeatedly seemed to take quite some time, so I came up with an alternate solution that, in my case, dramatically reduced the time to process the data.

     

    The script takes the desired final list size (#x) and begins dividing the number by 2 (#y) and counting (#count) until the result is less than 2. This count is then used to add the list item to the given list (%k2) and then add %k2 to itself #count times. The list is stored in %ktemp while the loop is run against the remainder of the list (#left), repeating, until #y is < 2. The list item is added to the list a final time. The final list is stored in %k.

     

    For my purposes, I actually had to loop THIS script because I had a list of items that needed to expanded and then add upon each other. Using this script instead of the 'add to table' method on a list size of around 11k, the data is processed in less than a second.

     

    Thanks!

     

    define addList {
        set(#left, 99, "Global")
        set(#count, 0, "Global")
        set(#z#totalGRow"Global")
        set(#x#z"Global")
        set(#y#z"Global")
        clear list(%k2)
        loop while($comparison(#left"!=", 1)) {
            loop while($comparison(#y">", 2)) {
                set(#y$divide(#x, 2), "Global")
                set(#x#y"Global")
                increment(#count)
                }
            set(#counter, 1, "Global")
            loop($add(#count, 1)) {
                if($comparison(#counter"=", 1)) {
                    then {
                        add item to list(%k2$table cell(&kFile#rowTable, 0), "Don\'t Delete""Global")
                        increment(#counter)
                    }
                    else {
                        add list to list(%k2%k2"Don\'t Delete""Global")
                    }
                }
            }
            add list to list(%kTemp%k2"Don\'t Delete""Global")
            set(#left$subtract(#z$list total(%kTemp)), "Global")
            set(#count, 0, "Global")
            set(#x#left"Global")
            set(#y, 99, "Global")
            clear list(%k2)
        }
        add item to list(%kTemp$table cell(&kFile#rowTable, 0), "Don\'t Delete""Global")
        add list to list(%k%kTemp"Don\'t Delete""Global")
        clear list(%k2)
        clear list(%kTemp)
    }

    • Like 1
×
×
  • Create New...