Jump to content
UBot Underground

deliter

Fellow UBotter
  • Content Count

    603
  • Joined

  • Last visited

  • Days Won

    52

Posts posted by deliter

  1. my regex sucks so I rely on my pure Ubot scraping skills,maybe this will help you too,this gets the first b tag,that has remote IP address in bold,,and scrapes its parent and replaces the "Remote   IP Address " with nothing

     

     alert($replace($scrape attribute($element parent($element offset(<tagname="b">, 0)), "innertext"), "Remote   IP Address """))

    • Like 1
  2. no you cant copy from the table comfortably at all,copying from text on that browser just doesnt work well,you dont need internet if you download jquery and put it their instead of getting jquery

     

    You can get the jquery by going to the link in the script ajaa.google copy and paste all of it,and paste it in <script>Paste here</script> and remove that script src line below,just be sure to do it above the bit of script i have at the end

     

    I suggest,modify the script I done above,and have it Save to clipboard on click

     

    theres a free plugin somewhere called advanced file I think that has copy to clipboard

     

    this is ready to go by the way,just add the script at the bottom,to the bottom of your html and should work fine,and of course have the ubot define too

    load html("<table id=\"customers\">
      <tbody><tr>
        <th>Company</th>
        <th>Contact</th>
        <th>Country</th>
      </tr>
      <tr>
        <td>Alfreds Futterkiste</td>
        <td>Maria Anders</td>
        <td>Germany</td>
      </tr>
      <tr>
        <td>Centro comercial Moctezuma</td>
        <td>Francisco Chang</td>
        <td>Mexico</td>
      </tr>
      <tr>
        <td>Ernst Handel</td>
        <td>Roland Mendel</td>
        <td>Austria</td>
      </tr>
      <tr>
        <td>Island Trading</td>
        <td>Helen Bennett</td>
        <td>UK</td>
      </tr>
      <tr>
        <td>Laughing Bacchus Winecellars</td>
        <td>Yoshi Tannamuri</td>
        <td>Canada</td>
      </tr>
      <tr>
        <td>Magazzini Alimentari Riuniti</td>
        <td>Giovanni Rovelli</td>
        <td>Italy</td>
      </tr>
    </tbody></table>
    
    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js\"></script>
    
    <script>
    $(document).ready(function()\{
      $( \"tr td\" ).dblclick(function() \{
      try\{
        
        
      $(\"#myButtonClick\").removeAttr( \"id\" )
        
        this.id=\"myButtonClick\"
      ubot.runScript(\"cellClicked()\")
      \}
      
      catch(err)\{\}
    
    \});
    \})
    </script>")
    define cellClicked {
        plugin command("Advanced.File.dll", "Save to Clipboard", $scrape attribute(<id="myButtonClick">,"innertext"))
    }
    
    
    • Like 1
  3. here is a second script,this exposes the table to easy ubot manipulation,whichever cell is double clicked,it gives the cell an id of "myButtonClick"

    and runs a ubot define,where you can customize how ubot works with the table,see this example,double click a cell it turns red,double click again and it goes back to normal,using all ubot code

    load html("<table id=\"customers\">
      <tbody><tr>
        <th>Company</th>
        <th>Contact</th>
        <th>Country</th>
      </tr>
      <tr>
        <td>Alfreds Futterkiste</td>
        <td>Maria Anders</td>
        <td>Germany</td>
      </tr>
      <tr>
        <td>Centro comercial Moctezuma</td>
        <td>Francisco Chang</td>
        <td>Mexico</td>
      </tr>
      <tr>
        <td>Ernst Handel</td>
        <td>Roland Mendel</td>
        <td>Austria</td>
      </tr>
      <tr>
        <td>Island Trading</td>
        <td>Helen Bennett</td>
        <td>UK</td>
      </tr>
      <tr>
        <td>Laughing Bacchus Winecellars</td>
        <td>Yoshi Tannamuri</td>
        <td>Canada</td>
      </tr>
      <tr>
        <td>Magazzini Alimentari Riuniti</td>
        <td>Giovanni Rovelli</td>
        <td>Italy</td>
      </tr>
    </tbody></table>
    
    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js\"></script>
    
    <script>
    $(document).ready(function()\{
      $( \"tr td\" ).dblclick(function() \{
      try\{
        
        
      $(\"#myButtonClick\").removeAttr( \"id\" )
        
        this.id=\"myButtonClick\"
      ubot.runScript(\"cellClicked()\")
      \}
      
      catch(err)\{\}
    
    \});
    \})
    </script>")
    define cellClicked {
        alert($scrape attribute(<id="myButtonClick">, "innertext"))
        if($comparison($scrape attribute(<id="myButtonClick">, "style"), "=", "background-color:red;")) {
            then {
                change attribute(<id="myButtonClick">, "style", "")
            }
            else {
                change attribute(<id="myButtonClick">, "style", "background-color:red;")
            }
        }
    }
    
    
    • Like 1
  4. this will turn the td red when you dounble click on them,you need an internet connection as it gets the jquery library

    load html("<table id=\"customers\">
      <tbody><tr>
        <th>Company</th>
        <th>Contact</th>
        <th>Country</th>
      </tr>
      <tr>
        <td>Alfreds Futterkiste</td>
        <td>Maria Anders</td>
        <td>Germany</td>
      </tr>
      <tr>
        <td>Centro comercial Moctezuma</td>
        <td>Francisco Chang</td>
        <td>Mexico</td>
      </tr>
      <tr>
        <td>Ernst Handel</td>
        <td>Roland Mendel</td>
        <td>Austria</td>
      </tr>
      <tr>
        <td>Island Trading</td>
        <td>Helen Bennett</td>
        <td>UK</td>
      </tr>
      <tr>
        <td>Laughing Bacchus Winecellars</td>
        <td>Yoshi Tannamuri</td>
        <td>Canada</td>
      </tr>
      <tr>
        <td>Magazzini Alimentari Riuniti</td>
        <td>Giovanni Rovelli</td>
        <td>Italy</td>
      </tr>
    </tbody></table>
    
    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js\"></script>
    <script>
    $( \"tr td\" ).dblclick(function() \{
    
     
    this.style.backgroundColor=\"red\";
    \});</script>")
    
    
    • Like 1
  5. this is from stackoverflow maybe not true but I trust their word

     

    For security reasons browsers do not allow this, i.e. JavaScript in browser has no access to the File System, however using HTML5 File API, only Firefox provides a mozFullPath property, but if you try to get the value it returns an empty string:

    $('input[type=file]').change(function () {
    console.log(this.files[0].mozFullPath);
    });

    http://jsfiddle.net/SCK5A/

    So don't waste your time.

    edit: If you need the file's path for reading a file you can use the FileReader API instead. Here is a related question on SO: Preview an image before it is uploaded.

  6. I personally would do something like this,write a command,that clicks based on the number the user picks in the UI with the select,the only if's you will need to write would be some sites who's first option is Choose a Room,otherwise it will work fine

     

    EDIT I mean the only if's would be,if "Choose A room" or " Pick room numbers" exists,remove it,then use my script change attribute outerhtml = nothing

     

    check out this code

     

    http://pastebin.com/raw/e42mKc59

  7. this maybe a bit unnecessary by sometimes I do stuff like this,it just makes things easier if Ubots selectors are not complex enough for the job,Ive added a href of "here" to the code to show that it did click the right button,using pashs suggestion of element offset

     

    *would be better to use td and class= ng-binding for eachRow list,with scrape textContent but should still work

    load html("<table>
    
    <tr ng-repeat=\"item in blacklists\" class=\"ng-scope\">
    
    	<td class=\"ng-binding\">DON\'T WANT THIS ROW</td>
    
    	<td class=\"text-right\">
    		<a href=\"#\" ng-click=\"setEdit(item)\"><i class=\"glyphicon glyphicon-pencil\"></i></a>
    		<a href=\"#\" ng-click=\"delItem(item)\"><i class=\"glyphicon glyphicon glyphicon-trash\"></i></a>
    	</td>
    </tr>
    
    <tr ng-repeat=\"item in blacklists\" class=\"ng-scope\">
    
    	<td class=\"ng-binding\">test black list</td>
    
    	<td class=\"text-right\">
    		<a href=\"here\" ng-click=\"setEdit(item)\"><i class=\"glyphicon glyphicon-pencil\"></i></a>
    		<a href=\"#\" ng-click=\"delItem(item)\"><i class=\"glyphicon glyphicon glyphicon-trash\"></i></a>
    	</td>
    </tr>
    
    </table>
    
    ")
    add list to list(%eachRow,$scrape attribute(<class="ng-scope">,"outerhtml"),"Delete","Global")
    set(#position,0,"Global")
    loop while($comparison(#position,"<",$list total(%eachRow))) {
        if($contains($list item(%eachRow,#position),"test black list")) {
            then {
                click($element offset(<(tagname="a" AND ng-click="setEdit(item)")>,#position),"Left Click","No")
                set(#position,$list total(%eachRow),"Global")
            }
            else {
                increment(#position)
            }
        }
    }
    
    
  8. If you want to try learning CSS Selectors(Jquery Selectors) Ive a plugin with a few useful functions one of them is child selectors,the plugin is free in the plugin section,Ive made a quick intro video into them too on the thread

     

    Code is pretty simple,get all the children elements Value of the tagname select

     

    alert($plugin function("DeliterCSS.dll", "Deliter CSS Child Elements Selector", $document text, "select", "Value"))

  9. I probably have the worst regex skills here but maybe that would help you since it is day one beginner quality

    this basically says to find anything from the start of a line up to an @ ,then anything after the @ up to the .ru

    set(#file,"safiullin.romochka@inbox.ru:password
    miss.tararushkina@list.ru:password
    nice.skorokhodko@bk.ru:password
    khvoevskayaa@bk.ru:password","Global")
    add list to list(%emails,$find regular expression(#file,".+?@.+?\\.ru"),"Delete","Global")
    
    
  10. the ubot eval method only works on the main browser window

     

    check out a post I made on Eval UI method,it straight converts most ubot ui commands(all but some just dont work) into code to put into your own html panel,and great for debugging too

     

    the code for the ui list box is this,this creates a variable called selection

    ui html panel("<div class=\"uielement\">listbox<br><select size=\"4\" variable=\"#selection\" fillwith=\"value\"><option value=\"this\">this</option><option value=\"that\">that</option><option value=\"other\">other</option></select></div><",200)

    • Like 1
  11. heres a bit of help with my CSS Selector,I would do it in Xpath but Ive come from a JS background I dont really know how to select multiple elements

    set(#columns,$plugin function("DeliterCSS.dll", "Deliter CSS Selector", $plugin function("HTTP post.dll", "$http get", "http://london.craigslist.co.uk/", "", "", "", ""), ".col .ban", "TextContent"),"Global")
    add list to list(%hrefs,$plugin function("DeliterCSS.dll", "Deliter CSS Selector", $plugin function("HTTP post.dll", "$http get", "http://london.craigslist.co.uk/", "", "", "", ""), ".cats ul li a", "href"),"Delete","Global")
    
    

    I would recommend that tutorial video series,Ive heard from a friend its awesome

×
×
  • Create New...