Jump to content



Photo

[Free] Local Dictionary Plugin - Local Variables Issue Workaround


  • Please log in to reply
84 replies to this topic

#21 Security

Security

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 201 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 09 January 2014 - 11:03 AM

Thank you so much for this contribution, the entire Ubot community is for ever in your dept :) 


-Thank Capitalism-

#22 Aymen

Aymen

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1362 posts
  • OS:Windows 8
  • Total Memory:4Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 19 January 2014 - 01:21 PM

Update 1.2.1

images shows the new commands and functions

2014-01-19_2103.png

 

2014-01-19_2104.png

 

 

-added also a thread container command for running dialog controls in STA mode (workaround for the http captcha dialog and other similar dialogs)

 

download new versions with example files


★★★List Of Killer Ubot Plugins★★★

 

Need Support ? Submit a support ticket here

 

Refund Policy is Clear : No Refunds on all Ubot Plugins


#23 Code Docta (Nick C.)

Code Docta (Nick C.)

    Member for Hire

  • Fellow UBotter
  • PipPipPip
  • 1590 posts
  • LocationIn a Python or UBot IDE or ubotdocta.com
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 19 January 2014 - 01:24 PM

Bonus!!! man this is better than crack. Thanks man!!


UBot Expert Tutorials Store

ubot-docta-header-ubot-expert-store.png

 

 

Python and UBot expert tutorials and documentation


#24 P0s3id0n

P0s3id0n

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 271 posts
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 11 March 2014 - 07:32 PM

Ok here is a question.

 

Is it possible with this plugin to get data from a global list?

 

For example. I have  a list of usernames and passwords (user:password)

 

I want to each thread to be able to work with a separate account to login to the site.

 

I know how to make it happen with uBot's current list functions by just setting a local variable and waiting 1 second between each thread start but we all know that uBot is not so great handling holding the data locally specially when using http post.

 

So is it possible to achieve this with this plugin to solve that matter?

 

Can I set a global list and have each local list feed from the global list or something like that?

 

I hope that makes sense lol.



#25 Aymen

Aymen

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1362 posts
  • OS:Windows 8
  • Total Memory:4Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 12 March 2014 - 05:29 AM

Ok here is a question.

 

Is it possible with this plugin to get data from a global list?

 

For example. I have  a list of usernames and passwords (user:password)

 

I want to each thread to be able to work with a separate account to login to the site.

 

I know how to make it happen with uBot's current list functions by just setting a local variable and waiting 1 second between each thread start but we all know that uBot is not so great handling holding the data locally specially when using http post.

 

So is it possible to achieve this with this plugin to solve that matter?

 

Can I set a global list and have each local list feed from the global list or something like that?

 

I hope that makes sense lol.

 

Yes you can use local list from text , that should work !


★★★List Of Killer Ubot Plugins★★★

 

Need Support ? Submit a support ticket here

 

Refund Policy is Clear : No Refunds on all Ubot Plugins


#26 thezillionaire

thezillionaire

    Member

  • Fellow UBotter
  • PipPip
  • 28 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 13 March 2014 - 07:21 AM

Hello Aymen,

 

Can you tell me a little about how to use the Local List from text and Local list from file.  Is that to be used so that you can pull from 1 text file and use for multiple tasks at the same time without confusing ubot?  Im still a little new to all this so please be easy on me, lol.  Thanks in advance for any help.



#27 Aymen

Aymen

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1362 posts
  • OS:Windows 8
  • Total Memory:4Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 13 March 2014 - 05:08 PM

It's like Ubot's List from text function but for local usage (data available per thread only)


★★★List Of Killer Ubot Plugins★★★

 

Need Support ? Submit a support ticket here

 

Refund Policy is Clear : No Refunds on all Ubot Plugins


#28 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3258 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 11 April 2014 - 06:04 AM

I have a little understanding problem.

 

As I understood it, this plugin is a replacement for the local variables. Because they have some issues when multi threading. 

That data get's shared between threads?

 

So instead of a local variable I use local directory right?

 

So now here's the part where I struggle.

 

in the video Aymen says, that if we use HTTP get, we should put it into a local variable first and then put that local variable into a local directory?

So if there is a problem with local variables overlapping between threads, then we will see the same issue here? 

 

Or is this only relevant if I'm doing something with a local variable within a thread which takes more time? 

 

Thanks in advance for your help

Dan



#29 Aymen

Aymen

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1362 posts
  • OS:Windows 8
  • Total Memory:4Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 11 April 2014 - 05:26 PM

 

we should put it into a local variable first and then put that local variable into a local directory?

