Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execute after base64 decode

Tags:

linux

bash

shell

I have the below command

echo 'IHBpbmcgZ29vZ2xlLmNvbQo=' | base64 -d 

which will give ping google.com

I want to execute the ping google.com after base64 decoding

echo 'IHBpbmcgZ29vZ2xlLmNvbQo=' | base64 -d | ?

What should be the command for ? after piping the base64 -d I did xargs but didnt execute.

like image 667
Joel Deleep Avatar asked Nov 04 '25 05:11

Joel Deleep


2 Answers

`echo 'IHBpbmcgZ29vZ2xlLmNvbQo=' | base64 -d`
like image 60
Slawomir Dziuba Avatar answered Nov 07 '25 11:11

Slawomir Dziuba


$echo 'IHBpbmcgZ29vZ2xlLmNvbQo=' | base64 -d  |  bash 
PING google.com(maa05s02-in-x0e.1e100.net (2404:6800:4007:80c::200e)) 56 data bytes
like image 24
Digvijay S Avatar answered Nov 07 '25 09:11

Digvijay S