Built-in Terminal

The built-in terminal is one of the most 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 accessed via remote desktop, SSH, or built-in ADB. It includes pre-installed commands and some commonly used Python modules, allowing you to execute commands or run Python code directly, enabling self-control directly in the terminal.

Attention

For compatibility and security reasons, terminals connected via built-in ADB do not support features such as partial command hinting.

Now please open the remote desktop or connect to SSH or built-in ADB terminal; you should see a Linux terminal. Execute the command cd to switch to the home directory, which is your workspace where you can store files. The terminal supports command completion but not argument completion. You can also type part of a command and then use the up and down arrow keys to auto-complete historical commands.

Common Aliases

Aliases are similar to commands, allowing you to quickly execute some commonly used commands. The following command aliases are available in the built-in terminal, along with their functions.

AbbreviationCommand
lls
llls -l
lals -la
pypython
..Switch to parent directory
...Switch to grandparent directory
tSwitch to /data/local/tmp
pSwitch to previous directory

Common Commands

Common commands refer to some commonly used Linux or industry commands built into FIRERPA. The supported commands are as follows. Of course, besides the commands described below, most common Linux commands are also supported, but we will not list them exhaustively in the following table. This environment comes with a rich set of pre-installed Linux command tools, covering common scenarios such as file operations, network communication, system debugging, and text processing. The complete list is as follows:

