send
Grupo de Telegram
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.

[Perl] FTP Manager

  • 0 Respuestas
  • 755 Vistas

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

Desconectado BigBear

  • *
  • Underc0der
  • Mensajes: 544
  • Actividad:
    0%
  • Reputación 3
    • Ver Perfil
« en: Julio 03, 2011, 09:39:45 pm »
Hoy eh terminado este simple cliente FTP el codigo es el siguiente

Código: Perl
  1. #!usr/bin/perl
  2. #FTP Manager
  3. #(C) Doddy Hackman 2010
  4.  
  5. use Net::FTP;
  6.  
  7. &head;
  8.  
  9. You are not allowed to view links. Register or Login "\n\n[FTP Server] : ";
  10. You are not allowed to view links. Register or Login (my $ftp = <stdin>);
  11. You are not allowed to view links. Register or Login "[User] : ";
  12. You are not allowed to view links. Register or Login (my $user = <stdin>);
  13. You are not allowed to view links. Register or Login "[Pass] : ";
  14. You are not allowed to view links. Register or Login (my $pass = <stdin>);
  15.  
  16.  
  17. if (my $socket = Net::FTP->new($ftp)) {
  18. if ($socket->login($user,$pass)) {
  19.  
  20. You are not allowed to view links. Register or Login "\n[+] Enter of the server FTP\n\n";
  21.  
  22. menu:
  23.  
  24. You are not allowed to view links. Register or Login "\n\n>>";
  25. You are not allowed to view links. Register or Login (my $cmd = <stdin>);
  26. You are not allowed to view links. Register or Login "\n\n";
  27.  
  28. if ($cmd=~/help/) {
  29. You are not allowed to view links. Register or Login You are not allowed to view links. Register or Login(
  30.  
  31. help : show information
  32. cd : change directory <dir>
  33. dir : list a directory
  34. mdkdir : create a directory <dir>
  35. You are not allowed to view links. Register or Login : You are not allowed to view links. Register or Login a directory <dir>
  36. pwd : directory  
  37. del : You are not allowed to view links. Register or Login a file <file>
  38. You are not allowed to view links. Register or Login : change name of the a file <file1> <file2>
  39. size : size of the a file <file>
  40. put : upload a file <file>
  41. get : download a file <file>
  42. cdup : change dir <dir>
  43.  
  44.  
  45. );
  46. }
  47.  
  48. if ($cmd=~/dir/ig) {
  49. if (my @files = $socket->dir()) {
  50. for(@files) {
  51. You are not allowed to view links. Register or Login "[+] ".$_."\n";
  52. }
  53. } else {
  54. You are not allowed to view links. Register or Login "\n\n[-] Error\n\n";
  55. }
  56. }
  57.  
  58. if ($cmd=~/pwd/ig) {
  59. You are not allowed to view links. Register or Login "[+] Path : ".$socket->pwd()."\n";
  60. }
  61.  
  62. if ($cmd=~/cd (.*)/ig) {
  63. if ($socket->cwd($1)) {
  64. You are not allowed to view links. Register or Login "[+] Directory changed\n";
  65. } else {
  66. You are not allowed to view links. Register or Login "\n\n[-] Error\n\n";
  67. }
  68. }
  69.  
  70. if ($cmd=~/cdup/ig) {
  71. if (my $dir = $socket->cdup()) {
  72. You are not allowed to view links. Register or Login "\n\n[+] Directory changed\n\n";
  73. } else {
  74. You are not allowed to view links. Register or Login "\n\n[-] Error\n\n";
  75. }
  76. }
  77.  
  78. if ($cmd=~/del (.*)/ig) {
  79. if ($socket->You are not allowed to view links. Register or Login($1)) {
  80. You are not allowed to view links. Register or Login "[+] File deleted\n";
  81. } else {
  82. You are not allowed to view links. Register or Login "\n\n[-] Error\n\n";
  83. }
  84. }
  85.  
  86. if ($cmd=~/You are not allowed to view links. Register or Login (.*) (.*)/ig) {
  87. if ($socket->You are not allowed to view links. Register or Login($1,$2)) {
  88. You are not allowed to view links. Register or Login "[+] File Updated\n";
  89. } else {
  90. You are not allowed to view links. Register or Login "\n\n[-] Error\n\n";
  91. }
  92. }
  93.  
  94. if ($cmd=~/You are not allowed to view links. Register or Login (.*)/ig) {
  95. if ($socket->You are not allowed to view links. Register or Login($1)) {
  96. You are not allowed to view links. Register or Login "\n\n[+] Directory created\n";
  97. } else {
  98. You are not allowed to view links. Register or Login "\n\n[-] Error\n\n";
  99. }
  100. }
  101.  
  102. if ($cmd=~/You are not allowed to view links. Register or Login (.*)/ig) {
  103. if ($socket->You are not allowed to view links. Register or Login($1)) {
  104. You are not allowed to view links. Register or Login "\n\n[+] Directory deleted\n";
  105. } else {
  106. You are not allowed to view links. Register or Login "\n\n[-] Error\n\n";
  107. }
  108. }
  109.  
  110. if ($cmd=~/You are not allowed to view links. Register or Login/ig) {
  111. copyright();
  112. You are not allowed to view links. Register or Login(1);
  113. }
  114.  
  115. if ($cmd=~/get (.*) (.*)/ig) {
  116. You are not allowed to view links. Register or Login "\n\n[+] Downloading file\n\n";
  117. if ($socket->get($1,$2)) {
  118. You are not allowed to view links. Register or Login "[+] Download completed";
  119. } else {
  120. You are not allowed to view links. Register or Login "\n\n[-] Error\n\n";
  121. }
  122. }
  123.  
  124. if ($cmd=~/put (.*) (.*)/ig) {
  125. You are not allowed to view links. Register or Login "\n\n[+] Uploading file\n\n";
  126. if ($socket->put($1,$2)) {
  127. You are not allowed to view links. Register or Login "[+] Upload completed";
  128. } else {
  129. You are not allowed to view links. Register or Login "\n\n[-] Error\n\n";
  130. }
  131. }
  132.  
  133. You are not allowed to view links. Register or Login menu;
  134.  
  135. } else {
  136. You are not allowed to view links. Register or Login "\n\n[-] Failed the login\n\n";
  137. }
  138.  
  139. } else {
  140. You are not allowed to view links. Register or Login "\n\n[-] Error\n\n";
  141. }
  142.  
  143. sub head {
  144. You are not allowed to view links. Register or Login "\n\n -- == FTP Manager == --\n\n";
  145. }
  146.  
  147. sub copyright {
  148. You are not allowed to view links. Register or Login "\n\n(C) Doddy Hackman 2010\n\n";
  149. }
  150.  
  151.  
  152. # ¿ The End ?
  153.  

Si lo quieren descargar desde sourceforge

Código: You are not allowed to view links. Register or Login
https://sourceforge.net/projects/ftpmanager/
« Última modificación: Marzo 14, 2015, 09:58:21 am por Expermicid »

 

¿Te gustó el post? COMPARTILO!



Tutorial perl desde cero By: Black Poision & Painboy

Iniciado por ProcessKill

Respuestas: 2
Vistas: 2854
Último mensaje Septiembre 02, 2011, 09:43:36 pm
por blozzter
[Perl] Verificando si es root para correr un script

Iniciado por c1st

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

Iniciado por BigBear

Respuestas: 0
Vistas: 1181
Último mensaje Julio 03, 2011, 10:06:45 pm
por BigBear
DoSing IP 1.0 - [Creado por SkillmaX] + Source [PERL]

Iniciado por SkillmaX

Respuestas: 0
Vistas: 1266
Último mensaje Julio 04, 2010, 10:14:31 am
por SkillmaX
[Perl] Half Life Servers List 0.1

Iniciado por BigBear

Respuestas: 0
Vistas: 970
Último mensaje Noviembre 12, 2012, 07:31:50 pm
por BigBear