Varo 28 Posted February 19, 2016 Report Share Posted February 19, 2016 HiRecently i build socket bot, it works good. (single threading)Now i want to make it multithreading. But it always gives me error Object reference not set to an instance of on objectWhat 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?ThanksV Quote Link to post Share on other sites
deliter 203 Posted February 19, 2016 Report Share Posted February 19, 2016 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 existsOther possibilityI get that error when i try to use socket commands while http post plugin is installed,actually that is some agilitypack.htmlEnumerator erroronly fix i know is to uninstall http post plugin,run ubot setup.exe file and click repairI 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)) } 1 Quote Link to post Share on other sites
Varo 28 Posted February 19, 2016 Author Report Share Posted February 19, 2016 I dont have http post plugin. I run your code, it give me the same error. Quote Link to post Share on other sites
sbm128 12 Posted May 6, 2016 Report Share Posted May 6, 2016 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? 1 Quote Link to post Share on other sites
earthlingj 13 Posted May 17, 2016 Report Share Posted May 17, 2016 probably never. Quote Link to post Share on other sites
CanadaJones 3 Posted May 18, 2016 Report Share Posted May 18, 2016 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? Quote Link to post Share on other sites
abbas786 78 Posted May 18, 2016 Report Share Posted May 18, 2016 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 . Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.