Jump to content
UBot Underground

Need Help On Socket Multithreading


Recommended Posts

Hi


Recently i build socket bot, it works good. (single threading)

Now i want to make it multithreading. But it always gives me error :wacko:


Object reference not set to an instance of on object


What i want to do is socket navigate from a list (more than 100 url) and save each "socket page html" to .txt file.
Here is the code

clear all data
add list to list(%multi,$list from file("C:\\html test\\listURL.txt"),"Delete","Global")
set(#row,0,"Global")
set(#filename,1,"Global")
thread spawn($list total(%multi),4) {
    launch socket()
    increment(#row)
    wait(2)
}
define launch socket {
    plugin command("SocketCommands.dll", "socket container") {
        plugin command("SocketCommands.dll", "socket set header", "User-Agent", "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36")
        plugin command("SocketCommands.dll", "socket navigate", "GET", $list item(%multi,#row))
        set(#sock,$plugin function("SocketCommands.dll", "$socket page html"),"Local")
        save to file("C:\\html test\\{#filename}.txt",#sock)
        increment(#row)
        increment(#filename)
    }
    wait(2)
}

What i've done wrong?


Thanks


V

Link to post
Share on other sites

Hey,

As of Ubot 5.5+ threading with Ubots socket plugin doesn't work,havn't tried it 5.9+ but Im pretty urr the problem still exists

Other possibility

I get that error when i try to use socket commands while http post plugin is installed,

actually that is some agilitypack.htmlEnumerator error

only fix i know is to uninstall http post plugin,run ubot setup.exe file and click repair

I have reported both problems

 

*edit*

Seems the problem still exists,below returns the same error,first attempt I got 6 Result items out of 8 URL's,subsequent attempts returned the above error

add list to list(%url,$list from text("list urls Here",$new line),"Delete","Global")
define myGet(#url) {
    plugin command("SocketCommands.dll", "socket container") {
        plugin command("SocketCommands.dll", "socket navigate", "GET", #url)
        add item to list(%results,$plugin function("SocketCommands.dll", "$socket page html"),"Don\'t Delete","Global")
    }
}
thread spawn($list total(%url),3) {
    myGet($next list item(%url))
}
  • Like 1
Link to post
Share on other sites
  • 2 months later...

Getting this same *frustrating error..  Have http post, removing it an repairing ubot did indeed work but... i'd LIKE to run the post plugin alongside sockets - any word on a fix date for this?

  • Like 1
Link to post
Share on other sites
  • 2 weeks later...

Am I understanding correctly that if you're using @Aymens http post plugin to compile a bot, that bot will not be capable of multi-threading?

 

No mate, you can do multi threading with aymen http post plugin. In my humble opinion, it is the right plugin to do multi threading with http webrequest.

 

Varo, Deliter and smb128 are talking about ubot's Socket Commands .

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...