chore: todo
This commit is contained in:
15
README.md
15
README.md
@@ -24,12 +24,12 @@ You don't need to execute the encrypted script. We decrypt them using the same a
|
|||||||
|
|
||||||
### Universal
|
### Universal
|
||||||
|
|
||||||
Currently we are trying to support Pyarmor 8.0 to 9.1.x (latest), Python 3.7 - 3.13, on all operating systems, with obfuscating options as many as possible. (However, we only have limited tests.)
|
Currently we are trying to support Pyarmor 8.0 to 9.1.9, Python 3.7 - 3.13, on all operating systems, with obfuscating options as many as possible. (However, we only have limited tests.)
|
||||||
|
|
||||||
You can run this tool in any environment, no need to be the same with obfuscated scripts or runtime.
|
You can run this tool in any environment, no need to be the same with obfuscated scripts or runtime.
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
>
|
>
|
||||||
> If the data starts with `PY` followed by six digits, it is supported. Otherwise, if it starts with `PYARMOR`, it is generated by Pyarmor 7 or earlier, and is not supported.
|
> If the data starts with `PY` followed by six digits, it is supported. Otherwise, if it starts with `PYARMOR`, it is generated by Pyarmor 7 or earlier, and is not supported.
|
||||||
|
|
||||||
### Easy to use
|
### Easy to use
|
||||||
@@ -38,7 +38,7 @@ The only thing you need to do is specifying where your obfuscated scripts are. T
|
|||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
``` bash
|
```bash
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ../pycdc
|
cmake ../pycdc
|
||||||
@@ -50,7 +50,7 @@ You can also download prebuilt binary files on [releases page](https://github.co
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
``` bash
|
```bash
|
||||||
python /path/to/oneshot/shot.py /path/to/scripts
|
python /path/to/oneshot/shot.py /path/to/scripts
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -73,10 +73,11 @@ Feel free to open an issue if you have any questions, suggestions, or problems.
|
|||||||
|
|
||||||
## Todo (PR Welcome!)
|
## Todo (PR Welcome!)
|
||||||
|
|
||||||
- [ ] Multi-platform pyarmor_runtime executable
|
|
||||||
- [ ] Support more obfuscating options
|
|
||||||
- [ ] Regenerate pyc for other backends
|
|
||||||
- [ ] Documentation (Do not accept PR about this)
|
- [ ] Documentation (Do not accept PR about this)
|
||||||
|
- [ ] Regenerate pyc for other backend decompilers (discussion in GH-24, GH-30)
|
||||||
|
- [ ] BCC Mode native part analysis tool
|
||||||
|
- [ ] Verify support for different obfuscating options
|
||||||
|
- [ ] Verify support for pyarmor_runtime executable on different platforms
|
||||||
|
|
||||||
## For CTF Challenge Makers
|
## For CTF Challenge Makers
|
||||||
|
|
||||||
|
|||||||
@@ -263,9 +263,6 @@ def decrypt_process(
|
|||||||
|
|
||||||
|
|
||||||
def get_platform_executable(specified: str) -> str:
|
def get_platform_executable(specified: str) -> str:
|
||||||
"""
|
|
||||||
Get the appropriate executable for the current platform
|
|
||||||
"""
|
|
||||||
logger = logging.getLogger("shot")
|
logger = logging.getLogger("shot")
|
||||||
|
|
||||||
# If a specific executable is provided, use it
|
# If a specific executable is provided, use it
|
||||||
@@ -497,7 +494,7 @@ def main():
|
|||||||
sequences.extend(result)
|
sequences.extend(result)
|
||||||
|
|
||||||
if not runtimes:
|
if not runtimes:
|
||||||
logger.error(f"{Fore.RED}No runtime found{Style.RESET_ALL}")
|
logger.error(f"{Fore.RED}No `pyarmor_runtime` file found{Style.RESET_ALL}")
|
||||||
return
|
return
|
||||||
if not sequences:
|
if not sequences:
|
||||||
logger.error(f"{Fore.RED}No armored data found{Style.RESET_ALL}")
|
logger.error(f"{Fore.RED}No armored data found{Style.RESET_ALL}")
|
||||||
|
|||||||
Reference in New Issue
Block a user