usbrubberducky-payloads/payloads/library/remote_access/PingZhellDucky
0i41E 40f7f072ea
Changed Username
2024-05-28 19:25:26 +02:00
..
media Add files via upload 2022-11-16 07:41:09 +01:00
PingZhellDucky.pl Changed Username 2024-05-28 19:25:26 +02:00
README.md Changed Username 2024-05-28 19:25:26 +02:00
payload.txt Changed Username 2024-05-28 19:25:26 +02:00

README.md

Title: PingZhellDucky

Author: 0i41E
OS: Windows & Unix
Version: 1.2
Requirements: DuckyScript 3.0, perl

What is PingZhellDucky?

Imagine a scenario in which communication to and from the server is protected and filtered by a firewall and does not allow TCP shell communication to take place on any listening port (both reverse and bind TCP connection). But many environments allow ping requests to be sent and received. Ping requests work on the ICMP protocol. ICMP stands for Internet Control Message Protocol; it is used by network devices query and error messages. ICMP differs from the widely used TCP and UDP protocols because ICMP is not used for transferring data between network devices. When a device wants to test connectivity to another device, it uses the PING tool (ICMP communication) to send an ECHO REQUEST and waits for an ECHO RESPONSE. The client ICMP agent listens for ICMP packets from a specific host and uses the data in the packet for command execution. The server ICMP agent (PingZhellDucky.pl) sends ICMP packets to connect to the victim running a custom ICMP agent (PingZhellDucky input) and sends it commands to execute.

After PingZhellCable and PingZhellBunny, PingZhellDucky released. But what is different? PZD gives you the option to set up the infrastructre when not used on a Windows machine (perl and elevated privs required).

Instruction Version 1:

With automatic setup: Define INSTALL and set it to TRUE & Leave CLIENTLINK with default or choose your own alt text

Define the IP of your attacking machine between the quotes at the ATTACKER section alt text

Open up a terminal and put it into focus. Insert the Ducky into your non-Windows attack machine - wait for it to finish setup (Linux recommended - Perl required!) alt text

Start the client -> perl PingZhellDucky.pl alt text

Plug your Ducky into a Windows target.
Achieve reverse shell.
run away <3

Instruction Version 2: Without automatic setup: Define INSTALL and set it to FALSE alt text

Upload PingZhellDucky.pl onto your attacking machine. Install dependencies, if needed:

  • IO::Socket
  • NetPacket::IP
  • NetPacket::ICMP

Disable ICMP replies by the OS: sysctl -w net.ipv4.icmp_echo_ignore_all=1

Start the client -> perl PingZhellDucky.pl alt text

Define the IP of your attacking machine between the quotes at the ATTACKER section alt text

Plug your Ducky into a Windows target.
Achieve reverse shell.
run away <3

Credit for DS 3.0 implentation and ideas:

  • Korben
  • bdamele
  • Nikhil Mittal
  • krabelize