elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: (TUTORIAL) Aprende a emular Sentinel Dongle By Yapis


  Mostrar Mensajes
Páginas: 1 ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [32] 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 ... 56
311  Programación / Scripting / [Python] Matrix.py en: 12 Febrero 2009, 21:13 pm
Bueno, me gusto este code, fijaos:

Código
  1. import random
  2. import sys
  3. import pygame
  4. from pygame.locals import *
  5.  
  6. def genera_matrix(posx,posy):
  7.    font = pygame.font.Font(None,20)
  8.    cadena = "abcdefghijklmnopkrstuvwxyz1234567890!#$%&/()=?*[]_:;"
  9.    posicion = []
  10.    while 1:
  11.        pygame.event.pump()
  12.        keyinput = pygame.key.get_pressed()
  13.        if keyinput[K_ESCAPE] or pygame.event.peek(QUIT):
  14.            sys.exit(2)
  15.        if posx not in posicion:
  16.            car = random.randrange(len(cadena))
  17.            green = random.randrange(50,75)
  18.            text = font.render(cadena[car],1,(32,green,32))
  19.            screen.blit(text,(posx,posy))
  20.            if (posy >= 0 and posy <= SCREEN_HEIGHT):
  21.                posy = posy + 12
  22.  
  23.            if posy >= SCREEN_HEIGHT:
  24.                posicion = posicion + [posx]
  25.                posx = random.randrange(SCREEN_WIDTH)
  26.                posy = random.randrange(SCREEN_HEIGHT)
  27.            screen.blit(text,(posx,posy))
  28.            pygame.display.flip()
  29.            pygame.time.wait(100)
  30.        else:
  31.            posx = random.randrange(SCREEN_WIDTH)
  32.            posy = random.randrange(SCREEN_HEIGHT)
  33.  
  34. def genera_binario():
  35.    font = pygame.font.Font(None,16)
  36.    posx_ini = 0
  37.    posy_ini = 0
  38.  
  39.    posx_fin = SCREEN_WIDTH
  40.    posy_fin = SCREEN_HEIGHT
  41.    cadena_binario = "01"
  42.  
  43.    while 1:
  44.        car = random.randrange(len(cadena_binario))
  45.        green = random.randrange(0,39)
  46.        text = font.render(cadena_binario[car],1,(12,green,12))
  47.        screen.blit(text,(posx_ini,posy_ini))
  48.  
  49.        if (posx_ini >= 0 and posx_ini <= posx_fin):
  50.            posx_ini = posx_ini + 10
  51.  
  52.        else:
  53.            posx_ini = 0
  54.            posy_ini = posy_ini + 10
  55.        if posx_ini == posx_fin and posy_ini == posy_fin:
  56.            posx = random.randrange(SCREEN_WIDTH)
  57.            posy = 0
  58.            genera_matrix(posx,posy)
  59.        pygame.display.flip()
  60.  
  61. def main():
  62.    if not pygame.font:
  63.        print "Desabilitado Tipo de Letras"
  64.  
  65.    else:
  66.        pygame.font.init()
  67.  
  68.    global SCREEN_WIDTH, SCREEN_HEIGHT, screen
  69.    SCREEN_WIDTH  = 640
  70.    SCREEN_HEIGHT = 480
  71.    pygame.init()
  72.    screen = pygame.display.set_mode((SCREEN_WIDTH,SCREEN_HEIGHT))
  73.    pygame.display.set_caption("PyMatrix")
  74.    genera_binario()
  75.  
  76. if __name__=="__main__":
  77.    main()
  78.  
312  Seguridad Informática / Nivel Web / Re: ¿Que es file discloure? en: 12 Febrero 2009, 13:36 pm
Tipo esto?
Código:
www.dhperu.org/descargar.php?url=index.php
313  Programación / Scripting / [Python] Acierta el numero secreto en: 11 Febrero 2009, 20:56 pm
Bueno, empece con linuxjuegos haber si aprendo un poco de pygame porque lo poco que sabia se me ha olvidado, aunque no es pygame, me intereso este juego, mirarlo:

Código
  1. # Acierta el numero secreto by Erik# with Linuxjuegos
  2. import random
  3. numero_secreto = random.randint(1,60)
  4. print "Adivina el numero -- Cuantos intentos necesitas?"
  5. intentos = input("Numero de intentos: ")
  6. acertado = 0
  7. cont = 0
  8. while(acertado == 0 and cont < intentos):
  9. print "Intento numero: ",cont+1
  10. print "-------------------------"
  11. num_user = input("Introduce un numero del 1 al 60: ")
  12. if (num_user == numero_secreto):
  13. acertado = 1
  14. break;
  15. elif (num_user > numero_secreto):
  16. print "El numero secreto es menor a", num_user
  17. elif (num_user < numero_secreto):
  18. print "El numero secreto es mayor a", num_user
  19. cont = cont + 1
  20. if(acertado):
  21. print "Has acertado el numero secreto en", cont, "intentos, felicidades"
  22. else:
  23. print "No has acertado el numero secreto en", cont, "intentos, gracias por intentarlo"
314  Seguridad Informática / Nivel Web / ¿Que es file discloure? en: 11 Febrero 2009, 19:53 pm
Un amigo defaceo una web y me dijo que el metodo era file discloure y querría saber que es eso.
315  Seguridad Informática / Nivel Web / Re: Recopilatorio de Vulnerabilidades de XSS/SQLinjection en: 10 Febrero 2009, 09:24 am
Sitio web:  www.ipsaportal.unina.it
Descubridor: Erik#
URL del aviso: http://netzeven.wordpress.com/2009/02/10/xss-en-ipsatotal-buscador/
Fecha de descubrimiento: 10.02.09
Fecha de notificación: ---
Fecha de publicación: 10.02.09
Arreglado: No
Información adicional: XSS en buscador

