Jump to content
mississippi

Ajutor cu un block nuke

Recommended Posts

Am facut un block php nuke pentru a vedea avatarul unui user yahoo


<?php

if (eregi("block-YahooAvatar.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}


$content .= "
<center><FORM method=GET action='http://img.msg.yahoo.com/avatar.php?yids='>


<INPUT TYPE=text name=yids size=60 maxlength=155 value=''>

<INPUT type=submit VALUE='Cauta Avatar'></center>


</FORM>

";

/************************************************************************/
/************************************************************************/
?>

Block-ul merge foarte bine, dar as vrea ca rezultatul (poza de la avatar) sa apara tot in acest block, cumva prin iframe

Link to comment
Share on other sites

Am facut un block php nuke pentru a vedea avatarul unui user yahoo


<?php

if (eregi("block-YahooAvatar.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}


$content .= "
<center><FORM method=GET action='http://img.msg.yahoo.com/avatar.php?yids='>


<INPUT TYPE=text name=yids size=60 maxlength=155 value=''>

<INPUT type=submit VALUE='Cauta Avatar'></center>


</FORM>

";

/************************************************************************/
/************************************************************************/
?>

Block-ul merge foarte bine, dar as vrea ca rezultatul (poza de la avatar) sa apara tot in acest block, cumva prin iframe

foloseste ajax: un exemplu http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

nu ar if mai simplu sa posteze idiu si dupa

if(isset($_POST['get_avatar']))
{
echo '[img=http://img.msg.yahoo.com/avatar.php?yids='.$_POST['id'].'];
}

Link to comment
Share on other sites

Uite un cod marca tw8 facut acum in graba care iti afiseaza avatarul:


<?php

$content = <<<HTML

<center>
<FORM method=GET action="/yahoo.php">


<INPUT TYPE=text name=id size=60 maxlength=30 value="">

<INPUT type=submit VALUE="Cauta Avatar">
</FORM>



HTML;

if (isset($_GET["id"]))
{
$user = htmlspecialchars($_GET["id"]);
$content = $content . "[b]Avatarul curent:[/b]

<iframe src=\"http://img.msg.yahoo.com/avatar.php?yids=$user\" width=\"96\" height=\"96\">";
}
$content = $content . "</center> ";
echo $content;

?>

Din testele mele, merge ok. E aparat si de XSS [sunt bolnav cu astea :P].

Incearca-l ;).

Link to comment
Share on other sites

Salut tw8 , in codul tau sunt 2 greseli

1) tinind cont ca este vorba de un block php nuke , ar trebui sa inceapa asa


<?php

if (eregi("block-YahooAvatar.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}

2) Cind apesi butonul Cauta Avatar da urmatoarea eroare in browser


[url]http://localhost/yahoo.php?id=NUME[/url]

Astept sa faci un cod ( dar nu in graba ) Merci anticipat :)

Link to comment
Share on other sites

Prima partea apare in toate asa ca nu a mai scris pentru ca se subintelegea ca trebuie sa fie prezenta in script .

Si pentru punctu 2 . esti chiar atat de habarnist sa nu-ti dai seama ca trebuie modificat numele acolo ?

In cazul tau daca fisierul se numeste block-YahooAvatar.php pui la action="/yahoo.php" ,numele respectiv .

Vreti numai sa dati paste la orice fara sa va obositi sa modificati un pic :|

offtopic : sa sti ca in unele exploit-uri de exemplu , programatorii mai stracoara greseli care o sa frece la menta compileru`\interpreteru` tocmai pentru a nu putea fi folosit de toti script kiddies ,sa-si mai puna si ei neuronii la contributie .

Link to comment
Share on other sites

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...