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.

AliasCommand
lls
llls -l
lals -la
pypython
..Change to the parent directory
...Change to the parent's parent directory
tChange to /data/local/tmp
pChange 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.

CommandDescription
pythonPython
stracesyscall trace
ltracelibcall trace
curlcURL
fsmonFile access monitoring
stunnelTraffic encryption
redirPort forwarding
scapyTraffic analysis
iperf3Network performance testing
nanoFile editor
viFile editor
ncduFind disk file usage
socatNetwork utility
sqlite3Read SQLite databases, supports wxsqlite, sqlcipher, and sqlcrypto
tcpdumpTraffic analysis
busyboxCommand collection
MemDumperMemDumper
fridafrida-tools
frida-psfrida-tools
frida-tracefrida-tools
frida-ls-devicesfrida-tools
frida-discoverfrida-tools
frida-killfrida-tools
frida-apkfrida-tools
frida-createfrida-tools
frida-joinfrida-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 NameDescription
CryptoEncryption/Decryption
OpenSSLEncryption/Decryption
PILImage processing
bcryptEncryption/Decryption
brotliDecompression
cachetoolsCall caching
capstoneDisassembly engine
cffiFFI
cryptographyEncryption/Decryption
cv2Image processing
fridafrida
geventgevent
protobufprotobuf
grpcgrpc
jinja2jinja
keystoneAssembly engine
lamdaItself
pyelftoolsELF parsing
lxmlXML parsing
msgpackSerialization
numpyScientific computing
peeweeORM
pyaxmlparserAPK parsing
pyinotifyFile monitoring
redisredis
requestsrequests
scapyTraffic analysis
tornadoWeb framework
ujsonJSON parsing
unicornCPU simulation engine
websocketwebsocket
zstdzstd

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.