Hoşgeldin Misafir

Hacklink bulucu [PHP]

By_AgeNT

27 Kas 2018
94 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Can sıkıntısından yazmış olduğum hedef sitede eklenen hacklinkleri bulan bir php&html kod.

Demo : https://byagent.xyz/index.defacer?tools=hacklinkbulucu

PHP:
<center>
<h3>Hacklink Bulucu coded by_agent</h3>
<form action="" method="POST">
<input name="aranacaksite" type="text" value="http://site.com">
<br><br>
<button type="submit" name="hacklinkgoster">Hacklink Ara</button>
</form>
<?php
if(isset($_POST['hacklinkgoster'])) {
$site = $_POST['aranacaksite'];
if(empty($site)) {
echo 'Lutfen site giriniz.';
} else {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $site);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$girag3 = curl_exec($ch);
preg_match_all('@<div style="display: none;">(.*?)</div>@si',$girag3,$hacklinkcek);
echo '<pre>';
echo htmlspecialchars($hacklinkcek[1][0]);
echo htmlspecialchars($hacklinkcek[1][1]);
echo htmlspecialchars($hacklinkcek[1][2]);
echo htmlspecialchars($hacklinkcek[1][3]);
echo htmlspecialchars($hacklinkcek[1][4]);
echo '</pre>';
curl_close($ch);
}
}
?>

Mantık :
Hedef siteye curl ile girilir ve -<div style="display: none;"> divinin içinde bulunan tüm linkler çekilir ve gösterilir.--

Linkler html olarak gözükmesin diye htmlspecialchars ekledim.