CommandDescription
[Conditional test (linked to coreutils)
adbAndroid Debug Bridge
awkText pattern scanning and processing language
b2sumBLAKE2 checksum (linked to coreutils)
base32Base32 encode/decode (linked to coreutils)
base64Base64 encode/decode (linked to coreutils)
basenameRemove path prefix (linked to coreutils)
basencMultiple encoding conversions (linked to coreutils)
bashBourne Again Shell
catConcatenate and output files (linked to coreutils)
celeryDistributed task queue CLI
chconModify SELinux context (linked to coreutils)
chgrpChange file group (linked to coreutils)
chmodChange file permissions (linked to coreutils)
chownChange file owner (linked to coreutils)
chrootSwitch root directory (linked to coreutils)
cksumChecksum calculation (linked to coreutils)
commCompare two sorted files (linked to coreutils)
coreutilsGNU core utilities
cpCopy files (linked to coreutils)
crontabScheduled task management
csplitSplit files by pattern (linked to coreutils)
curlHTTP/FTP command-line client
cutCut text by columns (linked to coreutils)
dateDate/time display/set (linked to coreutils)
ddData conversion and copy (linked to coreutils)
dfDisk space viewing (linked to coreutils)
dirList directories (linked to coreutils)
dircolorsDirectory color settings (linked to coreutils)
dirnameGet directory part (linked to coreutils)
dnsmasqLightweight DNS/DHCP service
duDisk usage statistics (linked to coreutils)
echoOutput text (linked to coreutils)
envEnvironment variable management (linked to coreutils)
expandConvert tabs to spaces (linked to coreutils)
exprExpression evaluation (linked to coreutils)
factorPrime factorization (linked to coreutils)
falseReturn non-zero status code (linked to coreutils)
fuserDisplay process IDs using specified resources
findFile search tool
fmtText formatting (linked to coreutils)
foldWrap lines by width (linked to coreutils)
freeView memory usage
frpcfrp intranet penetration client
fsmonFile system monitor
grepText pattern search
groupsView user groups (linked to coreutils)
headOutput file head (linked to coreutils)
hexeditHex editor
htopInteractive process viewer
idUser identity information (linked to coreutils)
ifconfigNetwork interface configuration
ipNetwork routing/tunnel/device management
iperfNetwork bandwidth test (linked to iperf3)
iperf3Network bandwidth testing tool
joinMerge two sorted files (linked to coreutils)
killSend signal to terminate process
killallKill all processes by name
linkCreate hard link (linked to coreutils)
lnCreate links (linked to coreutils)
lognameCurrent login username (linked to coreutils)
lsList directory contents (linked to coreutils)
ltraceLibrary function call trace
md5sumMD5 checksum (linked to coreutils)
memdumperMemory dump tool (32-bit)
memdumper64Memory dump tool (64-bit)
mkdirCreate directory (linked to coreutils)
mkfifoCreate named pipe (linked to coreutils)
mknodCreate device node (linked to coreutils)
mkshMirBSD Korn Shell
mktempCreate temporary file (linked to coreutils)
mvMove/rename files (linked to coreutils)
nanoSimple text editor
ncNetcat network tool
ncduInteractive disk usage viewer
niceAdjust process priority (linked to coreutils)
nlAdd line numbers (linked to coreutils)
nohupRun ignoring hangup signal (linked to coreutils)
nprocView number of CPU cores (linked to coreutils)
numfmtNumber format conversion (linked to coreutils)
odOctal/hex viewer (linked to coreutils)
opensslSSL/TLS encryption tool
pasteMerge file lines (linked to coreutils)
pathchkPathname check (linked to coreutils)
pgrepFind process PID by name
pidofGet process PID
pinkyUser information view (linked to coreutils)
pipPython package installer
pkillTerminate process by name
prText pagination formatting (linked to coreutils)
printenvPrint environment variables (linked to coreutils)
printfFormatted output (linked to coreutils)
psProcess status view
pstreeProcess tree view
ptxGenerate permuted index (linked to coreutils)
pwdCurrent directory path (linked to coreutils)
pwdxQuery process working directory
pythonPython interpreter (linked to python3.12)
python3Python 3 interpreter (linked to python3.12)
python3.12Python 3.12 interpreter
readlinkRead symbolic link target (linked to coreutils)
realpathResolve absolute path (linked to coreutils)
redirPort redirect tool
rmDelete files (linked to coreutils)
rmdirRemove empty directory (linked to coreutils)
routeRouting table view/configure
rsyncRemote file synchronization
runconRun with SELinux context (linked to coreutils)
scapyPython network packet CLI
scpSecure file copy (SSH)
sedStream editor
seqGenerate numeric sequence (linked to coreutils)
sha1sumSHA-1 checksum (linked to coreutils)
sha224sumSHA-224 checksum (linked to coreutils)
sha256sumSHA-256 checksum (linked to coreutils)
sha384sumSHA-384 checksum (linked to coreutils)
sha512sumSHA-512 checksum (linked to coreutils)
shelldoShell command execution tool
shredSecure deletion overwrite (linked to coreutils)
shufRandomly permute lines (linked to coreutils)
sleepDelay for specified time (linked to coreutils)
socatMulti-purpose network tool (enhanced netcat)
sortSort (linked to coreutils)
splitSplit files (linked to coreutils)
sqlite3SQLite database CLI
sshSSH client
statFile status view (linked to coreutils)
stdbufControl buffers (linked to coreutils)
straceSystem call trace
sttyTerminal settings (linked to coreutils)
stunnelSSL tunnel wrapper
sumFile checksum (linked to coreutils)
syncSync disk buffers (linked to coreutils)
sysctlKernel parameters view/configure
tacOutput files in reverse (linked to coreutils)
tailOutput file tail (linked to coreutils)
tcpdumpNetwork packet capture and analysis
teeRedirect and output (linked to coreutils)
testConditional test (linked to coreutils)
timeoutRun with timeout (linked to coreutils)
topReal-time process monitoring
touchModify file timestamps (linked to coreutils)
trCharacter translation/deletion (linked to coreutils)
trueReturn zero status code (linked to coreutils)
truncateFile size adjustment (linked to coreutils)
tsortTopological sort (linked to coreutils)
ttyTerminal device name (linked to coreutils)
unameSystem information (linked to coreutils)
unexpandConvert spaces to tabs (linked to coreutils)
uniqDeduplicate (linked to coreutils)
unlinkDelete file (linked to coreutils)
uptimeSystem uptime
vdirVerbose directory listing (linked to coreutils)
viText editor (linked to vim)
viewVim read-only mode (linked to vim)
vimEnhanced text editor
vimdiffVim file diff (linked to vim)
vmstatVirtual memory/system statistics
watchExecute command periodically
wcLine/word/character count (linked to coreutils)
whoCurrent logged-in users (linked to coreutils)
whoamiCurrent username (linked to coreutils)
xargsBuild arguments from standard input and execute
yesRepeat output (linked to coreutils)

Python Libraries

The pre-installed third-party libraries in this environment cover common fields such as network communication, encryption security, database connectivity/storage, message queues, image processing, system management, and asynchronous high-performance, ready to use out of the box.

LibraryVersionDescription
Brotli1.2.0Brotli compression/decompression
Jinja23.1.0Template engine
Pillow8.0.0Image processing (PIL fork)
PyMySQL1.2.0MySQL database driver
PyNaCl1.6.2Encryption and signatures (NaCl wrapper)
PySocks1.7.1SOCKS proxy client
PyYAML6.0.2YAML parsing and generation
amqp5.3.1AMQP protocol client (RabbitMQ)
async-timeout5.0.0Async timeout control
av17.0.0Audio/video processing (PyAV)
bcrypt3.2.0Password hashing (Blowfish)
bidict0.23.1Bidirectional dictionary data structure
cachetools7.1.0Cache utilities
celery5.5.2Distributed task queue
cffi2.1.0C language interface calls
colorama0.4.6Terminal colored output
crc32c2.8CRC32c checksum algorithm
cryptography3.3Cryptography toolkit (Fernet, X.509, etc.)
dnspython2.7.0DNS resolution library
evdev1.9.2Linux input device event handling
frida17.15.2Dynamic instrumentation tool (injection/debugging)
frida-tools14.10.4Frida command-line tool suite
gevent21.1.2Coroutine-based network library
greenlet3.5.3Low-level coroutine support
grpc-interceptor0.15.2gRPC interceptor extension
grpcio1.72.2gRPC framework core
grpcio-tools1.72.2gRPC protobuf code generation tool
iniconfig2.3.0INI config file parsing
jmespath1.1.0JSON query language (JMESPath)
lxml6.1.0High-performance XML/HTML parsing
mmkv1.3.14Tencent open-source key-value store (MMKV)
msgpack1.2.1MessagePack binary serialization
numpy2.5.0Numerical computing and multi-dimensional arrays
opencv-python4.11.0Computer vision (OpenCV)
paho-mqtt2.1.0MQTT protocol client
paramiko5.0.0SSHv2 protocol client
peewee4.2.0Lightweight ORM
pem23.1.0PEM format certificate parsing
pika1.4.1RabbitMQ client
pilk0.2.4WeChat voice codec
protobuf4.25.8Protocol Buffers serialization
psycopg3.3.4PostgreSQL database driver (async support)
psycopg-pool3.3.1psycopg connection pool
pyaxmlparser0.3.31Android XML (AXML) parser
pycparser3.0C language parser
pycryptodome3.9.9Cryptographic algorithm library (Crypto replacement)
pyelftools0.33ELF file parsing
pyinotify0.9.6Linux inotify file event monitoring
pyOpenSSL23.1.0Python wrapper for OpenSSL
pyotp2.9.0One-time passwords (TOTP/HOTP)
python-dateutil2.8.2Date and time extensions (relative times, etc.)
pytz2026.2Timezone handling (Olson database)
pyzbar0.1.9QR code / barcode decoding
qrcode8.1QR code generation
redis5.2.1Redis database client
requests2.34.2HTTP client (simple API)
scapy2.5.0Network packet construction and sniffing
sqlalchemy2.0.50ORM
tflite-runtime2.15.0TensorFlow Lite inference runtime
tornado6.5.6Async web framework and networking library
ujson4.0.0High-performance JSON encoding/decoding
urllib32.7.0HTTP client (low-level, requests dependency)
uvloop0.21.0asyncio event loop acceleration (libuv)
websocket-client1.9.0WebSocket client (synchronous)
websockets13.1WebSocket client/server (asynchronous)
xmltodict0.12.0XML to Python dict conversion
zstandard0.25.0Zstandard compression algorithm

You can use the pip command to install third-party libraries implemented in pure Python, but you cannot install compiled libraries or those with .so files. For a full experience, we recommend using the Virtual Debian Environment.