Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Download and Execute from Bot + WebClient

Hi everyone,

I have a challenge. I do know how to use Web Client to do download and execute, no problem, but suppose i am to get the Information from a PHP File hosted on a server, how do i ask it to get it from there, download and execute it on Victim PC?
PHP runs serverside, the PHP code itself is never shown to the user, only the html part
(Apr 25, 2017 09:20 AM)FaXe Wrote:  PHP runs serverside, the PHP code itself is never shown to the user, only the html part

I know. but when someone wants to initiate download and execute. like the C++ File gets commands from the php file. one of the commands it should get from the PHP file should be downloaded and executed, to get the file from the url (http://www.xxxxxxxxxx.de/soft/server.exe) and execute on Victim PC
(Apr 25, 2017 09:24 AM)Sai Hung Wrote:  I know. but when someone wants to initiate download and execute. like the C++ File gets commands from the php file. one of the commands it should get from the PHP file should be downloaded and executed, to get the file from the url (http://www.xxxxxxxxxx.de/soft/server.exe) and execute on Victim PC

If you want to download and execute a file you could just use WebClient.DownloadFile() to download the file, then Process.Start() to run the file.
If you're trying to make the PHP file return the download URL, just use the echo() function and use WebClient.DownloadData() to get the URL.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by Who_Am_IAug 13, 2022 05:00 PM 7 370 Aug 13, 2022 05:00 PM
Last Post: nulluser123
[Python] by ZeroGayJun 6, 2022 01:21 AM 3 233 Jun 6, 2022 01:21 AM
Last Post: 3phase
[Shell] by Shunhasfaith999Nov 11, 2021 12:05 PM 3 320 Nov 11, 2021 12:05 PM
Last Post: v1nt