Built-in Terminal¶
The built-in terminal is one of the more commonly used features in FIRERPA. You can connect to the built-in terminal to execute commands in real-time. The built-in terminal refers to the terminal you access via Remote Desktop, SSH, or the built-in ADB connection. It comes with some built-in commands and several common Python modules. You can directly execute commands, run Python code, or even perform automation tasks directly within the terminal. Due to compatibility considerations, terminals connected via the built-in ADB method lack some features like command suggestions.
Now, please open Remote Desktop or connect to the SSH or built-in ADB terminal. You should see a Linux terminal. Executing the cd command will switch to the home directory, which is your workspace where you can store files. The terminal supports command completion but not parameter completion. You can also type part of a command and then use the up and down arrow keys to auto-fill from your command history.
Common Aliases¶
Aliases are similar to commands. You can use them to quickly execute some common commands. The following command aliases are available in the built-in terminal, with their corresponding functions listed below.
| Alias | Command |
|---|---|
| l | ls |
| ll | ls -l |
| la | ls -la |
| py | python |
| .. | Change to the parent directory |
| ... | Change to the parent's parent directory |
| t | Change to /data/local/tmp |
| p | Change to the previous directory |
Common Commands¶
Common commands refer to some frequently used Linux or industry-standard commands built into FIRERPA. The supported commands are listed below. Of course, in addition to the commands described here, most common Linux commands are also supported, but they are not detailed in the following list.
| Command | Description |
|---|---|
| python | Python |
| strace | syscall trace |
| ltrace | libcall trace |
| curl | cURL |
| fsmon | File access monitoring |
| stunnel | Traffic encryption |
| redir | Port forwarding |
| scapy | Traffic analysis |
| iperf3 | Network performance testing |
| nano | File editor |
| vi | File editor |
| ncdu | Find disk file usage |
| socat | Network utility |
| sqlite3 | Read SQLite databases, supports wxsqlite, sqlcipher, and sqlcrypto |
| tcpdump | Traffic analysis |
| busybox | Command collection |
| MemDumper | MemDumper |
| frida | frida-tools |
| frida-ps | frida-tools |
| frida-trace | frida-tools |
| frida-ls-devices | frida-tools |
| frida-discover | frida-tools |
| frida-kill | frida-tools |
| frida-apk | frida-tools |
| frida-create | frida-tools |
| frida-join | frida-tools |
Python Libraries¶
In addition to the common Linux commands mentioned above, the built-in Python also supports some popular third-party libraries. While some common libraries may not be included, you can still import them if they are available.
| Library Name | Description |
|---|---|
| Crypto | Encryption/Decryption |
| OpenSSL | Encryption/Decryption |
| PIL | Image processing |
| bcrypt | Encryption/Decryption |
| brotli | Decompression |
| cachetools | Call caching |
| capstone | Disassembly engine |
| cffi | FFI |
| cryptography | Encryption/Decryption |
| cv2 | Image processing |
| frida | frida |
| gevent | gevent |
| protobuf | protobuf |
| grpc | grpc |
| jinja2 | jinja |
| keystone | Assembly engine |
| lamda | Itself |
| pyelftools | ELF parsing |
| lxml | XML parsing |
| msgpack | Serialization |
| numpy | Scientific computing |
| peewee | ORM |
| pyaxmlparser | APK parsing |
| pyinotify | File monitoring |
| redis | redis |
| requests | requests |
| scapy | Traffic analysis |
| tornado | Web framework |
| ujson | JSON parsing |
| unicorn | CPU simulation engine |
| websocket | websocket |
| zstd | zstd |
Please note that you cannot install additional libraries via PIP or APT in the built-in terminal environment. If you need to install other libraries or programs, please refer to the Virtual Debian Environment section and use the virtual environment.