Erdal Demirkıran(Dünyanın En Akıllı Adamı) Bu gece saat 01:00 Kanal ''D'' Okan Bayülgen'in ''Muhabbet Kralı'' adlı programına canlı yayın konuğu olarak katılacakmış..İzlemenizi tavsiye ederim..

buradan Erdal Demirkıran'ın Birleşmiş Milletler başkanı Kofi Annan'ı nasıl tufaya getirdiğini ve dünya barış kentinin nasıl Nevşehir ilan edildiğini öğrenebilirsiniz..

Kısacası.. Akıl dolu bir insan,hoca vs vs.. takip etmenizi tavsiye ederim.. :)

<?php
class Google_Translate_API {
function translate($text, $from = '', $to = 'en') {
$url = 'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0'.''.'&q='.rawurlencode($text).'&langpair='.rawurlencode($from.'|'.$to);
$response = file_get_contents(
$url,
null,
stream_context_create(
array(
'http'=>array(
'method'=>"GET",
'header'=>"Referer: http://".$_SERVER['HTTP_HOST']."/\r\n"
)
)
)
);
if (preg_match("/{\"translatedText\":\"([^\"]+)\"/i", $response, $matches)) {
return self::_unescapeUTF8EscapeSeq($matches[1]);
}
return false;
}
function _unescapeUTF8EscapeSeq($str) {
return preg_replace_callback("/\\\u([0-9a-f]{4})/i", create_function('$matches', 'return html_entity_decode(\'&#x\'.$matches[1].\';\', ENT_NOQUOTES, \'UTF-8\');'), $str);
}
}

// kullanımı..
$text = $_GET['q'];
$lf = $_GET['from'];
$lt = $_GET['to'];
if($text != ''){
$trans_text = Google_Translate_API::translate($text, $lf, $lt);
if ($trans_text !== false) {
echo $trans_text;
}
}

?>


şu şekilde kullanıcaz..
(tugrulalpdogan.com/cevir.php?q=apple&from=en&to=tr)
sayfada görünen değer "elma" olacaktır..

/* Exploit-db */
<table border="1px">
<?php
$xml = simplexml_load_file("http://www.exploit-db.com/rss.php");
for($i=0;$i<24;$i++){
$tarih = str_replace('00:00:00 -0500','',$xml->channel->item[$i]->pubDate);
$yazar = $xml->channel->item[$i]->author;
$baslik = $xml->channel->item[$i]->title;
$link = $xml->channel->item[$i]->link;
echo "<tr>
<td>".$tarih."</td>
<td><a href=\"".$link."\">".$baslik."</a></td>
<td>".$yazar."</td></tr>";
}
?>
</table>



/* Milw0rm */
<table border="1px">
<?php
$xml = simplexml_load_file("http://www.milw0rm.com/rss.php");
for($i=0;$i<9;$i++){
$tarih = str_replace('00:00:00 GMT','',$xml->channel->item[$i]->pubDate);
$baslik = $xml->channel->item[$i]->title;
$link = $xml->channel->item[$i]->link;
echo "
<tr>
<td>".$tarih."</td>
<td><a href=\"".$link."\">".$baslik."</a></td>
</tr>
";
}
?>
</table>
twitter durumunuzu imza olarak gösterin.
Kaynak : http://code.google.com/p/twitnature/
Çalışan sistem: http://tw.dosyabilgi.com
Yükle: http://code.google.com/p/twitnature/downloads/list

kaynak : theylmz.com
Gönderen Tuğrul Etiketler: , ,
şablonda body taginin hemen altına şağıdaki kodları ekliyoruz dil dosyalarını
http://alexgorbatchev.com/pub/sh/2.0.320/scripts/ buradan bulabilirsiniz.


<!-- ana js ve css dosyaları -->
<link href='http://alexgorbatchev.com/pub/sh/2.0.320/styles/shCore.css' rel='stylesheet' type='text/css'/>
<link href='http://alexgorbatchev.com/pub/sh/2.0.320/styles/shThemeMidnight.css' rel='stylesheet' type='text/css'/>
<script language='javascript' src='http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shCore.js'></script>
<!-- ana js ve css dosyaları -->

<!-- dil dosyaları -->
<script language='javascript' src='http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushPhp.js'></script>
<script language='javascript' src='http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushCSharp.js'></script>
<script language='javascript' src='http://alexgorbatchev.com/pub/sh/2.0.320/scripts/shBrushVb.js'></script>
<!-- dil dosyaları -->


<!-- Eklenti ayarları -->
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'></script>
<script type='text/javascript'>
$(document).ready( function() {
SyntaxHighlighter.config.bloggerMode = true;
SyntaxHighlighter.config.clipboardSwf = 'http://alexgorbatchev.com/pub/sh/2.0.320/scripts/clipboard.swf';
SyntaxHighlighter.defaults['wrap-lines'] = true;
SyntaxHighlighter.config.strings.expandSource = "Genişlet";
SyntaxHighlighter.config.strings.viewSource = "Kaynağa bak";
SyntaxHighlighter.config.strings.copyToClipboard = "Clipboarda al";
SyntaxHighlighter.config.strings.copyToClipboardConfirmation = "Kopyalandı";
SyntaxHighlighter.config.strings.print = "Yazdır";
SyntaxHighlighter.config.strings.help = "Yapımcı";
SyntaxHighlighter.config.strings.alert = "www.tugrulalpdogan.com\n\n";
SyntaxHighlighter.all();
});
</script>
<!-- Eklentiyi etkinleştir -->
Gönderen Tuğrul Etiketler: , ,
C#da girilen sitenin bulunduğu serverdaki diğer siteleri görüntülemek için neler yapılabilir onu anlatacağım.Her zaman oldugu gibi gavurların scriptlerini sömürücez :).

