i'm not making a rootkit/trojan or anything, but just was thinking about security in general and was wondering if this could be implemented.
basically i have 2 ideas:
couldn't a website make a javascript script that opened up the terminal by calling a telnet connection, then interupting the connection, and using the rm -rf ~* command to erase a person's personal settings and saved docs, music, ect? this thought came from this thread after checking out the website that seemed kinda crazy: https://forums.macrumors.com/threads/146066/
or how about joining some scripts to an app that basically went like this: having john the ripper in there, and when somebody ran the app that they downloaded from p2p or a untrusted website, basically had the scripts say run john the ripper for sudo password and save as .password (so it'll be hidden) then have the script to install a startup item (using the password from .password by having the script look at it through textedit or something and copying line 1--the password) and basically install a command for the startup item like rm -rf /* with the password injected for sudo or something?
basically i have 2 ideas:
couldn't a website make a javascript script that opened up the terminal by calling a telnet connection, then interupting the connection, and using the rm -rf ~* command to erase a person's personal settings and saved docs, music, ect? this thought came from this thread after checking out the website that seemed kinda crazy: https://forums.macrumors.com/threads/146066/
or how about joining some scripts to an app that basically went like this: having john the ripper in there, and when somebody ran the app that they downloaded from p2p or a untrusted website, basically had the scripts say run john the ripper for sudo password and save as .password (so it'll be hidden) then have the script to install a startup item (using the password from .password by having the script look at it through textedit or something and copying line 1--the password) and basically install a command for the startup item like rm -rf /* with the password injected for sudo or something?