Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!

cracked.io | Best Forum Around | Free Premium Accounts




 1539

OB CONFIG JSON CAPTURE HELP

by beytobirdal - 26 February, 2021 - 06:59 PM
This post is by a banned member (beytobirdal) - Unhide
82
Posts
13
Threads
4 Years of service
#1
(This post was last modified: 26 February, 2021 - 07:39 PM by beytobirdal.)
hi,
I want to get all of the "" name "strings in the sample code below. How should I write?

the result I want
Capture | Firefox | Chrome | Opera | Safari

for example
name = it works but only shows the first, I want to see all or 5 or 10 of them
name1,name2 = not working
name* = not working
*name = not working


 
Code:
{
  "browsers": {
    "firefox": {
      "name": "Firefox",                  ---------- this
      "pref_url": "about:config",
      "releases": {
        "1": {
          "release_date": "2004-11-09",
          "status": "retired",
          "engine": "Gecko",
          "engine_version": "1.7"
        }
      }
    }
  }
}

{
  "browsers": {
    "firefox": {
      "name": "Chrome",                  ---------- this
      "pref_url": "about:config",
      "releases": {
        "1": {
          "release_date": "2004-11-09",
          "status": "retired",
          "engine": "Gecko",
          "engine_version": "1.7"
        }
      }
    }
  }
}

{
  "browsers": {
    "firefox": {
      "name": "Opera",                  ---------- this
      "pref_url": "about:config",
      "releases": {
        "1": {
          "release_date": "2004-11-09",
          "status": "retired",
          "engine": "Gecko",
          "engine_version": "1.7"
        }
      }
    }
  }
}

{
  "browsers": {
    "firefox": {
      "name": "Safari",                  ---------- this
      "pref_url": "about:config",
      "releases": {
        "1": {
          "release_date": "2004-11-09",
          "status": "retired",
          "engine": "Gecko",
          "engine_version": "1.7"
        }
      }
    }
  }
}
This post is by a banned member (BYL) - Unhide
BYL  
Supreme
422
Posts
109
Threads
5 Years of service
#2
Parse while using a loop
[Image: 5K0pDMoCp.png]

If you want to contact me write me a pm or add me on Discord!
Discord UID: 23685394039xxxx969
This post is by a banned member (_WDM_) - Unhide
_WDM_  
Supreme
152
Posts
44
Threads
3 Years of service
#3
[Image: 3217a232548327a5fb9c3b05b21890cb.PNG]

Tick the recursive option, let me know if that works.
This post is by a banned member (beytobirdal) - Unhide
82
Posts
13
Threads
4 Years of service
#4
(This post was last modified: 26 February, 2021 - 07:36 PM by beytobirdal.)
bro
https://prnt.sc/107qoh6

I use it this way already, it just takes the first one.
I want to see 5 or 10 "names"

(26 February, 2021 - 07:01 PM)Stortex Wrote: Show More
Parse while using a loop


 bro,
 did not get it

i want to see two or more "name"
Capture | Firefox | Chrome | Opera | Safari
Code:
 
{
  "browsers": {
    "firefox": {
      "name": "Firefox",                  ---------- this
      "pref_url": "about:config",
      "releases": {
        "1": {
          "release_date": "2004-11-09",
          "status": "retired",
          "engine": "Gecko",
          "engine_version": "1.7"
        }
      }
    }
  }
}

{
  "browsers": {
    "firefox": {
      "name": "Chrome",                  ---------- this
      "pref_url": "about:config",
      "releases": {
        "1": {
          "release_date": "2004-11-09",
          "status": "retired",
          "engine": "Gecko",
          "engine_version": "1.7"
        }
      }
    }
  }
}

{
  "browsers": {
    "firefox": {
      "name": "Opera",                  ---------- this
      "pref_url": "about:config",
      "releases": {
        "1": {
          "release_date": "2004-11-09",
          "status": "retired",
          "engine": "Gecko",
          "engine_version": "1.7"
        }
      }
    }
  }
}

{
  "browsers": {
    "firefox": {
      "name": "Safari",                  ---------- this
      "pref_url": "about:config",
      "releases": {
        "1": {
          "release_date": "2004-11-09",
          "status": "retired",
          "engine": "Gecko",
          "engine_version": "1.7"
        }
      }
    }
  }
}
This post is by a banned member (BYL) - Unhide
BYL  
Supreme
422
Posts
109
Threads
5 Years of service
#5
(This post was last modified: 26 February, 2021 - 09:03 PM by BYL.)
Thats easy you need to loop it:
I just pseudo coded it a little 
Code:
WHILE "<INDEX>" LessThan "Lines"
PARSE YOUR STUFF
ADD IT TO LIST
PRINT YA STUFF
FUNCTION Compute "<INDEX>+1" -> VAR "INDEX"
ENDWHILE
EDIT:
So to be more clear its easier to parse the whole thing first and then split it into a list and loop the list then otherwise you'll just getting the first hit the whole time
[Image: 5K0pDMoCp.png]

If you want to contact me write me a pm or add me on Discord!
Discord UID: 23685394039xxxx969
This post is by a banned member (beytobirdal) - Unhide
82
Posts
13
Threads
4 Years of service
#6
(This post was last modified: 27 February, 2021 - 01:52 AM by beytobirdal.)
I guess I'm doing something wrong
entered infinite loop OB locked

 
Code:
WHILE "<INDEX>" LessThan "<List>"

PARSE "<SOURCE>" JSON "name" CreateEmpty=FALSE -> CAP "Kimden" 

UTILITY List "" Create -> VAR "List" 

PRINT "<Kimden[<INDEX>]>"

FUNCTION Compute "<INDEX>+1" -> VAR "INDEX" 

ENDWHILE

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)