Power插件应用:搞定tinyMediaManager

前段时间开源了个ja-netfilter的插件:Power。我在其项目介绍里说它是非对称加密屠龙刀,很多网友说我不讲武德,是在吹牛。
话不多说,今天带来Power插件搞定tinyMediaManager这款人称刮削神器的软件。

请看!

power.conf文件配置

[Result]
; tinyMediaManager
EQUAL,8630757501743642474097255044263570352684017656721020257535853201009899319687425782165282064796127603308259281595234513417333265009792301721615397359280849629133412233835828756819167588254001206400797570673452581858162969385412635998542457688319518187361665435616211663738293023751998984763244849554409283905806741550843609045949098379453835211021356935854652145036408058534280517201922175457527823511640833551008542638353155946242172001873369454067403155639128713334107588511323091987132843211721921554657376250465757925304142530090462817875274786037327875410447778794471350439131533860021653761166305610613929184255,65537,24727125652606355449965534471427156023350099597994490506507713341912306496563021166152677249027965321789848834729809902911806740445767002100807674700362396558567035577150643203400446146497612913744824152837680881642876928709753797537574652985337199808338261100773937616204974417659383459000710718258741071638125033399831524388809092948345089352808322362674190618697732507738374259091305808486391160153350340004713677863069207330711835021340142816443405418680867515100803735831594532024774597095396300615924299450809820530743854878808508438754957122002060049512204045465820395106589768553215005202526112100710029727397->986236757547332986472011617696226561292849812918563355472727826767720188564083584387121625107510786855734801053524719833194566624465665316622563244215340671405971599343902468620306327831715457360719532421388780770165778156818229863337344187575566725786793391480600129482653072861971002459947277805295727097226389568776499707662505334062639449916265137796823793276300221537201727072401742985542559596685092673521228140822200236743113743661549252453726123450722876929538747702356573783116197523966334991563351853851212597377279504828784749025539275525568327959057446141950786113749166506186864056372274749084589132

tinyMediaManager激活码

LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQoKbmFtZT1uZW8KdmFsaWRVbnRpbD0yMDk5LTEyLTMxCndlYnNpdGU9aHR0cHM6Ly96aGlsZS5pbwotLS0tLUJFR0lOIFBHUCBTSUdOQVRVUkUtLS0tLQoKd3NCY0JBQUJDQUFRQlFKZlJtOWpDUkR6ZW9adU9nVVluUUFBVmtvSUFFUmVaNlBwM1NpbVlLYkgrSkh6d1c4cQpMaVdlUUlQTmF0RndEUUhnRDRpcFQ5YVhNYU9iblhYbDgzS1VRNWxQeDhCdzc3QnhQYXJwVWJ0Q1JOVHJXb1U1ClhaMWlrZnF6bWVWRUpyazRZc05LRGlCcHZqYnlGODZGOEtTa1hod2RMV1NtMWU2eWVtblhLY1RIZzJMMTNBaVMKNlRJcVhYYmNSbUZGN1JUTzREUXJqaXJhMllZbFc4ZUhQSWNDbU9xMFlqUjRRcHorUi8rM0JsZlYyVEFjTC9zZApTZUtBY3pndmRQNkNTNmJlMXJQQTBubGd3OVQ4NTNCcGdxcGxRVk0zMHBVaFZsbmk3Z2ExWVJ6RU5tNlFpYzVBCnVFYm1QeXVuaW0yV0h5dFB1TFFxK0JRdkFxK1dycjJraU03RGh5dllGaWhETmRGV1c2N1krZlNsZ1B4T2kvOD0KPVFLcGMKLS0tLS1FTkQgUEdQIFNJR05BVFVSRS0tLS0t

-javaagent配置

我们假设你的ja-netfilter.jar所在文件路径是:/path/to/ja-netfilter.jar(实际使用以你真实安装路径为准)

  • tinyMediaManager安装目录下找到:launcher-extra.yml文件
  • 编辑launcher-extra.yml文件,在文件中找到jvmOpts节配置,添加:- '-javaagent:/path/to/ja-netfilter.jar'
  • 其实编辑launcher.yml文件也是可以的。
  • 注意一定用你ja-netfilter.jar的真实绝对地址替换上面的-javaagent:后面的地址
  • 由于tinyMediaManager最新版本升级到Java17,故而需要添加额外的JVM参数。具体请看这篇文章
  • 保存launcher-extra.yml文件后启动tinyMediaManager,填入上述的激活码即可。
  • Windows/macOS/Linux操作系统不限。
  • 一个最简的示例launcher-extra.yml文件内容最起码应该有这些:
---
javaHome: ''
jvmOpts:
  - '--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED'
  - '--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED'
  - '-javaagent:/path/to/ja-netfilter.jar'