Öncelikle aşağıdaki namespaceleri ekleyelim..

using System.Text.RegularExpressions;
using System.Collections;
using System.Net;
using System.IO;

ve post göndermek için gereken fonksiyonumuzu yazalım..

public string postGonder(string url, string data)
{
string vystup = null;
try
{
byte[] buffer = Encoding.ASCII.GetBytes(data);
HttpWebRequest WebReq = (HttpWebRequest)WebRequest.Create(url);
WebReq.Method = "POST";
WebReq.ContentType = "application/x-www-form-urlencoded";
WebReq.ContentLength = buffer.Length;
Stream PostData = WebReq.GetRequestStream();
PostData.Write(buffer, 0, buffer.Length);
PostData.Close();
HttpWebResponse WebResp = (HttpWebResponse)WebReq.GetResponse();
Console.WriteLine(WebResp.StatusCode);
Console.WriteLine(WebResp.Server);
Stream Answer = WebResp.GetResponseStream();
StreamReader _Answer = new StreamReader(Answer);
vystup = _Answer.ReadToEnd();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
return vystup.Trim() + "\n";
}

forma 1 textbox 1 button ve 1 adet listbox ekleyin buttonun click olayına aşağıdakileri yazacağız..

ArrayList reverseArr = new ArrayList();
string src = postGonder("http://www.guerrilladns.com/index.php", "domain=" + textBox1.Text);
Regex rgx = new Regex("rel=\"nofollow\" >(?<site>(.*?))</a>");
Match metch; string site;
for (metch = rgx.Match(src); metch.Success; metch = metch.NextMatch())
{
site = metch.Groups["site"].ToString();
site = site.Replace("www.", "");
if (!reverseArr.Contains(site)){listBox1.Items.Add(site);}}

ben reverseArr adlı arrayi aynı siteler sürekli eklenmesin diye yaptım siz yapacağınız işe göre değiştirebilirsiniz ayrıca thread ile çalıştırırsanız post gönderdiğiniz için program kitlenmez :)
Gönderen Tuğrul Etiketler: , , , ,
Girilen IP hakkında detaylı bilgi veren bir servis var (http://ipinfodb.com/ip_query.php?ip=IP) bu servis daha önceden h4ckinger phpde kullandı fakat bende C#da nasıl kullanılır onu açıklayayım :)

Başlamadan önce bi inceliyelim.. http://ipinfodb.com/ip_query.php?ip=209.85.227.104 diye çalıştırdığımızda bize



diye bir xml dosyası döndürüyor şimdi bu xmlyi önce bilgisayarımıza download edip daha sonra ReadXml fonksiyonu ile okuyacağız..


Öncelikle WebClient sınıfını kullanıcağımız için System.Net i eklememiz gerek


using System.Net;

string IP = "209.85.227.104";
DataSet ds = new DataSet();
WebClient wb = new WebClient();
wb.DownloadFile("http://ipinfodb.com/ip_query.php?ip=" + IP, "x.xml");
ds.ReadXml("x.xml");
foreach(DataRow dr in ds.Tables[0].Rows)
{
MessageBox.Show("Ülke : " + dr["CountryName"].ToString());
MessageBox.Show("Şehir : " + dr["City"].ToString());
}


bu şekilde kolonları tek tek çektik istersek hepsini birlikte çekip datagrid e atayabiliriz..

string IP = "209.85.227.104";
DataSet ds = new DataSet();
WebClient wb = new WebClient();
wb.DownloadFile("http://ipinfodb.com/ip_query.php?ip=" + IP, "x.xml");
ds.ReadXml("x.xml");
dataGridView1.DataMember = "Response";
dataGridView1.DataSource = ds;

bu sayede programımızı kullananlar hakkında bilgi edinebiliriz ee peki kullanıcının ipsini nerden bulabiliriz ?

çok basit..

using System.Net;
using System.Text.RegularExpressions;
using System.IO;

//namespacelerini ekliyoruz.


private string source(string siteAddress)
{
string retVal = "";
WebResponse webResponse = null;
try
{
WebRequest webRequest = WebRequest.Create(siteAddress);
webResponse = webRequest.GetResponse();
Stream stream = webResponse.GetResponseStream();
StreamReader streamReader = new StreamReader(stream);
retVal = streamReader.ReadToEnd();
}
catch (WebException)
{
//Error
}
return retVal;
}

kaynak kod için fonksiyonumuzu yazdık..

string src = source("http://whatismyipaddress.com/");
Regex regex = new Regex("Your IP address is (.*?)");
Match ipm = regex.Match(src);
string IP = ipm.Groups[0].ToString();
DataSet ds = new DataSet();
WebClient wb = new WebClient();
wb.DownloadFile("http://ipinfodb.com/ip_query.php?ip=" + IP, "x.xml");
ds.ReadXml("x.xml");
dataGridView1.DataMember = "Response";
dataGridView1.DataSource = ds;


bu kadar basit.. kolay gelsin :)


spekülatif düşlerin spazmı var..!?
kopirayt 2oo9 | tugrulalpdogan.Com
Tüm hakları ajdar'a devredilmiştir.