Admin Panel Şifresi Hakkında - Google Fan Webmaster Forum
Google Fan Webmaster Forum  
herşeyi sana yazdım

Geri git   Google Fan Webmaster Forum > Webmaster Genel > Webmaster Genel konular sorunlar
KEY
Kayıt ol Articles Sosyal Gruplar Forumları Okundu Kabul Et

Webmaster Genel konular sorunlar Webmaster genel konular sorular sorunlar

Cevapla
 
LinkBack Seçenekler
  1  
Alt 17-05-2010, 18:59:17
 
Standart Admin Panel Şifresi Hakkında

Arkadaşlar upload scripti var elimde bi tane..bunun admin panel scriptini ayarlayamadım bir türlü.. admin.php yi koyuyorum yardımcı olabilecek biri varsa şimdiden teşekkür ederim

Kod:
<?php
session_start();


include("./config.php");
if(isset($_GET['act'])){$act = $_GET['act'];}else{$act = "null";}
$contents = file("password.txt");
$pass = md5(implode($contents));

if(isset($_GET['act']) && ($act=="login")) {
  $entered = md5($_POST['passwordx']);
  $contents = file("password.txt");
  $adminpass = implode($contents);
  
  if($entered == $adminpass){ 
    $cookiepass = md5($adminpass);
    setcookie('logged', $cookiepass, 0, "/", $SERVER['SERVER_NAME'], 0);
    echo "<script>window.location=\"admin.php\";</script>";    
    } 
  else {
    include ("./header.php");
    echo "Invalid password<br>";
    echo "<p><center><a href=\"admin.php\">Try again</a>";
    include ("./footer.php");
    die();
  }
}

if(isset($_GET['act']) && $act=="nopass" && (filesize("password.txt") == 0)) {

  $password = md5($_POST['pass']);
  $fp = fopen("password.txt", 'w');
  fputs ($fp,$password);
  fclose ($fp);
  @chmod("password.txt", 0666);
  echo "<script>window.location=\"admin.php\"</script>";
  break;
}