env: []

一些说明

  • 本文是对Power插件和非对称加密的学习研究,不是让你做商业用途的!
  • 希望大家用Power插件玩出更多玩法。
  • 希望大家为ja-netfilter多开发好用好玩的插件。

下面是国际惯例:

本项目只做个人学习研究之用,不得用于商业用途!

分享本文到:

7 评论

留下评论

您的电子邮箱地址不会被公开。 必填项已用*标注

  1. 大佬看看我这个是什么原因,提示”填入了无效的激活码”,一开始以为是jre的问题,切换到手动命令启动,下面是手动启动的日志,还是提示”填入了无效的激活码”
    系统:Mac
    版本:4.2.8
    JDK:AdoptOpenJDK-16.0.1+9
    运行命令:java -classpath /Applications/tinyMediaManager.app/Contents/Resources/Java/tmm.jar:/Applications/tinyMediaManager.app/Contents/Resources/Java/lib/*:/Applications/tinyMediaManager.app/Contents/Resources/Java/addons/* -Xms64m -Xmx512m -Xss512k -XX:+IgnoreUnrecognizedVMOptions -XX:+UseG1GC -XX:+UseStringDeduplication -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine -splash:splashscreen.png -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Djna.nosys=true -Dtmm.consoleloglevel=DEBUG -Dapple.awt.graphics.UseQuartz=true -Xdock:name=tinyMediaManager -Dapple.eawt.quitStrategy=CLOSE_ALL_WINDOWS -javaagent:/Users/xx/xx/tmm4/ja-netfilter.jar org.tinymediamanager.TinyMediaManager
    日志:
    ============================================================================

    ja-netfilter 2022.2.0

    A javaagent framework 🙂

    https://github.com/ja-netfilter/ja-netfilter

    ============================================================================

    OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
    2022-07-02 05:30:10,717 INFO [main] org.tinymediamanager.TinyMediaManager:160 – =======================================================
    2022-07-02 05:30:10,719 INFO [main] org.tinymediamanager.TinyMediaManager:161 – === tinyMediaManager (c) 2012 – 2022 Manuel Laggner ===
    2022-07-02 05:30:10,719 INFO [main] org.tinymediamanager.TinyMediaManager:162 – =======================================================
    2022-07-02 05:30:10,724 INFO [main] org.tinymediamanager.TinyMediaManager:163 – tmm.version : 4.2.8
    2022-07-02 05:30:10,726 INFO [main] org.tinymediamanager.TinyMediaManager:164 – os.name : Mac OS X
    2022-07-02 05:30:10,726 INFO [main] org.tinymediamanager.TinyMediaManager:165 – os.version : 11.4
    2022-07-02 05:30:10,726 INFO [main] org.tinymediamanager.TinyMediaManager:166 – os.arch : x86_64
    2022-07-02 05:30:10,726 INFO [main] org.tinymediamanager.TinyMediaManager:167 – java.version : 16.0.1
    2022-07-02 05:30:10,727 INFO [main] org.tinymediamanager.TinyMediaManager:168 – java.maxMem : 512 MiB
    2022-07-02 05:30:10,733 INFO [main] org.tinymediamanager.TinyMediaManager:604 – current encoding : UTF-8 | UTF8 | UTF-8
    2022-07-02 05:30:10,860 DEBUG [main] o.tinymediamanager.core.AbstractSettings:235 – Loading settings (tmm.json) from data
    2022-07-02 05:30:11,109 INFO [main] org.tinymediamanager.TinyMediaManager:182 – System language : zh_CN
    2022-07-02 05:30:11,110 INFO [main] org.tinymediamanager.TinyMediaManager:183 – GUI language : zh_SG
    2022-07-02 05:30:11,114 DEBUG [main] o.tinymediamanager.core.AbstractSettings:235 – Loading settings (movies.json) from data
    2022-07-02 05:30:11,271 INFO [main] org.tinymediamanager.TinyMediaManager:184 – Scraper language : 中文
    2022-07-02 05:30:11,276 DEBUG [main] o.tinymediamanager.core.AbstractSettings:235 – Loading settings (tvShows.json) from data
    2022-07-02 05:30:11,331 INFO [main] org.tinymediamanager.TinyMediaManager:185 – TV Scraper lang : 中文
    Warning: the fonts “Times” and “Times” are not available for the Java logical font “Serif”, which may have unexpected appearance or behavior. Re-enable the “Times” font to remove this warning.
    2022-07-02 05:30:12,469 INFO [main] org.tinymediamanager.TinyMediaManager:214 – =====================================================
    2022-07-02 05:30:12,474 DEBUG [main] org.tinymediamanager.TinyMediaManager:235 – no splash found
    2022-07-02 05:30:12,474 INFO [main] org.tinymediamanager.TinyMediaManager:242 – starting tinyMediaManager
    2022-07-02 05:30:12,475 INFO [main] org.tinymediamanager.TinyMediaManager:247 – Upgrade from GIT to GIT
    2022-07-02 05:30:12,475 INFO [main] org.tinymediamanager.UpgradeTasks:100 – Performing upgrade tasks to version 4.0
    2022-07-02 05:30:12,477 INFO [main] org.tinymediamanager.UpgradeTasks:132 – Performing upgrade tasks to version 4.0.2
    2022-07-02 05:30:12,622 INFO [main] org.tinymediamanager.UpgradeTasks:138 – Performing upgrade tasks to version 4.1
    2022-07-02 05:30:12,645 INFO [main] org.tinymediamanager.core.Utils:1603 – Copying complete directory from /Users/xx/native/mac to /var/folders/b7/017s7kd52gzbbn51vqzlb84w0000gn/T/tmm/native/mac
    2022-07-02 05:30:12,647 INFO [main] org.tinymediamanager.TmmOsUtils:185 – could not copy native libs to the temp folder -> try to load from install dir
    2022-07-02 05:30:12,647 DEBUG [main] org.tinymediamanager.TmmOsUtils:187 – Loading native libs from: /Users/xx/native/mac
    2022-07-02 05:30:13,057 INFO [main] org.tinymediamanager.TmmOsUtils:194 – Using libmediainfo version ‘MediaInfoLib – v22.03’
    2022-07-02 05:30:16,236 DEBUG [Timer-0] o.tinymediamanager.core.TmmModuleManager:93 – Memory usage: used – 89 M | free – 422 M
    2022-07-02 05:30:16,404 INFO [main] o.tinymediamanager.core.movie.MovieList:456 – found 0 movies in database
    2022-07-02 05:30:16,405 DEBUG [main] o.tinymediamanager.core.movie.MovieList:457 – took 1 ms
    2022-07-02 05:30:16,406 INFO [main] o.tinymediamanager.core.movie.MovieList:496 – found 0 movieSets in database
    2022-07-02 05:30:16,406 DEBUG [main] o.tinymediamanager.core.movie.MovieList:497 – took 0 ms
    2022-07-02 05:30:16,479 INFO [main] o.t.core.tvshow.TvShowList:504 – found 0 TV shows in database
    2022-07-02 05:30:16,479 DEBUG [main] o.t.core.tvshow.TvShowList:505 – took 1 ms
    2022-07-02 05:30:16,481 INFO [main] o.t.core.tvshow.TvShowList:569 – found 0 episodes in database
    2022-07-02 05:30:16,481 DEBUG [main] o.t.core.tvshow.TvShowList:570 – took 1 ms
    2022-07-02 05:30:16,508 DEBUG [main] o.tinymediamanager.scraper.kodi.KodiUtil:330 – searching for Kodi commons
    2022-07-02 05:30:16,509 DEBUG [main] o.tinymediamanager.scraper.kodi.KodiUtil:364 – Meh – could not find any common folders…
    2022-07-02 05:30:16,509 DEBUG [main] o.tinymediamanager.scraper.kodi.KodiUtil:419 – Meh – could not find any common function…
    2022-07-02 05:30:16,509 DEBUG [main] o.tinymediamanager.scraper.kodi.KodiUtil:260 – searching for Kodi scrapers
    2022-07-02 05:30:16,510 DEBUG [main] o.tinymediamanager.scraper.kodi.KodiUtil:290 – Meh – could not find any scrapers…
    Warning: the fonts “Times” and “Times” are not available for the Java logical font “Serif”, which may have unexpected appearance or behavior. Re-enable the “Times” font to remove this warning.
    Warning: the fonts “Times” and “Times” are not available for the Java logical font “Serif”, which may have unexpected appearance or behavior. Re-enable the “Times” font to remove this warning.
    # 这里点击了”升级为pro版本”
    2022-07-02 05:30:24,616 DEBUG [main] o.tinymediamanager.ui.actions.TmmAction:35 – action fired: UnlockAction
    2022-07-02 05:30:29.781 java[60270:3743821] TSM AdjustCapsLockLEDForKeyTransitionHandling – _ISSetPhysicalKeyboardCapsLockLED Inhibit
    # 这个时候提示“填入了无效的激活码”
    2022-07-02 05:30:36,982 INFO [main] org.tinymediamanager.ui.MainWindow:249 – bye bye
    2022-07-02 05:30:37,007 INFO [main] org.tinymediamanager.core.Utils:1312 – Deleting complete directory: /var/folders/b7/017s7kd52gzbbn51vqzlb84w0000gn/T/tmm