/tmp/ftp_url.txt");
sleep(2);
} else {
exec("python ftp_url.py " . urldecode($_POST['ftphost']) . " " . urldecode($_POST['ftpusername']) . " " . urldecode($_POST['ftppassword']) . " " . str_replace(" ","%20",urldecode($_POST['ftppath'])) . $dstring . " > /tmp/ftp_url.txt");
sleep(2);
}
if (file_exists("/tmp/ftp_url.txt")) {
if (isset($_POST['perl'])) {
$results="perl ftp_url.pl " . urldecode($_POST['ftphost']) . " " . urldecode($_POST['ftpusername']) . " " . "........" . " " . urldecode($_POST['ftppath']) . "\n\n";
} else {
$results="python ftp_url.py " . urldecode($_POST['ftphost']) . " " . urldecode($_POST['ftpusername']) . " " . "........" . " " . urldecode($_POST['ftppath']) . "\n\n";
}
$results.=str_replace("\t","
",str_replace("-rw-","
-rw-",str_replace("-rwx","
-rwx",str_replace("drwx","
drwx",str_replace("/n","
",str_replace("/r","
",file_get_contents("/tmp/ftp_url.txt")))))));
unlink("/tmp/ftp_url.txt");
}
}
echo "