if(isset($_COOKIE['logged']) && $_COOKIE['logged'] == $pass) {

if(isset($_GET['act']) && ($act=="logout"))  {
setcookie('logged', "", time()-60, "/", $SERVER['SERVER_NAME'], 0);
session_unset();
include ("./header.php");
echo "You have been logged out.";
echo "<p><center><a href=\"admin.php\">Login again</a>";
include ("./footer.php");
die();
}

include("./adminheader.php");
if(isset($_GET['act']) && ($act=="newpass")) {

if(isset($_POST['newpassword'])){
$fb = fopen( "password.txt", 'w');
$changedpass = md5($_POST['newpassword']);
fputs ($fb, $changedpass);
fclose ($fb);
@chmod("password.txt", 0666);
echo "<script>window.location=\"admin.php?act=logout\"</script>";
} 
?>
<h1>Change Password</h1><p>
<center>
After changing the password you will be logged out and will have to log in again with the new password.

<p>
<form action="admin.php?act=newpass" method="post">
Enter a new password: <input type="password" name="newpassword">
<input type="submit" value="Change Password">
<br /></form></center>

<?php
include ("./footer.php");
die();
}

if(isset($_GET['download'])){
$filecrc = $_GET['download'];
$filecrctxt = $filecrc . ".txt";
if (file_exists("./storagedata/" . $filecrctxt)) {
	$fh = fopen("./storagedata/" . $filecrctxt, r);
	$filedata= explode('|', fgets($fh));
}
echo "<script>window.location='".$scripturl."download2.php?a=".$filecrc."&b=".md5($filedata[1].$_SERVER['REMOTE_ADDR'])."';</script>";
fclose ($fh);
}

if(isset($_GET['delete'])) {
unlink("./storagedata/".$_GET['delete'].".txt");
unlink("./storage/".$_GET['delete']);
}

if(isset($_GET['banreport'])) {
$bannedfile = $_GET['banreport'];
if (file_exists("./storagedata/$bannedfile".".txt")) {
	unlink("./storagedata/".$bannedfile.".txt");
	unlink("./storage/".$bannedfile);
	$deleted=$bannedfile;
}

$fc=file("./reports.txt");
$f=fopen("./reports.txt","w+");
foreach($fc as $line)
{
  $thisline = explode('|', $line);
  if ($thisline[0] != $_GET['banreport'])
    fputs($f,$line);
}
fclose($f);
$f=fopen("./bans.txt","a+");
fputs($f,$deleted[3]."\n".$deleted[0]."\n");
unlink("./storage/".$_GET['banreport']);

}

if(isset($_GET['ignore'])) {

$fc=file("./reports.txt");
$f=fopen("./reports.txt","w+");
foreach($fc as $line)
{
  $thisline = explode('|', $line);
  if ($thisline[0] != $_GET['ignore'])
    fputs($f,$line);
}
fclose($f);
}

if(isset($_GET['act']) && $_GET['act']=="bans") {
if(isset($_GET['unban'])) {
$fc=file("./bans.txt");
$f=fopen("./bans.txt","w+");
foreach($fc as $line)
{
  if (md5($line) != $_GET['unban'])
    fputs($f,$line);
}
fclose($f);
}

if(isset($_POST['banthis'])) {
$f=fopen("./bans.txt","a+");
fputs($f,$_POST['banthis']."\n");
}


?>
<h1>Bans</h1><p> <center><form action="admin.php?act=bans" method="post">Enter an IP or file hash to ban:  
<input type="text" name="banthis"> 
<input type="submit" value="BAN!">
<br />
</form></center>
<?php

$fc=file("./bans.txt");
foreach($fc as $line)
{
  echo $line . " - <a href=\"admin.php?act=bans&unban=".md5($line)."\">Un-ban</a><br />";
}

include("./footer.php");
die();
}

if(isset($_GET['act']) && $_GET['act']=="delete") {
	//delete old files
	echo "<h1>Delete Old Files</h1>";
	echo "<span style=color:gray>Deleting files not downloaded for " . $deleteafter . " days:</span><BR><BR>";
	$deleteseconds = time() - ($deleteafter * 24 * 60 * 60);
	$dirname = "./storagedata";
	$dh = opendir( $dirname ) or die("couldn't open directory");
	while ( $file = readdir( $dh ) ) {
	if ($file != '.' && $file != '..' && $file != ".htaccess") {
	  $fh=fopen("./storagedata/" . $file ,r);
	  $filedata= explode('|', fgets($fh));
	  if ($filedata[3] < $deleteseconds) {
	    $deletedfiles="yes";
		echo "Deleting - " . $filedata[0] . ":<BR>"; 
	    unlink("./storagedata/".$file);
		echo "Deleted /storagedata/" . $file . "<BR>"; 
	    unlink("./storage/".str_replace(".txt","",$file));
		echo "Deleted /storage/" . str_replace(".txt","",$file) . "<BR><BR>"; 
	  }
	  fclose($fh);
	}
	}
	closedir( $dh );
	if (!$deletedfiles) echo "No old files to delete!<br /><br />";
	//done deleting old files
	include("./footer.php");
	die();
}


if(isset($_GET['act']) && $_GET['act']=="check") {
	//check files
	echo "<h1>Check Files</h1>";
	echo "<div class='content'>";
	echo "<span style=color:gray>Note: This section checks and makes sure that for each file in the 'storage' folder, there is a matching datafile in the 'storagedata' folder (and vice versa).  Normally, there should be no problems.  It is possible for one of the files to be missing -- this is rare and would only occur in unusual circumstances such as a server crash etc. In such a case you may just want to delete the mismatched files as they will be useless!</span>";
	echo "<P>Comparing storage to storagedata folder...<br><br>";
	$mismatch1=0;
	$mismatch2=0;

	echo "Reading storagedata directory...<BR><BR>";
	
	$dirname = "./storagedata";
	$dh = opendir( $dirname ) or die("couldn't open directory");
	while ( $file = readdir( $dh ) ) {
	if ($file != '.' && $file != '..') {
	  $filecrc = str_replace(".txt","",$file);
	  if ((!file_exists("./storage/". $filecrc)) && ($file != ".htaccess") ){
	    echo "Mismatch for " . $file . " in storagedata -- storage file (".$filecrc.") does not exist!<BR>";
		echo "Recommend manual deletion of /storagedata/" . $file . ".<BR>";
		$mismatch1=1;
	  }
	}
	}
	closedir( $dh );
	
	echo "<P>Reading storage directory...<BR><BR>";
	
	$dirname = "./storage";
	$dh2 = opendir( $dirname ) or die("couldn't open directory");
	while ( $filecrc = readdir( $dh2 ) ) {
	if ($filecrc != '.' && $filecrc != '..') {
	  $file = $filecrc . ".txt";
	  if ((!file_exists("./storagedata/". $file)) && ($filecrc != ".htaccess") ){
	    echo "Mismatch for " . $filecrc . " in storage -- storagedata (".$file.") file does not exist!<BR>";
		echo "Recommend manual deletion of /storage/" . $filecrc . ".<BR>";
		$mismatch2=1;
	  }
	}
	}
	closedir( $dh2 );
	
	echo "Finished checking files.<BR>";
	if (($mismatch1) || ($mismatch2)) {
	  echo "Errors were found!";
	} else {
	  echo "<P>Everything looks good! No mismatches were found.";
	}
	echo "</div>";
	//done checking files
	include("./footer.php");
	die();
}

if(isset($_GET['act']) && $_GET['act']=="reports") {
  echo "<h1>Reported Files</h1>";
  echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
  echo "<tr><td><b>Filename</b></td><td><b>Uploader IP</b></td><td><b>Delete & Ban</b></td><td><b>Ignore Report</b></td></tr>";
  $checkreports=file("./reports.txt");
  foreach($checkreports as $line) {
	  $thisreport = explode('|', $line);
	  $filecrc = $thisreport[0];
	  if (file_exists("./storagedata/$filecrc".".txt")) {
	  	$fr=fopen("./storagedata/".$filecrc.".txt",r);
	  	$foundfile= explode('|', fgets($fr));
	  	fclose($fr);
	  }
	  echo "<tr><td><a href=\"admin.php?download=".$filecrc."\">".$foundfile[0]."</td>";
	  echo "<td>".$foundfile[2]."</td>";
	  echo "<td><a href=\"admin.php?banreport=".$filecrc."\">delete & ban</a></td>";
	  echo "<td><a href=\"admin.php?ignore=".$filecrc."\">ignore</a></td></tr>";
	}

  echo "</table>";
  include ("footer.php");
  die;
}

?>

  <h1>Uploaded Files</h1>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td>No.</td><td><b>Filename</b></td><td><b>Size (MB)</b></td><td><b>Uploader IP</b></td><td><b>Downloads</b></td><td><b>B/W(MB)</b></td><td><b>Delete</b></td></tr>
<?php

$admindata="";
$counter = 1;
$dirname = "./storagedata";
$dh = opendir( $dirname ) or die("couldn't open directory");
while ( $file = readdir( $dh ) ) {
if ($file != '.' && $file != '..' && $file != '.htaccess') {
  $filecrc = str_replace(".txt","",$file);
  $filesize = filesize("./storage/". $filecrc);
  $filesize = ($filesize / 1048576);
  $fh = fopen ("./storagedata/".$file, r);
  $filedata= explode('|', fgets($fh));
  $admindata .= "<tr><td>$counter. </td><td><a href=\"admin.php?download=".$filecrc."\">".$filedata[0]."</a></td><td>".round($filesize,2)."</td><td>".$filedata[2]."</td><td style=padding-left:5px>".$filedata[4]." </td><td style=padding-left:5px>".round($filesize*$filedata[4],2)."</td><td style=padding-left:5px><a href=\"admin.php?delete=".$filecrc."\">[x]</a></td></tr>\n";
  $counter += 1;
  fclose ($fh);
}
}
closedir( $dh );

$adminfiles=fopen("./adminfiles.txt","w");
fwrite ($adminfiles,$admindata);
fclose ($adminfiles);

// output files list and paginate:
require_once('pager.php');
$page=$_GET['page'];
echo paginateRecords('./adminfiles.txt',$page,100);
// finished output files list

echo "</table>";

} else {

  if (filesize("password.txt") != 0){
  	include("./header.php");?>
    <center>
    <h1>Admin Login</h1><br />
    <form action="admin.php?act=login" method="post">Password:  
    <input type="password" name="passwordx"> 
    <input type="submit" value="Login">
    <br /><br />
    </form></center>
    <?php 
  } else { 
	include("./header.php");
  	?>
    <h1>Set Admin Password</h1><p>
	<center>
	<form action="admin.php?act=nopass" method="post">
	Enter your admin password: <input type="password" name="pass">
	<input type="submit" value="Set Password">
	<br /></form></center>
	<?php 
  }
}
include("./footer.php");
?>
password.txt dediği boş bir metin belgesi..
Alıntı ile Cevapla
  2  
Alt 17-05-2010, 19:30:39
Off diyorum..
 
Standart

password.txt dosyasına baktınmı burdan bulamadıysan şifreyi phpmyadminden gir değiştir tablodan
__________________
Alıntı ile Cevapla
  3  
Alt 17-05-2010, 20:02:46
 
Standart

Alıntı:
gencsair Nickli Üyeden Alıntı Mesajı göster
password.txt dosyasına baktınmı burdan bulamadıysan şifreyi phpmyadminden gir değiştir tablodan
password.txt dediği zaten bomboş bir metin belgesi içinde bişey yok
Alıntı ile Cevapla
  4  
Alt 17-05-2010, 20:19:14
 
Standart

Arkadaşlar biraz acil lazım :/
Alıntı ile Cevapla
  5  
Alt 17-05-2010, 21:10:59
Off diyorum..
 
Standart

scripti yollama imkanın varsa yollarmısın bakayım
__________________
Alıntı ile Cevapla
  6  
Alt 18-05-2010, 07:35:33
 
Standart

gönderdim hocam..şimdiden sağol yardımların için
Alıntı ile Cevapla
  7  
Alt 18-05-2010, 08:17:47
 
Standart

Alıntı:
AnTiBiy0tiq Nickli Üyeden Alıntı Mesajı göster
gönderdim hocam..şimdiden sağol yardımların için
Bana sorar insan