Código:
http://ipsaportal.unina.it/?s=%22%3E%3Cimg+src%3D%22http%3A%2F%2Fwww.krews.es%2Fhackbyerik.png%22%3E&x=0&y=0
316  Programación / Scripting / [Python] Sockets en Python [+Ejemplos y Ejercicios] en: 9 Febrero 2009, 13:59 pm
Sockets en Python with Erik#

Aqui, en este mini taller, curso... como querais llamarle aprenderemos lo basico sobre sockets, Conexion, Envio de mensajes, Recibo de mensajes, Cerrar conexiones, Aceptar conexiones... y sin teorias de la conectividad, etc... 0 Teoria - 100 Practica.

PD: Estoy creando el post, cuando lo acabe lo cuelgo. (Entre hoy o mañana :))
317  Programación / Scripting / [vbs] Borrar Msn NetZeek en: 6 Febrero 2009, 22:47 pm
Bueno, el anti netzeek esta inhabilitado (el que ofrecia el-brujo(alex)) y me decidi a crear el mio, no lo he probado, pero, decirme si esta bien logicamente, o mal. (la variable whs ya se que tendria que ser wsh xD).

Código
  1. Set whs = createobject("WScript.shell")
  2. Set fso = createobject("scripting.filesystemobject")
  3. unidad = inputbox("Cual es tu principal unidad de disco duro" & vbNewLine & "Por ejemplo: C:\, D:\, E:\...","Seleccione su unidad","")
  4. whs.regdelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Run\Windows Update")
  5. fso.deletefile unidad & "Windows\csrss.exe"
  6. whs.regdelete ("HKCU\Software\Microsoft\Windows\CurrentVersion\Run\Windows")
  7. whs.regdelete ("HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce\System")
  8. whs.regdelete ("HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce\System Update")
  9. fso.deletefile unidad & "Windows\services.exe"
  10. fso.deletefile unidad & "WINDOWS\system32\Drivers\lsass.exe"
  11. fso.deletefile unidad & "WINDOWS\system32\Drivers\smss.exe"
  12. whs.regdelete ("HKCU\Software\Microsoft\Windows\CurrentVersion\Run\Windows Run Service")
  13. whs.regdelete ("HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce\System Run")
  14. fso.deletefile unidad & "Windows\winlogon.exe"
  15. fso.deletefile unidad & "Windows\system32\drivers\spoolsv.exe"
  16. whs.regdelete ("HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce\CTFMON")
  17. fso.deletefile unidad & "Windows\system32\drivers\ctfmon.exe"
318  Programación / Scripting / (Un)Hide Files 2 - .VBS en: 6 Febrero 2009, 14:56 pm
Este es un pequeño script que oculta y desoculta ficheros.

Bugs (No es un bug pero es un pequeño problema):
- Los ficheros ya ocultados tienes que saberte el nombre y la extensión para desocultarlo (UnHide)

Código:
Código
  1. set objshell = createobject("wscript.shell")
  2. Set objdialog = createobject("useraccounts.commondialog")
  3. Set objfso = createobject("scripting.filesystemobject")
  4. Msgbox "(Un)Hide Files 2" & vbNewLine & "by Erik#",vbInformation,"Ghost Files 2"
  5. opc = inputbox("1.Ocultar archivo" & vbNewLine & "2.Desocultar archivo","Menú de selección","")
  6. if opc = 1 then
  7. objdialog.filterindex = 1
  8. objdialog.initialdir = "C:\"
  9. odresp = objdialog.showopen
  10. Set objfso = createobject("scripting.filesystemobject")
  11. Set archivo = objfso.getfile(objdialog.filename)
  12. archivo.attributes = 2
  13. Elseif opc = 2 then
  14. objdialog.filterindex = 1
  15. objdialog.initialdir = "C:\"
  16. odresp = objdialog.showopen
  17. Set archivo = objfso.getfile(objdialog.filename)
  18. archivo.attributes = 0
  19. Else
  20. msgbox "ERROR: Seleccione una opcion real",vbCritical,"ERROR"
  21. End If
319  Programación / Scripting / Re: X [Lenguaje parodia] en: 3 Febrero 2009, 20:40 pm
Bueno, he acabado un inteprete PHP en el que solo funcionan comandos de salida:

y! = Salto de linea
u0x! = Espacio
u1x! = a
u2x! = b
u3x! = c
u4x! = d
u5x! = e
u6x! = f
u7x! = g
u8x! = h
u9x! = i
d0x! = j
d1x! = k
d2x! = l
d3x! = m
d4x! = n
d5x! = ñ
d6x! = o
d7x! = p
d8x! = q
d9x! = r
v0x! = s
v1x! = t
v2x! = u
v3x! = v
v4x! = w
v5x! = x
v6x! = y
v7x! = z

Empece hace 10 minutos, ahora le hare operaciones aritmeticas, mayusculas y algo más :)
www.erikfree.es/interprete_xxx.php

Hola mundo: u8x!d6x!d2x!u1x!u0x!d3x!v2x!d4x!u4x!d6x!
320  Programación / PHP / Re: [Duda] Crear carpeta en: 24 Enero 2009, 17:39 pm
Utiliza la función mkdir, ami me sirvio bastante:

http://es.php.net/manual/es/function.mkdir.php
Páginas: 1 ... 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [32] 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 ... 56
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines