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 remote desktop, SSH, or built-in ADB. It includes some built-in commands and some commonly used Python modules. You can directly run commands or execute Python code in it, and complete self-service automation directly within the terminal.

Attention

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

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

Common Aliases

Aliases are similar to commands. You can use these aliases to quickly run some common commands. The following command aliases are available in the built-in terminal, along with their functions.

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

Common Commands

Common commands refer to some common Linux or industry-standard 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 do not list them below. 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 following is the complete list:

CommandDescription
[Conditional testing (linked to coreutils)
adbAndroid Debug Bridge
awkPattern scanning and processing language
b2sumBLAKE2 checksum (linked to coreutils)
base32Base32 encoding/decoding (linked to coreutils)
base64Base64 encoding/decoding (linked to coreutils)
basenameRemove path prefix (linked to coreutils)
basencVarious 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)
chgrpModify file group (linked to coreutils)
chmodModify file permissions (linked to coreutils)
chownModify 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)
dateDisplay/set date and time (linked to coreutils)
ddData conversion and copying (linked to coreutils)
dfView disk space (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)
exprEvaluate expressions (linked to coreutils)
factorFactor numbers (linked to coreutils)
falseReturn non-zero status code (linked to coreutils)
fuserShow 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 monitoring
grepPattern search in text
groupsView user groups (linked to coreutils)
headOutput beginning of files (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 processes
killallKill all processes by name
linkCreate hard links (linked to coreutils)
lnCreate links (linked to coreutils)
lognameCurrent login user name (linked to coreutils)
lsList directory contents (linked to coreutils)
ltraceLibrary call tracing
md5sumMD5 checksum (linked to coreutils)
memdumperMemory dumping tool (32-bit)
memdumper64Memory dumping tool (64-bit)
mkdirCreate directories (linked to coreutils)
mkfifoCreate named pipes (linked to coreutils)
mknodCreate device nodes (linked to coreutils)
mkshMirBSD Korn Shell
mktempCreate temporary files (linked to coreutils)
mvMove/rename files (linked to coreutils)
ncNetcat network tool
ncduInteractive disk usage viewer
niceAdjust process priority (linked to coreutils)
nlAdd line numbers (linked to coreutils)
nohupRun while ignoring hangup signals (linked to coreutils)
nprocView CPU core count (linked to coreutils)
numfmtNumber format conversion (linked to coreutils)
odOctal/hexadecimal viewer (linked to coreutils)
opensslSSL/TLS encryption tool
pasteMerge lines from files (linked to coreutils)
pathchkCheck path names (linked to coreutils)
pgrepFind process PID by name
pidofGet process PID
pinkyView user information (linked to coreutils)
pipPython package installation tool
pkillTerminate processes by name
prPaginate and format text (linked to coreutils)
printenvPrint environment variables (linked to coreutils)
printfFormatted output (linked to coreutils)
psView process status
pstreeView process tree
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 redirection tool
rmDelete files (linked to coreutils)
rmdirDelete empty directories (linked to coreutils)
routeView/configure routing table
rsyncRemote file synchronization
runconRun with SELinux context (linked to coreutils)
scapyPython network packet manipulation 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
shredSecurely delete by overwriting (linked to coreutils)
shufRandomly permute lines (linked to coreutils)
sleepDelay for specified time (linked to coreutils)
socatMultipurpose network tool (enhanced netcat)
sortSort (linked to coreutils)
splitSplit files (linked to coreutils)
sqlite3SQLite database CLI
sshSSH client
statView file status (linked to coreutils)
stdbufControl buffering (linked to coreutils)
straceSystem call tracing
sttyTerminal settings (linked to coreutils)
stunnelSSL tunnel wrapper
sumFile checksum (linked to coreutils)
syncSynchronize disk buffers (linked to coreutils)
sysctlView/configure kernel parameters
tacOutput files in reverse (linked to coreutils)
tailOutput end of files (linked to coreutils)
tcpdumpNetwork packet capture and analysis
teeRedirect and output (linked to coreutils)
testConditional testing (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)
truncateAdjust file size (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)
uniqRemove duplicates (linked to coreutils)
unlinkDelete files (linked to coreutils)
uptimeSystem uptime
vdirDetailed directory listing (linked to coreutils)
viText editor (linked to vim)
viewVim read-only mode (linked to vim)
vimEnhanced text editor
vimdiffVim file diff comparison (linked to vim)
vmstatVirtual memory/system statistics
watchRun command periodically
wcLine/word/character count (linked to coreutils)
whoCurrently logged-in users (linked to coreutils)
whoamiCurrent user name (linked to coreutils)
xargsBuild and execute arguments from standard input
yesRepeat output (linked to coreutils)

Python Libraries

The pre-installed third-party libraries in this environment cover common fields such as network communication, cryptographic security, database connection and storage, message queues, image processing, system management, and high-performance asynchronous programming, and are 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.0Asynchronous 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 invocation
colorama0.4.6Colored terminal output
crc32c2.8CRC32c checksum algorithm
cryptography50.0.0Cryptography 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 configuration file parsing
jmespath1.1.0JSON query language (JMESPath)
lxml6.1.0High-performance XML/HTML parsing
mmkv1.3.14Tencent open-source key-value storage (MMKV)
msgpack1.2.1MessagePack binary serialization
numpy2.5.0Numerical computing and multidimensional 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.23.0Cryptographic algorithm library (Crypto replacement)
pyelftools0.33ELF file parsing
pyinotify0.9.6Linux inotify file event monitoring
pyOpenSSL26.4.0OpenSSL Python wrapper
pyotp2.9.0One-time passwords (TOTP/HOTP)
python-dateutil2.8.2Date and time extensions (relative time, 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.6Asynchronous 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
mitmproxy12.2.3mitmproxy
Flask3.1.3Flask

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