Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在更高版本失效 #1

Open
poorjackman opened this issue Mar 16, 2023 · 29 comments
Open

在更高版本失效 #1

poorjackman opened this issue Mar 16, 2023 · 29 comments
Labels
good first issue Good for newcomers

Comments

@poorjackman
Copy link

在 Ubuntu 20.04 amd64 上测试。
typora 1.5.3 失效。

typora 1.4.8 成功。下载
对 readme 补充如下:

  1. 使用 NodeInject 仓库中 src 目录下的 hook.js 替换本仓库中的hooklog.js。并修改main.rs中的hooklog.js。
  2. typora 路径 /usr/share/typora 使用 deb 包安装时,使用 tar 包安装,不会移动到这里。
  3. 在终端运行: ./Typora(在typora安装目录下),可见hook过程:
❯ ./Typora                                                                                                          ─╯
Hook Init
Require events
Require electron-fetch
Hooking electron-fetch
Require package.json
...

备用仓库:

@DiamondHunters
Copy link
Owner

DiamondHunters commented Mar 16, 2023

Windows 1.5.9 test passed.
After you updated it,you need to remove node folder which create by injecter and re-run node_inject.
Then you can active with generated licence.
Just for fun and prove that this way still works.

@DiamondHunters
Copy link
Owner

For some reason,It is dangerous to make it easy to use.
This is only used to prove the feasibility of injection and the vulnerability of verification.
So even if it not work, I will not update it.
If you are interested, you can try to find the reason for failure

@DiamondHunters DiamondHunters added the good first issue Good for newcomers label Mar 16, 2023
@poorjackman
Copy link
Author

Thanks a lot. Typora use the Machine Code for offline activation after 1.5.3 in Linux.

@summerBreeze03
Copy link

summerBreeze03 commented Mar 21, 2023

使用actions里构建好的,在Manjaro Linux (amd64)上的1.5.9版本成功

@gloomytime
Copy link

windows 1.5.10 test passed ~很好很好

@Casuwin
Copy link

Casuwin commented May 25, 2023

The version 1.6.6 test passed.

@FW27623
Copy link

FW27623 commented May 31, 2023

The Windows version of 1.6.7 test passed.

@ghost
Copy link

ghost commented Jul 22, 2023

9dabb5169d27b6538430b56eb70344a9

1.7.0 ERROR

@FW27623
Copy link

FW27623 commented Jul 22, 2023

WIndows The latest 1.7.0-dev version test passed

@Tanler
Copy link

Tanler commented Sep 15, 2023

The Windows version of 1.7.4 test passed.

1 similar comment
@EldenZhang
Copy link

The Windows version of 1.7.4 test passed.

@EASTINK
Copy link

EASTINK commented Sep 17, 2023

1.7.4 Test passed on 'Pop! OS 22.04'

@Tanler
Copy link

Tanler commented Sep 30, 2023

The Windows version of 1.7.5 test passed.

@IlIllllll
Copy link

The Windows version of 1.7.6 test passed.
Thank you

@sunnysab
Copy link

Linux 下的 1.7.6 版本测试成功.

中间有一点小波折,要先卸载再安装、使用本仓库的脚本后才能正常通过测试。

@yunzimo
Copy link

yunzimo commented Oct 28, 2023

Linux 下的 1.7.6 版本测试成功.

中间有一点小波折,要先卸载再安装、使用本仓库的脚本后才能正常通过测试。

想请问下您是如何成功的,我是直接fork了这个仓库,然后运行action获得了两个exe运行文件,但是尝试了多个版本均未获得成功。我是这样做的:

  1. 先后通过cmd管理员模式运行node_inject和license-gen文件
  2. 把获得的license输入到typora中(邮箱随便填了一个自己的)

我有几个问题没搞清楚:

  1. 我是否需要自己本机建立rust环境自己构建软件(包括readme中的替换文件等操作),而不是通过action中直接build获得的文件
  2. 如果我需要自己构建,我是去构建NodeInject这个项目还是这个example项目

期待你的回复( • ̀ω•́ )

@yunzimo
Copy link

yunzimo commented Oct 28, 2023

Linux 下的 1.7.6 版本测试成功.
中间有一点小波折,要先卸载再安装、使用本仓库的脚本后才能正常通过测试。

