Hacking and more...
HaCkinG CulT
|
Lista Forumurilor Pe Tematici
|
Hacking and more... | Reguli | Inregistrare | Login
POZE HACKING AND MORE...
Nu sunteti logat.
|
Nou pe simpatie: Pisii
 | Femeie 24 ani Ialomita cauta Barbat 24 - 44 ani |
|
S1las
Old School Member
 Din: Kernel
Inregistrat: acum 18 ani
Postari: 490
|
|
Am pus codul in a.php
Code:
<?php
// variabila $IP va primi ca valoare adresa IP a vizitatorului
$ip = $_SERVER['REMOTE_ADDR'];
// Se Creeaza o imagine pornind de la o imagine de baza
// de tip GIF
$img = @imagecreatefromgif('oblivion.gif');
// Setam culoarea pentru text
$txtColor = ImageColorAllocate($img,255,255,150);
// Afisam textul #ping -f IP_VIZITATOR (sau orice alt text)
ImageString($img,4,5,10,'#ping -f '.$ip,$txtColor);
// Modificam nuanta pentru afisarea textului si
// afisam un alt mesaj "(C)Copyright Operabilus"
$txtColor = ImageColorAllocate($img,240,255,100);
ImageString($img,1,390,55,'(C) Operabilus',$txtColor);
// Imaginea e pregatita, mai trebuie sa "pregatim" browserul
// asa ca ii spunem in header sa astepte un fisier imagine
// de tip png (nu text/html cum e obisnuit)
Header('Content-type: image/png');
// Afisam imaginea
ImagePng($img);
// Iar apoi o distrugem... mai salvam din resursele serverului
ImageDestroy($img);
?> |
Si imaginea oblivion.gid de dimensiunile necesare Am pus pe as.ro , evonet , si cand intru pe a.php imi arata
Code:
The image “http://www.crazzyboy.as.ro/a.php” cannot be displayed, because it contains errors. |
Ce poate avea ? :( :( :(
_______________________________________ NU DA CLICK !! Don ' t be a script kiddie all your life ... Learn to think .... CrazZy-World

|
|
pus acum 17 ani |
|
OSHO
Elite Member
 Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
|
pus acum 17 ani |
|
S1las
Old School Member
 Din: Kernel
Inregistrat: acum 18 ani
Postari: 490
|
|
osho dar am pus si pe evonet :| mai incerc pe un host 
_______________________________________ NU DA CLICK !! Don ' t be a script kiddie all your life ... Learn to think .... CrazZy-World

|
|
pus acum 17 ani |
|
OSHO
Elite Member
 Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
|
pus acum 17 ani |
|
S1las
Old School Member
 Din: Kernel
Inregistrat: acum 18 ani
Postari: 490
|
|
merge osho acum pe evonet , nu pusesem in folderu " www " ms apropo fontul pot sal modific ? cu unu uploadat pe host ?
_______________________________________ NU DA CLICK !! Don ' t be a script kiddie all your life ... Learn to think .... CrazZy-World

|
|
pus acum 17 ani |
|
OSHO
Elite Member
 Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
|
pus acum 17 ani |
|
S1las
Old School Member
 Din: Kernel
Inregistrat: acum 18 ani
Postari: 490
|
|
Code:
ImageString($img,5,100,60,'Your Local port is: '.$lPort,$txtColor); |
Cum pun aici imagettftext ? 
_______________________________________ NU DA CLICK !! Don ' t be a script kiddie all your life ... Learn to think .... CrazZy-World

|
|
pus acum 17 ani |
|
OSHO
Elite Member
 Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
Te-ai uitat pe site ? Sunt exemple. Nu mai pui cu ImageString() textul ca il pui cu imagettftext().
In manual scrie ca sintaxa e urmatoarea:
imagettftext ( resource $image, float $size, float $angle, int $x, int $y, int $color, string $fontfile, string $text ) |
De aici mai ai doar de inlocuit valorile cu cele care te intereseaza.
_______________________________________
 IPFind: IP Finder and browser revealer SkullBox: IT pentru incepatori _______________________________________
|
|
pus acum 17 ani |
|
S1las
Old School Member
 Din: Kernel
Inregistrat: acum 18 ani
Postari: 490
|
|
Code:
Parse error: syntax error, unexpected $end in /storage0/home/crazzy-boy.evonet.ro/www/a.php on line 16 |
Code:
<?php
$img = @imagecreatefromjpeg('1.jpg');
$vIP = $_SERVER['REMOTE_ADDR'];
$rIP = $_SERVER['HTTP_X_FORWARDED_FOR'];
$lPort = $_SERVER['REMOTE_PORT'];
if( $rIP != $vIP && strlen($rIP) > 7 )
$ip = $rIP;
else
$ip = $vIP;
$txtColor = ImageColorAllocate($img,255,255,100);
imagettftext($img,20, 0, 10, 20, "/sign/thebattlecont.ttf","Your IP is : '.$ip);
ImageString($img,5,100,60,'Your Local port is: '.$lPort,$txtColor);
Header('Content-type: image/png');
ImagePng($img);
ImageDestroy($img);
?> |
  
Modificat de S1las (acum 17 ani)
_______________________________________ NU DA CLICK !! Don ' t be a script kiddie all your life ... Learn to think .... CrazZy-World

|
|
pus acum 17 ani |
|
OSHO
Elite Member
 Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
|
pus acum 17 ani |
|
S1las
Old School Member
 Din: Kernel
Inregistrat: acum 18 ani
Postari: 490
|
|
Code:
The image “http://crazzy-boy.evonet.ro/a.php” cannot be displayed, because it contains errors. |
Evonet.ro:|
_______________________________________ NU DA CLICK !! Don ' t be a script kiddie all your life ... Learn to think .... CrazZy-World

|
|
pus acum 17 ani |
|
OSHO
Elite Member
 Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
Cand primesti erori la generarea imaginii poti da linistit view source ca sa vezi detaliile erorii. In cazul tau:
<b>Warning</b>: imagettftext()open_basedir restriction in effect. File(/sign/thebattlecont.ttf) is not within the allowed path(s): (/tmp:/usr/lib/php:/var/tmp) in <b>/storage0/home/crazzy-boy.evonet.ro/www/a.php</b> on line <b>13</b><br /> <br /> <b>Warning</b>: imagettftext() [<a href='function.imagettftext'>function.imagettftext</a> a scris:
: Invalid font filename in <b>/storage0/home/crazzy-boy.evonet.ro/www/a.php</b> on line <b>13</b><br /> |
E calea gresita catre font. Cred ca ai pus un slash in fata 
_______________________________________
 IPFind: IP Finder and browser revealer SkullBox: IT pentru incepatori _______________________________________
|
|
pus acum 17 ani |
|
S1las
Old School Member
 Din: Kernel
Inregistrat: acum 18 ani
Postari: 490
|
|
mersi mult osho , pusesem un slash n fata iar fontul era bulit schimbat font si merge treaba 
_______________________________________ NU DA CLICK !! Don ' t be a script kiddie all your life ... Learn to think .... CrazZy-World

|
|
pus acum 17 ani |
|
OSHO
Elite Member
 Din: Cluj
Inregistrat: acum 18 ani
Postari: 2069
|
|
No problem, dude 
Apropo, ar fi mai bine sa faci fisierul generat in format JPEG. Trebuie sa inlocuiesti headerul din
Code:
Header('Content-type: image/png'); |
in
Code:
Header('Content-type: image/jpeg'); |
si sa inlocuiesti
cu
Code:
imagejpeg($img,"",80); |
unde inlocuiesti 80 cu compresia care vrei sa o aiba. Asa o sa iasa mai mic fisierul. La cum e acum e mult prea mare... 130K se incarca mult prea greu daca vrei sa folosesti imaginea ca semnatura.
_______________________________________
 IPFind: IP Finder and browser revealer SkullBox: IT pentru incepatori _______________________________________
|
|
pus acum 17 ani |
|
S1las
Old School Member
 Din: Kernel
Inregistrat: acum 18 ani
Postari: 490
|
|
Esti genial 
_______________________________________ NU DA CLICK !! Don ' t be a script kiddie all your life ... Learn to think .... CrazZy-World

|
|
pus acum 17 ani |
|