you should use the $http get/post in a set command (local or global doesn't matter) , then use the $http last response function to get the latest http response instead of the variable


★★★List Of Killer Ubot Plugins★★★

 

Need Support ? Submit a support ticket here

 

Refund Policy is Clear : No Refunds on all Ubot Plugins


#30 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3258 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 12 April 2014 - 01:03 AM

you should use the $http get/post in a set command (local or global doesn't matter) , then use the $http last response function to get the latest http response instead of the variable

Ah ok. So it wouldn't matter if the variable would be overwritten in the meantime because we are using "last response" to load the data and store it in the local dictionary. 

Ok got it.

 

And I probably should use a http container within a thread right? Or is that only necessary for sites where I do login / cookie stuff?

 

Dan



#31 Aymen

Aymen

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1362 posts
  • OS:Windows 8
  • Total Memory:4Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 13 April 2014 - 05:54 AM

Ah ok. So it wouldn't matter if the variable would be overwritten in the meantime because we are using "last response" to load the data and store it in the local dictionary. 

Ok got it.

 

And I probably should use a http container within a thread right? Or is that only necessary for sites where I do login / cookie stuff?

 

Dan

 

yes its better to use a http container (though in some cases you won't have to )


★★★List Of Killer Ubot Plugins★★★

 

Need Support ? Submit a support ticket here

 

Refund Policy is Clear : No Refunds on all Ubot Plugins


#32 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3258 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 15 April 2014 - 04:03 AM

Does someone has a test script. Where it's clearly visible that the normal local variables / lists / tables get messed up?

Would like to demonstrate / see that if possible.

 

@Aymen: Do you know if that problem still exists in V5?

 

Thanks in advance for your help

Dan



#33 kev123

kev123

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 739 posts
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 15 April 2014 - 04:26 AM

Dan I think its just variables that get messed up. The addition of table and list in local dic was for size purposes and the fact there's no local table.



#34 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3258 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 15 April 2014 - 04:28 AM

Dan I think its just variables that get messed up. The addition of table and list in local dic was for size purposes and the fact there's no local table.

Yeah, the local list is very helpful. I'm currently changing one of my web scrapers to use that. I had some memory and performance issues with global list when they got over 500k entries. 

 

So now I use local lists and write directly to a database. At least that's the idea. Not quite finished yet. 

 

Do you know how the variable mess up could be simulated?

Dan



#35 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3258 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 15 April 2014 - 07:27 AM

Idea for next release:

 

  • Local List - Option to remove duplicates
  • text from local list

 

  • local list from text - should not import empty lines. The normal ubot function will only import lines with text.

Ubot reports 2 list items. The plugin reports 3 list items for the same text

 

Example:

plugin command("LocalDictionary.dll""init local dictionary")
plugin command("LocalDictionary.dll""init local list")
clear list(%tmp)
set(#aa"test
test2
""Global")
add list to list(%tmp$list from text(#aa$new line), "Don\'t Delete""Global")
alert($list total(%tmp))
plugin command("LocalDictionary.dll""local list from text""test"#aa$new line)
alert($plugin function("LocalDictionary.dll""$local list total""test"))

 

 

 

Thanks for considering this

Dan



#36 kev123

kev123

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 739 posts
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 15 April 2014 - 07:29 AM

 it first came to light with the http plugin initially aymen thought it was a cookie issue and for a long time did a lot of work to get round sessions being shared. It was eventually found out it was the local variables sharing data. Now i'm not sure if this is only when you set a variable from a plugin function I haven't tested it enough.

 

This plugin is great though and fixes the problem



#37 Aymen

Aymen

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1362 posts
  • OS:Windows 8
  • Total Memory:4Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 15 April 2014 - 10:27 AM

Idea for next release:

 

  • Local List - Option to remove duplicates
  • text from local list

 

  • local list from text - should not import empty lines. The normal ubot function will only import lines with text.

Ubot reports 2 list items. The plugin reports 3 list items for the same text

 

Example:

plugin command("LocalDictionary.dll""init local dictionary")
plugin command("LocalDictionary.dll""init local list")
clear list(%tmp)
set(#aa"test
test2
""Global")
add list to list(%tmp$list from text(#aa$new line), "Don\'t Delete""Global")
alert($list total(%tmp))
plugin command("LocalDictionary.dll""local list from text""test"#aa$new line)
alert($plugin function("LocalDictionary.dll""$local list total""test"))

 

 

 

Thanks for considering this

Dan

 

Sure,

I'm very busy these days!

Hopefully next week i can make couple of plugins updates!

 

Regards,


★★★List Of Killer Ubot Plugins★★★

 

Need Support ? Submit a support ticket here

 

Refund Policy is Clear : No Refunds on all Ubot Plugins


#38 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3258 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 15 April 2014 - 11:18 AM

Sure,

I'm very busy these days!

Hopefully next week i can make couple of plugins updates!

 

Regards,

Awesome!

 

I will send you a short summary via PM. 

 

Dan



#39 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3258 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 16 April 2014 - 02:48 PM

Could someone please explain what the "thread container command" exactly does?

 

Thanks

Dan



#40 kev123

kev123

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 739 posts
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 16 April 2014 - 10:45 PM

for manual captcha popups dan as ubots isn't the right type






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users