Esempio n. 1
0
def msp():
    try:
        print(
            "\033[31;1m{\033[1;97m01\033[1;94m}\033[1;96m Metasploit Android 5-6"
        )
        print(
            "\033[31;1m{\033[1;97m02\033[1;94m}\033[1;96m Metasploit Android 7-10"
        )
        print("\033[31;1m{\033[1;97m00\033[1;94m}\033[1;96m Kembali")
        print()
        w = input("\033[1;97m> \033[1;92m")
        if w == "01" or w == "1":
            os.system("pkg install curl")
            os.system(
                "https://raw.githubusercontent.com/Techzindia/Metasploit_For_Termux/master/metasploitTechzindia.sh"
            )
            os.syste("sh metasploitTechzindia.sh")
        elif w == "02" or w == "2":
            os.system("pkg install root-repo")
            os.system("pkg install unstable-repo")
            os.system("pkg install x11-repo")
            os.system("pkg install metasploit")
        elif w == "00" or w == "0":
            balik()
        else:
            print("\033[31;1mWrong Input!!")
    except KeyboardInterrupt:
        sys.exit("\033[1;91mexit")
Esempio n. 2
0
		congress, session, chamber, number = re.match(r".*congress/data/(\d+)/votes/(\d+)/([hs])(\d+)/data.xml$", fn).groups()
		if int(congress) != CONGRESS: raise ValueError()
		fn2 = "data/us/%d/rolls/%s%s-%d.xml" % (CONGRESS, chamber, session, int(number))
		did_any_file_change |= copy(fn, fn2, r'updated="[^"]+"')
		
	# Load into db.
	if did_any_file_change or True: # amendments can mark votes as missing data
		os.system("./parse.py --congress=%d -l %s vote" % (CONGRESS, log_level))

if "stats" in sys.argv:
	os.system("analysis/sponsorship_analysis.py %d" % CONGRESS)
	os.system("analysis/missed_votes.py %d" % CONGRESS)
	
if "am_mem_bills" in sys.argv:
	# American Memory
	os.syste("for c in {6..42}; do echo $c; ./parse.py bill --force --congress=$c --level=warn; done")
	
if "stat_bills" in sys.argv:
	# Pull in statutes from the 85th-92nd Congress
	# via the GPO's Statutes at Large.
	
	os.system("cd %s; . .env/bin/activate; ./run fdsys --collections=STATUTE --store=mods --log=%s" % (SCRAPER_PATH, "warn")) # log_level
	os.system("cd %s; . .env/bin/activate; ./run statutes --volumes=65-86 --log=%s" % (SCRAPER_PATH, "warn")) # log_level
	os.system("cd %s; . .env/bin/activate; ./run statutes --volumes=87-106 --textversions --log=%s" % (SCRAPER_PATH, "warn")) # log_level
	
	# Copy bill metadata into our legacy location.
	# (No need to copy text-versions anywhere: we read it from the congress data directory.)
	for congress in xrange(82, 92+1):
		print congress, "..."
		
		# Copy files into legacy location.
    # Update change tracker.
    os.system("/home/govtrack/update-votes-servo")

    # During election season.
    os.system(
        "analysis/missed_votes_prezcandidates.py > /tmp/votes-$$.json && mv /tmp/votes-$$.json data/misc/presidential-candidates-missed-votes.json"
    )

if "stats" in sys.argv:
    os.system("analysis/sponsorship_analysis.py %d" % CONGRESS)
    os.system("analysis/missed_votes.py %d" % CONGRESS)

if "am_mem_bills" in sys.argv:
    # American Memory
    os.syste(
        "for c in {6..42}; do echo $c; ./parse.py bill --force --congress=$c --level=warn; done"
    )

if "stat_bills" in sys.argv:
    # Pull in statutes from the 85th-92nd Congress
    # via the GPO's Statutes at Large.

    os.system(
        "cd %s; . .env/bin/activate; ./run fdsys --collections=STATUTE --store=mods --log=%s"
        % (SCRAPER_PATH, "warn"))  # log_level
    os.system(
        "cd %s; . .env/bin/activate; ./run statutes --volumes=65-86 --log=%s" %
        (SCRAPER_PATH, "warn"))  # log_level
    os.system(
        "cd %s; . .env/bin/activate; ./run statutes --volumes=87-106 --textversions --log=%s"
        % (SCRAPER_PATH, "warn"))  # log_level
Esempio n. 4
0
def set_JAVAHOME():
    os.syste("export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java")
Esempio n. 5
0
                if abs(Acelerometro.getdAngulo()[-1]) > tolang:
                    caida2 = True
                #--------Confirmacion de caida------------
                if caida and (not flag) and caida1 and caida2:
                    print("Atention, a fall has occured!")
                    Email("Your grandparent has fallen at latitude {}, longitude {} and height  = {} the day {} at {} time. To locate this position go to https://www.gps-coordinates.net and enter the latitude and longitude.".format(GPS.getX()[-1], GPS.getY()[-1], GPS.getZ()[-1], str(datetime.datetime.now().date()) , str(datetime.datetime.now().time())[:8]))
                    flag = True #Para no enviar mas correos
                #print(repr(keypressed))
                if keypressed=="x":
                    break
            except IOError:
                print('Not ready')

#------------------Creating txt----------------
file = open(str(datetime.datetime.now().time()), 'w')
file.write(" {} W {} W {} ".format(Acelerometro.getX(), Acelerometro.getY(), Acelerometro.getZ()))
#file.write(" {} W {} W {} ".format(Giroscopio.getX(), Giroscopio.getY() ,Giroscopio.getZ()))
#file.write(" {} W {} W {} ".format(Gravedad.getX(), Gravedad.getY(), Gravedad.getZ()))
#file.write(" {} W {} W {} ".format(Aceleracion_lineal.getX(), Aceleracion_lineal.getY(), Aceleracion_lineal.getZ()))
           
file.close()
#-----------------Uploading to git----------------

os.syste("sudo git add .")
os.syste("sudo git commit -m "+str(datetime.datetime.now().time()))
os.syste("sudo git push origin master")
os.syste("saguileran") #usuario
os.syste("961217.sS") #contraseña

plt.show()