Random

How can I use [https://www.randomlists.com/data/names-first.json) combo on openbullet with random number inside config with out using wordlist.

Grab the names first and store names in a global list
This should be in the startup loli code (IMPORTANT):

BLOCK:HttpRequest
LABEL:Get Names
  url = "https://www.randomlists.com/data/names-first.json"
  TYPE:STANDARD
  $""
  "application/x-www-form-urlencoded"
ENDBLOCK

BLOCK:Parse
LABEL:Parse Names
  input = @data.SOURCE
  jToken = "data[*]"
  RECURSIVE
  MODE:Json
  => VAR @globals.names
ENDBLOCK

Then inside your main script, at the TOP, add this code to grab random name based on random number index

BLOCK:RandomInteger
LABEL:Random Number
  maximum = @globals.names.Count
  => VAR @Number
ENDBLOCK

BLOCK:ConstantString
LABEL:Grab Random Name
  value = @globals.names[Number]
  => VAR @Name
ENDBLOCK

Now anywhere below you can use the ‘Name’ variable to access next name.

CLOG Green Name
1 Like

how to make combo name reading number from 100000 to 999999
Lila:123456
Lila:123457
Lila:123458 etc…

here is screenshot

do the numbers need to be in order? or any random between 100000 to 999999

Startup Loliscript

BLOCK:HttpRequest
LABEL:Get Names
  url = "https://www.randomlists.com/data/names-first.json"
  TYPE:STANDARD
  $""
  "application/x-www-form-urlencoded"
ENDBLOCK

BLOCK:Parse
LABEL:Parse Names
  input = @data.SOURCE
  jToken = "data[*]"
  RECURSIVE
  MODE:Json
  => VAR @globals.names
ENDBLOCK

Main Script


BLOCK:GetRandomItem
LABEL:Get Random User
  list = @globals.names
  => VAR @USER
ENDBLOCK

BLOCK:RandomString
LABEL:Random Number Password
  input = "?d?d?d?d?d?d"
  => VAR @PASS
ENDBLOCK

Use USER and PASS to access variables

CLOG Green USER
CLOG Green PASS
1 Like

i tested working good thanks
only problem i have when i used it with my config i get error
[Executing block LOGIN] RuntimeBinderException: ‘System.Dynamic.ExpandoObject’ does not contain a definition for ‘USER’

BOT ENDED AFTER 11614 ms WITH STATUS: ERROR

here is screen shot

seems you might be using <input.USER> somewhere. The variables I made are only <USER​> and <PASS​>

work perfect when I checked with config
do i need to setup worllist in the edit job ( data pool )
thank you for you help.

how to replace block HttpRequest below with
BLOCK:FileRead
path = “List.txt” in the startup loli code

BLOCK:HttpRequest
LABEL:Get Names
url = “https://www.randomlists.com/data/names-first.json
TYPE:STANDARD
$“”
“application/x-www-form-urlencoded”
ENDBLOCK

BLOCK:Parse
LABEL:Parse Names
input = @data.SOURCE
jToken = “data[*]”
RECURSIVE
MODE:Json
=> VAR @globals.names
ENDBLOCK

Startup Lolicode:

BLOCK:FileReadLines
  path = "List.txt"
  => VAR @globals.names
ENDBLOCK