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 enter through the remote desktop, SSH, or built-in ADB connection. It has some built-in commands and some commonly used Python modules. You can directly execute some commands or run Python code in it, and even complete self-control directly in the terminal. Due to compatibility considerations, terminals connected through the built-in ADB method do not have some command prompt functions.
Now please open the remote desktop or connect to SSH or the built-in ADB terminal. You should already see a Linux terminal. Executing the command cd
can 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 in the terminal, then use the up and down keys to automatically fill in historical commands.
Common Aliases¶
Aliases are similar to commands. You can quickly execute some common commands through these aliases. The following command aliases can be used in the built-in terminal. These command aliases and their functions are as follows:
Shorthand | Command |
---|---|
l | ls |
ll | ls -l |
la | ls -la |
py | python |
.. | Switch to parent directory |
... | Switch to parent directory's parent directory |
t | Switch to /data/local/tmp |
p | Switch to previous directory |
Common Commands¶
Practical commands refer to some commonly used Linux or industry common commands built into FIRERPA. The supported commands are as follows. Of course, in addition to the commands described below, most common Linux commands are also supported, but we will not elaborate 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 tool |
sqlite3 | Read SQLite database, supports cipher |
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 above commonly used Linux commands, the built-in Python also supports some commonly used third-party libraries. Some common libraries may not be included, but if they are, you can still reference them.
Library Name | Description |
---|---|
Crypto | Encryption and decryption |
OpenSSL | Encryption and decryption |
PIL | Image processing |
bcrypt | Encryption and decryption |
brotli | Compression and decompression |
cachetools | Call caching |
capstone | Disassembly engine |
cffi | FFI |
cryptography | Encryption and decryption |
cv2 | Image processing |
frida | frida |
gevent | gevent |
protobuf | protobuf |
grpc | grpc |
jinja2 | jinja |
keystone | Assembly engine |
lamda | Self |
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 emulation engine |
websocket | websocket |
zstd | zstd |
It should be noted that you cannot install additional libraries through PIP or APT in the built-in terminal environment. If you need to install other libraries or programs, please check the Virtual Debian Environment
related chapter and use them through the virtual environment.