Gir şuraya : http://www.bilgiportal.com/md5.php


Boş kısma şifreni yaz çevir'e tıkla altta şifrenin md5 hali çıkacak onu al password.txt içine yapıştır.Admin paneline şifren ile girebilirsin.

Scripti ben biraz editlemiştim oradan biliyorum.
__________________
Hepsi Amerikan oyunu...
Alıntı ile Cevapla
  8  
Alt 18-05-2010, 10:44:08
 
Standart

Alıntı:
HostSatiyoruz Nickli Üyeden Alıntı Mesajı göster
Bana sorar insan

Gir şuraya : http://www.bilgiportal.com/md5.php


Boş kısma şifreni yaz çevir'e tıkla altta şifrenin md5 hali çıkacak onu al password.txt içine yapıştır.Admin paneline şifren ile girebilirsin.

Scripti ben biraz editlemiştim oradan biliyorum.
çozum bulundu snrm
Alıntı ile Cevapla
  9  
Alt 18-05-2010, 19:05:42
 
Standart

Alıntı:
HostSatiyoruz Nickli Üyeden Alıntı Mesajı göster
Bana sorar insan

Gir şuraya : http://www.bilgiportal.com/md5.php


Boş kısma şifreni yaz çevir'e tıkla altta şifrenin md5 hali çıkacak onu al password.txt içine yapıştır.Admin paneline şifren ile girebilirsin.

Scripti ben biraz editlemiştim oradan biliyorum.
Vallaha sağol abi de domainlerime isimtescil el koydu hiçbirşey yapamıyorum Off..
Alıntı ile Cevapla
Cevapla


Bookmarks

Seçenekler

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Açık



Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 07:31:25.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

“İnsanların en hayırlısı, insanlara faydalı olandır”. H.Ş

Hosting by Radore Hosting

İçerik sağlayacı paylaşım sitelerinden biri olan R10.net WebMaster Forum Adresimizde 5651 Sayılı Kanun’un 8. Maddesine ve T.C.K’nın 125. Maddesine göre TÜM ÜYELERİMİZ yaptıkları paylaşımlardan sorumludur. R10.net hakkında yapılacak tüm hukuksal Şikayetler adresi ile iletişime geçilmesi halinde ilgili kanunlar ve yönetmelikler çerçevesinde en geç 1 (Bir) Hafta içerisinde R10.net yönetimi olarak tarafımızdan gereken işlemler yapılacak ve Avukatlarımız size dönüş yapacaktır.
ARGUS_OK

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252