Unveiling the Hidden CMD Trick: How to Send Secret Messages Using Ping!

mdshamsfiroz
2 min readJul 30, 2023

--

n the vast digital world, a hidden technique thrived — using the simple “ping” command to send secret messages. Unbeknownst to many, a curious tech enthusiast stumbled upon this mysterious phenomenon. Join us on a thrilling cyber-adventure as we uncover the secrets behind this covert art. Learn how a single ping can carry hidden strings, weaving a digital tale of intrigue!

Let’s help you How You also can find it in your own Linux system.

I performed practicals in RHEL-9. You can try also in other distros. may be a little bit of command will get changed.

Step 1:-You must have to login local host account.

Step 2:- Write this line

(echo "Hello, World!" & ping -c 1 localhost) | sed 's/^/    /'

Now, you are feeling confused about what I have written in bash.

Worry Not, Let’s understand

Replace “Your string here” with the string you want to output.

Explanation:

  • (echo "Your string here" & ping -c 1 localhost) runs both echo and ping commands in a subshell, allowing them to run concurrently.
  • The & symbol is used to run the echo and ping commands in parallel.
  • ping -c 1 localhost sends a single ICMP echo request packet to localhost.
  • The | a symbol is used to pipe the output of the subshell to the sed command.
  • sed 's/^/ /' indents the output of ping by adding four spaces at the beginning of each line.

Example: To output the string “Hello, World!” along with the ping result, you would use the following command:

So, whether you’re a tech enthusiast, a professional, or just someone who wants to learn more, I invite you to follow me on this journey. Subscribe to my blog and follow me on social media to stay in the loop and never miss a post.

Together, let’s explore the exciting world of technology and all that it has to offer. I can’t wait to connect with you!”

Connect me on Social Media: https://linktr.ee/mdshamsfiroz

--

--

mdshamsfiroz
mdshamsfiroz

Written by mdshamsfiroz

Trying to learn tool by putting heart inside to make something

No responses yet