AhMyth / AhMyth-Android-RAT

Android Remote Administration Tool
GNU General Public License v3.0
4.54k stars 1.7k forks source link

AhMyth no longer working with electron-nightly #252

Open Morsmalleo opened 3 years ago

Morsmalleo commented 3 years ago

I've setup AhMyth over 1,000 times and fixed the errors i ran into by install electron@9.0.0 (which doesn't exist anymore apparently), electron-rebuild, and electron@nightly however electron@nightly has changed to electron-nightly, upon installing the new electron-nightly, nothing works, AhMyth opens but i cant use the apk builder, i cant close unless i close the terminal that started it, i cant minimize it, i cant even use the port listener.

but without electron-nightly installed, and the usual electron & electron-rebuild installed to allow it to build standalone apk's, it works fine however it doesnt allow me to select an apk to bind with, it builds standalone apks fine, but it doesnt even let me choose one, the window to choose an apk to bind with opens, but upon selecting the apk to bind with, it doesnt work, nothing happens. I am running Kali Linux 2020.4. all installation and fix processes i followed are below, but nothing works as of electron@nightly becoming electron-nightly there have obviously been some changes made somewhere that i can't seem to find can someone help please help? I have pasted the error stuff below as well

kali@kali:~ ┌──(kali㉿kali)-[~/AhMyth-Android-RAT/AhMyth-Server] └─$ npm install electron

kali@kali:~ ┌──(kali㉿kali)-[~/AhMyth-Android-RAT/AhMyth-Server] └─$ npm install electron-rebuild

kali@kali:~ ┌──(kali㉿kali)-[~/AhMyth-Android-RAT/AhMyth-Server] └─$ npm install electron-nightly

┌──(kali㉿kali)-[~] └─$ cd AhMyth-Android-RAT/AhMyth-Server/node_modules/electron/dist

┌──(kali㉿kali)-[~] /AhMyth-Android-RAT/AhMyth-Server/node_modules/electron/dist/ └─$ sudo chown root chrome-sandbox

┌──(kali㉿kali)-[~] /AhMyth-Android-RAT/AhMyth-Server/node_modules/electron/dist/ └─$ sudo chmod 4755 chrome-sandbox

┌──(kali㉿kali)-[~] /AhMyth-Android-RAT/AhMyth-Server/node_modules/electron-nightly/dist/ └─$ sudo chown root chrome-sandbox

┌──(kali㉿kali)-[~] /AhMyth-Android-RAT/AhMyth-Server/node_modules/electron-nightly/dist/ └─$ sudo chmod 4755 chrome-sandbox

THEN WHEN I START IT this pop up in the terminal and nothing on ahmyth works at all

┌──(kali㉿kali)-[~/AhMyth-Android-RAT/AhMyth-Server] └─$ npm start

start npx electron ./app

(node:64649) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. See https://github.com/electron/electron/issues/23506 for more information (Use electron --trace-warnings ... to show where the warning was created) (node:64649) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. See https://github.com/electron/electron/issues/23506 for more information libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

phishpy commented 3 years ago

Yarn is strongly recommended instead of npm.

yarn add electron-builder --dev

Morsmalleo commented 3 years ago

Well I've mostly fixed AhMyth on my fork located at my github, but I will also try this method as well thank you for the info