PDA

View Full Version : Attack on .txt file



benek692
2020-06-18, 07:04
Hi, I have a question.




Let's say I have a page where I save Newseller data in a .txt file with a php code:

<?php
if (isset($_POST['get'])) {
if (!empty($_POST['newseller']) and !empty($_POST['Name'])) {
$noweDane = "".$_POST['newseller']."|".$_POST['Name']."\n";
$fp = fopen('news12asdaszase3eller.txt', 'a');
fputs($fp, $noweDane);
fclose($fp);
header("Location: https://www.mywebsite.pl/redirect_done_newseller.html");
}
}
?>

How to find the name of this file where the data is stored from kali linux without server access?