- Device Info β Model, brand, Android version, battery, memory, storage, network, screen
- Real-time Connection β Socket.IO based live communication with auto-reconnect
- Multi-device Support β Manage unlimited devices from single dashboard
- IP Geolocation β Country and city detection for connected devices
- π± SMS β Read inbox/sent messages, send SMS, view conversations
- π Call Logs β View call history with timestamps and duration
- π₯ Contacts β Access device contacts
- π GPS Location β Real-time tracking with configurable polling interval
- π File Manager β Browse storage, download files (chunked transfer)
- π· Camera β Capture photos from front/back camera
- π€ Microphone β Record audio remotely with custom duration
- π Clipboard β Monitor clipboard content in real-time
- π Notifications β Capture and view all device notifications
- πΆ WiFi Scanner β Scan nearby WiFi networks with signal details
- π¦ Installed Apps β List all installed applications with package info
- π Permissions β View granted/denied permissions, prompt for missing ones
- π§ App Visibility β Hide/show app from device launcher
- π Auto Boot β Starts automatically on device boot
- π‘οΈ Watchdog β Keeps service alive via TIME_TICK monitoring
- π‘ Auto Reconnect β Reconnects on network change with backoff
- π Wake Lock β Ensures reliable background operation
- β° WorkManager β KeepAliveWorker periodic job as fallback
- π» Stealth Notification β Minimal foreground notification with VISIBILITY_SECRET
- Customize server URL, app name, icon, and home page URL
- Auto-signed APK via uber-apk-signer
- Dashboard β Real-time stats, online/offline counts, system uptime, memory usage
- Devices β Browse all connected devices with search and filter
- Builder β Build customized APK from the web interface
- Users β Role-based access (admin/user) with granular permissions
- Settings β Manage profile and password
- Logs β System event log with filtering and search
- Dark/Light Theme β System-aware toggle with persistent preference
- JWT session auth with HTTP-only cookies, 24-hour expiry
- Per-IP rate limiting (default: 100 req/min)
- IP-based login lockout after 5 failed attempts
- Role-based access control with 25 granular permissions
- Global error handler prevents stack trace leaks in production
ποΈ Architecture
FasonRat/
βββ fason/ Android client (Java 17, Socket.IO)
βββ backend/ Node.js server (Fastify 5, SQLite, Socket.IO)
βββ frontend/ React dashboard (React 19, Vite 8, Tailwind CSS 4)
βββ docker/ Dockerfile + docker-compose.yml
| Layer | Stack | Port |
|---|---|---|
| Android | Java 17, SDK 35, Socket.IO, CameraX, WorkManager | β |
| Backend | Node.js 22, Fastify 5, SQLite, Drizzle ORM | 32766 |
| Frontend | React 19, Vite 8, Tailwind CSS 4, shadcn/ui, Zustand | 5173 (dev) |
π Getting Started
| Component | Requirement |
|---|---|
| Server | Node.js 22+, npm, Java 17 JRE (for APK builder) |
| Android | minSdk 29 (Android 10), targetSdk 35, Java 17 |
docker run -d \
--name fasonrat \
-p 32766:32766 \
-v fasonrat-data:/app/backend/data \
fahimahamed/fasonrat:latestOr with Docker Compose:
git clone https://github.com/fahimahamed1/FasonRat.git
cd FasonRat
docker compose -f docker/docker-compose.yml up -dgit clone https://github.com/fahimahamed1/FasonRat.git
cd FasonRat
npm install
npm run db:push
npm run build
npm startAccess dashboard at http://localhost:32766
π Default Credentials: Username:
admin/ Password:fasonrat
npm run dev:backend # Hot-reload via tsx watch
npm run dev:frontend # Vite dev server with HMR
npm run dev # Start both concurrentlyOption A: Web Builder (Recommended)
- Open dashboard β Builder
- Enter server URL (e.g.,
http://192.168.1.100:32766) - Set custom app name, icon, and home page URL
- Click Build APK β Download signed
Fason.apk
Option B: Gradle
cd fason
./gradlew assembleDebug # Debug build (~6.4 MB, ARM-only)
./gradlew assembleRelease # Release build (requires keystore env vars)βοΈ Configuration
| Variable | Default | Description |
|---|---|---|
PORT |
32766 |
Server listen port |
NODE_ENV |
production |
Node.js environment |
JWT_SECRET |
auto-generated UUID | JWT signing secret |
LOG_LEVEL |
info |
Logging level |
SQLite via better-sqlite3 with Drizzle ORM. Auto-created at backend/data/fasonrat.db on first run.
npm run db:generate # Generate migration SQL
npm run db:migrate # Run migrations
npm run db:push # Push schema directly
npm run db:studio # Open Drizzle Studioπ‘οΈ Security Notes
- Personal device management
- Parental control (with consent)
- Enterprise device management
- Educational and research purposes
Do NOT use for:
- Unauthorized device access
- Surveillance without consent
- Any illegal activities
Always ensure proper authorization before installing on any device.
This project is licensed under the MIT License - see the LICENSE file for details.
Fahim Ahamed
If you find this project useful, please consider giving it a star! π Contributions, issues, and ideas are welcome.
Join the FasonRat community on Telegram for discussions, updates, and support:






