@@ -0,0 +1,1858 @@
+#!/usr/bin/env python%0A%0A#This script guides the user through the various steps needed to install ShodanCLI %0A#Simply run this script and follow the prompts%0A%0Aimport os%0Aimport signal%0Aimport sys%0Aimport time%0Aimport subprocess%0Aimport shlex%0A%0Adef API_key(*varargs):%0A%0A    print(%22Do you have your Shodan API key ready to go?%5Cny for yes; n for no%22)%0A    key_ready=raw_input('')%0A    if key_ready == 'y':%0A        print(%22Cool - we can initialise it right now. Do you want to proceed?%5Cny for yes; n for no%22)%0A        key_proceed=raw_input('')%0A        if key_proceed == 'y':%0A            print('Enter the key now:')%0A            key_API=raw_input('')%0A            print('Initilising now....')%0A            subprocess.call(shlex.split(%22shodan init %25key_API%22))%0A        elif key_proceed == 'n':%0A            print(%22Ok - next time.%22)%0A    else:%0A        print(%22You dont know what you're missing :)%5Cn Laterz!%22)%0A        exit()%0A%0A    return;%0A%0Aprint(%22Welcome to Shodan CLI installer!%22)%0Aprint(%22#########################################%22)%0Aprint(%22You need PIP installed for this to work - do you have PIP installed?%5Cny for yes; n for no%22)%0A%0A%0A%0A#Get UserInput for PIP installation%0Apip_installed=raw_input('')%0A%0A%0A%0Aif pip_installed == 'y':%0A    print(%22Cool. Moving to the next step.%22)%0A    print(%22Starting the Shodan CLI install now....%22)%0A    subprocess.call(shlex.split(%22pip install shodan%22))%0A    API_key()%0A%0Aelif pip_installed == 'n':%0A        print(%22No worries, do you want to install it now?%5Cny for yes; n for no%22)%0A        pip_get = raw_input('')%0A%0A        if pip_get == 'y':%0A            print(%22Ok, let's get PIP installed.%22)%0A            subprocess.call(shlex.split(%22sudo apt-get install python-pip%22))%0A            API_key()%0A%0A        elif pip_get == 'n':%0A            print(%22Cool. Stopping the script now...%22)%0A            exit()%0A%0Aelse:%0A    print(%22That is not an option dude... Pick y or n!%22)%0A    exit()%0A%0A%0A

Create shodan_install.py