Workflow
代码还原
icon
Search documents
逆向还原代码,这是大模型最好的用处了吧~
菜鸟教程· 2025-09-05 03:30
Core Viewpoint - The article discusses the open-source tool Humanify, which helps convert obfuscated JavaScript code into a more readable format using advanced language models and Babel's AST renaming capabilities [3][4]. Group 1: Tool Overview - Humanify is an open-source JavaScript tool developed on Node.js, licensed under MIT [3]. - It combines intelligent naming suggestions from large language models (LLMs) with Babel's AST renaming tool to enhance code readability and maintain logical consistency [3][4]. Group 2: Installation and Usage - Installation can be done globally using npm with the command `npm install -g humanifyjs`, or it can be run temporarily using `npx humanifyjs` without installation [6]. - The tool supports three running modes: openai, gemini, and local [7]. Group 3: Command Line Parameters - For the OpenAI mode, the command is `humanify openai --apiKey="your-token" obfuscated-file.js`, with an option to set the API key as an environment variable [8][9]. - The Gemini mode follows a similar command structure, allowing for cloud-based processing with optimized hardware [10]. Group 4: Model and Performance - The local mode runs on a pre-trained model downloaded separately, ensuring syntax remains unchanged during renaming [11][12]. - The tool is designed to be user-friendly for JavaScript developers, eliminating the need for Python dependencies [11]. Group 5: Hardware Compatibility - Humanify has native support for Apple M series chips, allowing it to leverage the GPU performance of Mac devices [15]. Group 6: Example Usage - An example is provided where a compressed function is transformed into a more human-readable version using the Humanify tool, demonstrating its effectiveness [16].