Jump to content
UBot Underground

sbm128

Fellow UBotter
  • Content Count

    49
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by sbm128

  1. Yeah.  The Item ID's are static, and I'm matching them to id's i'm scraping from profiles.

     

    so while I'll have these static values:

     

    item=1,dog
    item=4,horse
    item=3,fish
    item=2,cat

     

    I'll be scrapping hundreds of each, which I want to count.  So I've scraped 10x "item=1", 5x "item=4", 2x "item=3" and 1x "item=2".  Which leads us back to my original goal:  I want to tally the total of each matching item.

  2.  

     

    You need to use list from text in the list to add to then put anything you want in there.

    I mean for the list name of items to add to, not for the values.

     

     

    Anyways, this all sounds a bit confusing. What exactly do you want to get? The number of cats, dogs, etc in the table?

    exactly.  I've got a larger table with a possibility of 72 different entries, and i'm scraping item ID's.  I want to resolve those ID's (column0) to their names (column1), and increment how many of each there are in the table.  Sorry for the confusing wording, I'm not quite sure how to phrase it any better lol.

     

    You seem to get where i'm going with this, got any better ideas for implementation?  I'm sure there is a better way to do this I'm just completely missing.  I've thought about SQL, but to be perfectly honest, I'm not very well versed in SQL, and preceding attempts to use it have been... messy at best?  

     

    Thanks for any ideas or input as usual!

  3. I'd like to increment a variable based on the value of another variable.

     

     

    an example:

    on load("Bot Loaded") {
        set(#table_item_counter,0,"Global")
        create table from text(&item_table,"item=2,cat
    item=1,dog
    item=4,horse
    item=3,fish")
    }
    set(#current_item,"item=2","Global")
    define resolve_item {
        set(#current_item_table_index,$plugin function("TableCommands.dll", "$table search", &item_table, #current_item, "Row Index"),"Global")
        set(#current_item,$table cell(&item_table,#current_item_table_index,1),"Global")
    }
    increment(#value_of_current_item)
    

    In this case, I'd want to increment the variable "#cat"  If #current_item had been set to "item=4", i'd want to increment "#fish" and so on.

     

    the idea is that I'm using a table search to match a value (call it #A), and to set another value from that table using the row index from the search.  I want to then increment an already created variable (one of several) so I can find out how many particular items there are in that table.  

     

    I tried the same idea using lists, but you cant use a function inside of an "add to list" command (what list to add to), and I'm seeing the same problem here..

     

     

     

    If anyone has any ideas or insight, or alternatives for what I'm trying to accomplish, i'd really appreciate it. 

  4. You rock HelloInsomnia! Thanks for clearing that up, and i have to say, very solid tutorial. Thorough, good pace and well made.  Going to have to sit down and run through your videos, I usually prefer reading tutorials/directions, but that was right on.   

     

    I'm assuming the same flow applies to commands as it does to functions?  I saw in an older video/thread that you need to set parameter values to themselves within a define to get it to work properly -

    test("random ", "text")
    define test(#param1, #param2) {
        set(#param1,#param1,"Global")
        set(#param2,#param2,"Global")
        wait(2)
        alert("{#param1}{#param2}")
    }
    
    

    Not sure if those Set values are still necessary in the defines or not. If they are, is it because they are local variables (instead of global) or is there some other purpose for them?

     

    Again, great video, and thanks for the clarification.  For anyone new or just not getting something in particular, I highly suggest running through HelloInsomnia's content!  

    • Like 1
  5. sorry to dredge up an old thread - I understand the difference between function and commands,  but I'm still kind of unclear on parameters. Not sure if i can/should use them to send or receive data, when the proper time to use them might be (as opposed to just using a "Set" value within a simple command define to retrieve data) and so on.. 

     

    The documentation on it is pretty miserable, and this is only one of a few threads that even approach define parameters (great video btw, cleared up the difference between command and function defines very simply and quickly!), so any help, advice, best practices or examples would be greatly appreciated.  

    • Like 1
  6. Hey, having some issues with exbrowser (first time in a long while!).  The launcher just doesn't appear to be working.  I tried with chrome and firefox to no avail..  The browsers either do not load, or load a great deal of time later (10 minutes+) out of the blue.

     

    Thanks

  7. On that note - I spent more than a few hours over the last couple days trying to diagnose a bot that wasnt finishing its loop properly.  Step by step runthrough didnt reveal any problems, seemed fine.  As I was coming off my lunch break, right as I was walking outside the door, i saw the problem.  A single misplaced comma in some of the input the bot was using was causing a timeout I hadn't noticed.  Bot works fine now.

     

    I love UBot, but the debugger is seriously lacking in more than a few ways.  "There is an error in your code" is ....  pretty vauge, and no diagnostics really exist as it stand.  Any particular extra methods anyone has for creating impromptu debugging strategies?  I think that the debugger needs to be focused on at some point, but until then, any ideas anyone has been using would be great to hear

    • Like 1
  8. Hey Nick,

     

    Always look forward to your contributions man!  Being relatively new to the coding world, I lack the experience a lot of you may have, and without formal training/education or even just guidance, I had a rough start with things like naming conventions, proper unit testing, organization etc.  Thanks to the uBot community (a special shout out to you for your tutorials, and Deliter for answering some very newbish questions and not letting me take the "easy way out" with in regards to plugins!) and some practice, I've cleaned up my day-to-day process and organization a lot.

     

    I like where this is headed, and would've loved to have had a finished version of this from the get go - I think this kind of information is invaluable, both to newcomers and to experienced coders who might be stuck in a rut of old bad habits or is looking for some new ideas.  Great introduction, nothing to add so far, but will be happy to contribute anything I possibly can to this.  Hope to see some of our regular guru's get involved too!

    • Like 2
  9. Thanks for the insight with the datagrid - I've given up on implementing jquery/java/python (for now at least), seeing as its mostly to accomplish an aesthetic goal.  I've almsot accomplished the same idea/effect using a listbox that populates on the fly (thanks for the example a couple pages back!), but I'm running into an issue.

     

    I need to be able to select multiple items from the listbox (using shift+click i'll guess), but I'm not sure where to even begin with that.  Got any examples or  potentially videos on selecting multiple values from a listbox that is filled as data is introduced?  (dont need it to be super quick or anything, just need it to multi-select)

     

    Thanks again as usual.  Im so horrible with layout and design, it's halted me progress dead on past projects, GUI Hero helps pull me through that last little detail-heavy zone and helps me conceptualize layout early in the process.  Still quite a fan :)

  10. Anyone have any experience with cyrillic text and ubot?

     

    Trying to make an account generator with a site that uses cyrillic for usernames and passwords. Ubot doesn't seem to be a huge fan.

     

    Any advice on how to approach this one? Ubot doesn't handle it very well, just trying to see if anyone has any experience, and if so, any ideas on how I should go about this.

  11. I couldnt resist, no regrets at all so far!

     

    So, how would i go about adding an entire custom bootstrap theme using something like http://bootstrap-live-customizer.com ?  Would i just add in the css manually?  Where would the .less files go (if anywhere) and how?

     

    Loving this so far, ui customization has been the time-waster of a life, this let me throw something decent looking together it 1/4 the usual time if not faster.

  12. This might look a little more complicated than what you're trying to do, but it accomplishes what stanf mentioned.  I've had the same issue before as well.  I've tackled the issue a variety of ways, but what stanf mentioned works 99% of the time.

     

    All we're doing is saying

    while #triggerCondition=0, Loop.

    In the loop -

    -we're looking for a sample of HTML using regex.

    -If that sample is found, it is set as variable #regexFound

    -If #regexFound contains that HTML sample

    -we set #triggerCondition=1

    Which halts the Loop

     

    I'm sure there is a more pragmatic way to do this same thing, probably cleaner too, but that's just not my style :)

     

    uBot Code below, followed by screenshot of uBot Nodes + brief step-by-step explanation.  

     

     

     

    set(#triggerCondition,0,"Global")
    navigate("https://ubotstudio.com/site/playground-simple-form/","Wait")

    loop while(#triggerCondition = 0) {
        set(#regexFound,$find regular expression($document text,"value.*Submit"),"Global")
        if($contains(#regexFound,"value=\"Submit")) {
            then {
                set(#triggerCondition,1,"Global")
            }
            else {
                alert("Regex Not Found!  Continuing Loop...")
                stop script
            }
        }
    }

     

    http://i.imgur.com/qk9nyHJ.png

  13. I'm using the following GET command to pull a proxy list:

    https://hidester.com/proxydata/php/data.php?mykey=data&offset=0&limit=900&orderBy=latest_check&sortOrder=DESC&country=&port=&type=15&anonymity=3&ping=3&gproxy=2

     

    Then attempting to add the list to a list with this regular expression:

    \b(?:(?:2(?:[0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9])\.){3}(?:(?:2([0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9]))\b

     

    Now  I've tested the regex expression, and it is correct (http://regexr.com/38odc), but for some reason, running this command only adds half of  an ip to the list, and only grabs maybe 1/4 of them.  Here's a screenshot of the debugger:

    http://i.imgur.com/hNHSb56.png

     

     

    I'm at a loss here.  Regex checks out, both GET and navigate/$document text methods appear to grab the content fine... If anyone could take a shot at this, i'd really appreciate it.

     

    Heres the ubot code sample (using the HTTP GET plugin)4

    define hidester {
        set(#hidesterP1,$plugin function("HTTP post.dll", "$http get", "https://hidester.com/proxydata/php/data.php?mykey=data&offset=0&limit=900&orderBy=latest_check&sortOrder=DESC&country=&port=&type=15&anonymity=3&ping=3&gproxy=2", "", "", "", ""),"Global")
        add list to list(%primaryList,$find regular expression(#hidesterP1,"\\b(??:2(?:[0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9])\\.)3(??:2([0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9]))\\b"),"Don\'t Delete","Global")
    }

    And here's the same idea NOT using the HTTP GET plugin

    define hidester2 {
        navigate("https://hidester.com/proxydata/php/data.php?mykey=data&offset=0&limit=900&orderBy=latest_check&sortOrder=DESC&country=&port=&type=15&anonymity=3&ping=3&gproxy=2","Wait")
        add list to list(%primaryList,$find regular expression($document text,"\\b(??:2(?:[0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9])\\.)3(??:2([0-4][0-9]|5[0-5])|[0-1]?[0-9]?[0-9]))\\b"),"Don\'t Delete","Global")
    }
    

    What in the actual crap is the problem here?  I've been smashing my head against a wall for over an hour now, and can't even BEGIN to possibly derive the issue.  Anyone have any idea?!?????

    • Like 1
  14. having an issue with the "Regex to list" function...

     

    This regex is fine:

    ([a-zA-Z0-9]){16}

     

    parses as should, pulls the info i need off the page, BUT i need it to  only pick up the  16 digit string ({16}) IF it has no whitespaces in the grouping.

     

    so i tried using

    ([a-zA-Z0-9\S]){16}

     

    which after i hit the "OK" button to stop editing, it becomes

    "([a-zA-Z0-9\S])\{16\}"

     

    as you can see, there are several "\" that insert themselves into the forumla once OK'd.  I tried doing it in the code view mode, but  ran into a plugin error.  It wont seem to accept the code I want it to without inserting a bunch of \ into it.

     

    I've tried wrapping  the string manually in quotations, as well as used the uBot built in quotation wrappers to no avail.  help?

×
×
  • Create New...