想请问下您是如何成功的,我是直接fork了这个仓库,然后运行action获得了两个exe运行文件,但是尝试了多个版本均未获得成功。我是这样做的:

  1. 先后通过cmd管理员模式运行node_inject和license-gen文件
  2. 把获得的license输入到typora中(邮箱随便填了一个自己的)

我有几个问题没搞清楚:

  1. 我是否需要自己本机建立rust环境自己构建软件(包括readme中的替换文件等操作),而不是通过action中直接build获得的文件
  2. 如果我需要自己构建,我是去构建NodeInject这个项目还是这个example项目

期待你的回复( • ̀ω•́ )

image
如图

@poorjackman
Copy link
Author

  1. 本机 rust 环境中,需要替换js文件;
  2. 两个项目都行需要构建,得到两个可执行文件,一个执行 patch,一个生成 key。

注意,激活时一定联网,激活后可以屏蔽。

@DiamondHunters
Copy link
Owner

Linux 下的 1.7.6 版本测试成功.
中间有一点小波折,要先卸载再安装、使用本仓库的脚本后才能正常通过测试。

想请问下您是如何成功的,我是直接fork了这个仓库,然后运行action获得了两个exe运行文件,但是尝试了多个版本均未获得成功。我是这样做的:

  1. 先后通过cmd管理员模式运行node_inject和license-gen文件
  2. 把获得的license输入到typora中(邮箱随便填了一个自己的)

我有几个问题没搞清楚:

  1. 我是否需要自己本机建立rust环境自己构建软件(包括readme中的替换文件等操作),而不是通过action中直接build获得的文件
  2. 如果我需要自己构建,我是去构建NodeInject这个项目还是这个example项目

期待你的回复( • ̀ω•́ )

虽然该方法依旧有效,但由于存在滥用,我在最新的commit中删除了激活部分,action构建已经无效。

@poorjackman
Copy link
Author

poorjackman commented Oct 31, 2023 via email

@yunzimo
Copy link

yunzimo commented Oct 31, 2023

  1. 本机 rust 环境中,需要替换js文件;
  2. 两个项目都行需要构建,得到两个可执行文件,一个执行 patch,一个生成 key。

注意,激活时一定联网,激活后可以屏蔽。

我刚刚试了一下,全新安装的最新的1.7.6版本,clone两个仓库,替换好hooklog.js,构建注入工具,成功注入。但激活时一直显示许可证不正确。然后去用我另一台电脑之前构建的注入工具,复制过来,一次就激活成功了。(这个成功的注入工具显示修改时间是2023-10-22,当时生成时的对应版本是哪个不清楚了)。

这有可能是什么原因呢?生成时的rust版本不同吗?还是typora改了代码?

然后,我又做了下实验,我安装1.7.4版本,用新构建的还是激活不了,但是旧的旧可以,并且激活后升级到1.7.6,旧的还是可以激活,新构建还是不行,难道和rust版本有关?

请问可以分享一下你的可以激活成功的构建版本么

@DiamondHunters
Copy link
Owner

DiamondHunters commented Oct 31, 2023 via email

@Innocence
Copy link

@DiamondHunters 哦,谢谢回复,原来那句话是指这个啊,明白了。

@poorjackman
Copy link
Author

poorjackman commented Nov 1, 2023 via email

@ghost
Copy link

ghost commented Dec 26, 2023

The Windows version of 1.7.6 test passed.

image

image

@helion2017
Copy link

image
tks for 1.7.4

@DreamPrism
Copy link

Windows version 1.8.10 test passed.
image

@edeliris
Copy link

edeliris commented Apr 9, 2024

@poorjackman
您好,我今天试着在本机环境(Windows 11,连接网络,已安装Typora1.8.10)上build,我没有对代码做修改或替换hooklog.js,而是使用cargo build --features no_embed 命令build node_inject.exe。之后将仓库中的hook.js和node_inject.exe复制到Typora根目录,之后在管理员Powershell中运行两程序,运行结果正常。但是将序列号输入Typora后,出现“请输入正确的序列号”提示。可否请您指出我操作中存在的问题?感谢!!

@DLYJW
Copy link

DLYJW commented May 15, 2024

按照流程来走,可以正常激活
图片1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests