Estos días decidí tomar un tiempito libre para aprender otras cosas en el mundo la programación y dije que estaría bueno aprender a utilizar la consola de los sistemas operativos. La consola por excelencia de Windows es Powershell que para muchos que empiezan en una programación confunden la terminal de git que utiliza Bash con la de Powershell confundiendo los lenguajes de programación y Powershell es el nombre del lenguaje de programación en la terminal de Windows <blockquote> These days I decided to take some time off to learn other things in the programming world, and I decided it would be good to learn how to use the operating system console. The quintessential Windows console is Powershell, which many new to programming confuse the Git terminal used by Bash with the Powershell terminal, confusing the two programming languages. Powershell is the name of the programming language in the Windows terminal. </blockquote> https://images.hive.blog/DQmSwqJzKve9RbUc3cqAHruDJFdQQ4HNiBCMQ1WhnkKZUWi/concat.jpg  Conozco muy poco sobre Powershell pero su sintaxis resulta bastante específica al momento de utilizarlo porque es muy diferente a lo que está acostumbrado un programador web por ejemplo que utiliza sintaxis de letras minúsculas y aquí al revés. <blockquote> I know very little about Powershell, but its syntax is quite specific when using it because it is very different from what a web programmer, for example, is used to, who uses lowercase syntax, and here the other way around. </blockquote> https://images.hive.blog/DQmRRqMJJNTG7p6m2ZQXdKuvpdxwKkaAonjZFgFjSw3gW9o/concat2.jpg Los comandos de Powershell empiezan con letra mayúscula acompañado de las instrucciones que van a ser específicamente y aquí se verán los comandos de cómo obtengo los bytes de cada elemento que en un caso es una imagen de mucha resolución y el otro es un documento de texto con un simple script dentro. El script no va a funcionar en ningún navegador por cuestiones de seguridad pero es como si uno hubiera escrito algo sencillito que contiene 38 caracteres los cual si los transformamos a byte serían 38 bytes. <blockquote> Powershell commands begin with a capital letter, accompanied by the specific instructions. Here, you'll see the commands for how I get the bytes of each element. In one case, it's a high-resolution image and the other, a text document with a simple script inside. The script won't work in any browser for security reasons, but it's as if you had written something simple containing 38 characters, which, if converted to bytes, would be 38 bytes. </blockquote>  Hay cosas que uno tiene que entender de trabajar con las terminales es que en principio no existe auto completado y eso puede resultar un dolor de cabeza si estás acostumbrado a utilizar un editor de código pero aquí no es mucho el problema porque hay comandos que permiten indicarle al lenguaje de Powers que estás trabajando dentro Cómo se podrá ver en las imágenes la concatenación simplemente llevó un par de comandos que primero guardan en variables los bytes de cada uno y luego los unes para el final general el archivo permitiendo que se pueda abrir la imagen y que por detrás tenga unos bytes extra que son el script escrito de esa misma ruta con los archivos. <blockquote> There are things that one has to understand when working with terminals is that in principle there is no auto completion and that can be a headache if you are used to using a code editor but here it is not much of a problem because there are commands that allow you to indicate to the Powers language that you are working inside. As you can see in the images, the concatenation simply involved a couple of commands that first save the bytes of each one in variables and then join them together for the general end of the file allowing the image to be opened and having some extra bytes behind it which are the script written from that same path with the files. </blockquote> https://images.hive.blog/DQmRmMdnCzKi92VQ6aUehESLepoMk2UpvCKaPyBq3tm8mKr/concat4.jpg Próximamente tutorial mostraré cómo puede ocurrir algún problema de seguridad en el navegador si dicha imagen contiene script malicioso y por algún error en el navegador ese script se puede interpretar y ejecutar. <blockquote> In a coming tutorial, I will show how a security problem can occur in the browser if the image contains a malicious script and due to an error in the browser, that script can be interpreted and executed. </blockquote>
author | dobro2020 |
---|---|
permlink | concatenando-una-imagen-y-un-documento-de-texto-con-powershell-spa-eng |
category | hive-196387 |
json_metadata | {"tags":["hive-196387","spanish","stemng","stemsocial","stem","coding","stemgeeks","curangel"],"image":["https://images.hive.blog/DQmSwqJzKve9RbUc3cqAHruDJFdQQ4HNiBCMQ1WhnkKZUWi/concat.jpg","https://images.hive.blog/DQmesYfB1AfS6fZXJsP2Yy5uiA4fLcz6JaPVhCW4Trdv3a8/concat1.jpg","https://images.hive.blog/DQmRRqMJJNTG7p6m2ZQXdKuvpdxwKkaAonjZFgFjSw3gW9o/concat2.jpg","https://images.hive.blog/DQmXjW8dYKMUuy3S76hEdsP41277Stw6x9iHb9MdyLyW2NG/concat3.jpg","https://images.hive.blog/DQmRmMdnCzKi92VQ6aUehESLepoMk2UpvCKaPyBq3tm8mKr/concat4.jpg"],"app":"hiveblog/0.1","format":"markdown"} |
created | 2025-08-10 18:50:54 |
last_update | 2025-08-10 18:50:54 |
depth | 0 |
children | 1 |
last_payout | 1969-12-31 23:59:59 |
cashout_time | 2025-08-17 18:50:54 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 1.596 HBD |
promoted | 0.000 HBD |
body_length | 4,678 |
author_reputation | 67,777,012,692,338 |
root_title | "Concatenando una imagen y un documento de texto con Powershell [SPA-ENG]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 144,865,378 |
net_rshares | 5,029,099,780,205 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
xeldal | 0 | 813,919,128,858 | 2.5% | ||
adol | 0 | 210,807,150,078 | 2.5% | ||
enki | 0 | 540,592,968,199 | 2.5% | ||
kevinwong | 0 | 1,376,312,768 | 0.6% | ||
eric-boucher | 0 | 3,372,280,907 | 0.6% | ||
roelandp | 0 | 77,153,832,250 | 5% | ||
cloh76 | 0 | 792,811,422 | 0.6% | ||
lemouth | 0 | 307,821,510,151 | 10% | ||
tfeldman | 0 | 1,084,317,125 | 0.6% | ||
metabs | 0 | 1,144,024,753 | 10% | ||
mcsvi | 0 | 99,585,776,837 | 50% | ||
boxcarblue | 0 | 3,801,957,105 | 0.6% | ||
justyy | 0 | 8,771,931,947 | 1.2% | ||
michelle.gent | 0 | 725,000,909 | 0.24% | ||
curie | 0 | 71,754,464,641 | 1.2% | ||
modernzorker | 0 | 594,112,995 | 0.84% | ||
techslut | 0 | 25,919,020,043 | 4% | ||
steemstem | 0 | 184,025,800,984 | 10% | ||
yadamaniart | 0 | 1,040,023,623 | 0.6% | ||
walterjay | 0 | 103,386,368,490 | 5% | ||
valth | 0 | 861,676,889 | 5% | ||
metroair | 0 | 6,473,088,459 | 1.2% | ||
driptorchpress | 0 | 461,150,169 | 0.3% | ||
dna-replication | 0 | 343,598,051 | 10% | ||
dhimmel | 0 | 5,609,915,376 | 2.5% | ||
oluwatobiloba | 0 | 568,627,955 | 10% | ||
detlev | 0 | 8,915,032,375 | 0.36% | ||
dune69 | 0 | 641,552,311 | 1.2% | ||
gamersclassified | 0 | 631,936,789 | 0.6% | ||
forykw | 0 | 5,229,365,653 | 0.6% | ||
eliel | 0 | 896,035,757 | 1.2% | ||
jerrybanfield | 0 | 4,137,423,498 | 1.2% | ||
rt395 | 0 | 753,458,452 | 1.5% | ||
bitrocker2020 | 0 | 2,609,864,475 | 0.24% | ||
ohamdache | 0 | 727,717,784 | 0.6% | ||
helo | 0 | 9,165,168,178 | 5% | ||
arunava | 0 | 3,530,355,573 | 0.48% | ||
juancar347 | 0 | 5,286,605,211 | 0.6% | ||
samminator | 0 | 5,637,559,396 | 5% | ||
enjar | 0 | 13,929,012,384 | 1.08% | ||
lorenzor | 0 | 1,262,071,042 | 50% | ||
alexander.alexis | 0 | 6,913,369,847 | 10% | ||
jayna | 0 | 1,850,621,337 | 0.24% | ||
princessmewmew | 0 | 1,552,487,255 | 0.6% | ||
joeyarnoldvn | 0 | 448,630,324 | 1.47% | ||
pipiczech | 0 | 536,452,117 | 1.2% | ||
empath | 0 | 1,705,360,642 | 1.02% | ||
minnowbooster | 0 | 781,812,803,945 | 20% | ||
felt.buzz | 0 | 1,806,211,271 | 0.3% | ||
howo | 0 | 191,567,918,520 | 10% | ||
tsoldovieri | 0 | 1,030,859,120 | 5% | ||
droida | 0 | 233,793,107,501 | 100% | ||
neumannsalva | 0 | 1,090,857,930 | 0.6% | ||
stayoutoftherz | 0 | 35,081,526,448 | 0.3% | ||
abigail-dantes | 0 | 3,793,331,126 | 10% | ||
coindevil | 0 | 617,026,246 | 0.96% | ||
investingpennies | 0 | 3,395,710,631 | 1.2% | ||
iamphysical | 0 | 27,994,093,280 | 90% | ||
azulear | 0 | 674,920,485 | 100% | ||
psicoluigi | 0 | 761,334,405 | 50% | ||
rocky1 | 0 | 167,558,863,273 | 0.18% | ||
aidefr | 0 | 1,102,642,368 | 5% | ||
buttcoins | 0 | 10,538,930,801 | 0.24% | ||
enzor | 0 | 511,256,145 | 10% | ||
bartosz546 | 0 | 563,652,788 | 0.6% | ||
sunsea | 0 | 1,669,943,742 | 0.6% | ||
bluefinstudios | 0 | 674,380,136 | 0.36% | ||
steveconnor | 0 | 1,093,841,631 | 0.6% | ||
aboutcoolscience | 0 | 3,093,142,843 | 10% | ||
kenadis | 0 | 2,560,880,636 | 10% | ||
madridbg | 0 | 2,546,506,065 | 10% | ||
robotics101 | 0 | 3,077,330,529 | 10% | ||
adelepazani | 0 | 770,482,280 | 0.24% | ||
rebe.torres12 | 0 | 1,025,747,662 | 100% | ||
sco | 0 | 2,946,381,159 | 10% | ||
ennyta | 0 | 923,776,117 | 50% | ||
juecoree | 0 | 609,896,745 | 7% | ||
gabrielatravels | 0 | 1,003,011,004 | 0.42% | ||
hetty-rowan | 0 | 503,448,817 | 0.6% | ||
intrepidphotos | 0 | 2,997,460,430 | 7.5% | ||
fineartnow | 0 | 869,438,931 | 0.6% | ||
oscarina | 0 | 738,042,882 | 10% | ||
aiziqi | 0 | 1,076,471,332 | 5% | ||
steemvault | 0 | 496,864,363 | 1.2% | ||
utube | 0 | 866,161,523 | 1.2% | ||
m1alsan | 0 | 1,193,258,824 | 1.2% | ||
marc-allaria | 0 | 515,261,449 | 0.6% | ||
sportscontest | 0 | 1,239,103,456 | 1.2% | ||
miguelangel2801 | 0 | 739,849,218 | 50% | ||
mproxima | 0 | 761,616,743 | 0.6% | ||
fantasycrypto | 0 | 879,951,890 | 1.2% | ||
emiliomoron | 0 | 885,706,194 | 5% | ||
photohunt | 0 | 703,877,127 | 1.2% | ||
geopolis | 0 | 617,064,874 | 10% | ||
robertbira | 0 | 1,037,484,887 | 2.5% | ||
alexdory | 0 | 1,807,399,804 | 10% | ||
takowi | 0 | 25,573,658,822 | 1.2% | ||
irgendwo | 0 | 3,991,384,374 | 1.2% | ||
francostem | 0 | 1,331,491,009 | 10% | ||
endopediatria | 0 | 675,680,864 | 20% | ||
chrislybear | 0 | 1,746,238,283 | 0.6% | ||
putu300 | 0 | 1,059,012,036 | 5% | ||
zipporah | 0 | 600,391,643 | 0.24% | ||
superlotto | 0 | 1,233,755,816 | 1.2% | ||
jorgebgt | 0 | 11,351,638,687 | 100% | ||
satren | 0 | 18,993,417,480 | 10% | ||
bscrypto | 0 | 3,506,489,259 | 0.6% | ||
tomastonyperez | 0 | 15,962,570,344 | 50% | ||
bil.prag | 0 | 610,349,332 | 0.06% | ||
elvigia | 0 | 10,457,046,807 | 50% | ||
sanderjansenart | 0 | 1,286,719,996 | 0.6% | ||
greddyforce | 0 | 1,055,765,032 | 0.44% | ||
braaiboy | 0 | 232,567,549,597 | 50% | ||
gadrian | 0 | 92,116,559,150 | 6% | ||
therising | 0 | 22,719,897,080 | 1.2% | ||
cryptocoinkb | 0 | 452,760,466 | 0.6% | ||
de-stem | 0 | 5,406,011,648 | 9.9% | ||
josedelacruz | 0 | 4,179,387,877 | 50% | ||
softa | 0 | 1,054,167,565 | 0.24% | ||
erickyoussif | 0 | 605,590,083 | 100% | ||
deholt | 0 | 520,809,822 | 8.5% | ||
meins0815 | 0 | 11,118,521,197 | 23% | ||
crimo | 0 | 680,945,415 | 11.5% | ||
minerthreat | 0 | 897,052,227 | 0.6% | ||
nateaguila | 0 | 61,389,985,100 | 5% | ||
temitayo-pelumi | 0 | 949,073,559 | 10% | ||
andrick | 0 | 804,664,878 | 50% | ||
carilinger | 0 | 21,038,243,781 | 2.5% | ||
doctor-cog-diss | 0 | 9,122,231,969 | 10% | ||
musicvoter2 | 0 | 1,550,958,705 | 1% | ||
acont | 0 | 1,487,403,718 | 50% | ||
uche-nna | 0 | 1,683,168,052 | 0.96% | ||
cheese4ead | 0 | 971,689,584 | 0.6% | ||
dgi | 0 | 517,953,069 | 20% | ||
nattybongo | 0 | 3,886,877,825 | 10% | ||
talentclub | 0 | 731,793,720 | 0.6% | ||
esteliopadilla | 0 | 450,974,118 | 100% | ||
bflanagin | 0 | 453,836,483 | 0.6% | ||
armandosodano | 0 | 1,420,319,595 | 0.6% | ||
bambinaacida | 0 | 2,630,063,921 | 50% | ||
kylealex | 0 | 5,383,925,673 | 10% | ||
fran.frey | 0 | 3,927,343,581 | 50% | ||
pboulet | 0 | 18,305,248,914 | 8% | ||
parsavel | 0 | 680,940,949 | 100% | ||
stem-espanol | 0 | 2,311,768,043 | 100% | ||
aleestra | 0 | 15,184,836,792 | 80% | ||
palasatenea | 0 | 473,604,200 | 0.6% | ||
the.success.club | 0 | 752,568,870 | 0.6% | ||
giulyfarci52 | 0 | 1,603,584,750 | 50% | ||
multifacetas | 0 | 836,641,337 | 0.6% | ||
cakemonster | 0 | 633,920,482 | 1.2% | ||
stem.witness | 0 | 561,676,096 | 10% | ||
wilmer14molina | 0 | 571,722,612 | 50% | ||
steemstorage | 0 | 1,555,814,897 | 1.2% | ||
aqua.nano | 0 | 594,592,881 | 100% | ||
hairgistix | 0 | 688,392,476 | 0.6% | ||
steemean | 0 | 9,942,825,429 | 5% | ||
killerbot | 0 | 470,505,939 | 50% | ||
aydie1000 | 0 | 1,275,726,423 | 100% | ||
littlesorceress | 0 | 1,239,851,106 | 1.2% | ||
cryptofiloz | 0 | 1,900,814,802 | 1.2% | ||
dawnoner | 0 | 579,901,009 | 0.12% | ||
memehub | 0 | 690,982,425 | 0.6% | ||
qwerrie | 0 | 1,378,902,966 | 0.09% | ||
tiffin | 0 | 750,063,304 | 1.2% | ||
reggaesteem | 0 | 486,416,593 | 5% | ||
tokensink | 0 | 756,559,967 | 1.2% | ||
stem.alfa | 0 | 2,120,574,420 | 45% | ||
steemstem-trig | 0 | 163,306,198 | 10% | ||
baltai | 0 | 1,707,041,312 | 0.6% | ||
ibt-survival | 0 | 37,465,158,121 | 10% | ||
delilhavores | 0 | 583,702,041 | 1.2% | ||
hive-199963 | 0 | 1,094,738,997 | 1.2% | ||
stemsocial | 0 | 83,245,062,146 | 10% | ||
holoferncro | 0 | 1,973,034,992 | 5% | ||
the100 | 0 | 1,450,983,289 | 0.6% | ||
noelyss | 0 | 3,275,741,474 | 5% | ||
quinnertronics | 0 | 16,039,358,389 | 7% | ||
altleft | 0 | 5,431,158,832 | 0.01% | ||
meritocracy | 0 | 16,722,580,671 | 0.12% | ||
dcrops | 0 | 5,279,025,976 | 0.6% | ||
whywhy | 0 | 569,298,933 | 0.33% | ||
yozen | 0 | 1,813,695,149 | 0.6% | ||
tawadak24 | 0 | 962,310,706 | 0.6% | ||
wynella | 0 | 22,603,015,531 | 50% | ||
nyxlabs | 0 | 1,507,476,369 | 5% | ||
failingforwards | 0 | 734,184,605 | 0.6% | ||
drricksanchez | 0 | 3,593,923,075 | 0.6% | ||
nfttunz | 0 | 2,728,747,101 | 0.12% | ||
okluvmee | 0 | 998,468,195 | 0.6% | ||
merit.ahama | 0 | 746,410,840 | 0.36% | ||
holovision.cash | 0 | 4,095,335,881 | 100% | ||
holovision.stem | 0 | 512,826,337 | 45% | ||
t-nil | 0 | 568,412,927 | 10% | ||
mayberlys | 0 | 2,286,668,500 | 50% | ||
aries90 | 0 | 11,131,109,985 | 1.2% | ||
migka | 0 | 5,541,326,479 | 90% | ||
moriaty | 0 | 9,273,919,352 | 100% | ||
psyberx | 0 | 16,641,394,493 | 20% | ||
captaindingus | 0 | 2,005,019,265 | 0.6% | ||
newilluminati | 0 | 3,625,211,908 | 0.6% | ||
belug | 0 | 1,631,684,823 | 0.36% | ||
itcouldbecloud | 0 | 687,773,137 | 100% | ||
callmesmile | 0 | 733,742,002 | 0.6% | ||
jijisaurart | 0 | 611,867,609 | 0.6% | ||
jpatrick28 | 0 | 2,193,821,243 | 100% | ||
wasined | 0 | 3,690,245,089 | 1.2% | ||
clpacksperiment | 0 | 521,543,254 | 0.6% | ||
akwash360 | 0 | 17,740,175,777 | 100% | ||
humbe | 0 | 9,196,647,772 | 2% | ||
jhymi | 0 | 1,208,266,351 | 0.6% | ||
argo8 | 0 | 1,388,483,584 | 0.6% | ||
rhemagames | 0 | 1,097,510,329 | 0.6% | ||
soylegionario | 0 | 1,609,164,869 | 1.2% | ||
shmieta | 0 | 5,448,002,425 | 100% | ||
profwhitetower | 0 | 679,123,900 | 5% | ||
arka1 | 0 | 1,369,201,752 | 0.6% | ||
rayhanhiveman | 0 | 4,453,310,336 | 100% |
<div class='text-justify'> <div class='pull-left'> <img src='https://stem.openhive.network/images/stemsocialsupport7.png'> </div> Thanks for your contribution to the <a href='/trending/hive-196387'>STEMsocial community</a>. Feel free to join us on <a href='https://discord.gg/9c7pKVD'>discord</a> to get to know the rest of us! Please consider delegating to the @stemsocial account (85% of the curation rewards are returned). Consider setting @stemsocial as a beneficiary of this post's rewards if you would like to support the community and contribute to its mission of promoting science and education on Hive. <br /> <br /> </div>
author | stemsocial |
---|---|
permlink | re-dobro2020-concatenando-una-imagen-y-un-documento-de-texto-con-powershell-spa-eng-20250811t022308195z |
category | hive-196387 |
json_metadata | {"app":"STEMsocial"} |
created | 2025-08-11 02:23:06 |
last_update | 2025-08-11 02:23:06 |
depth | 1 |
children | 0 |
last_payout | 1969-12-31 23:59:59 |
cashout_time | 2025-08-18 02:23:06 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 646 |
author_reputation | 22,930,655,615,829 |
root_title | "Concatenando una imagen y un documento de texto con Powershell [SPA-ENG]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 144,878,682 |
net_rshares | 0 |