[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程批处理在线视频分享
返回列表 发帖

[文件操作] [已解决]批处理调用certutil输出图片求改进

本帖最后由 SQYSQYSQY 于 2019-1-6 15:44 编辑

偶然间制作了一个输出图片的程序,但要按14次回车也不免让人烦。求改进。
注:第三行原来还有set 1=……,既然问题解决了,就省略那部分
  1. @echo off
  2. setlocal enabledelayedexpansion
  3. IF EXIST 一朵白云.txt del /q 一朵白云.txt >nul
  4. for /l %%i in (1 1 14) do (
  5. set /a "a=14-%%i+1"
  6. echo 请按回车继续:(还需按!a!次)
  7. set /p=!%%i!>>一朵白云.txt
  8. if "%%i"=="1" attrib +h 一朵白云.txt >nul
  9. )
  10. certutil -decodehex 一朵白云.txt 一朵白云.jpg >nul
  11. attrib -h 一朵白云.txt >nul
  12. del /q 一朵白云.txt >nul
复制代码
1

评分人数

    • Batcher: 感谢给帖子标题标注[已解决]字样PB + 2

本帖最后由 523066680 于 2019-1-6 08:59 编辑

set /p=!%%i!>>一朵白云.txt <nul

总感觉是在钓鱼(有其他坑?)?
综合型编程论坛
Writing Code That Nobody Else Can Read.
思而不学则die

TOP

一次性输出不就行了?
  1. @echo off
  2. echo ffd8ffe000104a46494600010100000100010000ffdb00840006040506050406060506070706080a100a0a09090a140e0f0c1017141818171416161a1d251f1a1b231c1616202c20232627292a29191f2d302d283025282928010707070a080a130a0a13281a161a2828282828282828282828282828282828282828282828282828282828282828282828282828282828282828282828282828ffc0001108004e006203011100021101031101ffc401a20000010501010101010100000000000000000102030405060708090a0b100002010303020403050504040000017d01020300041105122131410613516107227114328191a1082342b1c11552d1f02433627282090a161718191a25262728292a3435363738393a434445464748494a535455565758595a636465666768696a737475767778797a838485868788898a92939495969798999aa2a3a4a5a6a7a8a9aab2b3b4b5b6b7b8b9bac2c3c4c5c6c7c8c9cad2d3d4d5d6d7d8d9dae1e2e3e4e5e6e7e8e9eaf1f2f3f4f5f6f7f8f9fa0100030101010101010101010000000000000102030405060708090a0b1100020102040403040705040400010277000102031104052131061241510761711322328108144291a1b1c109233352f0156272d10a162434e125f11718191a262728292a35363738393a434445464748494a535455565758595a636465666768696a737475767778797a82838485868788898a92939495969798999aa2a3a4a5a6a7a8a9aab2b3b4b5b6b7b8b9bac2c3c4c5c6c7c8c9cad2d3d4d5d6d7d8d9dae2e3e4e5e6e7e8e9eaf2f3f4f5f6f7f8f9faffda000c03010002110311003f00fa5eb4320a002800a00280398d4bc616d67b1e2b2bdbb81ced49a2312a39ff00677ba923dc020f183cd79d5334c3c24e17bb5bf91a2a3265ad0fc4f61abddb59c627b7be54329b6b840afb01009e0907a8ef9e6ba30d8ba5898f35377267071dcddae9242800a002800a00f837f69aff0092dfe24ffb76ff00d268aa25b9a4763eebb9b98ad9732b609e83b9a739a82bb326ec67beb280fc90b1fab62b9de2d7444b9a226d664fe18907d49351f5b7d85ce31b57b83d0463f0a4f1337b0b9ce43c79e23d621b17b482165b5ba410bde230cc658edda1402c4907823d6b1a95aab83b1ad26e5231ac7599753d404f696b65243a644c1a2fb660a1e9c204246003c103902be66391ce519fbf6733d4bbd1f62e6a1e2cb6b94d35d51ad75549e36b56c826453224722a91d46d7e41c7638e2ab2dcbf1b96e2231525283bdccb10e2e0d9daa6a174a73e6b37fbdcd7d2c6bcd6ecf2f99921d52ebfbcbff7cd57d6661cec61d4aebfe7a7e8297d6262e761fda577ff003d7f414feb131f3b25b7d42f259563460ccc7032a2aa1889c9d871936cf8bbf69aff0092e1e25ffb76ff00d268abb1ee744763ee4d4acfed71aed38917a1f6f4a8ad4bda2326aeac738410c4771c579d671d198b0a4b511937faeda5acf25b45e6dddf2601b7b742ec0919018f45cf5f988a6e36d59a53a529e88e7eff00fb75758b0bad62d34bfb22a3e03c8cd146e482a18edf95f8c6e3f2fa609e6b4b591e8d1c3fb27a9d3e9b14890c8ba92430cf724ae6294e24182381c61b1d76f7e6b3675c7a997e21b0b7d1041ae5a26dfb08d93a64906dc9f9ce3d470e5ba9da477aa8b6f4673e268a9474275f14692e330dcc93a7f7e0b79254ff00be9548abf64f45d8f2b91ad0bfa76a763a9233585d433ede18238254fa11d41f635328344b897690828037b48b3f222f3641fbd71d3fba2bbf0f4f955dee6d1563e1ff00da6bfe4b7f893feddbff0049a2ad65b9b4763ef2ab3331bc431dbdbd8dc5fcce90a40a6495d8e06d1d49ae6af45495d6e4b8dce3f4cb6f11f8a3135888f44d25b949ee62f32e665fef2c648080f6dd93ec2b2861fab08d2b6e54bfd167f026b26fa7bcb8bed2b516517375385dd05c63682db40011800338e0a8f5a2b51d343d0c34d45f29d47c92c5d03c6c3d3208ae15a7a9dcd27a9cf5c5fe99a2ea12c1069e8b2ac2b23344628c00c4803e661dc7d3915a2836ae6729456c67ebde2988429a75dd8b4525f44e84cf22ac0548db9f37eeed3bb39eb81d32455c2936ee8cead64b43d5bc2b6474ef0f69f672dd35d4904091b4cdd5c81c9af47c8e06fa9c7fc40fec3bdba36f6b0cf2f8962198e6b0c2cb6f9e9e639f942ffb2d9c8e80d6539452d46a93a9a231fc31aa5e5c19f4ed6e18e0d62d154ca22398e546fbb227b1c118ec41ae392eb130ab49d376675fa35b79d3191c6634fd4d6b429f33bb3382d6e7415e81a9f06fed35ff0025bfc49ff6edff00a4d1544b7348ec7de55666711f12e15d4d74bd1e47710cf29b899118a99163c617239c6f743ff01ae7c44dc63a1d186829cecc05b5ddb5b32d86a97b14a54826599a756e3b87248ff80907deb8a15e573b27878db42c5af8bad352f09c02e2d92f6f6e0b594b6670434cbc48af9e028ea49ec4752403d15f130a14fda547a1c4a0f9ac8f19f1e1f11785ad1ece3be861d0ee26fdcc56f3334b128524a2b9f98213d893c70302bcccb733a1984da82b35ba36939c1599ca5a41e1a30a4da8ea52cb7c19242a910fb39c10591e4e5db2323217bf7af553f6916d46c8c62ecd36cecf5dd02e35cb3d33c591d9cd77fbe8e236491b334b00e77903d72381d9b27be34a34f942bd7536763e2eb4874ab3b66d08cb632caaedba26f2d8e1d2303701bb19914e33daba651ec72c257dc8bc157d2d9ddcba19b689a484f992ce66019f71396231976f539e7af5c81e6622934ee7a987aa9c6c6a6be12dbc4fe1fbbc85695a5b36627195642e01ff00814631f53eb5842ed344e3e09c6e7a0690a174f8caf56c93f5c9af470ff01e74762ed6e51f06fed35ff25bfc49ff006edffa4d1544b7348ec7ddf23ac685dce14724d5b692bb333cc3c597b243e39d235094e2c6e236b2f9ba44e1b7a60f6ddf303ea556bcea953daec7460eaa52d43c7f15da787eeaeecb50b9b7f24091e28c80264c8ca06c6e524719045610d1d8efad7506cf3bf1558dde9fe315b3f035adc5a4d15a1172576ac2c329861b8e3763193d7a5462e587f67cb8ad9fde79b87e67ef238bf126a377796423d4351b8bdb98a46273203085da47cb8ea79ebc0e38cf5ad705878d39f35285958b9546f46cecfc18f63ae6897f1687a02c7a8c76ad0a144599d9d810ae657036f20f19e06315d18ac7e1f0694abcec66a9ce7b1eb11aeb2d1476d15a595a59801604ba9cbba6074d88304601e37fafe1e3d6e2bc242fec539586b072de4ce775e7b91abc167aa8b746dd188e788148e60f346c4ed249523ca008c9eaa73ce07a59566f0cd2973c134d3d5326743d93d49fc5eaba50b6d4f4d4859ada4f36e6404866191f2800724f2b9278c9e39cd7a35e3cd1150a8a3227b18ae35dd51755bb1716f61011f62b47f9771c1065917a83f361476c64f278f317b9a158ac43a9a23bad0ee80cdbb9ea729fd4574e16a7d966317746cd76947c1bfb4d7fc96ff127fdbb7fe9345512dcd23b1f716ab6f7170aab0e0a0eab9c66b3af094d5a26324dec73babe82751b196cefed0cd6f28c32ff002208e4107904722b8d519c7a1114e2ee723ac697ad69fa3cb6771712ea1a623236e298bc8d15c37a159318f4048cf534f95def63b6189725c9338af19a5c3d8abf8626babdb72245b828fe68092953b77fde673b547249da3b719e27f56556f55ae6f337a9154e37a6725e1cd07fb4e1b89afe2d92210638ee5fc942b8397cb6037380475e7a1cd6b8bc73a738460ef1f2d7f230842e9b68f4fd2bc59e1cf0cdbc519b9b6b3f2647616eb1b12d04803c670a0e4edd9c9f535f3d9ae518ac46267c91728bb35fd337a338c62933797c44fe21b78751d1ecb5696d17215d648e188b6719c9cbe7a8c63f0a8c0f0be2a9c2d2e58dfe6c9a98a8a66734526abe27d362d4d5608e3908448a5327dd4572598819cf9b1f6ed5f5594e53fd9b16af76f7392ae2156d893e20c7e4d80b49ade591e675484a9f94be410a4679c8ce382335ead597bacc146da9d7429b21443825540e2bc7d6ec99120383904823a11426d6c2b9bda5dffda079529c4a3a1fef7ff5ebbe856e7567b9b46573e1ff00da6bfe4b7f893feddbff0049a2ad65b9b4763ef2ab330a002819cd5e783ac679da6b5b9bfb290c865c432868c3939242386507393c01cd706272dc3e25dea4752e35648e43c79a7d9e9f0bc177e22d53fb56688b41e5c1136c3d03b844ddb7231c73c1c7435c10ca30183d79773653a9553491e01e20927bcb6812e6da48ee21411bcb23e3e552705948ddc0e370ce401c57d1ba109a52c359ab1e7c6a4a9cb96aab1d1784fc417de1bbd960d1ef24bdd36e244636f2c6c371041f30050c57a75c7200c8cf029d08e1e97b4ab2b32154955a9ece0ae8ea57c493de6b4b3c569243a8dd6e54866c0314cee5541ce060aac3ce719e339ae2862233f7ae75ba2e1eea47a4e8de09bd97503a8f882e424db9648ece3732471be396249ea48078f4cfb0270735b92d743a8fec55ff009f86ff00be3ffaf597d517723910bfd8abff003dcffdf1ff00d7a3ea8bb87221f0694914c9279ac4a9c8c0c55430d18bba635148f883f69aff0092dfe24ffb76ff00d268ab696e6d1d8fbcaaccc28018cac4e448c3d85268699198e4fefe7f134aced62ae8f35d47e1bddc9aadcdedbea7fbc99d9d9dd18be0b13827715206e207ca38ae4ad86553e237a75fd9ec57d47e18cfa969f3db5eeb6cdb908502d9386f73e9f4c1f7a8a5838d2778369fa9552bba8bde49a39b4f07ebfa23327d995d549c4b6b6de72b0f52158367fe03f8d6189c1caa3bb6dfccd6962634e36514857b2bbbd89adaee3d430d8cadb69970b2707230c7ee9c8eb594307284938a349626325667ab78186ab1683145aa2491caaee22499c4922c39f9039e7e6038ea7a0c92735ebc2f6b1e7cad7b9d1832679d9f955ea4683ea841408f837f69aff92dfe24ff00b76ffd268aa25b9a4763ea1ff85f9f0d7fe864ff00c90b9ffe3757cc89b30ff85f9f0d7fe864ff00c90b9ffe3747320b30ff0085f9f0d7fe864ffc90b9ff00e3747320b30ff85f9f0d7fe864ff00c90b9ffe3747320b30ff0085f9f0d7fe864ffc90b9ff00e3747320b303f1efe1a1ebe24cfd6c2e7ff8dd2ba0b3236f8edf0c98e7fe12420fb58dcfff001ba9d07a80f8ebf0c8127fe124273eb6375ffc6e8d035241f1efe1a0e9e24ffc90b9ff00e3755742b30ff85f9f0d7fe864ff00c90b9ffe374f9905987fc2fcf86bff004327fe485cff00f1ba39905987fc2fcf86bff4327fe485cfff001ba3990599f25fc74d7f4df13fc53d6f58d0ee7ed5a75cf91e54db19376d82353c30047cca472074a86eeca4ac7fffd9 >>avatar.txt
  3. certutil -decodehex avatar.txt avatar.jpg
  4. start avatar.jpg
复制代码

TOP

本帖最后由 SQYSQYSQY 于 2019-1-6 16:10 编辑

回复 3# ivor


    谢谢,是能用,但这只是针对小图片。图片达到8192b(8kb)时,这种方法就不行了。因为批处理有限制,一次只能输出不高于那个限制的字符。
可对比:写入批处理文件中用了十几行,输出后只有10行,转换为图片,只有上半部分。
很明显少了一部分.
附件: 您需要登录才可以下载或查看附件。没有帐号?注册

TOP

本帖最后由 523066680 于 2019-1-6 13:28 编辑

仍然可以一次写出,不过需要判断数据在哪一行。缺点:在代码中间不要有空行,for读取会跳过空行(有空行的情况参考http://bbs.bathome.net/redirect. ... 3341&pid=196573
  1. @echo off
  2. :: find tag
  3. set /a n=0
  4. for /f %%a in (%0) do ( set /a n+=1 &if "%%a"==":img_raw_data" goto :export)
  5. :export
  6.     echo %n%
  7.     type "%0"|more +%n%>avatar.txt
  8.     certutil -decodehex avatar.txt avatar.jpg
  9. exit
  10. :img_raw_data
  11. 这里放数据
复制代码
附件: 您需要登录才可以下载或查看附件。没有帐号?注册
1

评分人数

综合型编程论坛
Writing Code That Nobody Else Can Read.
思而不学则die

TOP

本帖最后由 SQYSQYSQY 于 2019-1-6 14:49 编辑

回复 5# 523066680


    思路没错,就是发现n的值始终为一。稍微改一下就可以了,谢谢。果然支持大数据。
  1. @echo off
  2. IF exist 文件 del /q 文件 >nul
  3. IF exist avatar.jpg del /q avatar.gif >nul
  4. type "%0"|more +8>文件
  5. certutil -decodehex 文件 avatar.gif
  6. del /q 文件 >nul
  7. exit /b
  8. :img_raw_data
  9. 474946383961020202028000003F22EE0000002C00000000010001000002024401003B
复制代码
(上面代码输出514像素*514像素的图片)
代码最后一行的数据果然没有大小限制。谢谢了

偶然发现还可以更改颜色。代码中数据“3F22EE”可换为不同颜色。
红:FF0000
绿:00FF00
蓝:0000FF
紫:FF00FF(红+蓝)
橙:FFFF00(红+绿)
黑:000000
白:FFFFFF
……

TOP

本帖最后由 SQYSQYSQY 于 2019-1-6 14:50 编辑

回复 5# 523066680


    我知道问题出在哪了:
%0的返回值是带引号的文件名。而for默认会把带引号的视为字符串。
应改为:
  1. @echo off
  2. set /a "n=0"
  3. set "a=%0"
  4. for /f "tokens=*" %%a in (%a:~1,-1%) do (
  5. set /a "n+=1"
  6. if "%%a"==":img_raw_data" goto export
  7. )
  8. :export
  9. if exist 文件 del /q 文件 >nul
  10. if exist avatar.jpg del /q avatar.gif >nul
  11. type "%0"|more +%n%>文件
  12. certutil -decodehex 文件 avatar.gif
  13. del /q 文件 >nul
  14. exit /b
  15. :img_raw_data
  16. 47494638396102020202800000CC11CC0000002C00000000010001000002024401003B
复制代码
才发现这样有缺陷。不如改为:
  1. @echo off
  2. set /a "n=0"
  3. for /f "usebackq" %%a in (%0) do (
  4. set /a "n+=1"
  5. if "%%a"==":img_raw_data" goto export
  6. )
  7. :export
  8. if exist 文件 del /q 文件 >nul
  9. if exist avatar.jpg del /q avatar.gif >nul
  10. type "%0"|more +%n%>文件
  11. certutil -decodehex 文件 avatar.gif
  12. del /q 文件 >nul
  13. exit /b
  14. :img_raw_data
  15. 47494638396102020202800000FFCC220000002C00000000010001000002024401003B
复制代码
但好像仍不支持文件名有&或^等特殊字符

TOP

单数据内嵌, 不需要搜索,  certutil  自已会搜索数据标记:
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
  1. certutil -decode "%~f0" logo.jpg
  2. start "" logo.jpg
  3. -----BEGIN CERTIFICATE-----
  4. R0lGODlhRwBQAIfXAAAAADMAAGYAAJkAAMwAAP8AAAAzADMzAGYzAJkzAMwzAP8z
  5. AABmADNmAGZmAJlmAMxmAP9mAACZADOZAGaZAJmZAMyZAP+ZAADMADPMAGbMAJnM
  6. AMzMAP/MAAD/ADP/AGb/AJn/AMz/AP//AAAAMzMAM2YAM5kAM8wAM/8AMwAzMzMz
  7. M2YzM5kzM8wzM/8zMwBmMzNmM2ZmM5lmM8xmM/9mMwCZMzOZM2aZM5mZM8yZM/+Z
  8. MwDMMzPMM2bMM5nMM8zMM//MMwD/MzP/M2b/M5n/M8z/M///MwAAZjMAZmYAZpkA
  9. ZswAZv8AZgAzZjMzZmYzZpkzZswzZv8zZgBmZjNmZmZmZplmZsxmZv9mZgCZZjOZ
  10. ZmaZZpmZZsyZZv+ZZgDMZjPMZmbMZpnMZszMZv/MZgD/ZjP/Zmb/Zpn/Zsz/Zv//
  11. ZgAAmTMAmWYAmZkAmcwAmf8AmQAzmTMzmWYzmZkzmcwzmf8zmQBmmTNmmWZmmZlm
  12. mcxmmf9mmQCZmTOZmWaZmZmZmcyZmf+ZmQDMmTPMmWbMmZnMmczMmf/MmQD/mTP/
  13. mWb/mZn/mcz/mf//mQAAzDMAzGYAzJkAzMwAzP8AzAAzzDMzzGYzzJkzzMwzzP8z
  14. zABmzDNmzGZmzJlmzMxmzP9mzACZzDOZzGaZzJmZzMyZzP+ZzADMzDPMzGbMzJnM
  15. zMzMzP/MzAD/zDP/zGb/zJn/zMz/zP//zAAA/zMA/2YA/5kA/8wA//8A/wAz/zMz
  16. /2Yz/5kz/8wz//8z/wBm/zNm/2Zm/5lm/8xm//9m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STnWqKJw7yByYVEXzYLSPO4hO55CRB/3/WWWIfIm5z2HCsFMR
  48. PfYVxI5ZJzrUy0KN9kWaPpUmVOhNySKkTKYGLeferJBt0WxCSIrkYULJtJkQeMVq
  49. 4eBDGvLJETFawGrQkLTqJ+hDXCHGy7UILXils+HyBa2yZtGL0JDjIiRtoLNqIQlD
  50. kB617UJTasFQuJItkhy2r/UJEbha3GlQioAWrN8iGgvE6k08dlRhxgyFSmR+YHzm
  51. 61FBdrSgfuoiNCCY1l3oDkHljrSwQtAMuOJCsp3WMYGZgDWXiRNz9GVfIR+kjNDM
  52. EdzXIsMgVfJGsoXn70ALHq2iZIpcQlLMGw0TxrSRefvQzFWvbJ0ii/z8qCQ478uQ
  53. 2mzH9u13ZTUbRIzacUPm8sUsE2m1x+IyEtglYTjOCJj5uc0RPWsrzvjmmnecuBaR
  54. RP2QynJ7LDbOVPoVcEr4oa55eO8BenRtonM0ObWwt8t5o8My1W3ur5uOu7vi6R3b
  55. In0Xni+BB8e1jzCpv8729AWDYfxQ0AWziBk57z42yM4LlIxJz0Zfuud/3et8wsHI
  56. Q1AymFQYe6ODhU/Qr7soKrVm81MmCSarsV+PirMzATLFHCBBmwF3Ui6pLHAoHwnW
  57. A3VSrgKqxR21W89bJigUDbmPgzqB1LxAqJNS9YqEl1MMCmXCiw+uECXzkMcJX/gQ
  58. XuSDhjC02wIDAgA7
  59. -----END CERTIFICATE-----
复制代码
1

评分人数

    • SQYSQYSQY: 谢谢,这种编码比十六进制长度更少,果然是 ...技术 + 1

TOP

回复 9# SQYSQYSQY

是 BASE64 编码, certutil -encode 就可以输出这样的编码, 这种编码相对简单, 本论坛就有 批处理 的实现方式 编码解码 都有

我没在意图片的格式类型, 即使扩展名不对, 只要系统有程序能正常打开图片就行,  一些软件会自动识别格式类型, 而忽略扩展名

certutil  -decode 可以把任何内嵌在 批处理 脚本中的数据解出, 不限于图片, 比如 EXE 文件.

TOP

回复 9# search_Sudoku

    印象中是你和happy886r讨论过相关的东西,好像还有讨论压缩的,找不到是哪个帖子。
综合型编程论坛
Writing Code That Nobody Else Can Read.
思而不学则die

TOP

回复 10# 523066680

我想是这帖: 做了一些讨论
http://www.bathome.net/thread-41648-3-1.html

happy886rr  写了一些程序, 包括 BASE64 编解码器

用 google 比较好搜:

https://www.google.com/search?newwindow=1&ei=Z7ExXP3_BYaZsAeFyJz4CQ&q=site%3Awww.bathome.net+BASE64+%E5%8E%8B%E7%BC%A9&oq=site%3Awww.bathome.net+BASE64+%E5%8E%8B%E7%BC%A9&gs_l=psy-ab.3...122307.125336..125867...1.0..0.847.2755.3-4j1j0j1......0....1..gws-wiz.ZnV4XbVEec0
1

评分人数

TOP

返回列表