Esempio n. 1
0
def menu4():
    print """


                                                 .------.------.    
  +-------------+                     ___        |      |      |    
  |             |                     \ /]       |      |      |    
  | Config Room |        _           _(_)        |      |      |    
  |             |     ___))         [  | \___    |      |      |    
  |             |     ) //o          | |     \   |      |      |    
  |             |  _ (_    >         | |      ]  |      |      |    
  |          __ | (O)  \__<          | | ____/   '------'------'    
  |         /  o| [/] /   \)        [__|/_                          
  |             | [\]|  ( \         __/___\_____                    
  |             | [/]|   \ \__  ___|            |                   
  |             | [\]|    \___E/  /|____________|_____              
  |             | [/]|=====__   (_____________________)             
  |             | [\] \_____ \    |                  |              
  |             | [/========\ |   |                  |              
  |             | [\]     []| |   |                  |              
  |             | [/]     []| |_  |                  |              
  |             | [\]     []|___) |                  |             
====================================================================

    In this section you can change your API keys for Google, Shodan or Censys.

    1. Google API Key
    2. Google CSE ID
    3. Censys UID
    4. Censys Secret
    5. Shodan API Key
    6. Show Config File
    
    9. Back
    0. Quit
    """
    choice = raw_input(" >>  ")
    try:
        parameter = menu4_keys[choice]
        print ">> Enter your key:"
        key = raw_input(">> ")
        config_change(parameter, key)
    except KeyError:
        exec_menu(choice, menu4_actions)
    print """
    Select From Menu:

    9. back
    0. exit

    """
    selected = raw_input(">>")
    if selected == '9':
        menu4()
    else:
        exit()    
    return
Esempio n. 2
0
def menu4():
    print """


                                                 .------.------.    
  +-------------+                     ___        |      |      |    
  |             |                     \ /]       |      |      |    
  | Config Room |        _           _(_)        |      |      |    
  |             |     ___))         [  | \___    |      |      |    
  |             |     ) //o          | |     \   |      |      |    
  |             |  _ (_    >         | |      ]  |      |      |    
  |          __ | (O)  \__<          | | ____/   '------'------'    
  |         /  o| [/] /   \)        [__|/_                          
  |             | [\]|  ( \         __/___\_____                    
  |             | [/]|   \ \__  ___|            |                   
  |             | [\]|    \___E/  /|____________|_____              
  |             | [/]|=====__   (_____________________)             
  |             | [\] \_____ \    |                  |              
  |             | [/========\ |   |                  |              
  |             | [\]     []| |   |                  |              
  |             | [/]     []| |_  |                  |              
  |             | [\]     []|___) |                  |             
====================================================================

    In this section you can change your API keys for Google, Shodan or Censys.

    1. Google API Key
    2. Google CSE ID
    3. Censys UID
    4. Censys Secret
    5. Shodan API Key
    6. Show Config File
    
    9. Back
    0. Quit
    """
    choice = raw_input(" >>  ")
    try:
        parameter = menu4_keys[choice]
        print ">> Enter your key:"
        key = raw_input(">> ")
        config_change(parameter, key)
    except KeyError:
        exec_menu(choice, menu4_actions)
    print """
    Select From Menu:

    9. back
    0. exit

    """
    selected = raw_input(">>")
    if selected == '9':
        menu4()
    else:
        exit()    
    return